/* Gallery thumbnails layout */
.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.thumbnails-strip {
    display: flex;
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    justify-content: flex-start;
}

.thumbnail {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.thumbnail.active {
    border: 2px solid #2eb67c;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* --- Your Coupon Style (ONLY changed this) --- */
.coupon {
    display: flex;
    align-items: center;
    border-radius: 6px;
    overflow: hidden;
    margin: 15px 0;
    width: fit-content;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.left {
    background: #2eb67c;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    padding: 6px 15px;
    position: relative;
}

.left::before,
.left::after {
    content: "";
    position: absolute;
    left: -6px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
}

.left::before {
    top: 4px;
}

.left::after {
    bottom: 4px;
}

.right {
    background: #003566;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    padding: 6px 15px;
    position: relative;
}

.right::before,
.right::after {
    content: "";
    position: absolute;
    right: -6px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
}

.right::before {
    top: 4px;
}

.right::after {
    bottom: 4px;
}

.main-image-wrapper {
    position: relative;
    flex: 2;
}

.main-image {
    position: relative;
    cursor: crosshair;
    overflow: hidden;
    width: 100%;
    max-width: 350px;
    height: 350px;
    border: 1px solid #eee;
    border-radius: 12px;
}

.main-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zoom-lens {
    position: absolute;
    border: 2px solid #2eb67c;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.3);
    display: none;
    pointer-events: none;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.bottom-side-bars {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
    align-items: stretch;
}

.similar-products {
    flex: 1;
    border: none;
    padding: 0;
    margin: 0;
}

.similar-products-h2 {
    font-size: 24px;
    margin-bottom: 25px;
    font-weight: 700;
    font-family: var(--font-secondary);
}

.similar-card {
    height: 200px;
}

.info-card {
    flex: 0 0 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-card-h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: var(--font-secondary);
}

.product-info {
    position: relative;
}

.zoom-result {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 350px;
    background-color: #fff;
    z-index: 1000;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background-repeat: no-repeat;
    pointer-events: none;
    border: 1px solid #e0e0e0;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

.product-description-box {
    font-size: 16px;
    color: #444;
    line-height: 1.7;
    margin-bottom: 25px;
}

.tabs-section {
    margin-top: 10px;
    margin-bottom: 60px;
    background: #fcfcfc;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    width: 100%;
}

.description-text {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

/* --- Star Rating Styles --- */
.rating-container .stars {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.rating-container .stars i.fas.fa-star {
    color: #2eb67c;
    font-size: 22px;
}

.rating-container .stars .rating-text {
    color: #666;
    font-size: 16px;
    font-weight: 500;
}

/* Gallery: hide fancybox hidden anchors visually */
.main-image a[style*="display:none"] {
    display: none !important;
}

/* Ensure Fancybox opens below the sticky navbar */
.fancybox__container {
    z-index: 9990 !important;
    /* Header is 9999 */
    top: 115px !important;
    bottom: 0 !important;
    height: auto !important;
}

@media (max-width: 992px) {
    .fancybox__container {
        top: 170px !important;
    }
}
