/* ============================================================
   FLORIAN BD — PREMIUM PRODUCT DETAILS v2.0
   A super-professional, ultra-modern immersive design
   ============================================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brand: #00A651;
    --brand-dark: #006b33;
    /* Darker green for white text contrast (5.2:1) */
    --brand-glow: rgba(0, 107, 51, 0.35);
    --accent: #00d46a;
    --danger: #d90429;
    /* Darker red for contrast (5.5:1) */
    --danger-glow: rgba(217, 4, 41, 0.3);
    --gold: #f59e0b;
    --surface: #f4f6f8;
    --surface-elevated: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #5e6d82;
    /* Improved for 4.5:1 contrast on light backgrounds */
    --border: #e2e8f0;
    --border-focus: var(--brand);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.09);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.14);
    --shadow-xl: 0 24px 72px rgba(0, 0, 0, 0.18);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --spring: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Body --- */
body {
    background: var(--surface) !important;
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* --- Top Nav (inherits from style.css) --- */
.top-nav {
    background: var(--brand-dark) !important;
    box-shadow: 0 4px 20px var(--brand-glow) !important;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55), background 0.5s ease, border-radius 0.5s ease;
    will-change: transform;
    border-radius: 0 0 15px 15px;
    /* So it looks smooth when hidden */
}

.top-nav.minimized {
    transform: translateY(calc(-100% + 5px)) !important;
    box-shadow: none !important;
}

.nav-toggle-tab {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 22px;
    background: var(--brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 20px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
}

.nav-toggle-tab i {
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.top-nav.minimized .nav-toggle-tab {
    background: var(--brand);
    color: white;
    box-shadow: 0 8px 25px var(--brand-glow), inset 0 2px 4px rgba(255, 255, 255, 0.2);
    bottom: -26px;
    height: 26px;
}

.top-nav.minimized .nav-toggle-tab i {
    transform: rotate(180deg) translateY(-2px);
}

.nav-toggle-tab:hover {
    color: #fff;
    background: var(--brand);
    width: 70px;
}

.scroll-progress-container {
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    will-change: transform;
}

.scroll-progress-container.minimized {
    transform: translateY(calc(0px - var(--app-nav-height))) !important;
}

.nav-left .back-icon {
    width: 24px;
    height: 24px;
    cursor: pointer !important;
    transition: var(--transition);
    filter: brightness(0) invert(1);
    pointer-events: auto;
    /* Ensure proper sizing */
    object-fit: contain;
}

.nav-left .back-icon:hover {
    transform: scale(1.12) translateX(-2px);
}

.nav-center .nav-title,
.nav-center h1 {
    color: white;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.2px;
    white-space: nowrap;
    text-align: center;
    width: 100%;
}

/* Marquee Support for Nav Title */
.nav-center {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    margin: 0 15px;
    /* Elegant fade mask for scrolling text */
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.nav-title.marquee {
    display: flex;
    width: max-content;
    animation: navTitleMarquee 15s linear infinite;
    will-change: transform;
    padding-left: 0;
    justify-content: flex-start;
}

@keyframes navTitleMarquee {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.marquee-gap {
    padding: 0 15px;
    display: inline-block;
}

.nav-right .cart-icon {
    position: relative;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.nav-right .cart-icon:hover {
    background: rgba(255, 255, 255, 0.28);
}

.nav-right .cart-icon-img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    /* Ensure proper sizing */
    object-fit: contain;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
}

/* ============================================================
   MAIN CONTENT SCROLL WRAPPER
   ============================================================ */
.main-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-top: var(--app-nav-height, 65px);
    padding-bottom: calc(var(--safe-bottom, env(safe-area-inset-bottom, 0px)) + 40px);
    background: var(--surface);
}

/* ============================================================
   PRODUCT DETAILS SECTION — HERO LAYOUT
   ============================================================ */
.product-details-section {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
}

/* ============================================================
   GALLERY — CLEAN BOTANICAL PREMIUM
   ============================================================ */
/* ============================================================
   PREMIUM GALLERY — IMMERSIVE GLASS CANVAS
   ============================================================ */
/* ============================================================
   PREMIUM GALLERY — THE BOTANICAL PORTAL (Redesigned)
   ============================================================ */
.image-gallery {
    position: relative;
    background: #ffffff;
    padding: 0;
    overflow: hidden;
    z-index: 10;
    transition: var(--transition);
    min-height: 600px;
    border-radius: 0 0 45px 45px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 20px;
}

.modern-thumbnails {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 10px 0;
    background: transparent;
    margin-top: auto;
    padding-bottom: 15px;
}

@media (max-width: 768px) {
    .image-gallery {
        min-height: 650px;
        border-radius: 0 0 50px 50px;
        width: 100%;
    }
}

/* Dynamic Ambient Glow behind the plant */
.image-gallery::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(0, 166, 81, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    filter: blur(40px);
}

/* ============================================================
   GALLERY SLIDER — BULLETPROOF CENTERING SYSTEM
   ============================================================ */

.gallery-slider-wrapper {
    position: relative;
    width: 100%;
    height: 440px;
    overflow: hidden;
    border-radius: 24px;
}

.gallery-slider-track {
    display: flex;
    flex-wrap: nowrap;
    height: 100%;
    transform: translate3d(var(--gallery-tx, 0), 0, 0) rotateX(var(--gallery-rx, 0deg)) rotateY(var(--gallery-ry, 0deg));
    transition: transform 0.65s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
    transform-style: preserve-3d;
}

.gallery-slide {
    flex: 0 0 100%;
    min-width: 0;
    max-width: 100%;
    height: 100%;
    position: relative;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
    background: transparent;
}

.gallery-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.gallery-slide img {
    position: absolute;
    inset: 0;
    margin: auto;
    max-width: calc(100% - 48px);
    max-height: calc(100% - 48px);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.08));
    transition: transform 0.4s ease;
}

@media (max-width: 768px) {
    .gallery-slider-wrapper {
        height: 320px;
        border-radius: 16px;
    }

    .gallery-slide img {
        max-width: calc(100% - 20px);
        max-height: calc(110% - 0px);
    }
}


.gallery-slide.active img {
    transform: scale(1.05);
}

/* Floating Action Hub - Refined Petal style */
.gallery-actions-hub {
    position: absolute;
    top: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 25;
}

.action-pill-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--spring);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.action-pill-btn:hover {
    transform: scale(1.1) rotate(5deg);
    background: #fff;
    color: var(--brand);
    box-shadow: 0 15px 35px var(--brand-glow);
}

