.wc-product-details { padding: 2rem 0; }
.wc-product-gallery__main { 
    border-radius: 8px; 
    overflow: hidden; 
    background: #f8f8f8; 
    display:flex; 
    align-items:center; 
    justify-content:center; 
    min-height:360px;
    cursor: zoom-in;
}
.wc-product-gallery__main img { 
    max-width:100%; 
    max-height:520px; 
    object-fit:contain;
    transition: transform 0.3s ease;
}
.wc-product-gallery__main:hover img {
    transform: scale(1.2);
}

.wc-product-countdown {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background: rgba(0,0,0,.9);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: .5rem .8rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    box-shadow: 0 3px 12px rgba(0,0,0,.3);
    z-index: 20;
}

.wc-product-countdown i {
    color: var(--wc-gold, #c8a96e);
    font-size: 1rem;
}
.wc-product-gallery__thumbs .wc-gallery-thumb { width:72px; height:72px; object-fit:cover; border-radius:8px; cursor:pointer; border:2px solid transparent; }
.wc-gallery-thumb.selected { border-color:#C8A96E; }
.wc-product-title { font-size:1.75rem; font-weight:700; color:#1C1008; }
.wc-product-pricing .wc-shop-card__price { color:#C8A96E; font-weight:700; font-size:1.5rem; margin-right:0.75rem; }
.wc-shop-card__old-price { color:#6c757d; text-decoration:line-through; }
.wc-color-swatch { margin-right:0.5rem; background:none; border:0; padding:0; }
.wc-color-swatch.selected img { outline:3px solid rgba(200,169,110,0.15); border-radius:50%; }
.wc-qty-selector .form-control { width:70px; }
.wc-product-tabs .tab-content { background:#fff; }
/* keep design consistent with site identity */

/* Related products (Details page) - compact cards */
.related-products .wc-shop-card {
    border-radius: 8px;
}
.related-products .wc-shop-card__img-wrap{
    width: 150px; /* adjustable */
    height: 150px; /* adjustable */
    margin: 0 auto;
    overflow: hidden;
    aspect-ratio: unset !important;
    display: block;
    background: #f6f6f6;
}

.related-products .wc-shop-card__img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Discount badge overlay on related product thumbnails */
.related-products .wc-shop-card__discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 30;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.related-products .wc-shop-card__body { padding: 0.5rem; }
.related-products .wc-shop-card__title { font-size: 0.95rem; }
.related-products .wc-shop-card__price { font-size: 0.95rem; }
.related-products .col {
    display: flex;
    justify-content: center;
}

.related-products .wc-shop-card {
    width: 150px; /* fixed card width, changeable */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 8px;
    overflow: visible;
    height: auto !important;
}

.related-products .wc-shop-card__img-wrap{
    width: 150px; /* change these two values to resize thumbnails */
    height: 150px; /* change these two values to resize thumbnails */
    margin: 0 auto;
    overflow: hidden;
    aspect-ratio: unset !important;
    display: block;
    background: #f6f6f6;
}

.related-products .wc-shop-card__body {
    width: 150px;
    padding: 0.5rem;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.related-products .wc-shop-card__title,
.related-products .wc-shop-card__price{
    display: block;
    text-align: center;
    width: 100%;
}

/* Image Lightbox */
.wc-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.wc-lightbox__content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

.wc-lightbox__close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 48px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10000;
}

.wc-lightbox__close:hover,
.wc-lightbox__close:focus {
    color: #c8a96e;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}


/* Responsive adjustments: make related product cards use available width on small screens */
@media (max-width: 576px) {
    .related-products .col {
        display: block;
        justify-content: stretch;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .related-products .wc-shop-card {
        width: 100% !important;
        max-width: 100% !important;
        align-items: stretch;
        text-align: start;
        padding: 0.5rem;
    }

    .related-products .wc-shop-card__img-wrap {
        width: 100% !important;
        height: auto !important;
        margin: 0 0 0.5rem 0;
    }

    .related-products .wc-shop-card__img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .related-products .wc-shop-card__body {
        width: 100%;
        padding: 0.25rem 0.5rem;
        align-items: flex-start;
    }
}

