/**
 * NAFRA Overseas - 3D Grand Stage Spice Masterpiece
 * Recreating the grand interactive 3D showcase from demo/product.php in the Pure White Luxury Theme.
 * Fully synchronized with MySQL admin catalog for all 37+ commodities.
 */

/* ==========================================================================
   CATEGORY FILTER BAR (Positioned below Subpage Header Bar)
   ========================================================================== */
.stage-filter-bar-wrap {
    background: #FFFFFF;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    padding: 0.85rem 0;
    position: relative;
    z-index: 15;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.02);
}

.stage-filter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.stage-category-pills {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: nowrap;
    flex: 1 1 auto;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.stage-category-pills::-webkit-scrollbar {
    display: none;
}

/* Stage Filter Search Box */
.stage-filter-search-wrap {
    position: relative;
    min-width: 160px;
    max-width: 210px;
    flex: 0 1 200px;
    display: flex;
    justify-content: flex-end;
}

.stage-search-box {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.stage-search-icon {
    position: absolute;
    left: 0.75rem;
    color: #94A3B8;
    font-size: 0.76rem;
    pointer-events: none;
    transition: color 0.2s ease;
}

.stage-search-input {
    width: 100%;
    height: 34px;
    padding: 0 1.8rem 0 2rem;
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #0F172A;
    outline: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.stage-search-input:focus {
    background: #FFFFFF;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12), 0 4px 12px rgba(15, 23, 42, 0.04);
}

.stage-search-box:focus-within .stage-search-icon {
    color: #059669;
}

.stage-search-clear {
    position: absolute;
    right: 0.75rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #E2E8F0;
    border: none;
    color: #64748B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    cursor: url('../images/cursor/cursor-leaf-pointer.png') 2 2, pointer;
    transition: all 0.2s ease;
}

.stage-search-clear:hover {
    background: #CBD5E1;
    color: #0F172A;
}

/* Autocomplete Floating Panel */
.stage-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    max-height: 360px;
    overflow-y: auto;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 16px;
    box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.18), 0 4px 12px rgba(0, 0, 0, 0.04);
    z-index: 99999;
    padding: 0.45rem;
    box-sizing: border-box;
}

.stage-search-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    cursor: url('../images/cursor/cursor-leaf-pointer.png') 2 2, pointer;
    text-decoration: none;
    transition: background 0.15s ease;
}

.stage-search-item:hover {
    background: #F0FDF4;
}

.stage-search-item img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: contain;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    flex-shrink: 0;
}

.stage-search-item-info {
    flex: 1;
    min-width: 0;
}

.stage-search-item-name {
    font-size: 0.86rem;
    font-weight: 700;
    color: #0F172A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stage-search-item-cat {
    font-size: 0.72rem;
    color: #64748B;
}

.stage-search-no-results {
    padding: 1.2rem;
    text-align: center;
    font-size: 0.84rem;
    color: #94A3B8;
}

.stage-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.36rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #0F172A;
    background: #FFFFFF;
    border: 1.5px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    flex-shrink: 0;
}

.stage-back-btn i {
    color: #059669;
    font-size: 0.8rem;
    transition: transform 0.25s ease;
}

.stage-back-btn:hover {
    background: #059669;
    color: #FFFFFF;
    border-color: #059669;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
    transform: translateY(-1px);
}

.stage-back-btn:hover i {
    color: #FFFFFF;
    transform: translateX(-3px);
}

.stage-category-pills {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: nowrap;
}

.stage-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.36rem 0.72rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #475569;
    background: #F1F5F9;
    border: 1px solid rgba(226, 232, 240, 0.9);
    cursor: url('../images/cursor/cursor-leaf-pointer.png') 2 2, pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.stage-cat-btn i {
    font-size: 0.78rem;
    color: #94A3B8;
    transition: color 0.25s ease;
}

.stage-cat-count {
    font-size: 0.72rem;
    font-weight: 800;
    opacity: 0.75;
}

.stage-cat-btn:hover {
    background: #E2E8F0;
    color: #0F172A;
    transform: translateY(-1px);
}

.stage-cat-btn.is-active {
    background: #059669;
    color: #FFFFFF;
    border-color: #059669;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
}

.stage-cat-btn.is-active i {
    color: #A7F3D0;
}

