/* ==========================================
   EcoFarm Single Product Page Master Styles
   ========================================== */

/* Breadcrumbs Bar */
.product-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    font-size: 0.88rem;
    padding: 0.75rem 1.25rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.product-breadcrumb a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.product-breadcrumb a:hover {
    color: var(--primary-color);
}

.product-breadcrumb .breadcrumb-sep {
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.6;
}

.product-breadcrumb .breadcrumb-current {
    color: var(--primary-deep);
    font-weight: 700;
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Product Detail Grid Layout */
.product-detail-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    padding: 0.5rem 0 3rem;
    align-items: start;
}

@media (max-width: 992px) {
    .product-detail-wrap {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Left Column: Product Showcase & Gallery */
.product-media-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.product-detail-img-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #f4fbf4 0%, #e6f3e6 100%);
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 32px rgba(0, 30, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.3s ease;
}

.product-detail-img-box:hover {
    box-shadow: 0 18px 40px rgba(0, 30, 0, 0.1);
}

.product-detail-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-detail-img-box:hover img {
    transform: scale(1.05);
}

.product-emoji-hero {
    font-size: 10rem;
    line-height: 1;
    user-select: none;
    transition: transform 0.4s ease;
}

.product-detail-img-box:hover .product-emoji-hero {
    transform: scale(1.1) rotate(4deg);
}

/* Floating Wishlist Button on Image */
.product-wishlist-fab {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: var(--accent-color);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 5;
}

.product-wishlist-fab:hover {
    transform: scale(1.12);
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(196, 69, 54, 0.25);
}

/* Badges overlay on top left of image */
.product-hero-badges {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    z-index: 5;
}

/* Product Guarantees Grid below main image */
.product-guarantees {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    background: #ffffff;
    padding: 1.2rem 1.4rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.guarantee-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--primary-subtle);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.guarantee-text strong {
    display: block;
    font-size: 0.84rem;
    color: var(--primary-deep);
}

.guarantee-text span {
    font-size: 0.76rem;
    color: var(--text-secondary);
}

/* Right Column: Product Detail Info */
.product-detail-info {
    display: flex;
    flex-direction: column;
}

/* Meta Pills & Live Stock Dot */
.product-meta-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
}

.badge-stock {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 600;
}

.badge-stock.in-stock {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.badge-stock.out-of-stock {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.stock-dot.in-stock {
    background: #2e7d32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.2);
    animation: pulseDot 2s infinite;
}

.stock-dot.out-of-stock {
    background: #c62828;
}

@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(46, 125, 50, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0); }
}

.product-detail-info h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-deep);
    line-height: 1.25;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

/* Rating Overview inline */
.product-rating-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.rating-stars-gold {
    color: #ffb400;
    font-size: 1.05rem;
    display: flex;
    gap: 0.15rem;
}

.rating-score-num {
    font-weight: 700;
    color: var(--primary-deep);
    font-size: 0.95rem;
}

.rating-link {
    font-size: 0.88rem;
    color: var(--text-secondary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.rating-link:hover {
    color: var(--primary-color);
}

/* Price Section */
.product-price-section {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.product-detail-price {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    letter-spacing: -0.02em;
}

.product-price-tax-note {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Offer Coupon Box */
.coupon-promo-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #e6f7eb 100%);
    border: 1.5px dashed var(--primary-color);
    border-radius: 16px;
    padding: 0.9rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 2px 10px rgba(240, 33, 33, 0.05);
}

.coupon-promo-info strong {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary-deep);
    font-size: 0.9rem;
}

.coupon-promo-info p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0.2rem 0 0;
}

.coupon-code-badge {
    background: #ffffff;
    border: 1px solid var(--primary-color);
    color: var(--primary-deep);
    font-weight: 800;
    font-family: monospace;
    font-size: 0.95rem;
    padding: 0.4rem 0.85rem;
    border-radius: 10px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: all;
}

.coupon-code-badge:hover {
    background: var(--primary-color);
    color: #ffffff;
}

/* Description Text Card */
.product-desc-box {
    background: #ffffff;
    border-left: 4px solid var(--primary-color);
    padding: 1.1rem 1.25rem;
    border-radius: 0 16px 16px 0;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.product-desc-box p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.65;
    margin: 0;
}

/* Care Icons Grid */
.care-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.care-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1rem 0.8rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.care-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.care-item-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-subtle);
    color: var(--primary-color);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.6rem;
    transition: background 0.2s ease;
}