/* Navigation Arrows - Minimalist Petals */
.premium-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--on-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-sm);
}

.premium-gallery-nav:hover {
    background: var(--brand);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.premium-gallery-nav.left {
    left: 24px;
}

.premium-gallery-nav.right {
    right: 24px;
}

/* Counter & Interaction */
.premium-counter {
    background: rgba(0, 0, 0, 0.05);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    margin-top: 2px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 768px) {
    .image-gallery {
        min-height: 495px;
        border-radius: 0 0 50px 50px;
        width: 100%;
    }
}

.modern-thumbnails {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 25px 20px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modern-thumbnails::-webkit-scrollbar {
    display: none;
}


.modern-thumbnails::-webkit-scrollbar {
    display: none;
}


.thumb-item {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    object-fit: cover;
    background: #fff;
    border: 2px solid transparent;
    transition: var(--spring);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
    cursor: pointer;
}

.thumb-item.active {
    border-color: none;
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 15px 30px var(--brand-glow);
}


/* ============================================================
   PRODUCT INFO CARD — MODERN CARD STACK
   ============================================================ */
.product-info {
    background: var(--surface-elevated);
    border-radius: 32px 32px 0 0;
    margin-top: -32px;
    padding: 32px 24px;
    position: relative;
    z-index: 20;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.05);
}

/* Pill handle indicator */
.product-info::before {
    content: '';
    display: block;
    width: 44px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 4px;
    margin: -10px auto 22px;
}

.product-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    min-height: 32px;
    /* Reserves space for badge row */
}

/* Category badge */
.category-badge {
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    color: white;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 3px 12px var(--brand-glow);
    overflow: hidden;
}

.category-badge.marquee {
    width: 110px;
    white-space: nowrap;
    display: flex;
}

.category-badge.marquee span {
    display: inline-block;
    animation: navTitleMarquee 5s linear infinite;
}

/* Availability badge */
.availability-badge {
    padding: 5px 13px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    position: relative;
    top: unset;
    right: unset;
}

.availability-badge.huge-stock,
.availability-badge.in-stock {
    background: linear-gradient(135deg, #047857, #065f46);
    /* Darker green for white text contrast */
    color: white;
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.35);
}

.availability-badge.medium-stock {
    background: linear-gradient(135deg, #0369a1, #075985);
    /* Darker blue */
    color: white;
    box-shadow: 0 3px 12px rgba(3, 105, 161, 0.35);
}

.availability-badge.low-stock {
    background: linear-gradient(135deg, #b45309, #92400e);
    /* Darker amber */
    color: white;
    box-shadow: 0 3px 12px rgba(180, 83, 9, 0.35);
}

.availability-badge.out-of-stock {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    /* Darker red for contrast */
    color: white;
    box-shadow: 0 3px 12px rgba(239, 68, 68, 0.35);
}

/* text variants */
.huge-stock-text {
    color: #059669;
    font-weight: 700;
}

.medium-stock-text {
    color: #0284c7;
    font-weight: 700;
}

.low-stock-text {
    color: #d97706;
    font-weight: 700;
}

.out-of-stock-text {
    color: #dc2626;
    font-weight: 700;
}

/* Product Title */
.product-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.3;
    letter-spacing: -0.4px;
    min-height: 28px;
}

/* ============================================================
   LIVE SOCIAL PROOF — URGENCY & TRUST
   ============================================================ */
.live-viewer-badge {
    display: none;
    /* Managed by JS */
    align-items: center;
    gap: 8px;
    background: rgba(0, 166, 81, 0.06);
    border: 1px solid rgba(0, 166, 81, 0.15);
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 15px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-dark);
    animation: badgeFloat 3s ease-in-out infinite;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 10px #10b981;
}

