* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Mono', monospace;
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 80px auto;
    background: #fff;
    padding: 50px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.header a {
    color: #000;
    text-decoration: underline;
}

.breadcrumb {
    font-size: 0.9rem;
    color: #000;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #000;
    text-decoration: underline;
    font-weight: 600;
}

.product-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.product-gallery {
    flex: 1 1 40%;
    min-width: 250px;
}

.main-image {
    width: 100%;
    height: 300px;
    background: #e9ecef;
    border: 1px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
    cursor: zoom-in;
}

.zoom-hint {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 8px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.main-image:hover .zoom-hint {
    opacity: 1;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumbnails {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.thumbnails img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 1px solid #000;
    cursor: pointer;
    transition: opacity 0.2s;
}

.thumbnails img:hover {
    opacity: 0.7;
}

.thumbnails img.active {
    border: 2px solid #000;
}

.product-info {
    flex: 1 1 50%;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-name {
    font-size: 2rem;
    font-weight: 500;
    color: #000;
}

.product-price {
    font-size: 2.2rem;
    font-weight: bold;
    color: #000;
}

.specs {
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 16px 0;
    margin: 8px 0;
}

.spec-row {
    display: flex;
    gap: 8px;
    margin: 10px 10px;
    line-height: 1.5;
    align-items: baseline;
    flex-wrap: nowrap;
}

.spec-label {
    min-width: 160px;
    flex-shrink: 0;
    font-weight: 600;
    white-space: nowrap;
}

.spec-value {
    flex: 1;
    word-break: break-word;
}

.spec-row.compat-header {
    margin-top: 10px;
}

.spec-row.compat-item .spec-label {
    min-width: 160px;
    flex-shrink: 0;
}

.quantity-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0;
}

.quantity-section label {
    font-weight: bold;
}

.quantity-section input {
    width: 60px;
    padding: 6px;
    font-family: 'DM Mono', monospace;
    border: 1px solid #000;
    background: #fff;
    text-align: center;
}

.btn-cart {
    background: #000;
    color: #fff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-family: 'DM Mono', monospace;
    font-size: 1rem;
    transition: background 0.2s;
    align-self: flex-start;
    margin-top: 4px;
}

.btn-cart:hover {
    background: #333;
}

.delivery-info {
    font-size: 0.9rem;
    color: #333;
    margin-top: 4px;
}

.error-msg {
    color: #d9534f;
    font-weight: bold;
    margin: 8px 0;
}

.stock-info {
    font-size: 0.9rem;
    color: #333;
    margin: 4px 0;
}

.you-may-also-like {
    border-top: 1px solid #000;
    padding-top: 20px;
    margin-top: 20px;
}

.you-may-also-like h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.related-item {
    border: 1px solid #000;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.related-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-bottom: 1px solid #000;
    margin-bottom: 8px;
}

.related-item .related-name {
    font-weight: bold;
    font-size: 0.9rem;
}

.related-item .related-price {
    font-size: 1rem;
    font-weight: bold;
}

.related-item .sold-out {
    color: #d9534f;
    font-weight: bold;
}

@media (max-width:700px) {
    .product-layout {
        flex-direction: column;
    }

    .product-gallery {
        flex: 1 1 auto;
    }

    .spec-row {
        flex-wrap: wrap;
    }

    .spec-label {
        min-width: 100px;
        white-space: nowrap;
    }

    .spec-row.compat-item .spec-label {
        min-width: 100px;
    }

    .container {
        padding: 15px;
    }

    .thumbnails img {
        width: 50px;
        height: 50px;
    }
}
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-stage {
    width: 90%;
    height: 85%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: zoom-in;
}

.lightbox-stage.zoomed {
    cursor: grab;
}

.lightbox-stage.dragging {
    cursor: grabbing;
}

.lightbox-stage img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.15s ease-out;
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox-stage.dragging img {
    transition: none;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    font-family: 'DM Mono', monospace;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Mono', monospace;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 12px;
}

@media (max-width:700px) {
    .lightbox-stage {
        width: 100%;
        height: 75%;
    }

    .lightbox-nav {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }

    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 2rem;
    }
}

.secondary_header_section {
    width: 100%;
    height: 70px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: #000;
    display: flex;
    align-items: center;
    padding-left: 5%;
}

.secondary_header_section a {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
}

@media (max-width:768px){
    .secondary_header_section {
        padding-left: unset;
    }
}