.stage-filter-hint {
    font-size: 0.78rem;
    color: #64748B;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* ==========================================================================
   GRAND 3D PRODUCT STAGE VIEWPORT (PURE WHITE LUXURY THEME)
   ========================================================================== */
.product-stage-viewport {
    position: relative;
    width: 100%;
    min-height: 650px;
    overflow: hidden !important;
    max-width: 100vw !important;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: radial-gradient(circle at 50% 48%, #FFFFFF 0%, #FAFBFD 55%, #F1F5F9 100%);
    transition: background 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 1.8rem 0 5.5rem;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

/* Commodity Ambient Glow Variants (Soft Luxury Tint) */
.product-stage-viewport[data-variant="seeds"],
.product-stage-viewport[data-variant="cumin"],
.product-stage-viewport[data-variant="carom"],
.product-stage-viewport[data-variant="coriander"] {
    background: radial-gradient(circle at 50% 48%, #FFFDF8 0%, #FAF6EE 55%, #F1EADC 100%);
}

.product-stage-viewport[data-variant="green"],
.product-stage-viewport[data-variant="cardamom"],
.product-stage-viewport[data-variant="fennel"],
.product-stage-viewport[data-variant="herbs"] {
    background: radial-gradient(circle at 50% 48%, #F8FDFB 0%, #EDF8F2 55%, #DFF0E5 100%);
}

.product-stage-viewport[data-variant="pepper"],
.product-stage-viewport[data-variant="nigella"],
.product-stage-viewport[data-variant="mustard"] {
    background: radial-gradient(circle at 50% 48%, #FAFAFC 0%, #F1F4F8 55%, #E2E7EE 100%);
}

.product-stage-viewport[data-variant="turmeric"],
.product-stage-viewport[data-variant="ginger"] {
    background: radial-gradient(circle at 50% 48%, #FFFCF4 0%, #FEF7E6 55%, #FAECC7 100%);
}

.product-stage-viewport[data-variant="chilli"],
.product-stage-viewport[data-variant="clove"],
.product-stage-viewport[data-variant="cinnamon"] {
    background: radial-gradient(circle at 50% 48%, #FFF9F9 0%, #FDF2F2 55%, #FCE2E2 100%);
}

.product-stage-viewport[data-variant="sesame"],
.product-stage-viewport[data-variant="psyllium"],
.product-stage-viewport[data-variant="makhana"] {
    background: radial-gradient(circle at 50% 48%, #FFFFFF 0%, #FAFBFD 55%, #ECEFF4 100%);
}

/* Background Typographic Watermark */
.stage-watermark-text {
    position: absolute;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Outfit', 'Playfair Display', sans-serif;
    font-size: clamp(5.5rem, 14vw, 13rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(15, 23, 42, 0.038);
    pointer-events: none;
    z-index: 1;
    white-space: nowrap;
    user-select: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* ==========================================================================
   FLOATING BACKGROUND BOWLS (Permanently Removed)
   ========================================================================== */
.floating-botanicals-field,
.floating-bg-bowl {
    display: none !important;
}

/* ==========================================================================
   MINIMAL CIRCULAR ARROW NAVIGATION CONTROLS (FLANKING THE CENTER BOWL)
   ========================================================================== */
.spin-arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(226, 232, 240, 0.95);
    color: #0F172A;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    cursor: url('../images/cursor/cursor-leaf-pointer.png') 2 2, pointer;
    z-index: 25;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.spin-arrow-btn:hover {
    background: #FFFFFF;
    color: #059669;
    border-color: #059669;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 26px rgba(5, 150, 105, 0.2);
}

.spin-arrow-btn:active {
    transform: translateY(-50%) scale(0.96);
}

.spin-arrow-prev {
    left: -58px;
    right: auto;
}

.spin-arrow-next {
    right: -58px;
    left: auto;
}

/* ==========================================================================
   CENTRAL COMPOSITION STAGE CONTAINER
   ========================================================================== */
.spin-hero-stage {
    position: relative;
    width: 100%;
    max-width: 1360px;
    min-height: 440px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0 2.5rem;
    box-sizing: border-box;
    z-index: 10;
    margin: 0 auto;
    pointer-events: none;
}

.spin-hero-stage > * {
    pointer-events: auto;
}

/* ==========================================================================
   CENTRAL 3D FLOATING & SPINNING HERO SPICE
   ========================================================================== */
.center-spin-anchor {
    position: absolute;
    top: 44%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 380px;
    height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    perspective: 1200px;
    cursor: default;
}

.center-spin-disc {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 1.1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.center-spice-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 22px 38px rgba(15, 23, 42, 0.18));
    user-select: none;
    pointer-events: none;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.center-spin-anchor:hover .center-spice-img {
    transform: scale(1.05);
    filter: drop-shadow(0 28px 46px rgba(15, 23, 42, 0.24));
}

/* Luxury Spice Medallion Fallback (Shows when photograph is missing or fails) */
.spice-luxury-badge {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #FFFFFF 0%, #F8FAFC 55%, #E2E8F0 100%);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12), inset 0 2px 6px rgba(255, 255, 255, 0.95), 0 0 0 8px rgba(5, 150, 105, 0.08);
    border: 3px solid #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    position: relative;
    z-index: 5;
    user-select: none;
    transition: transform 0.4s ease;
}
.center-spin-anchor:hover .spice-luxury-badge {
    transform: scale(1.04);
}
[data-theme="dark"] .spice-luxury-badge {
    background: radial-gradient(circle at 35% 35%, #182C23 0%, #0F1F17 65%, #08120E 100%);
    border-color: #10B981;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35), inset 0 2px 6px rgba(255, 255, 255, 0.05), 0 0 0 8px rgba(16, 185, 129, 0.12);
}
.spice-badge-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    max-width: 220px;
}
.spice-badge-icon-wrap {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.35);
}
.spice-badge-title {
    font-size: 1.02rem;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.25;
}
[data-theme="dark"] .spice-badge-title {
    color: #F8FAFC;
}
.spice-badge-seal {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #B45309;
    background: #FEF3C7;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid #FDE68A;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
[data-theme="dark"] .spice-badge-seal {
    background: rgba(245, 158, 11, 0.15);
    color: #FBBF24;
    border-color: rgba(245, 158, 11, 0.3);
}

/* Ambient Radial Disc behind Hero */
.center-spin-anchor::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(241, 245, 249, 0.5) 60%, transparent 80%);
    pointer-events: none;
    z-index: -1;
    filter: blur(14px);
    transition: background 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom Atmospheric Ambient Shadows & Glows According to Selected Bowl */
.product-stage-viewport[data-variant="turmeric"] .center-spice-img,
.product-stage-viewport[data-variant="ginger"] .center-spice-img {
    filter: drop-shadow(0 26px 48px rgba(217, 119, 6, 0.32));
}
.product-stage-viewport[data-variant="turmeric"] .center-spin-anchor::before,
.product-stage-viewport[data-variant="ginger"] .center-spin-anchor::before {
    background: radial-gradient(circle, rgba(251, 191, 36, 0.45) 0%, rgba(245, 158, 11, 0.20) 50%, transparent 78%);
}

.product-stage-viewport[data-variant="pepper"] .center-spice-img,
.product-stage-viewport[data-variant="nigella"] .center-spice-img,
.product-stage-viewport[data-variant="mustard"] .center-spice-img {
    filter: drop-shadow(0 26px 48px rgba(15, 23, 42, 0.36));
}
.product-stage-viewport[data-variant="pepper"] .center-spin-anchor::before,
.product-stage-viewport[data-variant="nigella"] .center-spin-anchor::before,
.product-stage-viewport[data-variant="mustard"] .center-spin-anchor::before {
    background: radial-gradient(circle, rgba(71, 85, 105, 0.32) 0%, rgba(30, 41, 59, 0.14) 50%, transparent 78%);
}

.product-stage-viewport[data-variant="chilli"] .center-spice-img,
.product-stage-viewport[data-variant="clove"] .center-spice-img,
.product-stage-viewport[data-variant="cinnamon"] .center-spice-img {
    filter: drop-shadow(0 26px 48px rgba(225, 29, 72, 0.30));
}
.product-stage-viewport[data-variant="chilli"] .center-spin-anchor::before,
.product-stage-viewport[data-variant="clove"] .center-spin-anchor::before,
.product-stage-viewport[data-variant="cinnamon"] .center-spin-anchor::before {
    background: radial-gradient(circle, rgba(244, 63, 94, 0.40) 0%, rgba(225, 29, 72, 0.18) 50%, transparent 78%);
}

.product-stage-viewport[data-variant="green"] .center-spice-img,
.product-stage-viewport[data-variant="cardamom"] .center-spice-img,
.product-stage-viewport[data-variant="fennel"] .center-spice-img,
.product-stage-viewport[data-variant="herbs"] .center-spice-img {
    filter: drop-shadow(0 26px 48px rgba(5, 150, 105, 0.32));
}
.product-stage-viewport[data-variant="green"] .center-spin-anchor::before,
.product-stage-viewport[data-variant="cardamom"] .center-spin-anchor::before,
.product-stage-viewport[data-variant="fennel"] .center-spin-anchor::before,
.product-stage-viewport[data-variant="herbs"] .center-spin-anchor::before {
    background: radial-gradient(circle, rgba(52, 211, 153, 0.42) 0%, rgba(16, 185, 129, 0.18) 50%, transparent 78%);
}

.product-stage-viewport[data-variant="cumin"] .center-spice-img,
.product-stage-viewport[data-variant="carom"] .center-spice-img,
.product-stage-viewport[data-variant="coriander"] .center-spice-img,
.product-stage-viewport[data-variant="seeds"] .center-spice-img {
    filter: drop-shadow(0 26px 48px rgba(180, 83, 9, 0.28));
}
.product-stage-viewport[data-variant="cumin"] .center-spin-anchor::before,
.product-stage-viewport[data-variant="carom"] .center-spin-anchor::before,
.product-stage-viewport[data-variant="coriander"] .center-spin-anchor::before,
.product-stage-viewport[data-variant="seeds"] .center-spin-anchor::before {
    background: radial-gradient(circle, rgba(217, 119, 6, 0.35) 0%, rgba(180, 83, 9, 0.14) 50%, transparent 78%);
}

.product-stage-viewport[data-variant="sesame"] .center-spice-img,
.product-stage-viewport[data-variant="psyllium"] .center-spice-img,
.product-stage-viewport[data-variant="makhana"] .center-spice-img {
    filter: drop-shadow(0 26px 48px rgba(100, 116, 139, 0.22));
}
.product-stage-viewport[data-variant="sesame"] .center-spin-anchor::before,
.product-stage-viewport[data-variant="psyllium"] .center-spin-anchor::before,
.product-stage-viewport[data-variant="makhana"] .center-spin-anchor::before {
    background: radial-gradient(circle, rgba(226, 232, 240, 0.70) 0%, rgba(203, 213, 225, 0.30) 50%, transparent 78%);
}

/* 360 Drag-to-spin Pill Hint (Hidden) */
.stage-spin-hint {
    display: none !important;
}

/* ==========================================================================
   LEFT HUD PANEL: TASTING PROFILE & EXPORT SPECIFICATIONS
   ========================================================================== */
.product-hud-left {
    width: 350px;
    max-width: 360px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-spec-glass-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1.5px solid rgba(226, 232, 240, 0.95);
    border-radius: 24px;
    padding: 1.6rem 1.5rem;
    height: 420px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.95);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-spec-glass-card:hover {
    border-color: rgba(5, 150, 105, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 20px 42px -6px rgba(15, 23, 42, 0.11), inset 0 1px 1px rgba(255, 255, 255, 0.95);
}

.product-tasting-tag {
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #059669;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.6rem;
}

.product-tasting-tag i {
    font-size: 0.82rem;
    color: #10B981;
}

.product-tasting-desc {
    font-size: 0.86rem;
    color: #334155;
    line-height: 1.55;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3.9rem;
    max-height: 3.9rem;
}

.product-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.95rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(226, 232, 240, 0.85);
}

.metric-mini-box {
    display: flex;
    flex-direction: column;
}

.metric-mini-val {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(0.92rem, 1.15vw, 1.15rem);
    font-weight: 800;
    color: #0F172A;
    line-height: 1.25;
    word-break: break-word;
    overflow-wrap: break-word;
    min-height: 2.3rem;
    display: flex;
    align-items: center;
}

.metric-val-purity {
    font-size: 0.92rem;
    line-height: 1.2;
}

.metric-mini-label {
    font-size: 0.7rem;
    color: #64748B;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.15rem;
}

.product-spec-subbadges {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-top: 1.15rem;
    padding-top: 0.85rem;
    border-top: 1px dashed rgba(226, 232, 240, 0.85);
}

.spec-subbadge {
    font-size: 0.72rem;
    font-weight: 700;
    color: #475569;
    background: #F8FAFC;
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.spec-subbadge i {
    color: #059669;
    font-size: 0.72rem;
}

/* ==========================================================================
   RIGHT HUD PANEL: MASTER TITLE, ORIGIN, FORM SWITCHER & CTAS
   ========================================================================== */
.product-hud-right {
    width: 360px;
    max-width: 360px;
    min-height: 420px;
    text-align: right;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.42rem;
    overflow: visible;
    box-sizing: border-box;
}

.product-origin-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #166534;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.product-origin-pill i {
    color: #15803D;
    font-size: 0.76rem;
}

.product-botanical-tag {
    font-size: 0.82rem;
    color: #64748B;
    font-weight: 600;
    margin-top: -0.2rem;
}

.product-botanical-tag em {
    font-style: italic;
    color: #334155;
    font-weight: 700;
}

.product-master-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.65rem, 2.3vw, 2.35rem);
    font-weight: 800;
    color: #0F172A;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0.15rem 0;
    text-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* Whole vs. Ground Form Switcher (matching Demo) */
.stage-form-toggle {
    display: inline-flex;
    align-items: center;
    background: rgba(241, 245, 249, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 999px;
    padding: 3px;
    gap: 3px;
    margin: 0.2rem 0;
}

.stage-form-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.38rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748B;
    background: transparent;
    border: 1.5px solid transparent;
    cursor: url('../images/cursor/cursor-leaf-pointer.png') 2 2, pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.stage-form-btn:hover {
    color: #0F172A;
    background: rgba(255, 255, 255, 0.7);
}

.stage-form-btn.is-active {
    background: var(--v-bg, #DCFCE7);
    color: var(--v-color, #15803D);
    border: 1.5px solid var(--v-border, #86EFAC);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stage-form-btn.is-active i {
    color: inherit;
}

/* Specific Variant Active Overrides for Stage */
.stage-form-btn.badge-whole.is-active,
.stage-form-btn[data-form="whole"].is-active {
    background: #DCFCE7;
    color: #15803D;
    border-color: #86EFAC;
    box-shadow: 0 2px 8px rgba(21, 128, 61, 0.2);
}
.stage-form-btn.badge-whole.is-active i,
.stage-form-btn[data-form="whole"].is-active i {
    color: #15803D;
}

.stage-form-btn.badge-ground.is-active,
.stage-form-btn[data-form="ground"].is-active {
    background: #FEF3C7;
    color: #B45309;
    border-color: #FDE68A;
    box-shadow: 0 2px 8px rgba(180, 83, 9, 0.2);
}
.stage-form-btn.badge-ground.is-active i,
.stage-form-btn[data-form="ground"].is-active i {
    color: #B45309;
}

.stage-form-btn.badge-split.is-active,
.stage-form-btn[data-form="split"].is-active {
    background: #ECFDF5;
    color: #059669;
    border-color: #A7F3D0;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.2);
}
.stage-form-btn.badge-split.is-active i,
.stage-form-btn[data-form="split"].is-active i {
    color: #059669;
}

.stage-form-btn.badge-slice.is-active,
.stage-form-btn[data-form="slice"].is-active {
    background: #FFFBEB;
    color: #D97706;
    border-color: #FDE68A;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.2);
}
.stage-form-btn.badge-slice.is-active i,
.stage-form-btn[data-form="slice"].is-active i {
    color: #D97706;
}

.stage-form-btn.badge-dehydrated.is-active,
.stage-form-btn[data-form="dehydrated"].is-active {
    background: #FFEDD5;
    color: #EA580C;
    border-color: #FDBA74;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.2);
}
.stage-form-btn.badge-dehydrated.is-active i,
.stage-form-btn[data-form="dehydrated"].is-active i {
    color: #EA580C;
}

.stage-form-btn.badge-flakes.is-active,
.stage-form-btn[data-form="flakes"].is-active {
    background: #FDF4FF;
    color: #C026D3;
    border-color: #F0ABFC;
    box-shadow: 0 2px 8px rgba(192, 38, 211, 0.2);
}
.stage-form-btn.badge-flakes.is-active i,
.stage-form-btn[data-form="flakes"].is-active i {
    color: #C026D3;
}

.stage-form-btn.badge-crushed.is-active,
.stage-form-btn[data-form="crushed"].is-active {
    background: #FEF2F2;
    color: #DC2626;
    border-color: #FECACA;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}
.stage-form-btn.badge-crushed.is-active i,
.stage-form-btn[data-form="crushed"].is-active i {
    color: #DC2626;
}

.stage-form-btn.badge-hulled.is-active,
.stage-form-btn[data-form="hulled"].is-active {
    background: #F0FDFA;
    color: #0D9488;
    border-color: #99F6E4;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.2);
}
.stage-form-btn.badge-hulled.is-active i,
.stage-form-btn[data-form="hulled"].is-active i {
    color: #0D9488;
}

.stage-form-btn.badge-granules.is-active,
.stage-form-btn[data-form="granules"].is-active {
    background: #F5F3FF;
    color: #7C3AED;
    border-color: #DDD6FE;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
}
.stage-form-btn.badge-granules.is-active i,
.stage-form-btn[data-form="granules"].is-active i {
    color: #7C3AED;
}

.stage-form-btn.badge-custom.is-active,
.stage-form-btn[data-form="custom"].is-active {
    background: #EEF2FF;
    color: #4338CA;
    border-color: #C7D2FE;
    box-shadow: 0 2px 8px rgba(67, 56, 202, 0.2);
}
.stage-form-btn.badge-custom.is-active i,
.stage-form-btn[data-form="custom"].is-active i {
    color: #4338CA;
}

.product-export-highlights-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1.5px solid rgba(226, 232, 240, 0.95);
    border-radius: 16px;
    padding: 0.62rem 0.85rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: left;
    box-sizing: border-box;
    margin: 0.15rem 0 0.3rem;
}

.export-highlight-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.78rem;
    color: #334155;
    line-height: 1.35;
}

.export-highlight-item i {
    color: #059669;
    font-size: 0.8rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.export-highlight-item strong {
    color: #0F172A;
    font-weight: 700;
}

.product-price-payload-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #0F172A;
    background: rgba(255, 255, 255, 0.92);
    border: 1.5px solid rgba(226, 232, 240, 0.95);
    padding: 0.32rem 0.85rem;
    border-radius: 12px;
    margin-bottom: 0.25rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.product-price-payload-chip i {
    color: #059669;
}

/* Call to Action Button Cluster */
.product-stage-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: nowrap;
    justify-content: flex-end;
    margin-top: 0.35rem;
    z-index: 25;
}

.product-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.72rem 1.35rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #FFFFFF;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.28), inset 0 1px 1px rgba(255, 255, 255, 0.9);
    cursor: url('../images/cursor/cursor-leaf-pointer.png') 2 2, pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    white-space: nowrap;
}

.product-cta-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 26px rgba(5, 150, 105, 0.38);
    color: #FFFFFF;
}

.product-calc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.70rem 1.15rem;
    border-radius: 999px;
    background: #FFFFFF;
    color: #0F172A;
    border: 1.5px solid rgba(203, 213, 225, 0.95);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    cursor: url('../images/cursor/cursor-leaf-pointer.png') 2 2, pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    white-space: nowrap;
}

.product-calc-btn i {
    color: #059669;
    font-size: 0.92rem;
}

.product-calc-btn:hover {
    border-color: #059669;
    color: #059669;
    background: #F0FDF4;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.15);
}

.product-wa-btn {
    display: none !important;
}

/* ==========================================================================
   BOTTOM FLOATING THUMBNAILS CAROUSEL DOCK
   ========================================================================== */
.spin-thumbnails-dock-wrap {
    position: absolute;
    bottom: -3.8rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 25;
    pointer-events: auto;
    padding: 0 1.5rem;
}

.dock-floating-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #0F172A;
    color: #FFFFFF;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, left 0.15s ease;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.22);
    z-index: 99999;
}

.dock-floating-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #0F172A transparent transparent transparent;
}

.dock-floating-tooltip.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.spin-thumbnails-dock {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 0.85rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1.5px solid rgba(226, 232, 240, 0.95);
    border-radius: 999px;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.09), inset 0 1px 1px rgba(255, 255, 255, 0.95);
    max-width: 90vw;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.spin-thumbnails-dock::-webkit-scrollbar {
    display: none;
}

.spin-thumb-item {
    position: relative;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: rgba(241, 245, 249, 0.85);
    border: 1.5px solid transparent;
    cursor: url('../images/cursor/cursor-leaf-pointer.png') 2 2, pointer;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.spin-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.spin-thumb-item:hover {
    transform: scale(1.15);
    border-color: #059669;
    background: #FFFFFF;
}

.spin-thumb-item.is-active {
    border-color: #059669;
    background: #FFFFFF;
    transform: scale(1.22);
    box-shadow: 0 0 18px rgba(5, 150, 105, 0.4);
}

/* Tooltip on Thumbnails */
.spin-thumb-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: #0F172A;
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    z-index: 30;
}

.spin-thumb-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #0F172A transparent transparent transparent;
}

.spin-thumb-item:hover .spin-thumb-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 1200px) {
    .spin-hero-stage {
        padding: 0 2rem;
    }
    .product-hud-left {
        width: 280px;
    }
    .product-hud-right {
        width: 320px;
    }
    .center-spin-anchor {
        width: 360px;
        height: 360px;
    }
    .center-spin-anchor::before {
        width: 320px;
        height: 320px;
    }
}

@media (max-width: 1024px) {
    .product-stage-viewport {
        min-height: auto;
        padding: 2.5rem 0 7rem;
    }
    .spin-hero-stage {
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        padding: 0 1.5rem;
    }
    .center-spin-anchor {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 320px;
        height: 320px;
        margin: 0.5rem auto;
    }
    .product-hud-right {
        order: 1;
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
        text-align: center;
        align-items: center;
        min-height: auto !important;
    }
    .center-spin-anchor {
        order: 2;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 320px;
        height: 320px;
        margin: 0.5rem auto;
    }
    .spin-thumbnails-dock-wrap {
        order: 3;
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin: 0.85rem auto 1.5rem;
        width: 100%;
        max-width: 580px;
        padding: 0 0.5rem;
    }
    .product-hud-left {
        order: 4;
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
        text-align: left;
    }
    .product-spec-glass-card {
        height: auto !important;
    }
    .product-tasting-desc {
        min-height: auto !important;
        max-height: none !important;
        -webkit-line-clamp: unset !important;
        display: block !important;
    }
    .product-export-highlights-card {
        max-width: 100%;
        text-align: left;
    }
    .product-stage-actions {
        justify-content: center;
    }
    .spin-arrow-btn {
        width: 44px;
        height: 44px;
        font-size: 1rem;
        top: 50%;
    }
    .spin-arrow-prev { left: -50px; right: auto; }
    .spin-arrow-next { right: -50px; left: auto; }
    .floating-bg-bowl {
        opacity: 0.65;
    }
}

@media (max-width: 640px) {
    .product-stage-viewport {
        padding: 1.15rem 0 3.5rem;
    }
    .spin-hero-stage {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.5rem !important;
        padding: 0 1rem !important;
    }

    /* Unpack right HUD elements so they can be arranged sequentially on mobile */
    .product-hud-right {
        display: contents !important;
    }

    .product-origin-pill {
        order: 1 !important;
        margin: 0.2rem auto 0 !important;
    }
    .product-botanical-tag {
        order: 1 !important;
        text-align: center !important;
        margin-top: 0.2rem !important;
    }
    .product-master-title {
        order: 1 !important;
        font-size: 1.65rem !important;
        text-align: center !important;
        margin: 0.2rem 0 !important;
    }
    .stage-form-toggle {
        order: 1 !important;
        margin: 0.15rem auto 0.4rem !important;
    }

    /* Central Hero Bowl - Order 2 */
    .center-spin-anchor {
        order: 2 !important;
        width: 230px !important;
        height: 230px !important;
        margin: 0.2rem auto 0.4rem !important;
    }
    .center-spin-anchor::before {
        width: 210px !important;
        height: 210px !important;
    }

    /* 2-Line Clean Filter Bar on Mobile */
    .stage-filter-inner {
        display: grid !important;
        grid-template-columns: auto 1fr !important;
        grid-template-rows: auto auto !important;
        gap: 0.6rem 0.65rem !important;
        align-items: center !important;
        width: 100% !important;
    }
    .stage-back-btn {
        grid-column: 1 / 2 !important;
        grid-row: 1 / 2 !important;
        padding: 0.38rem 0.85rem !important;
        font-size: 0.78rem !important;
    }
    .stage-filter-search-wrap {
        grid-column: 2 / 3 !important;
        grid-row: 1 / 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }
    .stage-category-pills {
        grid-column: 1 / 3 !important;
        grid-row: 2 / 3 !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.4rem !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        padding: 2px 0 !important;
    }
    .stage-category-pills::-webkit-scrollbar {
        display: none !important;
    }

    /* Mobile: Dock of Bowls placed directly after Big Bowl picture - Order 3 */
    .spin-thumbnails-dock-wrap {
        order: 3 !important;
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        margin: 0.4rem auto 1.25rem !important;
        padding: 0 0.25rem !important;
        width: 100% !important;
    }
    .spin-thumb-item {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }
    .spin-arrow-btn {
        display: none; /* Rely on thumbnail dock directly below the bowl */
    }



    /* Highlights & Actions - Order 4, 5, 6 */
    .product-export-highlights-card {
        order: 4 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0.35rem auto !important;
        text-align: left !important;
    }
    .product-price-payload-chip {
        order: 5 !important;
        margin: 0.25rem auto !important;
    }
    .product-stage-actions {
        order: 6 !important;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
        margin-top: 0.5rem;
        padding-bottom: 1.25rem;
    }
    .product-cta-btn {
        width: 100%;
        padding: 0.8rem 1.25rem;
        font-size: 0.86rem;
        font-weight: 700;
        justify-content: center;
        box-sizing: border-box;
    }
    .product-calc-btn {
        width: 100%;
        padding: 0.8rem 1.25rem;
        font-size: 0.86rem;
        font-weight: 700;
        justify-content: center;
        box-sizing: border-box;
    }

    /* Specifications Card - Order 7 */
    .product-hud-left {
        order: 7 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 0.5rem !important;
    }
    .product-spec-glass-card {
        height: auto !important;
        padding: 1.4rem 1.25rem;
    }
    .product-tasting-desc {
        min-height: auto !important;
        max-height: none !important;
        -webkit-line-clamp: unset !important;
        display: block !important;
    }

    .whatsapp-floating {
        bottom: 75px !important;
        right: 14px !important;
    }
}

/* ==========================================================================
   DARK THEME SYNCHRONIZATION FOR 3D GRAND STAGE
   ========================================================================== */
html[data-theme="dark"] .stage-filter-bar-wrap {
    background: #08120E !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .stage-back-btn {
    background: #0D1C16 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    color: #F8FAFC !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

html[data-theme="dark"] .stage-back-btn:hover {
    background: #10B981 !important;
    border-color: #10B981 !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] .stage-back-btn i {
    color: #34D399 !important;
}

html[data-theme="dark"] .stage-cat-btn {
    background: #081410 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #94A3B8 !important;
}

html[data-theme="dark"] .stage-cat-btn:hover {
    background: #0D1C16 !important;
    color: #F8FAFC !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
}

html[data-theme="dark"] .stage-cat-btn.is-active {
    background: #10B981 !important;
    border-color: #10B981 !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] .stage-search-input {
    background: #050D0A !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] .stage-search-input:focus {
    border-color: #10B981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
}

html[data-theme="dark"] .stage-search-icon {
    color: #64748B !important;
}

html[data-theme="dark"] .stage-search-clear {
    background: #1E293B !important;
    color: #94A3B8 !important;
}

html[data-theme="dark"] .stage-search-dropdown {
    background: #0D1C16 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7) !important;
}

html[data-theme="dark"] .stage-search-item:hover {
    background: rgba(16, 185, 129, 0.15) !important;
}

html[data-theme="dark"] .stage-search-item img {
    background: #081410 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .stage-search-item-name {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .stage-search-item-cat {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .stage-watermark-text {
    color: rgba(255, 255, 255, 0.02) !important;
}

html[data-theme="dark"] .spin-arrow-btn {
    background: rgba(13, 28, 22, 0.9) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .spin-arrow-btn:hover {
    background: #10B981 !important;
    border-color: #10B981 !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] .product-stage-viewport {
    background: radial-gradient(circle at 50% 48%, #081C15 0%, #05130E 55%, #030C09 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .product-stage-viewport[data-variant="seeds"],
html[data-theme="dark"] .product-stage-viewport[data-variant="cumin"],
html[data-theme="dark"] .product-stage-viewport[data-variant="carom"],
html[data-theme="dark"] .product-stage-viewport[data-variant="coriander"] {
    background: radial-gradient(circle at 50% 48%, #1E1606 0%, #130E04 55%, #0A0702 100%) !important;
}

html[data-theme="dark"] .product-stage-viewport[data-variant="green"],
html[data-theme="dark"] .product-stage-viewport[data-variant="cardamom"],
html[data-theme="dark"] .product-stage-viewport[data-variant="fennel"],
html[data-theme="dark"] .product-stage-viewport[data-variant="herbs"] {
    background: radial-gradient(circle at 50% 48%, #062319 0%, #041610 55%, #020A07 100%) !important;
}

html[data-theme="dark"] .product-stage-viewport[data-variant="pepper"],
html[data-theme="dark"] .product-stage-viewport[data-variant="nigella"],
html[data-theme="dark"] .product-stage-viewport[data-variant="mustard"] {
    background: radial-gradient(circle at 50% 48%, #0D1620 0%, #080D14 55%, #04070A 100%) !important;
}

html[data-theme="dark"] .product-stage-viewport[data-variant="turmeric"],
html[data-theme="dark"] .product-stage-viewport[data-variant="ginger"] {
    background: radial-gradient(circle at 50% 48%, #241A04 0%, #171002 55%, #0C0801 100%) !important;
}

html[data-theme="dark"] .product-stage-viewport[data-variant="chilli"],
html[data-theme="dark"] .product-stage-viewport[data-variant="clove"],
html[data-theme="dark"] .product-stage-viewport[data-variant="cinnamon"] {
    background: radial-gradient(circle at 50% 48%, #24080D 0%, #160407 55%, #0A0204 100%) !important;
}

html[data-theme="dark"] .product-stage-viewport[data-variant="sesame"],
html[data-theme="dark"] .product-stage-viewport[data-variant="psyllium"],
html[data-theme="dark"] .product-stage-viewport[data-variant="makhana"] {
    background: radial-gradient(circle at 50% 48%, #0B1914 0%, #06110D 55%, #030A07 100%) !important;
}

html[data-theme="dark"] .center-spin-anchor::before {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.05) 60%, transparent 80%) !important;
}

html[data-theme="dark"] .product-spec-glass-card {
    background: rgba(13, 28, 22, 0.9) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .product-tasting-desc {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .product-metrics-grid {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .metric-mini-val {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .metric-mini-label {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .product-spec-subbadges {
    border-top: 1px dashed rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .spec-subbadge {
    background: #081410 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .product-origin-pill {
    background: rgba(16, 185, 129, 0.15) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    color: #34D399 !important;
}

html[data-theme="dark"] .product-botanical-tag {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .product-botanical-tag em {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .product-master-title {
    color: #FFFFFF !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6) !important;
}

html[data-theme="dark"] .stage-form-toggle {
    background: rgba(8, 20, 15, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] .stage-form-btn {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .stage-form-btn.is-active {
    background: #10241C !important;
    color: #34D399 !important;
    border: 1.5px solid #10B981 !important;
}

html[data-theme="dark"] .product-export-highlights-card {
    background: rgba(13, 28, 22, 0.9) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .export-highlight-item {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .export-highlight-item strong {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .product-price-payload-chip {
    background: rgba(13, 28, 22, 0.92) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .product-calc-btn {
    background: #0D1C16 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .product-calc-btn:hover {
    background: #10241C !important;
    border-color: #10B981 !important;
    color: #34D399 !important;
}

html[data-theme="dark"] .product-calc-btn i {
    color: #34D399 !important;
}

html[data-theme="dark"] .spin-thumbnails-dock {
    background: rgba(13, 28, 22, 0.92) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .spin-thumb-item {
    background: rgba(8, 20, 15, 0.85) !important;
    border-color: transparent !important;
}

html[data-theme="dark"] .spin-thumb-item:hover {
    background: #10241C !important;
    border-color: #10B981 !important;
}

html[data-theme="dark"] .spin-thumb-item.is-active {
    background: #10241C !important;
    border-color: #D4AF37 !important;
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.4) !important;
}