.live-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #10b981;
    animation: dotPulse 2s ease-out infinite;
}

@keyframes dotPulse {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

@keyframes badgeFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

/* ============================================================
   PRICE SECTION — BOLD & PUNCHY
   ============================================================ */
.price-section {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 20px;
    margin-bottom: 22px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-radius: var(--radius-lg);
    border: 1.5px solid rgba(0, 166, 81, 0.15);
    box-shadow: 0 4px 16px rgba(0, 166, 81, 0.07);
}

.current-price {
    font-size: 34px;
    font-weight: 900;
    color: var(--brand);
    letter-spacing: -1px;
    line-height: 1;
}

.old-price {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.discount-badge-details {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #ff3366, #ff6b9d);
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(255, 51, 102, 0.35);
    animation: pricePulse 2s ease-in-out infinite;
}

@keyframes pricePulse {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(255, 51, 102, 0.35);
    }

    50% {
        box-shadow: 0 6px 20px rgba(255, 51, 102, 0.55);
    }
}

/* ============================================================
   DESCRIPTION SECTION
   ============================================================ */
.description-section {
    margin-bottom: 24px;
    padding: 18px;
    background: #f8fafc;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--brand);
}

.description-section h2 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.description-section p,
#productDescription {
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 14px;
}

/* ============================================================
   DETAILS GRID — COMPACT INFO TILES
   ============================================================ */
.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.detail-item {
    background: var(--surface-elevated);
    padding: 14px 12px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1.5px solid var(--border);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.detail-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(0, 166, 81, 0.03));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.detail-item:hover {
    border-color: var(--brand);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--brand-glow);
}

.detail-item:hover::before {
    opacity: 1;
}

.detail-item>i {
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    color: white;
    font-size: 14px;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px var(--brand-glow);
}

.detail-item i.fa-ruler-vertical {
    background: linear-gradient(135deg, #4f46e5, #818cf8);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.detail-item i.fa-box {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.detail-item i.fa-shopping-bag {
    background: linear-gradient(135deg, #0369a1, #38bdf8);
    box-shadow: 0 44px 12px rgba(3, 105, 161, 0.3);
}

.detail-item i.fa-check-circle {
    background: linear-gradient(135deg, #059669, #10b981);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.detail-item div {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.detail-label {
    font-size: 9px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.detail-value {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Nursery tile special treatment */
.nursery-detail {
    background: linear-gradient(135deg, rgba(0, 166, 81, 0.08), rgba(0, 212, 106, 0.08));
    border-color: rgba(0, 166, 81, 0.15);
    cursor: pointer;
}

.nursery-detail .detail-value {
    color: var(--brand-dark);
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.3px;
}

.detail-value.marquee {
    display: flex;
    width: max-content;
    animation: nurseryMarquee 2s linear infinite;
    will-change: transform;
    backface-visibility: hidden;
    text-overflow: clip;
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.3px;
}

.detail-value.marquee:hover {
    animation-play-state: paused;
}

.marquee-gap {
    display: inline-block;
    width: 20px;
}

@keyframes nurseryMarquee {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.verified-logo-container {
    position: relative;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

.detail-nursery-logo {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brand);
    background: white;
    /* Prevent layout shift */
    aspect-ratio: 1 / 1;
}

.verified-badge-pill {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 15px;
    height: 15px;
    background: var(--brand);
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
    color: white;
    z-index: 5;
    box-shadow: 0 2px 6px var(--brand-glow);
}

/* ============================================================
   KEY FEATURES — PREMIUM PILL LIST
   ============================================================ */
.features-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    border: 1.5px solid rgba(0, 166, 81, 0.15);
    box-shadow: 0 4px 20px rgba(0, 166, 81, 0.06);
}

.features-section h2 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.features-section h2::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 3px;
    background: var(--brand);
    border-radius: 2px;
}

.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
}

.features-list li:hover {
    background: white;
    border-color: var(--brand);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--brand-glow);
}

.features-list li i {
    width: 20px;
    height: 20px;
    min-width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand);
    color: white;
    font-size: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Override global i.fas.fa-check rule */
i.fas.fa-check {
    width: auto;
    height: auto;
    font-size: inherit;
}

.features-list li i.fas.fa-check {
    width: 20px;
    height: 20px;
    font-size: 9px;
}

/* ============================================================
   CARE GUIDE - BOTANIST PANEL
   ============================================================ */
.care-guide-section.glass-panel-light {
    position: relative;
    margin-top: 2rem;
    padding: 24px !important;
    border-radius: 22px !important;
    border: 1px solid rgba(0, 166, 81, 0.14);
    border-left: 0 !important;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(239, 252, 244, 0.98) 52%, rgba(232, 246, 255, 0.92) 100%) !important;
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.06),
        0 8px 18px rgba(0, 166, 81, 0.08);
    overflow: hidden;
}