.care-item:hover .care-item-icon-circle {
    background: var(--primary-color);
    color: #ffffff;
}

.care-item-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

.care-item-val {
    display: block;
    font-size: 0.88rem;
    color: var(--primary-deep);
    font-weight: 700;
}

/* Quantity & Action Controls */
.purchase-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.4rem;
    box-shadow: var(--shadow-md);
    margin-top: 0.5rem;
}

.qty-stepper-wrap {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.qty-label {
    font-weight: 700;
    color: var(--primary-deep);
    font-size: 0.95rem;
}

.qty-stepper {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    padding: 0.3rem 0.5rem;
    background: var(--bg-main);
}

.qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    color: var(--primary-deep);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.qty-input {
    width: 48px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-deep);
    outline: none;
}

.product-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.btn-buy-now {
    background: linear-gradient(135deg, var(--buy-now-color) 0%, var(--buy-now-dark) 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.58rem 1.15rem;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.24);
    transition: all 0.2s ease;
}

.btn-buy-now:hover {
    box-shadow: 0 6px 18px rgba(255, 107, 53, 0.32);
}

.btn-add-cart {
    background: #ffffff;
    color: var(--primary-color) !important;
    border: 1.5px solid var(--primary-color);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.55rem 1.15rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: all 0.2s ease;
}

.btn-add-cart:hover {
    background: var(--primary-subtle);
}

@media (max-width: 480px) {
    .product-actions-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   Customer Reviews Section
   ========================================== */
.product-reviews-section {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-color);
}

.section-heading-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.section-heading-wrap h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--primary-deep);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.review-summary-pill {
    background: var(--primary-subtle);
    color: var(--primary-deep);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
}

.review-form-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.75rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.review-form-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-deep);
    margin-bottom: 1.25rem;
}

.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.35rem;
}

.star-rating-input input {
    display: none;
}

.star-rating-input label {
    cursor: pointer;
    color: #e0e0e0;
    font-size: 1.6rem;
    transition: color 0.15s ease, transform 0.15s ease;
}

.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label {
    color: #ffb400;
}

.star-rating-input label:hover {
    transform: scale(1.2);
}

.review-login-prompt {
    background: var(--primary-subtle);
    border: 1px dashed var(--primary-color);
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-deep);
}

.review-login-prompt a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: underline;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.review-item-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.4rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
}

.review-item-card:hover {
    box-shadow: var(--shadow-md);
}

.review-author-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.review-author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.author-meta strong {
    display: block;
    font-size: 0.95rem;
    color: var(--primary-deep);
}

.verified-buyer-tag {
    font-size: 0.72rem;
    color: var(--success-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.review-item-comment {
    color: var(--text-secondary);
    font-size: 0.96rem;
    line-height: 1.6;
    margin-bottom: 0.6rem;
}

.review-item-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================
   "You Might Also Like" Related Products Section
   ========================================== */
.related-products-section {
    margin-top: 4rem;
    padding: 3rem 0 4rem;
    border-top: 1px solid var(--border-color);
}

.related-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2.25rem;
}

.related-title-wrap h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--primary-deep);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.35rem;
}

.related-title-wrap h2 i {
    color: var(--primary-color);
}

.related-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.btn-explore-shop {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-pill);
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    color: var(--primary-deep);
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.btn-explore-shop:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Related Product Cards Grid */
.related-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1100px) {
    .related-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .related-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .related-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* Modern Related Product Card */
.related-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 250px;
    max-width: 250px;
    min-width: 250px;
    margin: 0 auto;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 16px rgba(0, 20, 0, 0.03);
    position: relative;
}

.related-card:hover {
    box-shadow: 0 16px 36px rgba(0, 30, 0, 0.09);
    border-color: var(--border-hover);
}