.care-guide-section.glass-panel-light::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, #00a651 0%, #18b7a4 52%, #2f80ed 100%);
}

.care-guide-section.glass-panel-light>div:first-child {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between;
    gap: 16px !important;
    margin-bottom: 18px !important;
}

.care-guide-section.glass-panel-light>div:first-child i.fa-microscope {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 1.2rem !important;
    background: linear-gradient(135deg, #00a651 0%, #007f5f 100%);
    box-shadow: 0 12px 24px rgba(0, 166, 81, 0.22);
    flex-shrink: 0;
}

.care-guide-section.glass-panel-light h2 {
    margin: 0 !important;
    font-size: 1.15rem !important;
    line-height: 1.2;
    color: var(--text-primary);
    font-weight: 800;
}

.care-guide-section.glass-panel-light h2::before {
    content: 'Care Guide';
    display: block;
    margin-bottom: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0f7a4d;
}

.care-guide-section .care-grid {
    display: grid !important;
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    gap: 14px !important;
    font-size: 0.92rem !important;
}

.care-guide-section .care-step {
    position: relative;
    min-height: 132px;
    padding: 16px 16px 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.care-guide-section .care-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.09);
    border-color: rgba(0, 166, 81, 0.22);
}

.care-guide-section .care-step::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    bottom: 16px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #00a651 0%, #18b7a4 100%);
}

.care-guide-section .care-step strong {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-primary) !important;
    font-size: 0.92rem;
    font-weight: 800;
}

.care-guide-section .care-step strong i {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #00a651 0%, #0c8f62 100%);
    box-shadow: 0 8px 18px rgba(0, 166, 81, 0.18);
    flex-shrink: 0;
}

.care-guide-section .care-step:nth-child(2) strong i {
    background: linear-gradient(135deg, #1d9bf0 0%, #0f6ab8 100%);
    box-shadow: 0 8px 18px rgba(29, 155, 240, 0.18);
}

.care-guide-section .care-step:nth-child(3) strong i {
    background: linear-gradient(135deg, #0ea5a4 0%, #0f766e 100%);
    box-shadow: 0 8px 18px rgba(14, 165, 164, 0.18);
}

.care-guide-section .care-step:nth-child(4) strong i {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 8px 18px rgba(245, 158, 11, 0.18);
}

.care-guide-section .care-step p {
    margin: 0 !important;
    color: var(--text-secondary);
    line-height: 1.65;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .care-guide-section.glass-panel-light {
        padding: 15px !important;
        border-radius: 20px !important;
    }

    .care-guide-section.glass-panel-light>div:first-child {
        align-items: center !important;
    }

    .care-guide-section.glass-panel-light>div:first-child i.fa-microscope {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .care-guide-section .care-grid {
        grid-template-columns: 1fr !important;
    }

    .care-guide-section .care-step {
        min-height: auto;
    }
}

/* ============================================================
   QUANTITY SELECTOR
   ============================================================ */
.quantity-section {
    margin-bottom: 22px;
}

.quantity-section label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    width: fit-content;
    transition: border-color 0.2s ease;
}

.quantity-controls:focus-within {
    border-color: var(--brand);
}

.quantity-btn {
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.quantity-btn:hover {
    background: rgba(0, 166, 81, 0.08);
    color: var(--brand);
}

.quantity-btn:active {
    background: rgba(0, 166, 81, 0.15);
    transform: scale(0.92);
}

.quantity-input {
    width: 64px;
    height: 48px;
    border: none;
    border-left: 1.5px solid var(--border);
    border-right: 1.5px solid var(--border);
    text-align: center;
    font-size: 17px;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    background: white;
    outline: none;
}

/* ============================================================
   ACTION BUTTONS — CTA AREA
   ============================================================ */
.action-buttons {
    display: flex;
    gap: 10px;
    padding-top: 0;
    margin-bottom: 14px;
}

.add-to-cart-btn,
.buy-now-btn {
    flex: 1;
    padding: 15px 16px;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--spring);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.add-to-cart-btn::after,
.buy-now-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.add-to-cart-btn:hover::after,
.buy-now-btn:hover::after {
    opacity: 1;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
    color: white;
    box-shadow: 0 6px 20px var(--brand-glow);
}

.add-to-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px var(--brand-glow);
}

.add-to-cart-btn:active {
    transform: scale(0.97);
}

.buy-now-btn {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.35);
}

.buy-now-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(231, 76, 60, 0.5);
}

.buy-now-btn:active {
    transform: scale(0.97);
}

/* Secondary Compare Button */
.secondary-actions {
    margin-top: 0;
}

.compare-product-btn {
    width: 100%;
    padding: 13px 20px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(0, 34, 157, 0.85), rgba(0, 90, 220, 0.75));
    border: 1px solid rgba(100, 150, 255, 0.3);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--spring);
    box-shadow: 0 6px 20px rgba(0, 34, 157, 0.3);
    backdrop-filter: blur(8px);
}

.compare-product-btn i {
    color: var(--accent) !important;
    font-size: 16px !important;
}

.compare-product-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 34, 157, 0.45);
    background: linear-gradient(135deg, rgba(0, 34, 157, 0.95), rgba(0, 90, 220, 0.9));
}

.compare-product-btn:active {
    transform: scale(0.97);
}

/* Ratings & Reviews Refinement */
.ratings-reviews-section {
    background: #ffffff;
    margin: 0;
    padding: 40px 24px;
    border-top: 1px solid var(--border);
}

.ratings-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-primary) !important;
    letter-spacing: -0.3px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, rgba(0, 166, 81, 0.3), transparent);
    border-radius: 2px;
}

.overall-rating-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    margin-top: 10px;
}

.rating-number {
    font-size: 56px;
    font-weight: 800;
    color: var(--brand);
    line-height: 1;
    letter-spacing: -2px;
}

.rating-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stars-display {
    display: flex;
    gap: 3px;
}

.stars-display i {
    color: var(--gold);
    font-size: 17px;
}

.total-reviews-count {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.reviews-list-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.no-reviews-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.no-reviews-state i {
    font-size: 36px;
    opacity: 0.4;
}

.no-reviews-state p {
    font-size: 14px;
}

/* Review Card */
.review-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1.5px solid var(--border);
    transition: var(--transition);
}

.review-card:hover {
    border-color: rgba(0, 166, 81, 0.2);
    box-shadow: var(--shadow-sm);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.review-meta {
    flex: 1;
}

.review-author {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.review-date {
    font-size: 11px;
    color: var(--text-muted);
}

.review-stars {
    display: flex;
    gap: 2px;
}

.review-stars i {
    color: var(--gold);
    font-size: 13px;
}

.review-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* Related Products Refinement */
.related-products-section {
    padding: 40px 5px calc(140px + env(safe-area-inset-bottom, 0px));
    background: #f8fafc;
    border-top: 1px solid var(--border);
}

.related-products-section .section-title {
    margin-bottom: 16px;
}

.related-products-grid {
    display: block;
    column-count: 2;
    column-gap: 12px;
    margin-bottom: 10px;
}

/* Product Card (Related) */
.product-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 16px;
    text-align: center;
    transition: var(--spring);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
    margin-bottom: 16px;
    break-inside: avoid;
    vertical-align: top;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--brand);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 166, 81, 0.06), transparent);
    transition: left 0.5s ease;
}

.product-card:hover::before {
    left: 100%;
}

.product-image-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 12px;
}

.product-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--brand);
    box-shadow: 0 6px 20px var(--brand-glow);
    transition: transform 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    /* Prevent layout shift */
    aspect-ratio: 1 / 1;
}

.product-image-secondary {
    width: 70%;
    height: 70%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brand);
    position: absolute;
    top: 23%;
    left: -32%;
    rotate: -40deg;
    transform: scale(1);
    box-shadow: 0 3px 10px var(--brand-glow);
    /* Prevent layout shift */
    aspect-ratio: 1 / 1;
}

.product-card:hover .product-image {
    transform: scale(1.08) rotate(4deg);
}

.nursery-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 0;
    margin: 0 0 4px;
    background: rgba(0, 166, 81, 0.06);
    border-radius: 14px;
    border: 1px solid rgba(0, 166, 81, 0.12);
}

.nursery-logo-img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--brand);
    /* Prevent layout shift */
    aspect-ratio: 1 / 1;
}

.nursery-name {
    font-size: 9px;
    font-weight: 700;
    color: var(--brand-dark);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.nursery-business-type {
    display: none;
    /* dont show it */
    font-size: 7px;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(139, 69, 19, 0.15);
    padding: 2px 5px;
    border-radius: 8px;
}

@media (max-width: 480px) {
    .product-name {
        font-size: 15px;
        min-height: 36px;
    }

    .product-price {
        font-size: 18px !important;
    }

}



/* Category badge on card */
.product-card>.category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #008f45, #00a651);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(0, 166, 81, 0.3);
}

.product-top-actions {
    position: absolute;
    top: 9px;
    right: 9px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 5;
}

.wishlist-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.wishlist-btn i {
    color: #94a3b8;
    font-size: 14px;
    transition: var(--transition);
}

.wishlist-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.wishlist-btn:hover i {
    color: var(--brand);
}

.wishlist-btn.active i {
    color: var(--danger);
    animation: heartPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.45);
    }

    100% {
        transform: scale(1);
    }
}

.compare-btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.compare-btn-icon i {
    color: var(--brand-dark);
    font-size: 12px;
}

.compare-btn-icon:hover {
    background: var(--danger);
    transform: scale(1.1);
}

.compare-btn-icon:hover i {
    color: white;
}

.product-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    line-height: 1.35;
}

.product-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    margin-top: auto;
}

.product-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--brand);
    letter-spacing: -0.5px;
}

.sold-badge {
    display: flex;
    align-items: center;
    gap: 3px;
    position: absolute;
    top: 105px;
    left: 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    padding: 2px 7px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.sold-badge i {
    font-size: 8px;
    color: #64748b;
}

.sold-badge span {
    font-size: 9px;
    color: #64748b;
    font-weight: 600;
}

.quick-add-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--brand);
    color: white;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--spring);
    box-shadow: 0 4px 12px var(--brand-glow);
}