.related-card-img-wrap {
    position: relative;
    width: 100%;
    height: 312px;
    aspect-ratio: 4 / 5;
    background: linear-gradient(135deg, #f7faf7 0%, #ebf5eb 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.related-card:hover .related-card-img-wrap img {
    transform: scale(1.08);
}

.related-card-emoji {
    font-size: 4.5rem;
    transition: transform 0.3s ease;
}

.related-card:hover .related-card-emoji {
    transform: scale(1.15) rotate(5deg);
}

.related-card-badges {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    z-index: 2;
}

.related-wishlist-btn {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: none;
    color: var(--accent-color);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    z-index: 3;
}

.related-wishlist-btn:hover {
    transform: scale(1.15);
    background: #ffffff;
}

.related-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.related-card-rating {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: #ffb400;
    margin-bottom: 0.4rem;
}

.related-card-rating span {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.78rem;
    margin-left: 0.2rem;
}

.related-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-deep);
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.related-card-title a {
    color: inherit;
    transition: color 0.2s ease;
}

.related-card-title a:hover {
    color: var(--primary-color);
}

.related-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border-color);
}

.related-card-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
}

.btn-related-buy {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    background: var(--primary-subtle);
    color: var(--primary-color);
    font-size: 0.76rem;
    font-weight: 700;
    border: 1px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-related-buy:hover {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(240, 33, 33, 0.25);
}

.btn-related-buy.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background: #f5f5f5;
    color: #888;
    border-color: #ddd;
}

/* ==========================================
   Product Image Gallery & Lightbox Styles
   ========================================== */

/* Fullscreen Zoom Floating FAB */
.product-zoom-fab {
    position: absolute;
    top: 1.25rem;
    right: 4.6rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: var(--primary-color);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 5;
}

.product-zoom-fab:hover {
    transform: scale(1.12);
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(240, 33, 33, 0.3);
}

/* Interactive Thumbnail Gallery Strip */
.product-thumbnails-wrapper {
    margin-top: 0.25rem;
    width: 100%;
}

.product-thumbnails-grid {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.25rem 0.25rem 0.6rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f0f0f0;
}

.product-thumbnails-grid::-webkit-scrollbar {
    height: 6px;
}

.product-thumbnails-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.product-thumb-item {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-thumb-item:hover {
    border-color: var(--primary-light);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.product-thumb-item:hover img {
    transform: scale(1.08);
}

.product-thumb-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(240, 33, 33, 0.25), 0 6px 16px rgba(0, 0, 0, 0.12);
    transform: scale(1.03);
}

.thumb-active-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.product-thumb-item.active .thumb-active-indicator {
    opacity: 1;
}

/* Lightbox Fullscreen Modal */
.product-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 20, 12, 0.88);
    backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    padding: 1.5rem;
}

.product-lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    color: #ffffff;
    font-size: 2.8rem;
    font-weight: 300;
    cursor: pointer;
    z-index: 100001;
    line-height: 1;
    transition: transform 0.2s ease, color 0.2s ease;
}

.lightbox-close-btn:hover {
    color: var(--accent-color);
    transform: scale(1.15) rotate(90deg);
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100001;
    transition: all 0.25s ease;
}

.lightbox-nav-btn.prev-btn {
    left: 2rem;
}

.lightbox-nav-btn.next-btn {
    right: 2rem;
}

.lightbox-nav-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.lightbox-content-box {
    max-width: 85vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.lightbox-content-box img {
    max-width: 85vw;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: opacity 0.2s ease, transform 0.3s ease;
}

.lightbox-caption {
    margin-top: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-pill);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.9rem;
}

#lightboxCounter {
    font-weight: 800;
    color: #a8e6cf;
}

.lightbox-title {
    font-weight: 500;
}

@media (max-width: 768px) {
    .lightbox-nav-btn.prev-btn {
        left: 0.5rem;
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
    .lightbox-nav-btn.next-btn {
        right: 0.5rem;
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
    .lightbox-close-btn {
        top: 1rem;
        right: 1.2rem;
        font-size: 2.2rem;
    }
    .product-zoom-fab {
        right: 4.2rem;
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }
}