.quick-add-btn:hover {
    transform: scale(1.15);
    background: var(--brand-dark);
}

.quick-add-btn.success {
    background: #10b981;
}

.availability-badge.in-stock {
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.4);
}

.availability-badge.low-stock {
    box-shadow: 0 0 15px rgba(253, 126, 20, 0.4);
}

/* Promo Badges on cards */
.product-badges-container {
    position: absolute;
    top: 180px;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    z-index: 6;
}

.promo-badge {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
    font-size: 6px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px 0 0 6px;
    text-transform: uppercase;
    box-shadow: -2px 2px 6px rgba(0, 0, 0, 0.12);
}

.badge-bestseller {
    background: linear-gradient(135deg, #FFD700, #FFA000);
    color: #000;
}

.badge-trending {
    background: linear-gradient(135deg, #FF5252, #D32F2F);
}


/* ============================================================
   DARK MODE COMPATIBILITY
   ============================================================ */
body.dark-mode {
    --surface: #0d1117;
    --surface-elevated: #161b22;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --border: #30363d;
}

body.dark-mode .main-content {
    background: var(--surface);
}

body.dark-mode .product-info {
    background: var(--surface-elevated);
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.5);
}

body.dark-mode .product-info::before {
    background: #30363d;
}

body.dark-mode .detail-item {
    background: #1c2128;
    border-color: #30363d;
}

body.dark-mode .detail-item:hover {
    background: #21262d;
}

body.dark-mode .description-section {
    background: #1c2128;
    border-left-color: var(--brand);
}

body.dark-mode .features-section {
    background: rgba(0, 166, 81, 0.06);
    border-color: rgba(0, 166, 81, 0.15);
}

body.dark-mode .features-list li {
    background: rgba(255, 255, 255, 0.04);
    color: #adbac7;
    border-color: rgba(0, 166, 81, 0.1);
}

body.dark-mode .features-list li:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #f0f6fc;
}

body.dark-mode .price-section {
    background: rgba(0, 166, 81, 0.08);
    border-color: rgba(0, 166, 81, 0.2);
}

body.dark-mode .quantity-controls {
    background: #1c2128;
    border-color: #30363d;
}

body.dark-mode .quantity-input {
    background: #1c2128;
    color: #f0f6fc;
    border-color: #30363d;
}

body.dark-mode .ratings-reviews-section {
    background: var(--surface-elevated);
}

body.dark-mode .overall-rating-card {
    background: rgba(0, 166, 81, 0.06);
    border-color: rgba(0, 166, 81, 0.2);
}

body.dark-mode .related-products-section {
    background: var(--surface);
}

body.dark-mode .product-card {
    background: var(--surface-elevated);
    border-color: #30363d;
}

body.dark-mode .review-card {
    background: #1c2128;
    border-color: #30363d;
}

/* ============================================================
   MICRO-ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.93);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.product-info {
    animation: fadeInUp 0.5s ease both 0.1s;
}

.features-section {
    animation: fadeInUp 0.5s ease both 0.2s;
}

.price-section {
    animation: fadeInScale 0.45s ease both 0.1s;
}

/* Scroll Reveal (from ui-effects.js) */
body .scroll-reveal {
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity, transform;
}

body .scroll-reveal.active {
    opacity: 1;
    transform: scale(1);
}

body .scroll-reveal.active:hover {
    transition: all 0.3s ease !important;
}

/* ============================================================
   RESPONSIVE — TABLET & DESKTOP
   ============================================================ */
@media (min-width: 600px) {
    .modern-thumbnails {
        display: flex;
        gap: 12px;
        margin-bottom: 30px;
        padding: 16px 20px;
        background: #ffffff;
        overflow-x: auto;
        scroll-behavior: smooth;
        scrollbar-width: none;
        z-index: 5;
        position: relative;
        justify-content: center;
    }

    .main-image-container {
        height: 460px;
    }

    .details-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .related-products-grid {
        column-count: 3;
    }
}

@media (min-width: 1024px) {
    .product-details-section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        align-items: start;
        background: white;
    }

    .image-gallery {
        position: sticky;
        top: var(--app-nav-height, 65px);
        height: calc(100vh - var(--app-nav-height, 65px));
        display: flex;
        flex-direction: column;
        justify-content: center;
        background: radial-gradient(circle at center, #ffffff 0%, #f8fafc 100%);
        border-right: 1px solid var(--border);
        transition: background 0.8s ease;
        padding: 0;
        z-index: 100;
        overflow: hidden;
    }

    .image-gallery.is-sticky {
        background: #ffffff;
        box-shadow: 20px 0 60px rgba(0, 0, 0, 0.02);
    }

    .gallery-slider-wrapper {
        padding: 0px 0px;
        margin-top: -110px;
        perspective: 3000px;
    }

    .gallery-slide {
        flex: 0 0 70%;
        /* More focused width for PC */
        height: 530px;
        transform: perspective(3000px);
        transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
            opacity 0.8s ease,
            filter 0.8s ease;
    }

    .gallery-slide img {
        padding: 20px;
        filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.05));
    }

    .product-info {
        border-radius: 0;
        margin-top: 0;
        padding: 60px 48px;
        box-shadow: none;
        background: white;
    }

    .product-info::before {
        display: none;
    }

    .related-products-grid {
        column-count: 4;
    }

    .features-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   RESPONSIVE & DESKTOP STICKY (PC OPTIMIZATION)
   ============================================================ */
@media (min-width: 992px) {
    .product-details-section {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 40px;
        align-items: start;
        padding: 40px;
        max-width: 1400px;
        /* Expand maximum width for desktop */
        margin: 0 auto;
    }

    .image-gallery {
        position: sticky;
        top: 40px;
        border-radius: 35px;
        border-color: transparent;
        padding: 40px 0;
        /* Balanced padding for perfect vertical centering */
        z-index: 50;
        min-height: auto;
        height: max-content;
    }

    .gallery-slider-wrapper {
        height: 540px;
        border-radius: 28px;
    }

    /* No img override needed — base rule handles centering perfectly */

    .product-info {
        margin-top: 0;
        border-radius: 35px;
        background: var(--surface-elevated);
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.04);
        padding: 40px !important;
    }

    /* Force the main container to scroll naturally to allow sticky positioning */
    body {
        overflow-y: visible;
        height: auto;
    }

    .main-content {
        overflow-y: visible;
        overflow-x: hidden;
    }
}

.footer-links a {
    font-size: 0.875rem;
    color: rgba(61, 74, 62, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--on-surface);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   RELATED PRODUCTS SYSTEM — EXACT PRODUCTS.HTML SYSTEM
   ============================================================ */
.related-products-section {
    padding: 20px 5px;
    background: transparent;
}

.related-products-grid {
    column-count: 2;
    column-gap: 15px;
    margin-top: 20px;
    width: 100%;
}

@media (min-width: 768px) {
    .related-products-grid {
        column-count: 3;
    }
}

@media (min-width: 1024px) {
    .related-products-grid {
        column-count: 4;
    }
}

/* Product Card - Exact System */
.product-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 15px;
    text-align: left;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    break-inside: avoid;
    margin-bottom: 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 166, 81, 0.1), transparent);
    transition: left 0.5s ease;
}

.product-card:hover::before {
    left: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 166, 81, 0.3);
}

.product-image-wrapper {
    position: relative;
    margin-top: 9px;
    width: 90px;
    height: 90px;
}

.product-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #00a651;
    box-shadow: 0 6px 20px rgba(0, 166, 81, 0.2);
    transition: transform 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.product-image-secondary {
    width: 75%;
    height: 75%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #00a651;
    box-shadow: 0 3px 10px rgba(0, 166, 81, 0.3);
    transition: transform 0.3s ease;
    position: absolute;
    top: 23%;
    left: -37%;
    rotate: -40deg;
    transform: scale(1);
}

.product-card:hover .product-image {
    transform: scale(1.1) rotate(5deg);
}

.nursery-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
    margin: 0px 0 -2px 0;
    padding: 6px 0px;
    background: linear-gradient(135deg, rgba(0, 166, 81, 0.08), rgba(0, 212, 106, 0.08));
    border-radius: 20px;
    border: 1px solid rgba(0, 166, 81, 0.15);
}

.nursery-logo-wrapper {
    margin-left: 7px;
}

.nursery-logo-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(0, 166, 81, 0.3);
    background-color: #f0faf5;
    display: block;
    flex-shrink: 0;
}

.nursery-details {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.nursery-name-wrapper {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.nursery-name {
    display: flex;
    font-size: 9px;
    font-weight: 600;
    color: #007a3b;
    width: 90px !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    justify-content: center;
}

.nursery-name.marquee {
    display: flex;
    width: max-content;
    animation: nurseryMarquee 4s linear infinite;
    will-change: transform;
    gap: 5px;
}

@keyframes nurseryMarquee {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: left;
}

.product-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-top: auto;
}

.product-price {
    font-size: 18px;
    font-weight: 800;
    color: #007a3b;
    margin: 0;
}

@media (max-width: 480px) {
    .price-container {
        top: -5px;
        left: 0px;
        position: relative;
        display: flex;
        gap: 5px;
        flex-wrap: wrap;
        align-items: flex-end;
    }
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.8rem;
}

.discount-percentage-badge {
    background: linear-gradient(135deg, #ff3366, #ff6b9d);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
}

.availability-badge {
    position: absolute;
    top: 100px;
    right: 5px;
    padding: 5px 5px;
    border-radius: 50px;
    font-size: 7px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    z-index: 0;
}

.availability-badge.in-stock {
    background: #28a745;
    color: white;
}

.availability-badge.low-stock {
    background: #ffc107;
    color: #212529;
}

.availability-badge.out-of-stock {
    background: #dc3545;
    color: white;
}

.product-top-actions {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
    align-items: flex-end;
}

.compare-btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 15px rgba(0, 0, 0, 0.1);
}

.wishlist-btn {
    position: relative;
    top: 0;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 15px rgba(0, 0, 0, 0.1);
}

.wishlist-btn i,
.compare-btn-icon i {
    font-size: 14px;
    color: #666;
}

.wishlist-btn.active i {
    color: #ef4444;
}

.quick-add-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: var(--brand);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 10px var(--brand-glow);
}

.quick-add-btn.success {
    background: #28a745;
}

.sold-badge {
    font-size: 10px;
    color: #64748b;
    display: none;
    /* dont show it */
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.product-badges-container {
    position: absolute;
    top: 45px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 6;
}

.promo-badge {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
    font-size: 6px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-bestseller {
    background: linear-gradient(135deg, #FFD700, #FFA000);
    color: #000;
}

.badge-trending {
    background: linear-gradient(135deg, #FF5252, #D32F2F);
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Hard Removal of Bottom Navigation */
body.product-details-page .bottom-nav,
body.product-details-page #appFooter,
body.product-details-page #footerContainer,
body.product-details-page .guide-bottom-nav {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.product-details-page .main-content {
    padding-bottom: 40px !important;
}

/* ============================================================
   SUPER PREMIUM REVIEW SECTION
   ============================================================ */
.ratings-reviews-section {
    padding: 60px 24px;
    background: #ffffff;
    margin: 0 auto;
}

.premium-summary-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin: 40px 0;
    align-items: center;
}

.overall-rating-card.glass-panel-premium {
    background: linear-gradient(135deg, rgba(0, 166, 81, 0.05) 0%, rgba(0, 212, 106, 0.1) 100%);
    border: 1px solid rgba(0, 166, 81, 0.1);
    border-radius: 32px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 166, 81, 0.05);
}

.rating-score {
    margin-bottom: 20px;
}

.rating-number {
    font-size: 64px;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
    display: block;
    margin-bottom: 10px;
}

.rating-stars {
    font-size: 20px;
    color: #f59e0b;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.rating-stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.verified-badge-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    margin-top: 5px;
}

/* Rating Bars */
.rating-bars-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rating-bar-row {
    display: grid;
    grid-template-columns: 50px 1fr 40px;
    align-items: center;
    gap: 15px;
}

.star-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.star-label i {
    font-size: 10px;
    color: #cbd5e1;
}

.progress-bar-bg {
    height: 8px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 100%);
    border-radius: 10px;
    width: 0%;
    /* Animate via JS */
    transition: width 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.count-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

/* Filter Chips */
.review-filters-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    overflow-x: auto;
    padding-bottom: 15px;
    scrollbar-width: none;
}

.filter-chip {
    padding: 10px 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-chip:hover {
    border-color: var(--brand);
    background: #ffffff;
    color: var(--brand);
}

.filter-chip.active {
    background: var(--brand);
    color: white;
    border-color: var(--brand);
    box-shadow: 0 8px 16px var(--brand-glow);
}

/* Premium Review Card */
.review-item {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 20px;
    transition: var(--transition);
    animation: fadeInUp 0.6s ease both;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item:hover {
    border-color: var(--brand);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.review-user-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.user-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    box-shadow: 0 8px 16px var(--brand-glow);
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.review-date {
    font-size: 12px;
    color: var(--text-muted);
}

.review-stars {
    font-size: 14px;
    color: #f59e0b;
    margin-bottom: 12px;
}

.review-comment {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.review-images {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.review-img {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    cursor: zoom-in;
    transition: var(--transition);
}

.review-img:hover {
    transform: scale(1.05);
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.helpful-btn {
    background: transparent;
    border: 1px solid #e2e8f0;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.helpful-btn:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: rgba(0, 166, 81, 0.05);
}

.helpful-btn.active {
    background: var(--brand);
    color: white;
    border-color: var(--brand);
}

.write-review-prompt {
    text-align: center;
    margin-top: 60px;
    padding: 60px 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 32px;
    border: 1px solid #e2e8f0;
}

.write-review-prompt p {
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 25px;
}

.premium-btn.write-btn {
    background: var(--brand);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--spring);
    box-shadow: 0 10px 30px var(--brand-glow);
}

.premium-btn.write-btn:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px var(--brand-glow);
}

/* Skeleton Loading */
.loading-reviews {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skeleton-review {
    height: 200px;
    width: 100%;
    background: linear-gradient(90deg, #f1f5f9 0%, #f8fafc 50%, #f1f5f9 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite linear;
    border-radius: 24px;
}

@keyframes skeletonShimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@media (max-width: 768px) {
    .premium-summary-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ============================================================
   GROWTH SIMULATOR & SOCIAL PROOF — INTERACTIVE STICKINESS
   ============================================================ */
.live-viewer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-dark);
    margin-bottom: 15px;
    animation: fadeInUp 0.6s ease both;
}

.live-viewer-badge i {
    color: var(--brand);
    animation: pulseEye 2s infinite;
}

@keyframes pulseEye {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}