/*
Theme Name: Kudland
Theme URI: https://kudland.com
Author: Kudland Team
Author URI: https://kudland.com
Description: WordPress Theme for Kudland Agricultural Liquid Fertilizer Store
Version: 2.28.9
Requires at least: 6.0
Requires PHP: 8.0
Tested up to: 7.1.3
WooCommerce tested up to: 11.1.2
License: GNU General Public License v2 or later
Text Domain: kudmaye
Tags: e-commerce, rtl-language-support, woocommerce, agriculture, dark-mode
*/

/* ============================================
   FONTS
   ============================================ */
@font-face { font-family: 'Vazirmatn'; src: url('./assets/fonts/Vazirmatn-Thin.woff2') format('woff2'); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('./assets/fonts/Vazirmatn-ExtraLight.woff2') format('woff2'); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('./assets/fonts/Vazirmatn-Light.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('./assets/fonts/Vazirmatn-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('./assets/fonts/Vazirmatn-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('./assets/fonts/Vazirmatn-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('./assets/fonts/Vazirmatn-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('./assets/fonts/Vazirmatn-ExtraBold.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('./assets/fonts/Vazirmatn-Black.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }

/* ============================================
   VARIABLES
   Kudland brand palette v2.36.0 — warm earthy
   amber/rose scheme (replaces former green/emerald).
   Variable NAMES preserved for backward-compat with
   inline styles & child themes; only VALUES shifted.
   ============================================ */
:root {
    --bg-primary: #0e0a07;
    --bg-secondary: #16100b;
    --bg-card: #1f1611;
    --bg-card-hover: #2a1f17;
    --text-primary: #fdf6ec;
    --text-secondary: #b8a896;
    --text-muted: #75665a;
    --accent-green: #f59e0b;
    --accent-emerald: #ec4899;
    --accent-orange: #fb923c;
    --accent-gold: #facc15;
    --accent-red: #f43f5e;
    /* v2.23.0 M7: --color-primary alias for plugins/themes that expect the WP
       convention. Maps to the brand accent (amber). */
    --color-primary: var(--accent-green);
    --gradient-primary: linear-gradient(135deg, #f59e0b, #ec4899);
    --gradient-accent: linear-gradient(135deg, #fb923c, #f43f5e);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-lg: 0 12px 30px rgba(0,0,0,0.5);
    --header-height: 70px;
}

/* ============================================
   RESET & BASE
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    /* v2.24.11 — رفع شیفت کل صفحه در RTL موبایل:
       overflow-x:hidden روی body در Chromium موبایل، وقتی محتوایی به‌سمت چپ
       بیرون می‌زند (توکن نشکن مثل URL در نظرات)، کل صفحه را جابه‌جا می‌کند
       و المان‌ها از لبهٔ صفحه بیرون می‌زنند. clip اسکرول‌کانتینر نمی‌سازد،
       sticky/fixed را نمی‌شکند و شیفت را حذف می‌کند؛ خط hidden فقط
       fallback مرورگرهای خیلی قدیمی است. */
    overflow-x: clip;
    /* Global fix: every page starts below the fixed header.
       Hero sections no longer need to add header-height to their own padding. */
    padding-top: var(--header-height);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-card-hover); border-radius: 4px; }
::selection { background: var(--accent-green); color: #fff; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: none;
    white-space: nowrap;
    font-family: 'Vazirmatn', sans-serif;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}
.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-green);
    color: var(--accent-green);
}
.btn-outline:hover {
    background: var(--accent-green);
    color: white;
}

.btn-lg { padding: 18px 42px; font-size: 1.1rem; }
.btn-full { width: 100%; }
.btn-pill { border-radius: 50px; }

/* ============================================
   HEADER  (v1.6 — fully rewritten for stability)
   z-index layering:
     1000  .site-header  (always at top, fixed)
     1001  .logo, .header-actions children (above in-header content)
     1099  .mobile-menu-overlay (covers page when drawer open)
     1100  .main-nav drawer (mobile only)
   The desktop nav and drawer share the SAME .main-nav element;
   on desktop it's an inline flex row, on mobile it becomes a fixed drawer.
   ============================================ */
.site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(14, 10, 7, 0.92);
    height: var(--header-height);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    background: rgba(14, 10, 7, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* The flex container that holds logo / nav / actions */
.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* ====== Logo ====== */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.logo-text { display: flex; flex-direction: column; line-height: 1.2; }

.logo-title {
    font-weight: 800;
    color: var(--text-primary);
    font-size: 1.3rem;
    letter-spacing: 0.5px;
}

.logo-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ====== Desktop Navigation (also serves as mobile drawer source) ====== */
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    transition: color 0.25s ease, background 0.25s ease;
    position: relative;
    white-space: nowrap;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
    color: var(--accent-green);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    right: 16px;
    left: 16px;
    height: 2px;
    background: var(--accent-green);
    border-radius: 2px;
}

.nav-cta {
    margin-right: 12px;
    padding: 10px 22px !important;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ====== Header right actions (cart + menu toggle) ====== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* ====== Cart icon (always visible) ====== */
.cart-link {
    position: relative;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease;
    text-decoration: none;
}
.cart-link:hover {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-green);
}.cart-count {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.cart-count.has-items {
    background: var(--accent-green);
    color: #0e0a07;
    transform: scale(1.08);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.5);
}

/* ====== Mobile menu toggle (hidden on desktop) ====== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 8px;
    transition: background 0.2s ease, opacity 0.25s ease, visibility 0.25s ease;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* When the mobile drawer is open, the hamburger button fades out
   so the user only sees the in-drawer close (X) button. */
body.menu-open .menu-toggle {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}.menu-toggle.active .menu-toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background: var(--accent-green);
}
.menu-toggle.active .menu-toggle-bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .menu-toggle-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background: var(--accent-green);
}

/* ====== Drawer header (mobile only) ====== */
.drawer-head {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.drawer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1rem;
}/* In-drawer close button (mobile only) */
.drawer-close {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.drawer-close:hover {
    background: rgba(244, 63, 94, 0.12);
    color: var(--accent-red);
    transform: rotate(90deg);
}

/* ====== Drawer footer (mobile only) ====== */
.drawer-footer {
    display: none;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-direction: column;
    gap: 8px;
}
.drawer-contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.08);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s ease;
}.drawer-contact-wa { background: rgba(37, 211, 102, 0.1); }
.drawer-contact-wa:hover { background: rgba(37, 211, 102, 0.2); }
.drawer-contact-icon { font-size: 1.1rem; }.nav-cart-badge {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.nav-cart-badge.has-items {
    background: var(--accent-green);
    color: #0e0a07;
}.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 40px;
    background: var(--bg-primary);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
}

.hero-text { flex: 1; text-align: right; }
.hero-visual { flex: 1; display: flex; justify-content: center; align-items: center; min-height: 400px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 50px;
    color: var(--accent-green);
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.2rem;
    color: var(--text-primary);
    font-weight: 900;
    line-height: 1.2;
    max-width: 800px;
    margin-bottom: 20px;
}

.hero-highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 32px;
    line-height: 1.9;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-stat { text-align: center; }
.hero-stat-num { font-size: 2rem; font-weight: 900; color: var(--text-primary); display: block; }
.hero-stat-label { font-size: 0.85rem; color: var(--text-secondary); }

/* v2.24.14 — .hero-lottie/.lottie-fallback/@keyframes lottiePulse حذف شدند:
   قالبِ #heroLottie را هیچ قالبی چاپ نمی‌کرد و بلوک JS مرده‌اش هم از main.js برداشته شد. */

/* ============================================
   PAGE HERO (shared for inner pages)
   ============================================ */
.page-hero {
    padding: 60px 0 60px;
    background: var(--bg-secondary);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-badge {
    display: inline-block;
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-green);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.page-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    font-weight: 900;
    margin-bottom: 16px;
}

.page-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.9;
}.section-title {
    color: var(--text-primary);
    font-size: 2.2rem;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-top: 16px;
}

/* ============================================
   BRANDS
   ============================================ */
.brands { padding: 80px 0; background: var(--bg-primary); }

.brands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border-radius: 20px;
    padding: 36px 28px 28px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.brand-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.brand-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.25);
}

.brand-card:hover::before { opacity: 1; }

.brand-card .brand-icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-card:hover .brand-icon {
    transform: scale(1.15) rotate(-4deg);
}

.brand-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 18px;
    padding: 10px 22px;
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.brand-card:hover .brand-cta {
    background: var(--accent-green);
    color: #0e0a07;
    border-color: var(--accent-green);
}

.brand-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-green);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.brand-featured { border-color: rgba(245, 158, 11, 0.15); }
.brand-icon { font-size: 3rem; margin-bottom: 16px; }
.brand-name { font-size: 1.4rem; color: var(--text-primary); margin-bottom: 8px; }
.brand-sub { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; }
.brand-desc { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.8; }

/* ============================================
   PRODUCTS (front-page slider)
   ============================================ */
.products { padding: 80px 0; background: var(--bg-secondary); overflow: hidden; }

.product-filters {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}.product-filter-btn.active {
    border-color: var(--accent-green);
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-green);
}

.products-swiper-wrapper { position: relative; padding: 10px 0 30px; }
.products-swiper { width: 100%; }
.products-swiper .swiper-slide { height: auto; }

/* Product card — premium v1.9 unified design
   Used by: home products swiper + related products + (visual twin of shop-card)
   Has: brand chip, sale chip, out-of-stock chip, hover "view" overlay, star rating,
        add-to-cart + WhatsApp action row. */
/* ============================================
   PRODUCT CARD — v2.0 PREMIUM REDESIGN
   Layered glass card with animated spotlight,
   gradient ribbon, glow ring on hover.
   ============================================ */
.product-card {
    background:
        linear-gradient(180deg, rgba(245, 158, 11, 0.04) 0%, transparent 35%),
        linear-gradient(180deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.45s ease,
                border-color 0.45s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
}

/* Animated top accent ribbon — runs the full width of the card top */
.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--accent-green) 30%,
        var(--accent-emerald) 50%,
        var(--accent-green) 70%,
        transparent 100%);
    background-size: 200% 100%;
    background-position: 100% 0;
    z-index: 4;
    transition: background-position 0.8s ease;
    opacity: 0.55;
}

/* Radial spotlight that follows hover — sits above background, below content */
.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%),
                rgba(245, 158, 11, 0.16), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(245, 158, 11, 0.18),
        0 0 36px rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.32);
}
.product-card:hover::before {
    background-position: 0 0;
    opacity: 1;
}
.product-card:hover::after {
    opacity: 1;
}

/* Media section (image + tags + hover overlay) */
.product-card-media {
    position: relative;
    aspect-ratio: 1 / 1;
    background:
        radial-gradient(circle at 30% 20%, rgba(245, 158, 11, 0.12), transparent 55%),
        radial-gradient(circle at 75% 80%, rgba(236, 72, 153, 0.06), transparent 50%),
        linear-gradient(180deg, var(--bg-secondary), var(--bg-card));
    overflow: hidden;
    z-index: 1;
}

/* Subtle dotted texture on the media background */
.product-card-media::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 16px 16px;
    pointer-events: none;
    opacity: 0.6;
}

.product-card-img-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 26px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35));
}

.product-card:hover .product-image {
    transform: scale(1.1) rotate(-2deg);
    filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 20px rgba(245, 158, 11, 0.18));
}

.product-card-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(14, 10, 7, 0.88);
    color: var(--accent-green);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.74rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(245, 158, 11, 0.35);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    z-index: 3;
    letter-spacing: 0.3px;
}

.product-card-sale {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, #fb923c, #f43f5e);
    color: #fff;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(244, 63, 94, 0.4), inset 0 1px 0 rgba(255,255,255,0.25);
    z-index: 3;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    animation: salePulse 2.2s ease-in-out infinite;
}

@keyframes salePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.product-card-stock-out {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15, 15, 15, 0.9);
    color: #f87171;
    padding: 12px 26px;
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 800;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(244, 63, 94, 0.45);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 4;
    pointer-events: none;
    letter-spacing: 0.5px;
}

/* v2.24.18 — Quick View اکنون <button> واقعی است (قبلاً <a> فیک بود)؛
   ریست پیش‌فرض‌های دکمه تا ظاهر عیناً حفظ شود */
button.product-card-quick {
    border: 0;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
}
.product-card-quick {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translate(-50%, 12px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.98), rgba(101, 163, 13, 0.98));
    color: #0e0a07;
    padding: 9px 22px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35), inset 0 1px 0 rgba(255,255,255,0.25);
    z-index: 3;
    white-space: nowrap;
}

.product-card:hover .product-card-quick {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Info section */
.product-info {
    padding: 20px 22px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 11px;
    position: relative;
    z-index: 1;
}

.product-brand {
    display: inline-block;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(245, 158, 11, 0.06));
    color: var(--accent-green);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.74rem;
    font-weight: 700;
    width: fit-content;
    border: 1px solid rgba(245, 158, 11, 0.22);
    letter-spacing: 0.2px;
}

.product-name {
    font-size: 1.04rem;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
    margin: 0;
    transition: color 0.25s ease;
}

.product-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.product-name a:hover { color: var(--accent-green); }

/* Star rating — premium look */
.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}
.product-rating .stars {
    display: inline-flex;
    gap: 1px;
    font-size: 0.85rem;
    letter-spacing: 1px;
}
.product-rating .star { color: rgba(255, 255, 255, 0.18); }
.product-rating .star.full { color: #facc15; }
.product-rating .star.half {
    background: linear-gradient(90deg, #facc15 50%, rgba(255,255,255,0.18) 50%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #facc15;
}
.product-rating .rating-count {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
}

.product-price {
    font-size: 1.26rem;
    font-weight: 800;
    color: var(--accent-green);
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    text-shadow: 0 0 24px rgba(245, 158, 11, 0.2);
}

.product-price del {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-left: 0;
    font-weight: 400;
    text-decoration: line-through;
    order: 2;
}

.product-price ins { text-decoration: none; order: 1; }

/* Unified product card action row — matches the shop-card look.
   Used by home swiper cards + related products cards. */
.product-card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed rgba(255, 255, 255, 0.06);
}

.product-card-btn-primary {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 14px;
    background: linear-gradient(135deg, var(--accent-green), #d97706);
    color: #0e0a07;
    border-radius: 12px;
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.3), inset 0 1px 0 rgba(255,255,255,0.22);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.product-card-btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}
.product-card-btn-primary:hover::after { left: 100%; }
.product-card-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(245, 158, 11, 0.45);
    color: #0e0a07;
    filter: brightness(1.08);
}
.product-card-btn-primary:active { transform: translateY(0); }
.product-card-btn-primary.disabled,
.product-card-btn-primary.disabled:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.product-card-btn-wa {
    flex: 0 0 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 211, 102, 0.06);
    color: #25d366;
    border: 1px solid rgba(37, 211, 102, 0.32);
    border-radius: 12px;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card-btn-wa:hover {
    background: rgba(37, 211, 102, 0.16);
    border-color: #25d366;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.25);
}

.product-card-btn { margin-top: 12px; }

/* Swiper navigation */
.products-swiper-prev,
.products-swiper-next {
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}
.products-swiper-prev:hover, .products-swiper-next:hover {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: white;
}
.products-swiper-prev:after, .products-swiper-next:after { font-size: 1.2rem; font-weight: 700; }
.products-swiper-prev { left: -24px; }
.products-swiper-next { right: -24px; }

.products-swiper-pagination { margin-top: 20px; }
.products-swiper-pagination .swiper-pagination-bullet { background: rgba(255, 255, 255, 0.2); opacity: 1; width: 10px; height: 10px; margin: 0 6px; }
.products-swiper-pagination .swiper-pagination-bullet-active { background: var(--accent-green); }

.products-cta { text-align: center; margin-top: 40px; }

/* ============================================
   WOOCOMMERCE DEFAULT LOOP — v2.1.0
   Style the WooCommerce loop containers (ul.products,
   .related.products, .upsells, .cross-sells) so the
   .product-card design renders correctly INSIDE the
   default WooCommerce markup — not just in our custom
   shop / single / front-page templates.
   ============================================ */
ul.products,
.related.products ul,
.upsells ul,
.cross-sells ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Cross-sells heading + section on cart page */
.cross-sells {
    margin-top: 32px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.cross-sells > h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(245, 158, 11, 0.12);
    position: relative;
}
.cross-sells > h2::before {
    content: '';
    position: absolute;
    bottom: -1px;
    right: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-green);
    border-radius: 2px;
}
/* Cross-sells product cards inherit .product-card design */
.cross-sells ul li.product,
.cross-sells ul li.product-card-loop-item {
    background:
        linear-gradient(180deg, rgba(245, 158, 11, 0.04) 0%, transparent 40%),
        var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 14px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    position: relative;
    list-style: none;
}
.cross-sells ul li.product:hover,
.cross-sells ul li.product-card-loop-item:hover {
    border-color: rgba(245, 158, 11, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transform: translateY(-3px);
}
.cross-sells ul li.product img,
.cross-sells ul li.product-card-loop-item img {
    border-radius: 12px;
    margin-bottom: 10px;
    background: linear-gradient(180deg, var(--bg-secondary), var(--bg-primary));
    padding: 10px;
}
.cross-sells .woocommerce-loop-product__title,
.cross-sells ul li.product h2,
.cross-sells ul li.product-card-loop-item h3 {
    font-size: 0.95rem !important;
    color: var(--text-primary);
    font-weight: 700;
    margin: 6px 0 8px !important;
    padding: 0 !important;
    line-height: 1.4;
}
.cross-sells .woocommerce-loop-product__title a,
.cross-sells ul li.product h2 a {
    color: inherit;
    text-decoration: none;
}
.cross-sells .price,
.cross-sells ul li.product .price {
    color: var(--accent-green) !important;
    font-weight: 800;
    font-size: 1rem;
    display: block;
    margin-bottom: 10px;
}
.cross-sells .price del,
.cross-sells ul li.product .price del {
    color: var(--text-muted) !important;
    font-weight: 400;
    font-size: 0.85rem;
    margin-left: 6px;
    opacity: 0.7;
}
.cross-sells .price ins,
.cross-sells ul li.product .price ins {
    background: none;
    text-decoration: none;
    color: var(--accent-green);
}
.cross-sells .button,
.cross-sells ul li.product .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 14px;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-emerald));
    color: #fff !important;
    border: none;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: 'Vazirmatn', sans-serif;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}
.cross-sells .button:hover,
.cross-sells ul li.product .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(245, 158, 11, 0.3);
    color: #fff !important;
}
.cross-sells .onsale {
    background: linear-gradient(135deg, #fb923c, #f43f5e) !important;
    color: #fff !important;
    border-radius: 8px;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 700;
}

ul.products li.product,
.related.products ul li.product,
.upsells ul li.product,
.cross-sells ul li.product {
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    float: none !important;
    list-style: none !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* The loop-item wrapper we add via content-product.php */
.product-card-loop-item {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.product-card-loop-item > .product-card {
    width: 100%;
    flex: 1 1 auto;
}

/* Hide WooCommerce's default "Add to cart" button if it leaks through
   (we render our own CTA inside .product-card-actions). */
ul.products li.product .button,
ul.products li.product .added_to_cart {
    display: none !important;
}

/* Hide WooCommerce default star rating (we render our own) */
ul.products li.product .star-rating {
    display: none !important;
}

/* Hide the default "Sale!" badge (we render our own .product-card-sale) */
ul.products li.product .onsale {
    display: none !important;
}

/* Hide default WooCommerce price block (we render .product-price) */
ul.products li.product .price {
    display: none !important;
}

/* Hide default WooCommerce product title link (we render .product-name > a) */
ul.products li.product .woocommerce-loop-product__title {
    display: none !important;
}

/* Responsive grid columns */
@media (max-width: 1200px) {
    ul.products,
    .related.products ul,
    .upsells ul,
    .cross-sells ul { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    ul.products,
    .related.products ul,
    .upsells ul,
    .cross-sells ul { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 560px) {
    ul.products,
    .related.products ul,
    .upsells ul,
    .cross-sells ul { grid-template-columns: 1fr; }
}

/* ============================================
   PRODUCTS PAGE (grid)
   ============================================ */
.products-section { padding: 60px 0 80px; }.product-card-sale {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent-red);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-card-actions {
    display: flex;
    gap: 10px;
    padding: 0 20px 20px;
}

.product-card-actions .btn { flex: 1; }

.products-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-weight: 600;
    transition: var(--transition);
}
.products-pagination .page-numbers:hover,
.products-pagination .page-numbers.current { background: var(--accent-green); border-color: var(--accent-green); color: white; }/* ============================================
   CALCULATOR
   ============================================ */
.calculator { padding: 80px 0; background: var(--bg-secondary); }
.calc-wrapper { max-width: 900px; margin: 0 auto; }
.calc-form { display: flex; flex-direction: column; gap: 28px; }

.calc-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}.calc-label { display: block; font-size: 1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 16px; }

.calc-crops { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }

.crop-btn {
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}
.crop-btn:hover { border-color: rgba(245, 158, 11, 0.3); color: var(--text-primary); }
.crop-btn.selected { border-color: var(--accent-green); background: rgba(245, 158, 11, 0.1); color: var(--accent-green); font-weight: 600; }.calc-input {
    flex: 1;
    padding: 14px 16px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: inherit;
    outline: none;
}
.calc-input::placeholder { color: var(--text-muted); }.calc-toggle-group { display: flex; gap: 12px; }

.toggle-btn {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}
.toggle-btn:hover { border-color: rgba(245, 158, 11, 0.3); }
.toggle-btn.active { border-color: var(--accent-green); background: rgba(245, 158, 11, 0.1); color: var(--accent-green); font-weight: 600; }

/* Calculator Result */
.calc-result {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.05);
}
.calc-result-header { text-align: center; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.calc-result-header h3 { font-size: 1.4rem; margin-bottom: 8px; }
.calc-result-header h3 span { color: var(--accent-green); }
.calc-result-header p { color: var(--text-secondary); font-size: 0.95rem; }.calc-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.calc-table th { background: rgba(245, 158, 11, 0.1); color: var(--accent-green); padding: 14px 16px; text-align: right; font-weight: 600; border-bottom: 2px solid rgba(245, 158, 11, 0.2); font-size: 0.85rem; white-space: nowrap; }
.calc-table td { padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); color: var(--text-secondary); font-size: 0.85rem; }
.calc-table tr:hover td { background: rgba(255, 255, 255, 0.02); }
.calc-table .td-total { font-weight: 700; color: var(--accent-green); }
.calc-table .td-time { font-size: 0.8rem; color: var(--text-muted); }

.calc-result-tips { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.calc-tip { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: rgba(255, 255, 255, 0.03); border-radius: 12px; border-right: 3px solid var(--accent-green); }
.calc-tip-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.calc-tip p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; margin: 0; }
.calc-tip strong { color: var(--accent-green); }

.calc-result-cta { text-align: center; padding: 28px; background: rgba(245, 158, 11, 0.05); border-radius: 16px; margin-bottom: 20px; }
.calc-result-cta p { color: var(--text-secondary); margin-bottom: 20px; }
.calc-cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.calc-restart { margin-top: 8px; }

/* ============================================
   GALLERY
   ============================================ */
.gallery-section { padding: 80px 0; background: var(--bg-primary); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.gallery-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    height: 280px;
    cursor: pointer;
}
.gallery-image { width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform 0.5s ease; }
.gallery-card:hover .gallery-image { transform: scale(1.1); }

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 24px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}
.gallery-card:hover .gallery-overlay { transform: translateY(0); opacity: 1; }
.gallery-title { font-size: 1.1rem; color: var(--text-primary); margin-bottom: 4px; }
.gallery-desc { font-size: 0.85rem; color: var(--text-secondary); }

/* ============================================
   SHIPPING
   ============================================ */
.shipping-section { padding: 80px 0; background: var(--bg-secondary); }

.shipping-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 50px; }
.shipping-stat {
    text-align: center;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 32px 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
}
.shipping-stat:hover { transform: translateY(-4px); border-color: rgba(245, 158, 11, 0.2); }/* ============================================
   CONTACT (front-page & contact page)
   ============================================ */
.contact { padding: 80px 0; background: var(--bg-primary); }

.contact-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
}
.contact-card:hover { transform: translateY(-4px); border-color: rgba(245, 158, 11, 0.2); }

.contact-card-icon { font-size: 2.5rem; margin-bottom: 16px; }
.contact-card-title { font-size: 1.1rem; color: var(--text-primary); margin-bottom: 8px; font-weight: 700; }
.contact-card-text { font-size: 0.9rem; color: var(--text-secondary); }
.contact-card-note { font-size: 0.85rem; color: var(--accent-gold); margin-top: 8px; }

/* Contact page cards */
.contact-cards-section { padding: 60px 0; }
.contact-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.contact-card-main {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition);
}
.contact-card-main:hover { transform: translateY(-4px); border-color: rgba(245, 158, 11, 0.2); }

/* Contact form */
.contact-form-section { padding: 60px 0; }
.contact-form-wrapper { max-width: 700px; margin: 0 auto; }
.contact-form-header { text-align: center; margin-bottom: 40px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }

/* v2.24.4 — باگ صفحه تسویه/ارسال رفع شد:
   این قانون قبلاً سراسری بود (.form-row) و چون ووکامرس برای «هر فیلد» هم
   کلاس form-row می‌گذارد، لیبل و اینپوت هر فیلد کنار هم می‌افتادند و فرم
   تسویه/ارسال به‌هم می‌ریخت. حالا فقط فرم تماس (جای اصلی مصرفش). */
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.9rem; color: var(--text-secondary); font-weight: 500; }

.form-input, .form-textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
}
.form-input:focus, .form-textarea:focus { border-color: var(--accent-green); outline: none; }
.form-textarea { resize: vertical; min-height: 120px; }

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-story-section { padding: 80px 0; }
.about-story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-story-content p { color: var(--text-secondary); line-height: 1.9; margin-bottom: 16px; }
.story-image { width: 100%; border-radius: 16px; }

.about-stats-section { padding: 80px 0; background: var(--bg-secondary); }
.about-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.about-stat-card {
    text-align: center;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 32px 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.about-stat-card .stat-icon { font-size: 2rem; margin-bottom: 12px; }
.about-stat-card .stat-value { font-size: 2rem; font-weight: 900; color: var(--accent-green); display: block; margin-bottom: 8px; }
.about-stat-card .stat-label { font-size: 0.85rem; color: var(--text-secondary); }

.about-values-section { padding: 80px 0; }
.about-values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.about-value-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
}
.about-value-card:hover { transform: translateY(-4px); border-color: rgba(245, 158, 11, 0.2); }
.about-value-card .value-icon { font-size: 2.5rem; margin-bottom: 16px; }
.about-value-card .value-title { font-size: 1.1rem; color: var(--text-primary); margin-bottom: 8px; }
.about-value-card .value-desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.8; }

.about-cta-section { padding: 80px 0; background: var(--bg-secondary); }
.about-cta-content { text-align: center; max-width: 700px; margin: 0 auto; }
.about-cta-content h2 { font-size: 2rem; margin-bottom: 16px; }
.about-cta-content p { color: var(--text-secondary); margin-bottom: 32px; }
.about-cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================
   SINGLE PRODUCT — Desktop (premium e-commerce design)
   ============================================ */
.single-product-page { padding-bottom: 60px; }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 24px 0 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-secondary); transition: color 0.3s ease; }
.breadcrumb a:hover { color: var(--accent-green); }
.breadcrumb-sep { color: var(--text-muted); }
.breadcrumb-current { color: var(--text-primary); font-weight: 600; }

/* ====== Gallery ====== */

.thumb-item.active { border-color: var(--accent-green); box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25); }

/* ====== Product Info Card ====== */

.stock-in, .stock-out {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
}
.stock-out { color: #f87171; background: rgba(244, 63, 94, 0.12); }

.qty-btn {
    width: 48px; height: 56px;
    background: none; border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}
.qty-btn:hover { background: rgba(245, 158, 11, 0.14); color: var(--accent-green); }
.qty-input {
    width: 56px; height: 56px;
    text-align: center;
    border: none;
    background: none;
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 700;
    font-family: 'Vazirmatn', sans-serif;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}
.qty-input:focus { outline: none; }

/* ====== Product Tabs — card-style content ====== */
.product-tab-btn.active { color: var(--accent-green); }
.product-tab-btn.active::after { transform: scaleX(1); }

.product-tab-content.active { display: block; }

/* Related Products — uses the unified .product-card design (v1.9).
   The grid here just handles the responsive layout. */
.related-products-section { padding: 50px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
@media (max-width: 1024px) {}
@media (max-width: 768px) {
    .related-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 480px) {
    .related-grid { grid-template-columns: 1fr; }
}.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }/* Hide floating buttons when mobile menu is open (prevents them from poking through overlay) */
body.menu-open .whatsapp-btn,
body.menu-open .back-to-top,
body.menu-open .whatsapp-sticky-btn {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 1001;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background 0.3s ease, bottom 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--accent-green); border-color: var(--accent-green); }/* ============================================
   SCROLL REVEAL
   ============================================ */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero .container { flex-direction: column; }
    .hero-title { font-size: 2.5rem; }
    .brands-grid { grid-template-columns: repeat(2, 1fr); }
    .about-story-grid { grid-template-columns: 1fr; }
    .about-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .about-values-grid { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .product-detail-grid { grid-template-columns: 1fr; gap: 40px; }
    .nav-link { padding: 8px 12px; font-size: 0.9rem; }
    .nav-cta { padding: 8px 16px !important; font-size: 0.85rem; }
}

@media (max-width: 900px) {
    /* ====== Mobile drawer (right-side slide-in) ====== */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        max-width: 86vw;
        height: 100vh;
        background: var(--bg-secondary);
        z-index: 1100;
        transition: right 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 18px 18px 22px;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.7);
        overflow-y: auto;
    }
    .main-nav.active { right: 0; }

    /* Show in-drawer elements only on mobile */
    .main-nav .drawer-head { display: flex; }
    .main-nav .drawer-footer { display: flex; }
    .main-nav .nav-link-cart { display: flex; }

    .main-nav .nav-link {
        display: flex;
        align-items: center;
        padding: 14px 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 1rem;
        width: 100%;
        border-radius: 0;
        text-align: right;
        position: relative;
    }
    /* Small arrow indicator before each nav link on mobile */
    .main-nav .nav-link::before {
        content: '‹';
        margin-left: 12px;
        color: var(--text-muted);
        font-size: 1.3rem;
        line-height: 1;
        transition: color 0.2s ease, transform 0.2s ease;
        flex-shrink: 0;
    }
    .main-nav .nav-link:hover::before,
    .main-nav .nav-link.active::before {
        color: var(--accent-green);
        transform: translateX(-3px);
    }
    .main-nav .nav-link.active {
        background: rgba(245, 158, 11, 0.08);
        color: var(--accent-green);
    }
    .main-nav .nav-link.active::after { display: none; }
    .main-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.04);
    }

    /* Cart link inside drawer — keep the arrow / clean row look */
    .main-nav .nav-link-cart::before {
        content: '';
        margin-left: 12px;
    }

    .main-nav .nav-cta {
        margin-top: 14px;
        margin-right: 0;
        width: 100%;
        padding: 14px !important;
        font-size: 0.98rem;
        border-radius: 14px !important;
        justify-content: center;
    }

    .menu-toggle { display: flex; }

    /* Hide bottom-nav when drawer is open so the drawer looks clean */
    body.menu-open .bottom-nav {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(100%);
        transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.3s ease;
    }

    /* General */
    .hero-title { font-size: 2rem; }
    .hero-stats { gap: 20px; }
    .brands-grid { grid-template-columns: 1fr; }    .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-cards-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .shipping-stats { grid-template-columns: repeat(2, 1fr); }
    .calc-crops { grid-template-columns: repeat(3, 1fr); }
    .calc-toggle-group { flex-direction: column; }
    .calc-result { padding: 24px; }
    .page-title { font-size: 2rem; }
    .contact-form .form-row { grid-template-columns: 1fr; }
    .product-detail-title { font-size: 1.5rem; }
    .product-detail-price { font-size: 1.5rem; }
    .product-detail-cart { flex-direction: column; }
    .product-detail-contact { flex-direction: column; }
    .related-grid { grid-template-columns: 1fr; }

    /* Bottom Nav */
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(14, 10, 7, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 999;
        justify-content: space-around;
        padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.3s ease;
    }
    /* Hide bottom-nav on cart & checkout pages — those pages have their own
       sticky CTAs at the bottom that would overlap and conflict. */
    body.woocommerce-cart .bottom-nav,
    body.woocommerce-checkout .bottom-nav {
        display: none !important;
    }
    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        color: var(--text-muted);
        font-size: 0.7rem;
        text-decoration: none;
        padding: 4px 8px;
        transition: color 0.3s ease;
        position: relative;
    }
    .bottom-nav-item.active { color: var(--accent-green); }
    .bottom-nav-icon { font-size: 1.3rem; line-height: 1; }
    .bottom-nav-label { font-size: 0.65rem; }

    /* Cart badge in bottom-nav */
    .bottom-nav-cart-icon {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .bottom-nav-cart-badge {
        position: absolute;
        top: -4px;
        left: -6px;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        border-radius: 8px;
        background: var(--accent-green);
        color: #0e0a07;
        font-size: 0.6rem;
        font-weight: 800;
        display: none;
        align-items: center;
        justify-content: center;
        line-height: 1;
        box-shadow: 0 2px 6px rgba(245, 158, 11, 0.5);
    }
    .bottom-nav-cart-badge.has-items { display: flex; }

    body { padding-bottom: 70px; }    .back-to-top {
        bottom: 156px;
        left: 22px;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.7rem; }    .contact-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .calc-crops { grid-template-columns: repeat(2, 1fr); }
    .calc-step { flex-direction: column; gap: 12px; padding: 20px; }
    .about-stats-grid { grid-template-columns: 1fr; }
    .about-values-grid { grid-template-columns: 1fr; }
    .product-thumbnails { overflow-x: auto; padding-bottom: 8px; }    .page-title { font-size: 1.6rem; }
    .header-container { padding: 0 16px; }
    .logo-title { font-size: 1.1rem; }
    .logo-sub { font-size: 0.65rem; }
    .logo-icon { width: 36px; height: 36px; font-size: 1.2rem; }
}

/* ============================================
   SHOP / ARCHIVE PRODUCT PAGE
   ============================================ */
.shop-page { min-height: 100vh; }

.shop-breadcrumb {
    padding: 16px 0 0;
}
.shop-breadcrumb .woocommerce-breadcrumb,
.shop-breadcrumb nav {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.shop-breadcrumb a {
    color: var(--accent-green);
    transition: color 0.2s ease;
}
.shop-breadcrumb a:hover { color: var(--text-primary); }
.shop-breadcrumb .breadcrumb-sep {
    margin: 0 8px;
    color: var(--text-muted);
}

.shop-notices { padding: 16px 0 0; }
.shop-notices .woocommerce-message,
.shop-notices .woocommerce-info {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--accent-green);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

/* v2.24.22 — ناتیس‌های ووکامرس روی قالب محصول (خطای افزودن به سبد و…) — هم‌خانوادهٔ shop-notices */
.spapp-notices { padding: 14px 0 0; }
.spapp-notices .woocommerce-message,
.spapp-notices .woocommerce-info {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--accent-green);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    list-style: none;
}
.spapp-notices .woocommerce-error {
    background: rgba(244, 63, 94, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: #be123c;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    list-style: none;
}
.spapp-notices li::before { display: none; }

.shop-section { padding: 30px 0 80px; }

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.shop-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-chip {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.filter-chip:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
}

.filter-chip.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.shop-result-count {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ============================================
   SHOP CARD — v2.1 PREMIUM REDESIGN
   Mirrors the .product-card v2.0 design so cards
   look consistent across home swiper, related
   products, and the shop page grid.
   ============================================ */
.shop-card {
    background:
        linear-gradient(180deg, rgba(245, 158, 11, 0.04) 0%, transparent 35%),
        linear-gradient(180deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.45s ease,
                border-color 0.45s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
}

/* Top accent ribbon — same as .product-card */
.shop-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--accent-green) 30%,
        var(--accent-emerald) 50%,
        var(--accent-green) 70%,
        transparent 100%);
    background-size: 200% 100%;
    background-position: 100% 0;
    z-index: 4;
    transition: background-position 0.8s ease;
    opacity: 0.55;
}

/* Hover spotlight that follows the cursor */
.shop-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%),
                rgba(245, 158, 11, 0.16), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.shop-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(245, 158, 11, 0.18),
        0 0 36px rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.32);
}
.shop-card:hover::before {
    background-position: 0 0;
    opacity: 1;
}
.shop-card:hover::after {
    opacity: 1;
}

.shop-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

/* v2.24.17 — wrapper تصویر کارت: زمینهٔ موقعیت‌دهی دکمهٔ Quick View که
   اکنون خارج از <a> است (تودرتویی interactive ممنوع) — عیناً همان
   جایی‌گیری قبلی روی تصویر را نگه می‌دارد */
.shop-card-media {
    position: relative;
    z-index: 1;
}

/* v2.24.17 — حالت ناموجود روی CTA کارت آرشیو */
.shop-card-btn-primary.disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.shop-card-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 20%, rgba(245, 158, 11, 0.12), transparent 55%),
        radial-gradient(circle at 75% 80%, rgba(236, 72, 153, 0.06), transparent 50%),
        linear-gradient(180deg, var(--bg-secondary), var(--bg-card));
}

/* Dotted texture overlay on the image area */
.shop-card-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 16px 16px;
    pointer-events: none;
    opacity: 0.6;
    z-index: 0;
}

.shop-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 26px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35));
    position: relative;
    z-index: 1;
}

.shop-card:hover .shop-card-image img {
    transform: scale(1.1) rotate(-2deg);
    filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 20px rgba(245, 158, 11, 0.18));
}

.shop-card-brand {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(14, 10, 7, 0.88);
    color: var(--accent-green);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.74rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(245, 158, 11, 0.35);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    z-index: 3;
    letter-spacing: 0.3px;
}

.shop-card-sale {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, #fb923c, #f43f5e);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(244, 63, 94, 0.4), inset 0 1px 0 rgba(255,255,255,0.25);
    z-index: 3;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    animation: salePulse 2.2s ease-in-out infinite;
}

.shop-card-out {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15, 15, 15, 0.9);
    color: #f87171;
    padding: 12px 26px;
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 800;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(244, 63, 94, 0.45);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 4;
    pointer-events: none;
    letter-spacing: 0.5px;
}

.shop-card-view {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translate(-50%, 12px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.98), rgba(101, 163, 13, 0.98));
    color: #0e0a07;
    padding: 9px 22px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35), inset 0 1px 0 rgba(255,255,255,0.25);
    z-index: 3;
    white-space: nowrap;
}

.shop-card:hover .shop-card-view {
    opacity: 1;
    transform: translate(-50%, 0);
}

.shop-card-body {
    padding: 20px 22px 14px;
}

.shop-card-title {
    font-size: 1.04rem;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
    transition: color 0.25s ease;
}

.shop-card:hover .shop-card-title { color: var(--accent-green); }

.shop-card-price {
    color: var(--accent-green);
    font-size: 1.26rem;
    font-weight: 800;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    text-shadow: 0 0 24px rgba(245, 158, 11, 0.2);
}

.shop-card-price del {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-left: 0;
    font-weight: 400;
    text-decoration: line-through;
    order: 2;
}

.shop-card-price ins { text-decoration: none; order: 1; }

.shop-card-actions {
    padding: 10px 22px 22px;
    display: flex;
    gap: 8px;
    margin-top: auto;
    border-top: 1px dashed rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 1;
}

.shop-card-btn-primary {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--accent-green), #d97706);
    color: #0e0a07;
    border-radius: 12px;
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.3), inset 0 1px 0 rgba(255,255,255,0.22);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.shop-card-btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}
.shop-card-btn-primary:hover::after { left: 100%; }

.shop-card-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(245, 158, 11, 0.45);
    color: #0e0a07;
    filter: brightness(1.08);
}

.shop-card-btn-wa {
    flex: 0 0 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 211, 102, 0.06);
    color: #25d366;
    border: 1px solid rgba(37, 211, 102, 0.32);
    border-radius: 12px;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.shop-card-btn-wa:hover {
    background: rgba(37, 211, 102, 0.16);
    border-color: #25d366;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.25);
}

.shop-pagination {
    margin-top: 50px;
    text-align: center;
    display: flex;
    justify-content: center;
}

.shop-pagination .page-numbers {
    display: inline-flex;
    gap: 6px;
    list-style: none;
}

.shop-pagination .page-numbers li { display: inline-block; }

.shop-pagination a,
.shop-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.shop-pagination a:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: rgba(245, 158, 11, 0.3);
}

.shop-pagination .current {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.shop-pagination .dots {
    background: transparent;
    border: none;
}

.shop-empty {
    text-align: center;
    padding: 80px 20px;
}

.shop-empty-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.shop-empty h2 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 1.8rem;
}

.shop-empty p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Help CTA section */
.shop-help {
    padding: 60px 0 80px;
    background: var(--bg-secondary);
}

.shop-help-card {
    background: var(--bg-card);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: var(--radius-xl);
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.shop-help-icon {
    font-size: 3rem;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-help-content {
    flex: 1;
    min-width: 250px;
}

.shop-help-content h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 800;
}

.shop-help-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.shop-help-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

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

@media (max-width: 768px) {
    .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .shop-toolbar { flex-direction: column; align-items: flex-start; }
    .shop-help-card { flex-direction: column; text-align: center; padding: 30px 20px; }
    .shop-help-icon { margin: 0 auto; }
}

@media (max-width: 480px) {}

/* ============================================
   SINGLE PRODUCT — PREMIUM MOBILE STYLING v2
   More refined typography, gradient accents,
   elegant cards, beautiful add-to-cart area.
   ============================================ */

@media (max-width: 768px) {
    /* ---- Breadcrumb ---- */
    .single-product-page .breadcrumb {
        padding: 14px 0 14px;
        font-size: 0.78rem;
        gap: 6px;
    }
    .single-product-page .breadcrumb-sep { margin: 0 2px; color: var(--text-muted); }
    .single-product-page .breadcrumb a { font-size: 0.78rem; color: var(--text-secondary); }
    .single-product-page .breadcrumb-current { color: var(--accent-green); font-weight: 600; }

    /* ---- Section spacing ---- */
    .single-product-page .product-detail-section { padding: 0 0 28px; }
    .single-product-page .product-detail-grid { gap: 24px; }
    .single-product-page .product-tabs-section { padding: 4px 0 32px; }
    .single-product-page .related-products-section { padding: 36px 0 80px; }

    /* ---- Gallery — elevated main image with subtle accent ring ---- */
    .single-product-page .product-gallery { gap: 12px; }
    .single-product-page .product-main-image {
        aspect-ratio: 1 / 1;
        border-radius: 18px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(245, 158, 11, 0.18);
        position: relative;
    }
    .single-product-page .product-main-image::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 18px;
        pointer-events: none;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    }
    .single-product-page .product-main-image img {
        object-fit: contain;
        padding: 18px;
    }
    .single-product-page .product-thumbnails {
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .single-product-page .product-thumbnails::-webkit-scrollbar { display: none; }
    .single-product-page .thumb-item {
        width: 64px;
        height: 64px;
        border-radius: 12px;
        border-width: 2px;
    }
    .single-product-page .thumb-item.active {
        border-color: var(--accent-green);
        box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
    }

    /* ---- Product info card — premium look with gradient top accent ---- */
    .single-product-page .product-detail-info {
        gap: 18px;
        background: linear-gradient(180deg, rgba(245, 158, 11, 0.04) 0%, var(--bg-card) 30%);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 22px;
        padding: 24px 20px;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
        position: relative;
        overflow: hidden;
    }
    .single-product-page .product-detail-info::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--accent-green), var(--accent-gold, #f59e0b), var(--accent-green));
        opacity: 0.7;
    }

    /* Brand badge — pill with subtle gradient */
    .single-product-page .product-detail-brand {
        padding: 6px 16px;
        font-size: 0.78rem;
        border-radius: 20px;
        background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0.08));
        border: 1px solid rgba(245, 158, 11, 0.25);
        font-weight: 700;
        letter-spacing: 0.2px;
    }

    /* Title — big, bold, tight */
    .single-product-page .product-detail-title {
        font-size: 1.42rem;
        line-height: 1.45;
        font-weight: 800;
        letter-spacing: -0.4px;
        margin: 0;
        color: var(--text-primary);
    }

    /* Excerpt — readable, soft */
    .single-product-page .product-detail-excerpt {
        font-size: 0.93rem;
        line-height: 1.95;
        color: #c8c8c8;
        font-weight: 400;
    }

    /* ---- Price + stock row — premium pricing block ---- */
    .single-product-page .product-detail-price-row {
        padding: 14px 16px;
        gap: 10px;
        border-radius: 14px;
    }
    .single-product-page .product-detail-price-row .product-detail-price {
        font-size: 1.55rem;
        line-height: 1;
        font-weight: 900;
        color: var(--accent-green);
    }
    .single-product-page .product-detail-price del {
        font-size: 1rem;
        margin-right: 0;
        opacity: 0.55;
        color: var(--text-muted);
        font-weight: 500;
    }
    .single-product-page .product-detail-price ins {
        font-weight: 900;
        text-decoration: none;
    }

    /* Stock badge */
    .single-product-page .product-detail-stock { font-size: 0.88rem; }
    .single-product-page .stock-in,
    .single-product-page .stock-out {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 12px;
        border-radius: 10px;
        font-size: 0.78rem;
        font-weight: 600;
    }
    .single-product-page .stock-in {
        background: rgba(236, 72, 153, 0.14);
        color: #34d399;
    }
    .single-product-page .stock-out {
        background: rgba(244, 63, 94, 0.14);
        color: #f87171;
    }

    /* ---- Cart row — premium quantity + add-to-cart (v1.8 unified heights) ---- */
    .single-product-page .product-detail-cart {
        flex-direction: row;
        align-items: stretch;
        gap: 10px;
    }
    .single-product-page .quantity-selector {
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.12);
    }
    .single-product-page .qty-btn {
        width: 50px;
        height: 56px;
        transition: background 0.2s ease, color 0.2s ease;
    }
    .single-product-page .qty-btn:hover {
        background: rgba(245, 158, 11, 0.16);
        color: var(--accent-green);
    }
    .single-product-page .qty-input {
        width: 58px;
        height: 56px;
        font-size: 1.15rem;
        font-weight: 700;
    }
    .single-product-page .product-add-btn {
        flex: 1;
        min-width: 0;
        height: 56px;
        padding: 0 18px !important;
        font-size: 0.95rem !important;
        font-weight: 800;
        border-radius: 14px !important;
    }
    .single-product-page .product-add-btn:active {
        transform: translateY(1px);
        box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
    }

    /* ---- Contact buttons — outline style (v1.8 uses .btn-contact) ---- */
    .single-product-page .product-detail-contact {
        flex-direction: row;
        gap: 8px;
    }
    .single-product-page .btn-contact {
        flex: 1;
        min-width: 0;
        height: 50px;
        padding: 0 12px !important;
        font-size: 0.86rem;
        font-weight: 600;
        border-radius: 12px !important;
    }
    .single-product-page .btn-contact:active {
        background: rgba(245, 158, 11, 0.1);
        border-color: rgba(245, 158, 11, 0.3);
    }

    /* ---- Buy now (mobile) ---- */
    .single-product-page .product-buy-now-btn {
        padding: 14px 18px !important;
        font-size: 0.92rem;
        border-radius: 14px !important;
    }

    .single-product-page .product-trust-badges {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .single-product-page .trust-badge {
        padding: 10px 11px;
        gap: 8px;
        border-radius: 11px;
    }
    .single-product-page .trust-badge-icon {
        font-size: 1.15rem;
        width: 32px;
        height: 32px;
        border-radius: 9px;
    }
    .single-product-page .trust-badge-text strong { font-size: 0.78rem; }
    .single-product-page .trust-badge-text span { font-size: 0.7rem; }

    /* Meta top row */
    .single-product-page .product-detail-meta-top { gap: 8px; }
    .single-product-page .product-detail-sku { font-size: 0.75rem; }

    /* ---- Tabs — premium pill style ---- */
    .single-product-page .product-tab-btns {
        gap: 6px;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        margin: 0 -4px 22px;
        padding: 4px;
    }
    .single-product-page .product-tab-btns::-webkit-scrollbar { display: none; }
    .single-product-page .product-tab-btn {
        padding: 11px 20px;
        font-size: 0.92rem;
        font-weight: 700;
        flex-shrink: 0;
        border-radius: 12px;
        transition: background 0.25s ease, color 0.25s ease;
    }
    .single-product-page .product-tab-btn.active {
        background: rgba(245, 158, 11, 0.14);
        color: var(--accent-green);
    }
    .single-product-page .product-tab-btn::after { display: none; }

    /* Tab content card */
    .single-product-page .product-tab-content {
        font-size: 0.93rem;
        line-height: 2.05;
        color: #d0d0d0;
        background: var(--bg-card);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 16px;
        padding: 20px 18px;
    }
    .single-product-page .product-tab-content h2 {
        font-size: 1.22rem;
        margin: 4px 0 12px;
        color: var(--text-primary);
        line-height: 1.45;
        font-weight: 800;
        padding-right: 12px;
        border-right: 3px solid var(--accent-green);
    }
    .single-product-page .product-tab-content h3 {
        font-size: 1.08rem;
        margin: 18px 0 8px;
        color: var(--text-primary);
        line-height: 1.45;
        font-weight: 700;
    }
    .single-product-page .product-tab-content p {
        margin-bottom: 14px;
        color: #c8c8c8;
    }
    .single-product-page .product-tab-content ul,
    .single-product-page .product-tab-content ol {
        padding-right: 22px;
        margin: 0 0 14px;
    }
    .single-product-page .product-tab-content li {
        margin-bottom: 8px;
        line-height: 1.9;
        color: #c8c8c8;
    }
    .single-product-page .product-tab-content strong {
        color: var(--text-primary);
        font-weight: 700;
    }

    /* Specs table — premium stacked cards */
    .single-product-page .specs-table {
        border-radius: 14px;
        overflow: hidden;
        background: rgba(0, 0, 0, 0.15);
    }
    .single-product-page .specs-table th,
    .single-product-page .specs-table td {
        padding: 10px 16px;
        font-size: 0.9rem;
        display: block;
        width: 100%;
        text-align: right;
    }
    .single-product-page .specs-table th {
        background: transparent;
        color: var(--accent-green);
        font-weight: 700;
        padding-bottom: 2px;
        border-bottom: none;
        font-size: 0.8rem;
        text-transform: none;
        letter-spacing: 0;
    }
    .single-product-page .specs-table td {
        color: var(--text-primary);
        padding-top: 2px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        font-weight: 500;
    }
    .single-product-page .specs-table tr {
        display: block;
        padding: 10px 4px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .single-product-page .specs-table tr:last-child { border-bottom: none; }

    /* ---- Related products — premium 2-col cards ---- */
    .single-product-page .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .single-product-page .related-card {
        border-radius: 16px;
        overflow: hidden;
    }
    .single-product-page .related-card-image {
        height: 140px;
        background: var(--bg-card);
    }
    .single-product-page .related-card-body {
        padding: 14px;
    }
    .single-product-page .related-card-body h3 {
        font-size: 0.9rem;
        line-height: 1.45;
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 40px;
        font-weight: 700;
    }
    .single-product-page .related-price {
        font-size: 0.98rem;
        font-weight: 800;
    }

    /* ---- Section header adjustments ---- */
    .single-product-page .section-header {
        margin-bottom: 22px;
        text-align: right;
    }
    .single-product-page .section-title {
        font-size: 1.45rem;
        font-weight: 800;
        position: relative;
        padding-right: 14px;
    }
    .single-product-page .section-title::before {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 22px;
        background: linear-gradient(180deg, var(--accent-green), #d97706);
        border-radius: 4px;
    }
}

/* Even smaller screens (≤ 380px) — extra tightening */
@media (max-width: 380px) {
    .single-product-page .product-detail-title { font-size: 1.25rem; }
    .single-product-page .product-detail-price { font-size: 1.45rem; }
    .single-product-page .product-detail-info { padding: 20px 16px; }
    .single-product-page .btn-contact { font-size: 0.78rem; }
    .single-product-page .qty-btn { width: 44px; height: 52px; }
    .single-product-page .qty-input { width: 48px; height: 52px; }
    .single-product-page .related-grid { gap: 10px; }
    .single-product-page .product-add-btn { font-size: 0.88rem !important; }
    .single-product-page .product-add-btn-text { font-size: 0.88rem; }
}

/* ============================================
   STICKY MOBILE ADD-TO-CART BAR — premium look
   ============================================ */
.sticky-add-to-cart {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(15, 15, 15, 0.96), rgba(8, 8, 8, 0.98));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(245, 158, 11, 0.25);
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.45);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

.sticky-add-to-cart.visible {
    transform: translateY(0);
}

.sticky-atc-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.sticky-atc-price {
    color: var(--accent-green);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1;
}
.sticky-atc-price del {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 400;
    margin-left: 6px;
}
.sticky-atc-price ins { text-decoration: none; }

.sticky-atc-stock {
    color: var(--text-secondary);
    font-size: 0.72rem;
}

.sticky-atc-actions {
    flex-shrink: 0;
}

.sticky-atc-btn {
    padding: 13px 26px !important;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 14px !important;
    background: linear-gradient(135deg, var(--accent-green), #d97706) !important;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
}

/* Hide sticky bar on desktop */
@media (min-width: 769px) {
    .sticky-add-to-cart { display: none !important; }
}

/* On mobile, add padding to body so content isn't covered by sticky bar */
@media (max-width: 768px) {}

/* ============================================
   MOBILE POLISH — About & Contact pages
   Refined hero, premium cards, better form.
   ============================================ */
@media (max-width: 768px) {
    /* Page hero — tighter, badge-style title */
    .page-hero {
        padding: 28px 0 36px;
        background: linear-gradient(180deg, var(--bg-secondary), var(--bg-primary));
        text-align: right;
        position: relative;
        overflow: hidden;
    }
    .page-hero::before {
        content: '';
        position: absolute;
        top: -60px;
        left: -40px;
        width: 200px;
        height: 200px;
        background: radial-gradient(circle, rgba(245, 158, 11, 0.12), transparent 70%);
        pointer-events: none;
    }
    .page-hero-content { position: relative; z-index: 1; }
    .page-badge {
        padding: 5px 14px;
        font-size: 0.75rem;
        border-radius: 16px;
        margin-bottom: 12px;
        background: rgba(245, 158, 11, 0.14);
        border: 1px solid rgba(245, 158, 11, 0.25);
        font-weight: 700;
    }
    .page-title {
        font-size: 1.7rem;
        font-weight: 800;
        line-height: 1.4;
        margin-bottom: 10px;
        letter-spacing: -0.3px;
    }
    .page-desc {
        font-size: 0.93rem;
        line-height: 1.85;
        margin: 0;
        max-width: 100%;
    }

    /* About story section */
    .about-story-section { padding: 44px 0; }
    .about-story-grid { gap: 28px; }
    .about-story-text .section-title {
        font-size: 1.4rem;
        font-weight: 800;
        margin-bottom: 6px;
        position: relative;
        padding-right: 14px;
    }
    .about-story-text .section-title::before {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 22px;
        background: linear-gradient(180deg, var(--accent-green), #d97706);
        border-radius: 4px;
    }
    .about-story-text .section-subtitle {
        font-size: 0.88rem;
        color: var(--text-muted);
        margin-bottom: 18px;
    }
    .about-story-content p {
        font-size: 0.92rem;
        line-height: 1.95;
        margin-bottom: 14px;
    }    .story-image { border-radius: 0; }

    /* About stats — premium 2x2 cards */
    .about-stats-section { padding: 44px 0; }
    .about-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .about-stat-card {
        padding: 22px 16px;
        border-radius: 16px;
        background: linear-gradient(180deg, rgba(245, 158, 11, 0.05), var(--bg-card) 50%);
        border: 1px solid rgba(255, 255, 255, 0.06);
        position: relative;
        overflow: hidden;
    }
    .about-stat-card::before {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0;
        height: 2px;
        background: linear-gradient(90deg, var(--accent-green), transparent);
    }
    .about-stat-card .stat-icon { font-size: 1.6rem; margin-bottom: 8px; }
    .about-stat-card .stat-value {
        font-size: 1.5rem;
        margin-bottom: 4px;
        letter-spacing: -0.5px;
    }
    .about-stat-card .stat-label {
        font-size: 0.78rem;
        line-height: 1.55;
    }

    /* About values — premium cards */
    .about-values-section { padding: 44px 0; }
    .about-values-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .about-value-card {
        padding: 22px 20px;
        border-radius: 16px;
        text-align: right;
        display: flex;
        gap: 16px;
        align-items: flex-start;
    }
    .about-value-card .value-icon {
        font-size: 1.8rem;
        margin-bottom: 0;
        flex-shrink: 0;
        width: 52px;
        height: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(245, 158, 11, 0.1);
        border-radius: 14px;
    }
    .about-value-card .value-title {
        font-size: 1rem;
        margin-bottom: 4px;
        font-weight: 700;
    }
    .about-value-card .value-desc {
        font-size: 0.86rem;
        line-height: 1.8;
    }

    /* About CTA */
    .about-cta-section { padding: 44px 0; }
    .about-cta-content h2 { font-size: 1.45rem; line-height: 1.5; }
    .about-cta-content p {
        font-size: 0.92rem;
        line-height: 1.85;
        margin-bottom: 24px;
    }
    .about-cta-buttons { gap: 10px; }
    .about-cta-buttons .btn { width: 100%; }

    /* Contact cards — premium stacked */
    .contact-cards-section { padding: 36px 0; }
    .contact-cards-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .contact-card-main {
        padding: 24px 20px;
        border-radius: 18px;
        text-align: right;
        gap: 10px;
        position: relative;
        overflow: hidden;
        background: linear-gradient(135deg, rgba(245, 158, 11, 0.04), var(--bg-card) 50%);
    }
    .contact-card-main::before {
        content: '';
        position: absolute;
        top: 0; right: 0;
        width: 80px; height: 80px;
        background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.15), transparent 70%);
        pointer-events: none;
    }
    .contact-card-icon {
        font-size: 1.8rem;
        width: 54px;
        height: 54px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(245, 158, 11, 0.12);
        border-radius: 14px;
        margin-bottom: 4px;
    }
    .contact-card-title {
        font-size: 1.05rem;
        font-weight: 700;
    }
    .contact-card-text {
        font-size: 0.9rem;
        line-height: 1.7;
    }
    .contact-card-text strong { color: var(--text-primary); font-weight: 700; }
    .contact-card-note {
        font-size: 0.8rem;
        margin-top: 4px;
    }

    /* Contact form — premium inputs */
    .contact-form-section { padding: 36px 0 60px; }
    .contact-form-wrapper {
        background: var(--bg-card);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 20px;
        padding: 24px 18px;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
    }
    .contact-form-header { margin-bottom: 22px; }
    .contact-form-header .section-title {
        font-size: 1.3rem;
        font-weight: 800;
        position: relative;
        padding-right: 14px;
        display: inline-block;
    }
    .contact-form-header .section-title::before {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 22px;
        background: linear-gradient(180deg, var(--accent-green), #d97706);
        border-radius: 4px;
    }
    .contact-form-header .section-subtitle {
        font-size: 0.88rem;
        color: var(--text-secondary);
        margin-top: 8px;
    }
    .contact-form { gap: 16px; }
    .form-group label {
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--text-primary);
    }
    .form-input, .form-textarea {
        padding: 13px 14px;
        font-size: 0.92rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: border-color 0.2s ease, background 0.2s ease;
    }
    .form-input:focus, .form-textarea:focus {
        border-color: var(--accent-green);
        background: rgba(245, 158, 11, 0.05);
    }
    .contact-form .btn-primary {
        background: linear-gradient(135deg, var(--accent-green), #d97706) !important;
        border-radius: 14px !important;
        padding: 14px !important;
        font-weight: 700;
        box-shadow: 0 8px 22px rgba(245, 158, 11, 0.35);
    }
}

/* ============================================
   v1.8.0 — NEW SECTIONS
   ============================================ */

/* ============================================
   HOMEPAGE TRUST SECTION
   ============================================ */
.trust-section {
    padding: 90px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.trust-section::before {
    content: '';
    position: absolute;
    top: -120px; left: -120px;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08), transparent 70%);
    pointer-events: none;
}
.trust-section::after {
    content: '';
    position: absolute;
    bottom: -120px; right: -120px;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.08), transparent 70%);
    pointer-events: none;
}

.trust-section .section-header { position: relative; z-index: 1; margin-bottom: 50px; }

/* Stats row */
.trust-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.trust-stat {
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.05) 0%, var(--bg-card) 50%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.trust-stat::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-green), transparent);
}

.trust-stat:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
    border-color: rgba(245, 158, 11, 0.2);
}/* Trust feature cards */
.trust-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.trust-feature {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 28px 24px;
    text-align: right;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.trust-feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
    border-color: rgba(245, 158, 11, 0.2);
}/* Testimonials */
.trust-testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: relative;
    z-index: 1;
}

.trust-testimonial {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 28px 26px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.trust-testimonial::before {
    content: '"';
    position: absolute;
    top: 12px; left: 22px;
    font-size: 5rem;
    color: rgba(245, 158, 11, 0.1);
    font-family: serif;
    line-height: 1;
    pointer-events: none;
}

.trust-testimonial:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(245, 158, 11, 0.2);
}/* ============================================
   PRODUCT DETAIL PAGE — new trust strip + card
   ============================================ */

/* ============================================
   PRODUCT DESCRIPTION SUMMARY TOGGLE
   ============================================ */

/* ============================================
   SHOP PAGE — trust strip + new card buttons
   ============================================ */
.shop-trust-strip {
    padding: 50px 0;
    background: var(--bg-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.shop-trust-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.shop-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.shop-trust-item:hover {
    border-color: rgba(245, 158, 11, 0.25);
    transform: translateY(-3px);
}

.shop-trust-item svg {
    color: var(--accent-green);
    flex-shrink: 0;
    width: 28px;
    height: 28px;
}

.shop-trust-item strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.shop-trust-item span {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

/* ============================================
   RESPONSIVE — v1.8 new sections
   ============================================ */

@media (max-width: 1024px) {
    .trust-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .trust-features { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .trust-testimonials { grid-template-columns: 1fr; gap: 16px; }
    .shop-trust-items { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 768px) {
    /* Trust section */
    .trust-section { padding: 60px 0; }
    .trust-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 40px; }
    .trust-stat { padding: 22px 14px; }    .trust-features { grid-template-columns: 1fr; gap: 12px; margin-bottom: 40px; }
    .trust-feature { padding: 22px 20px; }    .trust-testimonials { gap: 12px; }
    .trust-testimonial { padding: 22px 20px; }    /* Description toggle */
    .product-description-wrapper,
    .product-description-wrapper.collapsible { max-height: 220px; }    /* Shop trust strip */
    .shop-trust-strip { padding: 36px 0; }
    .shop-trust-items { grid-template-columns: 1fr; gap: 12px; }
    .shop-trust-item { padding: 16px 18px; }
    .shop-trust-item strong { font-size: 0.92rem; }
    .shop-trust-item span { font-size: 0.78rem; }

    /* Single product add-to-cart on mobile */
    .single-product-page .product-detail-cart {
        flex-direction: row;
        gap: 10px;
    }
    .single-product-page .quantity-selector { border-radius: 14px; }
    .single-product-page .qty-btn { width: 50px; height: 56px; }
    .single-product-page .qty-input { width: 58px; height: 56px; font-size: 1.15rem; }
    .single-product-page .product-add-btn {
        height: 56px;
        min-width: 0;
        padding: 0 18px;
        font-size: 0.95rem;
    }
    .single-product-page .product-buy-now-btn {
        padding: 14px 18px;
        font-size: 0.92rem;
    }
    .single-product-page .product-detail-contact { gap: 8px; }
    .single-product-page .btn-contact {
        min-width: 0;
        height: 46px;
        font-size: 0.85rem;
        padding: 0 12px;
    }

    /* Brand cards on mobile */
    .brand-card { padding: 28px 22px 22px; }
    .brand-cta { font-size: 0.8rem; padding: 9px 18px; }

    /* Shop card buttons on mobile */
    .shop-card-btn-primary { font-size: 0.84rem; padding: 10px 14px; }
    .shop-card-btn-wa { flex: 0 0 42px; }

    /* Unified product card buttons on mobile (home swiper + related) */
    .product-card-btn-primary { font-size: 0.82rem; padding: 10px 12px; }
    .product-card-btn-wa { flex: 0 0 42px; }
    .product-info { padding: 16px 16px 18px; gap: 8px; }
    .product-name { font-size: 0.95rem; min-height: 42px; }
    .product-price { font-size: 1.1rem; }
    .product-card-media .product-image { padding: 16px; }
    /* On mobile, always show the "view" overlay button (no hover on touch) */
    .product-card-quick { opacity: 1; transform: translateY(0); }
    /* Star rating — slightly smaller on mobile */
    .product-rating .stars { font-size: 0.78rem; }
    .product-rating .rating-count { font-size: 0.72rem; }
}

@media (max-width: 480px) {
    .trust-stats { grid-template-columns: 1fr; }
    .single-product-page .product-add-btn { font-size: 0.88rem; padding: 0 14px; }
    .single-product-page .product-add-btn-text { font-size: 0.88rem; }
    .single-product-page .qty-btn { width: 46px; }
    .single-product-page .qty-input { width: 52px; }
    /* Unified product card on very small screens — slimmer padding */
    .product-info { padding: 14px 14px 16px; }
    .product-name { font-size: 0.92rem; min-height: 40px; }
    .product-price { font-size: 1.05rem; }
    .product-card-btn-primary { font-size: 0.78rem; padding: 9px 10px; }
    .product-card-btn-wa { flex: 0 0 38px; }
    /* Single product title smaller on tiny phones */
    .single-product-page .product-detail-title { font-size: 1.4rem; padding-right: 10px; }
}

/* Fix: prevent mobile menu drawer from being affected by single-product body padding */
@media (max-width: 768px) {
    body.single-product { padding-bottom: 80px; }
}

/* ============================================
   SINGLE PRODUCT — v2.0 PREMIUM ADD-ONS
   Gallery ring animation, key-features panel,
   inline badges, USP strip, quality seal.
   ============================================ */

@keyframes ringSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE — v2.0 single-product add-ons
   ============================================ */
@media (max-width: 768px) {    .key-feature { padding: 9px 10px; }    .product-detail-badges { gap: 6px; }
    .prod-badge { font-size: 0.72rem; padding: 5px 10px; }}

@media (max-width: 480px) {
    .product-detail-badges { flex-direction: column; align-items: stretch; }
    .prod-badge { justify-content: center; }
}/* ============================================
   SINGLE PRODUCT — v2.2 PREMIUM REDESIGN
   Major visual polish: hero card, image frame
   with gradient halo, sticky info card, glassy
   CTA buttons, animated specs rows, etc.
   This builds on top of the existing v2.0 styles
   and improves the visual hierarchy.
   ============================================ */

/* Page background — subtle radial gradient to make product card pop */
.single-product-page {
    background:
        radial-gradient(ellipse at top right, rgba(245, 158, 11, 0.05), transparent 55%),
        radial-gradient(ellipse at bottom left, rgba(236, 72, 153, 0.03), transparent 50%),
        var(--bg-primary);
    position: relative;
}
.single-product-page::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 280px;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.06) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}
.single-product-page > * { position: relative; z-index: 1; }

/* Hero breadcrumb — chip-style on dark */
.single-product-page .breadcrumb {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.025), transparent);
    border-right: 3px solid var(--accent-green);
    padding: 14px 18px;
    border-radius: 0 12px 12px 0;
    margin-top: 8px;
}

/* Detail section — bigger breathing room */
.single-product-page .product-detail-section {
    padding: 8px 0 60px;
}

/* Gallery column — wider on desktop for emphasis */
@media (min-width: 1024px) {
    .single-product-page .product-detail-grid {
        grid-template-columns: 1.05fr 1fr;
        gap: 56px;
        align-items: start;
    }
}

/* Main image — premium frame with multi-layer glow */
.single-product-page .product-main-image {
    aspect-ratio: 1;
    border-radius: 28px;
    border: 1px solid rgba(245, 158, 11, 0.12);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    background:
        radial-gradient(circle at 30% 20%, rgba(245, 158, 11, 0.1), transparent 60%),
        radial-gradient(circle at 75% 80%, rgba(236, 72, 153, 0.08), transparent 55%),
        linear-gradient(180deg, var(--bg-secondary), var(--bg-card));
}
.single-product-page .product-main-image img {
    padding: 36px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.single-product-page .product-main-image:hover img {
    transform: scale(1.08) rotate(-1deg);
}

/* Inner corner accents on image */
.single-product-page .product-main-image::after {
    content: '';
    position: absolute;
    top: 14px; left: 14px;
    width: 28px; height: 28px;
    border-top: 2px solid rgba(245, 158, 11, 0.45);
    border-left: 2px solid rgba(245, 158, 11, 0.45);
    border-radius: 6px 0 0 0;
    pointer-events: none;
    z-index: 2;
    opacity: 0.7;
}

/* Thumbnails — premium pill row */
.single-product-page .product-thumbnails {
    gap: 14px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.single-product-page .thumb-item {
    width: 88px;
    height: 88px;
    border-radius: 14px;
    border: 2px solid transparent;
    background: linear-gradient(180deg, var(--bg-card), var(--bg-secondary));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.single-product-page .thumb-item:hover {
    border-color: rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.15);
}
.single-product-page .thumb-item.active {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12), 0 8px 20px rgba(245, 158, 11, 0.2);
}

/* Info card — glassmorphism with stronger presence */
.single-product-page .product-detail-info {
    border-radius: 28px;
    padding: 36px 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(245, 158, 11, 0.05) 0%, transparent 30%),
        linear-gradient(180deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    gap: 24px;
}

/* Top accent ribbon — multi-color gradient */
.single-product-page .product-detail-info::before {
    height: 5px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--accent-green) 20%,
        var(--accent-emerald) 50%,
        #d97706 80%,
        transparent 100%);
    opacity: 1;
    border-radius: 0 0 5px 5px;
}

/* Brand chip — larger, more clickable */
.single-product-page .product-detail-brand {
    padding: 8px 20px;
    font-size: 0.92rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
    border: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.single-product-page .product-detail-brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.25);
}

/* Title — bigger and more elegant */
.single-product-page .product-detail-title {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.3;
    padding-right: 18px;
    border-right: 5px solid var(--accent-green);
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.06), transparent 70%);
    padding-top: 8px;
    padding-bottom: 8px;
    border-radius: 0 8px 8px 0;
}

/* Excerpt — softer card-like styling */
.single-product-page .product-detail-excerpt {
    font-size: 1.02rem;
    line-height: 2;
    color: #c8c8c8;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border-right: 3px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
}

/* Price row — bigger and more prominent */
.single-product-page .product-detail-price-row {
    padding: 22px 26px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.04)),
        var(--bg-card);
    border: 1px solid rgba(245, 158, 11, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.single-product-page .product-detail-price-row .product-detail-price {
    font-size: 2.1rem;
    font-weight: 900;
    text-shadow: 0 2px 20px rgba(245, 158, 11, 0.3);
}
.single-product-page .product-detail-price del {
    font-size: 1.25rem;
    text-decoration: line-through;
    text-decoration-color: rgba(248, 113, 113, 0.6);
    text-decoration-thickness: 2px;
}

/* Add-to-cart button — bigger, glossier */
.single-product-page .product-add-btn {
    height: 62px;
    font-size: 1.05rem;
    border-radius: 16px;
    box-shadow:
        0 12px 28px rgba(245, 158, 11, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -2px 0 rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #a3e635 0%, var(--accent-green) 50%, #d97706 100%);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
}
.single-product-page .product-add-btn:hover {
    transform: translateY(-3px);
    box-shadow:
        0 18px 36px rgba(245, 158, 11, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}

/* WhatsApp buy-now — bigger, more confident */
.single-product-page .product-buy-now-btn {
    height: 56px;
    font-size: 1.02rem;
    border-radius: 16px;
    box-shadow:
        0 12px 28px rgba(37, 211, 102, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Quantity selector — match button height */
.single-product-page .quantity-selector {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.single-product-page .qty-btn,
.single-product-page .qty-input {
    height: 62px;
}
.single-product-page .qty-btn { width: 54px; }
.single-product-page .qty-input { width: 64px; font-size: 1.25rem; }

/* Key features — bigger tiles */
.single-product-page .product-key-features {
    padding: 18px;
    border-radius: 18px;
    gap: 12px;
}
.single-product-page .key-feature {
    padding: 12px 14px;
    border-radius: 14px;
}
.single-product-page .key-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
}
.single-product-page .key-feature-label { font-size: 0.74rem; }
.single-product-page .key-feature-value { font-size: 0.92rem; }

/* Trust strip — premium glassmorphism row */
.single-product-page .product-trust-strip {
    padding: 14px 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.single-product-page .trust-strip-item {
    color: var(--text-secondary);
    font-size: 0.86rem;
}
.single-product-page .trust-strip-item svg {
    color: var(--accent-green);
    flex-shrink: 0;
}

/* Trust card — premium dark card */
.single-product-page .product-trust-card {
    padding: 20px 22px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.05), transparent 60%),
        var(--bg-card);
    border: 1px solid rgba(245, 158, 11, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.single-product-page .product-trust-card-head {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(245, 158, 11, 0.2);
}
.single-product-page .product-trust-card-head strong {
    font-size: 1.02rem;
    color: var(--text-primary);
}
.single-product-page .product-trust-card-head svg {
    color: var(--accent-green);
}
.single-product-page .product-trust-card-list li {
    padding: 6px 0;
    font-size: 0.9rem;
}

/* Tabs — premium pill-style buttons */
.single-product-page .product-tab-btns {
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 24px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.025);
    border-radius: 16px 16px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.single-product-page .product-tab-btn {
    padding: 14px 28px;
    border-radius: 12px;
    transition: background 0.2s ease, color 0.2s ease;
}
.single-product-page .product-tab-btn.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0.06));
    color: var(--accent-green);
}
.single-product-page .product-tab-btn::after { display: none; }

/* Tab content — premium glass card */
.single-product-page .product-tab-content {
    border-radius: 0 16px 16px 16px;
    padding: 32px 32px;
    background:
        linear-gradient(180deg, rgba(245, 158, 11, 0.02), transparent 40%),
        var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}
.single-product-page .product-tab-content h2 {
    font-size: 1.5rem;
    margin-top: 0;
    padding-right: 16px;
    border-right: 5px solid var(--accent-green);
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.06), transparent);
    padding-top: 6px;
    padding-bottom: 6px;
    border-radius: 0 8px 8px 0;
}

/* Specs table — premium zebra with hover */
.single-product-page .specs-table {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.single-product-page .specs-table th {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.04));
    color: var(--accent-green);
    font-weight: 700;
    width: 240px;
    border-left: 3px solid rgba(245, 158, 11, 0.3);
}
.single-product-page .specs-table td {
    font-size: 0.96rem;
    color: #d8d8d8;
}
.single-product-page .specs-table tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.015);
}
.single-product-page .specs-table tr:hover td {
    background: rgba(245, 158, 11, 0.06);
    color: var(--text-primary);
}

/* Related section — premium header */
.single-product-page .related-products-section {
    padding: 60px 0 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background:
        radial-gradient(ellipse at top, rgba(245, 158, 11, 0.04), transparent 50%);
}
.single-product-page .section-header {
    text-align: center;
    margin-bottom: 40px;
}
.single-product-page .section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.single-product-page .section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Mobile single product — keep premium feel */
@media (max-width: 768px) {
    .single-product-page .product-detail-info {
        padding: 24px 20px;
        border-radius: 22px;
    }
    .single-product-page .product-detail-title {
        font-size: 1.55rem;
        padding-right: 12px;
    }
    .single-product-page .product-detail-price-row .product-detail-price {
        font-size: 1.7rem;
    }
    .single-product-page .product-add-btn,
    .single-product-page .qty-btn,
    .single-product-page .qty-input {
        height: 56px;
    }
    .single-product-page .product-add-btn {
        font-size: 0.98rem;
        min-width: 100%;
    }
    .single-product-page .product-detail-cart {
        flex-direction: column;
    }
    .single-product-page .product-tab-content {
        padding: 20px 18px;
    }
    .single-product-page .specs-table th {
        width: 130px;
        padding: 12px 14px;
        font-size: 0.84rem;
    }
    .single-product-page .specs-table td {
        padding: 12px 14px;
        font-size: 0.86rem;
    }
    .single-product-page .section-title {
        font-size: 1.5rem;
    }
}

/* Sticky mobile add-to-cart bar — premium */
.single-product-page .sticky-add-to-cart {
    background: linear-gradient(180deg, rgba(15, 15, 15, 0.98), rgba(14, 10, 7, 0.98));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(245, 158, 11, 0.25);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4);
}

/* ============================================================
   SINGLE PRODUCT V2 — Clean Modern Layout
   Sp-v2 hero + features + trust + modal
   ============================================================ */

/* ---- v2 wrapper reset (override old padding) ---- */
.single-product-page.sp-v2 {
    padding-bottom: 80px;
}
.single-product-page.sp-v2 .breadcrumb {
    padding: 20px 0 18px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.sp-hero {
    padding: 8px 0 40px;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(245, 158, 11, 0.08), transparent 60%),
        radial-gradient(700px 400px at 10% 110%, rgba(251, 146, 60, 0.06), transparent 60%);
    border-bottom: 1px solid rgba(245, 158, 11, 0.08);
    margin-bottom: 60px;
}

.sp-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

/* ---- Gallery ---- */
.sp-gallery {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: calc(var(--header-height, 80px) + 16px);
}

.sp-gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background:
        radial-gradient(circle at 30% 25%, rgba(245, 158, 11, 0.10), transparent 60%),
        linear-gradient(145deg, rgba(20, 24, 18, 0.95), rgba(8, 10, 8, 0.98));
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 24px;
    box-shadow:
        0 30px 60px -25px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.02) inset;
    overflow: hidden;
}

.sp-gallery-main::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: conic-gradient(from 180deg at 50% 50%,
        transparent 0deg,
        rgba(245, 158, 11, 0.18) 80deg,
        transparent 160deg,
        rgba(251, 146, 60, 0.15) 260deg,
        transparent 360deg);
    opacity: 0.6;
    z-index: 0;
    animation: spRingSpin 18s linear infinite;
}

@keyframes spRingSpin {
    to { transform: rotate(360deg); }
}

.sp-main-img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 40px;
    transition: transform 0.6s cubic-bezier(.2, .8, .3, 1);
}

.sp-gallery-main:hover .sp-main-img {
    transform: scale(1.05) rotate(-1deg);
}

/* Discount badge */
.sp-discount-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #fb923c, #f43f5e);
    color: #fff;
    border-radius: 14px;
    box-shadow:
        0 10px 24px -6px rgba(244, 63, 94, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    font-weight: 800;
    line-height: 1;
    text-align: center;
    transform: rotate(-4deg);
    animation: spSalePulse 2.4s ease-in-out infinite;
}

.sp-discount-num {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.sp-discount-label {
    font-size: 0.7rem;
    margin-top: 3px;
    opacity: 0.95;
}

@keyframes spSalePulse {
    0%, 100% { transform: rotate(-4deg) scale(1); }
    50% { transform: rotate(-4deg) scale(1.06); }
}

/* Brand chip */
.sp-brand-chip {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    background: rgba(14, 10, 7, 0.88);
    color: var(--accent-green, #f59e0b);
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid rgba(245, 158, 11, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

/* Stockout overlay */
.sp-stockout-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    background: rgba(15, 15, 15, 0.92);
    color: #f87171;
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 800;
    border: 1px solid rgba(244, 63, 94, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Thumbnails */
.sp-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}
.sp-thumbnails::-webkit-scrollbar { height: 4px; }
.sp-thumbnails::-webkit-scrollbar-thumb { background: rgba(245, 158, 11, 0.3); border-radius: 4px; }

.sp-thumb {
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    background: rgba(20, 24, 18, 0.5);
    transition: all 0.3s ease;
}
.sp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sp-thumb:hover {
    border-color: rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
}
.sp-thumb.active {
    border-color: var(--accent-green, #f59e0b);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.25);
}

/* ============================================
   INFO COLUMN
   ============================================ */
.sp-info {
    padding-top: 4px;
}

.sp-meta-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.sp-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.08);
    color: var(--accent-green, #f59e0b);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(245, 158, 11, 0.25);
    text-decoration: none;
    transition: all 0.3s ease;
}
.sp-brand-link:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.5);
    transform: translateY(-1px);
}
.sp-sku {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted, #888);
    font-size: 0.78rem;
}

.sp-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--text-primary, #fff);
    line-height: 1.25;
    margin: 0 0 14px;
    letter-spacing: -0.5px;
}

.sp-excerpt {
    color: var(--text-secondary, #ccc);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px dashed rgba(245, 158, 11, 0.15);
}

/* Rating + stock row */
.sp-rating-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.sp-stars {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #f59e0b;
    font-size: 1rem;
}
.sp-stars .star { color: rgba(245, 158, 11, 0.25); }
.sp-stars .star.full { color: #f59e0b; }
.sp-stars .star.half {
    background: linear-gradient(90deg, #f59e0b 50%, rgba(245, 158, 11, 0.25) 50%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.sp-rating-count {
    color: var(--text-muted, #888);
    font-size: 0.85rem;
    margin-right: 6px;
}
.sp-stars-empty {
    color: var(--text-muted, #888);
    font-size: 0.85rem;
}

.sp-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.86rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 50px;
}
.sp-stock.is-in {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.25);
}
.sp-stock.is-out {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.25);
}

/* ============================================
   PRICE CARD
   ============================================ */
.sp-price-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(251, 146, 60, 0.04));
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 18px;
    padding: 22px 26px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.sp-price-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(245, 158, 11, 0.10), transparent 70%);
    pointer-events: none;
}

.sp-price-block {
    position: relative;
    z-index: 1;
}

.sp-price-label {
    display: block;
    color: var(--text-muted, #888);
    font-size: 0.82rem;
    margin-bottom: 6px;
}

.sp-price-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-green, #f59e0b);
    line-height: 1;
    letter-spacing: -0.5px;
}
.sp-price-value del {
    color: var(--text-muted, #888);
    font-size: 1.15rem;
    font-weight: 400;
    margin-left: 10px;
    opacity: 0.7;
    text-decoration: line-through;
}
.sp-price-value ins {
    text-decoration: none;
    color: var(--accent-green, #f59e0b);
}

.sp-price-save {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fb923c;
    background: rgba(251, 146, 60, 0.12);
    padding: 3px 10px;
    border-radius: 50px;
}

/* Price circle on the right */
.sp-price-circle {
    position: relative;
    z-index: 1;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fb923c, #f43f5e);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px -6px rgba(244, 63, 94, 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
    transform: rotate(-6deg);
    flex-shrink: 0;
}
.sp-price-circle-num {
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1;
}
.sp-price-circle-label {
    font-size: 0.62rem;
    letter-spacing: 1px;
    margin-top: 2px;
    opacity: 0.95;
}

/* ============================================
   ACTION ROW (Description btn + Buy btn)
   ============================================ */
.sp-actions {
    margin-bottom: 20px;
}

.sp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(.2, .8, .3, 1);
    position: relative;
    overflow: hidden;
}

/* Description button */
.sp-btn-desc {
    width: 100%;
    padding: 14px 22px;
    background: rgba(20, 24, 18, 0.85);
    color: var(--text-primary, #fff);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 14px;
    font-size: 0.95rem;
    margin-bottom: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.sp-btn-desc::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(245, 158, 11, 0.15) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}
.sp-btn-desc:hover {
    border-color: var(--accent-green, #f59e0b);
    background: rgba(245, 158, 11, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -8px rgba(245, 158, 11, 0.35);
}
.sp-btn-desc:hover::before { transform: translateX(100%); }

/* Cart row */
.sp-cart-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.sp-qty {
    display: inline-flex;
    align-items: center;
    background: rgba(20, 24, 18, 0.85);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
}
.sp-qty-btn {
    width: 44px;
    height: 100%;
    background: transparent;
    border: none;
    color: var(--text-secondary, #ccc);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.sp-qty-btn:hover {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-green, #f59e0b);
}
.sp-qty-input {
    width: 44px;
    height: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary, #fff);
    text-align: center;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    -moz-appearance: textfield;
}
.sp-qty-input::-webkit-outer-spin-button,
.sp-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Buy button (CTA) */
.sp-btn-buy {
    flex: 1;
    padding: 14px 22px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0e0a07;
    border-radius: 14px;
    font-size: 1rem;
    box-shadow:
        0 14px 28px -10px rgba(245, 158, 11, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.sp-btn-buy::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
    transition: left 0.6s ease;
}
.sp-btn-buy:hover {
    transform: translateY(-2px);
    box-shadow:
        0 18px 36px -10px rgba(245, 158, 11, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.sp-btn-buy:hover::after { left: 100%; }
.sp-btn-buy:active { transform: translateY(0); }

/* WhatsApp button */
.sp-btn-wa {
    padding: 14px 22px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    border-radius: 14px;
    font-size: 0.95rem;
    box-shadow: 0 14px 28px -10px rgba(37, 211, 102, 0.45);
}
.sp-btn-wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px -10px rgba(37, 211, 102, 0.6);
}

/* Contact row */
.sp-contact-row {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
}
.sp-contact-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(20, 24, 18, 0.6);
    color: var(--text-secondary, #ccc);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.sp-contact-btn:hover {
    border-color: rgba(245, 158, 11, 0.4);
    color: var(--accent-green, #f59e0b);
    background: rgba(245, 158, 11, 0.05);
}

/* Trust strip */
.sp-trust-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding-top: 18px;
    border-top: 1px dashed rgba(245, 158, 11, 0.15);
}
.sp-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 12px 6px;
    background: rgba(20, 24, 18, 0.5);
    border: 1px solid rgba(245, 158, 11, 0.1);
    border-radius: 12px;
    color: var(--text-secondary, #ccc);
    font-size: 0.78rem;
    font-weight: 600;
    transition: all 0.3s ease;
}
.sp-trust-item svg {
    color: var(--accent-green, #f59e0b);
}
.sp-trust-item:hover {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.05);
    transform: translateY(-2px);
}

/* ============================================
   VOLUME VARIANTS SECTION
   ============================================ */
.sp-volumes-section {
    padding: 32px 0 0;
    margin-bottom: 0;
}

.sp-volumes-head {
    text-align: center;
    margin-bottom: 24px;
}

.sp-volumes-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-green, #f59e0b);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.sp-volumes-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary, #111);
}

.sp-volumes-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 16px;
    flex-wrap: wrap;
}

/* --- Volume Card (shared) --- */
.sp-vol-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 24px 16px;
    border-radius: 16px;
    background: var(--bg-secondary, #f9fafb);
    border: 2px solid var(--border-color, #e5e7eb);
    text-decoration: none;
    text-align: center;
    min-width: 160px;
    flex: 0 1 auto;
    transition: all 0.25s ease;
}

/* Clickable variant cards */
a.sp-vol-card:hover {
    border-color: var(--accent-green, #f59e0b);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

a.sp-vol-card.sp-vol-out {
    opacity: 0.55;
    pointer-events: none;
}

a.sp-vol-card.sp-vol-out:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border-color, #e5e7eb);
}

a.sp-vol-card.sp-vol-sale {
    border-color: rgba(244, 63, 94, 0.25);
}

/* --- Current volume (non-clickable indicator) --- */
.sp-vol-card.sp-vol-current {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0.03));
    border-color: var(--accent-green, #f59e0b);
    cursor: default;
}

/* --- Badge (top-right corner) --- */
.sp-vol-badge {
    position: absolute;
    top: -9px;
    right: -6px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    white-space: nowrap;
    line-height: 1.6;
}

.sp-vol-badge-active {
    background: var(--accent-green, #f59e0b);
    color: #fff;
}

.sp-vol-badge-sale {
    background: #f43f5e;
    color: #fff;
}

.sp-vol-badge-out {
    background: #9ca3af;
    color: #fff;
}

/* --- Icon (current card) --- */
.sp-vol-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent-green, #f59e0b);
}

/* --- Thumbnail (variant cards) --- */
.sp-vol-thumb {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color, #e5e7eb);
}

.sp-vol-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-vol-thumb-placeholder {
    color: #d1d5db;
}

/* --- Volume label --- */
.sp-vol-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary, #111);
}

/* --- Price --- */
.sp-vol-price {
    font-size: 0.85rem;
    color: var(--text-secondary, #6b7280);
    direction: rtl;
}

.sp-vol-price del {
    opacity: 0.5;
    font-size: 0.78rem;
}

.sp-vol-price ins {
    text-decoration: none;
    color: #f43f5e;
    font-weight: 700;
}

/* --- Notice (current card) --- */
.sp-vol-notice {
    font-size: 0.75rem;
    color: var(--accent-green, #f59e0b);
    font-weight: 600;
}

/* --- CTA (variant cards) --- */
.sp-vol-cta {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-green, #f59e0b);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease;
}

a.sp-vol-card:hover .sp-vol-cta {
    gap: 8px;
}

/* --- Responsive --- */
@media (max-width: 640px) {
    .sp-volumes-grid {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        padding-bottom: 8px;
        gap: 10px;
        margin: 0 -16px;
        padding-left: 16px;
        padding-right: 16px;
    }
    .sp-vol-card {
        min-width: 130px;
        max-width: 150px;
        flex-shrink: 0;
        padding: 14px 16px 12px;
    }
    .sp-vol-thumb {
        width: 48px;
        height: 48px;
    }
    .sp-vol-label {
        font-size: 0.85rem;
    }
    .sp-vol-price {
        font-size: 0.78rem;
    }
    .sp-vol-cta {
        font-size: 0.72rem;
    }
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.sp-features-section {
    padding: 0 0 60px;
    margin-bottom: 0;
}

.sp-section-head {
    text-align: center;
    margin-bottom: 40px;
}
.sp-section-eyebrow {
    display: inline-block;
    color: var(--accent-green, #f59e0b);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
    padding: 4px 14px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 50px;
}
.sp-section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary, #fff);
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}
.sp-section-sub {
    color: var(--text-muted, #888);
    font-size: 0.95rem;
    margin: 0;
}

.sp-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.sp-feature-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, rgba(20, 24, 18, 0.85), rgba(10, 12, 10, 0.95));
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 16px;
    padding: 18px 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.sp-feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 100%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(245, 158, 11, 0.08), transparent 70%);
    pointer-events: none;
}
.sp-feature-card:hover {
    border-color: rgba(245, 158, 11, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.5);
}

.sp-feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
    color: var(--accent-green, #f59e0b);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.sp-feature-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.sp-feature-label {
    color: var(--text-muted, #888);
    font-size: 0.76rem;
    font-weight: 600;
}
.sp-feature-value {
    color: var(--text-primary, #fff);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
}

/* Inline highlights */
.sp-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.sp-highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(20, 24, 18, 0.5);
    border: 1px solid rgba(245, 158, 11, 0.12);
    border-radius: 14px;
    padding: 18px 20px;
    transition: all 0.3s ease;
}
.sp-highlight-item:hover {
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateY(-2px);
}
.sp-highlight-item svg {
    color: var(--accent-green, #f59e0b);
    flex-shrink: 0;
}
.sp-highlight-item div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sp-highlight-item strong {
    color: var(--text-primary, #fff);
    font-size: 0.95rem;
    font-weight: 700;
}
.sp-highlight-item span {
    color: var(--text-muted, #888);
    font-size: 0.82rem;
    line-height: 1.5;
}

/* ============================================
   TRUST SECTION
   ============================================ */
.sp-trust-section {
    padding: 60px 0;
    background:
        radial-gradient(800px 400px at 90% 50%, rgba(245, 158, 11, 0.06), transparent 60%),
        radial-gradient(600px 300px at 10% 50%, rgba(251, 146, 60, 0.04), transparent 60%);
    border-top: 1px solid rgba(245, 158, 11, 0.08);
    border-bottom: 1px solid rgba(245, 158, 11, 0.08);
    margin-bottom: 0;
}

.sp-trust-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.sp-trust-card-main {
    background: linear-gradient(135deg, rgba(20, 24, 18, 0.85), rgba(10, 12, 10, 0.95));
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 22px;
    padding: 32px;
    position: relative;
    overflow: hidden;
}
.sp-trust-card-main::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.10), transparent 70%);
    pointer-events: none;
}

.sp-trust-card-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
}
.sp-trust-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.08));
    color: var(--accent-green, #f59e0b);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(245, 158, 11, 0.3);
    flex-shrink: 0;
}
.sp-trust-card-head h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary, #fff);
    margin: 0 0 4px;
}
.sp-trust-card-head p {
    color: var(--text-muted, #888);
    font-size: 0.88rem;
    margin: 0;
}

.sp-trust-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
}
.sp-trust-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.sp-trust-check {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-green, #f59e0b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.sp-trust-list li > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.sp-trust-list strong {
    color: var(--text-primary, #fff);
    font-size: 0.95rem;
    font-weight: 700;
}
.sp-trust-list span {
    color: var(--text-muted, #888);
    font-size: 0.82rem;
    line-height: 1.5;
}

/* Trust side cards */
.sp-trust-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.sp-trust-side-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(20, 24, 18, 0.7);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 16px;
    padding: 20px 22px;
    transition: all 0.3s ease;
    position: relative;
}
.sp-trust-side-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-green, #f59e0b), transparent);
    border-radius: 0 16px 16px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sp-trust-side-item:hover {
    border-color: rgba(245, 158, 11, 0.35);
    transform: translateX(-3px);
    background: rgba(245, 158, 11, 0.05);
}
.sp-trust-side-item:hover::before { opacity: 1; }

.sp-trust-side-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-green, #f59e0b);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(245, 158, 11, 0.2);
}
.sp-trust-side-item strong {
    color: var(--text-primary, #fff);
    font-size: 1rem;
    font-weight: 700;
}
.sp-trust-side-item span {
    color: var(--text-muted, #888);
    font-size: 0.85rem;
}

/* ============================================
   DESCRIPTION MODAL (POPUP)
   ============================================ */
.sp-modal[hidden] { display: none; }

.sp-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sp-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 7, 5, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.sp-modal-open .sp-modal-backdrop { opacity: 1; }

.sp-modal-box {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: calc(100vh - 60px);
    background: linear-gradient(180deg, #161b14, #0d100c);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 22px;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.96);
    opacity: 0;
    transition: transform 0.28s cubic-bezier(.2, .8, .3, 1), opacity 0.25s ease;
}
.sp-modal-in .sp-modal-box {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.sp-modal-close {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 36px;
    height: 36px;
    background: rgba(20, 24, 18, 0.7);
    color: var(--text-secondary, #ccc);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.25s ease;
}
.sp-modal-close:hover {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.4);
    transform: rotate(90deg);
}

.sp-modal-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(245, 158, 11, 0.15);
    background: rgba(245, 158, 11, 0.04);
}
.sp-modal-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.08));
    color: var(--accent-green, #f59e0b);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(245, 158, 11, 0.3);
    flex-shrink: 0;
}
.sp-modal-head h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary, #fff);
    margin: 0;
}

.sp-modal-body {
    padding: 24px 28px;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
}
.sp-modal-body::-webkit-scrollbar { width: 6px; }
.sp-modal-body::-webkit-scrollbar-thumb { background: rgba(245, 158, 11, 0.3); border-radius: 6px; }

.sp-modal-short {
    color: var(--text-secondary, #ccc);
    font-size: 0.95rem;
    line-height: 1.7;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px dashed rgba(245, 158, 11, 0.15);
    font-style: italic;
}

.sp-modal-content {
    color: var(--text-secondary, #ccc);
    font-size: 0.95rem;
    line-height: 1.85;
}
.sp-modal-content h1,
.sp-modal-content h2,
.sp-modal-content h3,
.sp-modal-content h4 {
    color: var(--text-primary, #fff);
    font-weight: 700;
    margin: 18px 0 10px;
    line-height: 1.3;
}
.sp-modal-content h2 { font-size: 1.3rem; }
.sp-modal-content h3 { font-size: 1.1rem; }
.sp-modal-content p { margin: 0 0 14px; }
.sp-modal-content ul,
.sp-modal-content ol {
    padding-right: 22px;
    margin: 0 0 14px;
}
.sp-modal-content li {
    margin-bottom: 6px;
    line-height: 1.7;
}
.sp-modal-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 14px 0;
}
.sp-modal-content a {
    color: var(--accent-green, #f59e0b);
    text-decoration: underline;
}
.sp-modal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
}
.sp-modal-content table th,
.sp-modal-content table td {
    padding: 10px 12px;
    border: 1px solid rgba(245, 158, 11, 0.15);
    text-align: right;
    font-size: 0.88rem;
}

.sp-modal-specs {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px dashed rgba(245, 158, 11, 0.15);
}
.sp-modal-specs h4 {
    color: var(--text-primary, #fff);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 12px;
}
.sp-modal-specs table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(20, 24, 18, 0.5);
    border-radius: 12px;
    overflow: hidden;
}
.sp-modal-specs th,
.sp-modal-specs td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(245, 158, 11, 0.1);
    font-size: 0.88rem;
    text-align: right;
}
.sp-modal-specs th {
    width: 35%;
    color: var(--text-muted, #888);
    font-weight: 600;
    background: rgba(245, 158, 11, 0.04);
}
.sp-modal-specs td {
    color: var(--text-primary, #fff);
    font-weight: 600;
}
.sp-modal-specs tr:last-child th,
.sp-modal-specs tr:last-child td { border-bottom: none; }

.sp-modal-foot {
    display: flex;
    gap: 10px;
    padding: 18px 28px;
    border-top: 1px solid rgba(245, 158, 11, 0.15);
    background: rgba(20, 24, 18, 0.6);
}
.sp-modal-cta {
    flex: 1;
}
.sp-modal-wa {
    flex: 0 0 auto;
    padding: 14px 22px;
}

/* Body lock when modal open */
body.sp-modal-lock {
    overflow: hidden;
}

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */
@media (max-width: 1100px) {
    .sp-hero-grid {
        grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
        gap: 36px;
    }
    .sp-title { font-size: 1.85rem; }
    .sp-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sp-trust-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 768px) {
    .single-product-page.sp-v2 { padding-bottom: 100px; }

    .sp-hero {
        padding: 4px 0 30px;
        margin-bottom: 40px;
    }
    .sp-hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .sp-gallery {
        position: static;
    }
    .sp-gallery-main {
        aspect-ratio: 1 / 1;
        max-width: 360px;
        margin: 0 auto;
    }    .sp-discount-badge {
        top: 12px;
        left: 12px;
        min-width: 54px;
        padding: 6px 10px;
    }
    .sp-discount-num { font-size: 1.1rem; }
    .sp-discount-label { font-size: 0.62rem; }
    .sp-brand-chip {
        top: 12px;
        right: 12px;
        padding: 5px 12px;
        font-size: 0.72rem;
    }

    .sp-info { padding-top: 0; }
    .sp-meta-top { gap: 8px; margin-bottom: 10px; }
    .sp-brand-link { font-size: 0.74rem; padding: 5px 12px; }
    .sp-sku { font-size: 0.72rem; }

    .sp-title {
        font-size: 1.4rem;
        line-height: 1.35;
        margin-bottom: 10px;
    }
    .sp-excerpt {
        font-size: 0.92rem;
        margin-bottom: 14px;
        padding-bottom: 14px;
    }

    .sp-rating-row { gap: 10px; margin-bottom: 16px; }
    .sp-stars { font-size: 0.92rem; }
    .sp-rating-count { font-size: 0.78rem; }
    .sp-stock { font-size: 0.78rem; padding: 4px 10px; }

    .sp-price-card {
        padding: 16px 18px;
        gap: 12px;
        margin-bottom: 18px;
    }
    .sp-price-label { font-size: 0.74rem; margin-bottom: 4px; }
    .sp-price-value { font-size: 1.5rem; }
    .sp-price-value del { font-size: 1rem; }
    .sp-price-save { font-size: 0.72rem; padding: 2px 8px; }
    .sp-price-circle {
        width: 58px;
        height: 58px;
    }
    .sp-price-circle-num { font-size: 1.1rem; }

    .sp-actions { margin-bottom: 16px; }
    .sp-btn-desc {
        padding: 12px 18px;
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    .sp-cart-row {
        flex-direction: row;
        gap: 8px;
    }
    .sp-qty { border-radius: 12px; }
    .sp-qty-btn { width: 38px; }
    .sp-qty-input { width: 36px; font-size: 0.92rem; }
    .sp-btn-buy {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    .sp-btn-buy span { font-size: 0.88rem; }

    .sp-contact-row { gap: 8px; margin-bottom: 16px; }
    .sp-contact-btn {
        padding: 9px 12px;
        font-size: 0.78rem;
        gap: 5px;
    }

    .sp-trust-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding-top: 14px;
    }
    .sp-trust-item {
        padding: 10px 4px;
        font-size: 0.74rem;
    }
    .sp-trust-item svg { width: 18px; height: 18px; }

    /* Features section */
    .sp-features-section { padding: 0 0 40px; }
    .sp-section-head { margin-bottom: 26px; }
    .sp-section-eyebrow { font-size: 0.74rem; padding: 3px 12px; }
    .sp-section-title { font-size: 1.45rem; }
    .sp-section-sub { font-size: 0.85rem; }
    .sp-features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }
    .sp-feature-card { padding: 14px 16px; gap: 12px; }
    .sp-feature-icon { width: 42px; height: 42px; }
    .sp-feature-icon svg { width: 22px; height: 22px; }
    .sp-feature-label { font-size: 0.72rem; }
    .sp-feature-value { font-size: 0.9rem; }

    .sp-highlights {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .sp-highlight-item { padding: 14px 16px; gap: 12px; }
    .sp-highlight-item strong { font-size: 0.9rem; }
    .sp-highlight-item span { font-size: 0.78rem; }

    /* Trust section */
    .sp-trust-section { padding: 40px 0; }
    .sp-trust-card-main { padding: 22px 20px; }
    .sp-trust-card-head { gap: 12px; margin-bottom: 18px; }
    .sp-trust-card-icon { width: 48px; height: 48px; }
    .sp-trust-card-head h3 { font-size: 1.15rem; }
    .sp-trust-card-head p { font-size: 0.82rem; }
    .sp-trust-list { gap: 12px; }
    .sp-trust-check { width: 24px; height: 24px; font-size: 0.78rem; }
    .sp-trust-list strong { font-size: 0.88rem; }
    .sp-trust-list span { font-size: 0.76rem; }

    .sp-trust-side { gap: 10px; }
    .sp-trust-side-item { padding: 16px 18px; }
    .sp-trust-side-icon { width: 38px; height: 38px; }
    .sp-trust-side-item strong { font-size: 0.92rem; }
    .sp-trust-side-item span { font-size: 0.78rem; }

    /* Modal */
    .sp-modal { padding: 12px; }
    .sp-modal-box { border-radius: 18px; }
    .sp-modal-head { padding: 18px 20px; gap: 10px; }
    .sp-modal-icon { width: 38px; height: 38px; }
    .sp-modal-icon svg { width: 18px; height: 18px; }
    .sp-modal-head h3 { font-size: 1.1rem; }
    .sp-modal-body { padding: 18px 20px; }
    .sp-modal-short { font-size: 0.88rem; padding-bottom: 14px; margin-bottom: 14px; }
    .sp-modal-content { font-size: 0.88rem; line-height: 1.75; }
    .sp-modal-content h2 { font-size: 1.15rem; }
    .sp-modal-content h3 { font-size: 1rem; }
    .sp-modal-specs { margin-top: 18px; padding-top: 16px; }
    .sp-modal-specs h4 { font-size: 0.95rem; }
    .sp-modal-specs th,
    .sp-modal-specs td { padding: 10px 12px; font-size: 0.82rem; }
    .sp-modal-foot {
        padding: 14px 20px;
        flex-direction: column;
        gap: 8px;
    }
    .sp-modal-wa {
        flex: 1;
        padding: 12px 18px;
    }
}

@media (max-width: 420px) {
    .sp-title { font-size: 1.25rem; }
    .sp-price-value { font-size: 1.35rem; }
    .sp-btn-buy span { font-size: 0.82rem; }
    .sp-btn-desc span { font-size: 0.85rem; }
    .sp-contact-btn span { display: inline; }
    .sp-trust-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   DISCOUNT % BADGE ON PRODUCT CARDS
   ============================================ */
.product-card-sale-pct,
.shop-card-sale-pct {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 10px !important;
    line-height: 1;
    text-transform: none !important;
}
.product-card-sale-pct .sale-pct-num,
.shop-card-sale-pct .sale-pct-num {
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}
.product-card-sale-pct .sale-pct-label,
.shop-card-sale-pct .sale-pct-label {
    font-size: 0.62rem;
    margin-top: 2px;
    opacity: 0.95;
    letter-spacing: 0;
}

/* ============================================
   CART PAGE — Kudland v2.2.3
   Mobile-first, dark-themed, matches site design.
   Replaces WooCommerce's default cart/cart.php
   table-based layout with stacked card UI.
   ============================================ */

/* Page wrapper — give cart breathing room from fixed header */
.kudmaye-cart-form,
.kudmaye-cart-collaterals {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Empty cart state */
.kudmaye-cart-empty {
    text-align: center;
    padding: 60px 28px 50px;
    background:
        linear-gradient(180deg, rgba(245, 158, 11, 0.04) 0%, transparent 30%),
        var(--bg-card);
    border: 1px solid rgba(245, 158, 11, 0.12);
    border-radius: 24px;
    margin: 32px auto;
    max-width: 640px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}
.kudmaye-cart-empty-icon {
    color: var(--accent-green);
    opacity: 0.5;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    animation: kudmayeCartEmptyBounce 3s ease-in-out infinite;
}
@keyframes kudmayeCartEmptyBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.kudmaye-cart-empty-title {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 800;
    line-height: 1.3;
}
.kudmaye-cart-empty-text {
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 0.95rem;
    line-height: 1.8;
}
.kudmaye-cart-empty-cta {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    margin-bottom: 36px;
}

/* Quick brand shortcuts */
.kudmaye-cart-empty-brands {
    margin-bottom: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.kudmaye-cart-empty-brands-title {
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 14px;
}
.kudmaye-cart-empty-brands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.kudmaye-cart-empty-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.25s ease;
}
.kudmaye-cart-empty-brand:hover {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.25);
    transform: translateY(-2px);
}
.kudmaye-cart-empty-brand-icon {
    font-size: 1.5rem;
    line-height: 1;
}
.kudmaye-cart-empty-brand-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}
.kudmaye-cart-empty-brand-count {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Help section */
.kudmaye-cart-empty-help {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(245, 158, 11, 0.04);
    border: 1px solid rgba(245, 158, 11, 0.12);
    border-radius: 16px;
    text-align: right;
}
.kudmaye-cart-empty-help-icon {
    font-size: 2rem;
    flex-shrink: 0;
}
.kudmaye-cart-empty-help-content {
    flex: 1;
    min-width: 0;
}
.kudmaye-cart-empty-help-content h3 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin: 0 0 4px;
    font-weight: 700;
}
.kudmaye-cart-empty-help-content p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}
.kudmaye-cart-empty-help-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.kudmaye-cart-empty-help-actions .btn {
    padding: 9px 16px;
    font-size: 0.85rem;
}

/* Mobile tweaks for empty cart */
@media (max-width: 768px) {
    .kudmaye-cart-empty {
        padding: 40px 18px 32px;
        margin: 16px auto;
    }
    .kudmaye-cart-empty-title {
        font-size: 1.35rem;
    }
    .kudmaye-cart-empty-brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .kudmaye-cart-empty-help {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .kudmaye-cart-empty-help-actions {
        width: 100%;
    }
    .kudmaye-cart-empty-help-actions .btn {
        flex: 1;
    }
}

/* Cart header */
.kudmaye-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 24px 0 18px;
    flex-wrap: wrap;
}
.kudmaye-cart-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-primary);
    margin: 0;
}
.kudmaye-cart-title svg {
    color: var(--accent-green);
}
.kudmaye-cart-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}
.kudmaye-cart-continue-shopping {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--accent-green);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.12);
    transition: var(--transition);
}
.kudmaye-cart-continue-shopping:hover {
    background: rgba(245, 158, 11, 0.12);
}

/* Cart items list */
.kudmaye-cart-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

/* Individual cart item card */
.kudmaye-cart-item {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: 14px;
    background:
        linear-gradient(180deg, rgba(245, 158, 11, 0.04) 0%, transparent 40%),
        var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 14px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    align-items: start;
    position: relative;
}
.kudmaye-cart-item:hover {
    border-color: rgba(245, 158, 11, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* Product image cell */
.kudmaye-cart-item-image {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-secondary), var(--bg-primary));
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.kudmaye-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}
.kudmaye-cart-item-image a {
    display: block;
    width: 100%;
    height: 100%;
}
.kudmaye-cart-item-discount {
    position: absolute;
    top: 6px;
    right: 6px;
    background: linear-gradient(135deg, #fb923c, #f43f5e);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(244, 63, 94, 0.4);
    line-height: 1.4;
    text-align: center;
}

/* Product info cell */
.kudmaye-cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.kudmaye-cart-item-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.kudmaye-cart-item-brand {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-green);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(245, 158, 11, 0.06));
    padding: 2px 10px;
    border-radius: 12px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}
.kudmaye-cart-item-sku {
    font-size: 0.7rem;
    color: var(--text-muted);
}
.kudmaye-cart-item-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
}
.kudmaye-cart-item-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.kudmaye-cart-item-name a:hover {
    color: var(--accent-green);
}
.kudmaye-cart-item-variations {
    font-size: 0.78rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    display: inline-block;
    width: fit-content;
}

/* Bottom row of item info: quantity + prices */
.kudmaye-cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

/* Quantity selector */
.kudmaye-cart-qty {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}
.kudmaye-cart-qty-btn {
    width: 36px;
    height: 38px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}
.kudmaye-cart-qty-btn:hover:not(:disabled) {
    background: rgba(245, 158, 11, 0.14);
    color: var(--accent-green);
}
.kudmaye-cart-qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.kudmaye-cart-qty .qty {
    width: 44px;
    height: 38px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Vazirmatn', sans-serif;
    -moz-appearance: textfield;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}
.kudmaye-cart-qty .qty::-webkit-outer-spin-button,
.kudmaye-cart-qty .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Prices */
.kudmaye-cart-item-prices {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.kudmaye-cart-item-unit {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.kudmaye-cart-item-unit del {
    color: var(--text-muted);
    opacity: 0.6;
    margin-left: 4px;
}
.kudmaye-cart-item-unit ins {
    background: none;
    text-decoration: none;
    color: var(--accent-green);
    font-weight: 700;
}
.kudmaye-cart-item-line {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--accent-green);
}
.kudmaye-cart-item-line .amount {
    color: inherit;
}

/* Remove button */
.kudmaye-cart-item-remove {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.25s ease;
    align-self: start;
    text-decoration: none;
}
.kudmaye-cart-item-remove:hover {
    background: rgba(244, 63, 94, 0.15);
    border-color: rgba(244, 63, 94, 0.3);
    color: var(--accent-red);
}

/* Coupon + update row */
.kudmaye-cart-actions-row {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.kudmaye-cart-coupon {
    flex: 1;
    min-width: 220px;
}
.kudmaye-cart-coupon-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 600;
}
.kudmaye-cart-coupon-input-row {
    display: flex;
    gap: 8px;
}
.kudmaye-cart-coupon-input {
    flex: 1;
    padding: 11px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease;
}
.kudmaye-cart-coupon-input:focus {
    border-color: var(--accent-green);
}
.kudmaye-cart-coupon-btn {
    padding: 11px 22px;
    font-size: 0.88rem;
    white-space: nowrap;
}
.kudmaye-cart-update-btn {
    padding: 11px 22px;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* Trust strip */
.kudmaye-cart-trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid rgba(245, 158, 11, 0.12);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 20px;
}
.kudmaye-cart-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    text-align: center;
    padding: 6px;
}
.kudmaye-cart-trust-item svg {
    color: var(--accent-green);
}
.kudmaye-cart-trust-item span {
    font-size: 0.72rem;
    font-weight: 600;
}

/* Cart totals restyle */
.kudmaye-cart-collaterals .cart_totals {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.kudmaye-cart-collaterals .cart_totals h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.kudmaye-cart-collaterals .shop_table {
    width: 100%;
    border-collapse: collapse;
}
.kudmaye-cart-collaterals .shop_table th,
.kudmaye-cart-collaterals .shop_table td {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-size: 0.92rem;
}
.kudmaye-cart-collaterals .shop_table th {
    text-align: right;
    font-weight: 600;
}
.kudmaye-cart-collaterals .shop_table td {
    text-align: left;
    color: var(--text-primary);
}
.kudmaye-cart-collaterals .shop_table .order-total td,
.kudmaye-cart-collaterals .shop_table .order-total th {
    border-bottom: none;
    padding-top: 18px;
}
.kudmaye-cart-collaterals .shop_table .order-total td .amount,
.kudmaye-cart-collaterals .shop_table .order-total td {
    color: var(--accent-green);
    font-size: 1.25rem;
    font-weight: 800;
}
.kudmaye-cart-collaterals .wc-proceed-to-checkout {
    margin-top: 20px;
}
.kudmaye-cart-collaterals .wc-proceed-to-checkout .checkout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-emerald));
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 800;
    font-family: 'Vazirmatn', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.25);
}
.kudmaye-cart-collaterals .wc-proceed-to-checkout .checkout-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.35);
}
.kudmaye-cart-collaterals .wc-proceed-to-checkout .checkout-button:active {
    transform: translateY(0);
}

/* Sticky mobile checkout CTA — bottom of viewport on mobile */
.kudmaye-cart-sticky-cta {
    display: none;
}

/* ============================================
   RESPONSIVE — CART
   ============================================ */
@media (max-width: 768px) {
    .kudmaye-cart-form,
    .kudmaye-cart-collaterals {
        padding: 0 12px;
        padding-bottom: 90px; /* room for sticky CTA */
    }

    .kudmaye-cart-header {
        padding: 18px 0 14px;
    }
    .kudmaye-cart-title {
        font-size: 1.2rem;
    }
    .kudmaye-cart-count {
        font-size: 0.78rem;
        padding: 3px 10px;
    }

    /* Cart item — 2-row layout on mobile: image + name on top, qty + price below */
    .kudmaye-cart-item {
        grid-template-columns: 90px 1fr auto;
        gap: 12px;
        padding: 12px;
    }
    .kudmaye-cart-item-image {
        width: 90px;
        height: 90px;
    }
    .kudmaye-cart-item-name {
        font-size: 0.9rem;
    }
    .kudmaye-cart-item-meta {
        gap: 6px;
    }
    .kudmaye-cart-item-brand {
        font-size: 0.68rem;
        padding: 2px 8px;
    }
    .kudmaye-cart-item-sku {
        font-size: 0.66rem;
    }
    .kudmaye-cart-item-bottom {
        grid-column: 1 / -1;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        justify-content: space-between;
    }
    .kudmaye-cart-item-prices {
        text-align: left;
    }
    .kudmaye-cart-item-line {
        font-size: 1rem;
    }

    /* Hide the desktop checkout button — show sticky CTA instead */
    .kudmaye-cart-collaterals .wc-proceed-to-checkout {
        display: none;
    }
    .kudmaye-cart-sticky-cta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(180deg, rgba(15, 15, 15, 0.96), rgba(8, 8, 8, 0.98));
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(245, 158, 11, 0.25);
        box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.45);
        padding: 12px 14px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        z-index: 1001;
    }
    .kudmaye-cart-sticky-total {
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
    }
    .kudmaye-cart-sticky-label {
        font-size: 0.72rem;
        color: var(--text-muted);
        font-weight: 600;
    }
    .kudmaye-cart-sticky-amount {
        font-size: 1.15rem;
        font-weight: 800;
        color: var(--accent-green);
        line-height: 1;
    }
    .kudmaye-cart-sticky-amount .amount {
        color: inherit;
    }
    .kudmaye-cart-sticky-checkout {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 13px 22px;
        background: linear-gradient(135deg, var(--accent-green), var(--accent-emerald));
        color: #fff;
        border-radius: 12px;
        font-weight: 800;
        font-size: 0.95rem;
        text-decoration: none;
        flex-shrink: 0;
        box-shadow: 0 6px 16px rgba(245, 158, 11, 0.3);
        transition: transform 0.2s ease;
    }
    .kudmaye-cart-sticky-checkout:active {
        transform: scale(0.96);
    }

    /* Trust strip — 2-col on mobile */
    .kudmaye-cart-trust {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 12px;
    }
    .kudmaye-cart-trust-item span {
        font-size: 0.68rem;
    }

    /* Coupon row — stack vertically */
    .kudmaye-cart-actions-row {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    .kudmaye-cart-update-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .kudmaye-cart-item {
        grid-template-columns: 76px 1fr auto;
        gap: 10px;
        padding: 10px;
    }
    .kudmaye-cart-item-image {
        width: 76px;
        height: 76px;
    }
    .kudmaye-cart-item-name {
        font-size: 0.85rem;
    }
    .kudmaye-cart-qty-btn {
        width: 32px;
        height: 34px;
    }
    .kudmaye-cart-qty .qty {
        width: 38px;
        height: 34px;
        font-size: 0.88rem;
    }
    .kudmaye-cart-item-line {
        font-size: 0.95rem;
    }
}

/* ============================================
   CHECKOUT PAGE — Kudland v2.2.3
   Mobile-first, dark-themed restyle of WC's
   default checkout form.
   ============================================ */

/* Hide country field (already hidden via filter but reinforce) */
#billing_country_field,
#shipping_country_field,
.kudmaye-hidden-field {
    display: none !important;
}

.woocommerce-checkout {
    background:
        radial-gradient(ellipse at top right, rgba(245, 158, 11, 0.04), transparent 50%),
        var(--bg-primary);
}

/* Checkout form container */
.woocommerce form.checkout,
.woocommerce-checkout-review-order,
.woocommerce-checkout #customer_details {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 16px;
}

/* On desktop, give checkout breathing room from header */
.woocommerce-checkout {
    padding-top: 20px;
}

/* Section titles */
.woocommerce-checkout h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 24px 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(245, 158, 11, 0.12);
    position: relative;
}
.woocommerce-checkout h3::before {
    content: '';
    position: absolute;
    bottom: -1px;
    right: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-green);
    border-radius: 2px;
}

/* Form rows */
.woocommerce-checkout .form-row {
    margin-bottom: 14px;
    padding: 0 !important;
}
.woocommerce-checkout .form-row label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.woocommerce-checkout .form-row label .required {
    color: var(--accent-red);
    text-decoration: none;
}

/* Inputs */
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea.input-text,
.woocommerce-checkout .form-row select {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: 'Vazirmatn', sans-serif;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea.input-text:focus,
.woocommerce-checkout .form-row select:focus {
    border-color: var(--accent-green);
    background: rgba(245, 158, 11, 0.04);
}
.woocommerce-checkout .form-row input::placeholder,
.woocommerce-checkout .form-row textarea::placeholder {
    color: var(--text-muted);
}

/* Selects — dark dropdown */
.woocommerce-checkout .form-row select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a0a0a0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    padding-left: 38px;
    cursor: pointer;
}
.woocommerce-checkout .form-row select option,
.woocommerce-checkout .form-row select optgroup {
    background: #1f1611 !important;
    color: #ffffff !important;
    padding: 8px 12px;
    font-family: 'Vazirmatn', sans-serif;
}
.woocommerce-checkout .form-row select option:checked,
.woocommerce-checkout .form-row select option:hover,
.woocommerce-checkout .form-row select option:focus {
    background: rgba(245, 158, 11, 0.25) !important;
    color: #ffffff !important;
}

/* Two-column rows on desktop, stack on mobile.
   Use flexbox instead of float for reliability. */
/* v2.24.4 — قطعی‌سازی: فیلدهای ووکامرس (تسویه/حساب من/ورود) همیشه block —
   هیچ قانون سراسری grid نباید روی آن‌ها بنشیند. */
.woocommerce .form-row,
.woocommerce-page .form-row {
    display: block;
}
.woocommerce-checkout .form-row {
    width: 100%;
    display: block;
}
.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
    width: 100%;
    float: none;
}
@media (min-width: 769px) {
    /* Pair first/last rows side-by-side using flex on their parent.
       WooCommerce wraps each pair in a .form-row container, but the
       first-name + last-name pair usually share a parent. To make this
       work reliably, we use display: inline-block with width calc. */
    .woocommerce-checkout .form-row-first,
    .woocommerce-checkout .form-row-last {
        display: inline-block;
        width: calc(50% - 6px);
        vertical-align: top;
        margin-left: 0;
    }
    .woocommerce-checkout .form-row-first {
        margin-left: 12px;
    }
}

/* Ensure full-width rows (state, address_1, email) take 100% even on desktop */
.woocommerce-checkout .form-row-wide,
.woocommerce-checkout #billing_state_field,
.woocommerce-checkout #billing_city_field,
.woocommerce-checkout #billing_address_1_field {
    width: 100% !important;
    display: block !important;
    margin-left: 0 !important;
}

/* Order review table */
.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
}
.woocommerce-checkout-review-order-table thead th {
    background: rgba(245, 158, 11, 0.06);
    color: var(--accent-green);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 12px 14px;
    text-align: right;
    border-bottom: 1px solid rgba(245, 158, 11, 0.12);
}
.woocommerce-checkout-review-order-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-size: 0.88rem;
}
.woocommerce-checkout-review-order-table tbody .product-name {
    color: var(--text-primary);
    font-weight: 600;
}
.woocommerce-checkout-review-order-table tbody .product-total {
    text-align: left;
    color: var(--text-primary);
}
.woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout-review-order-table tfoot td {
    padding: 10px 14px;
    color: var(--text-secondary);
    font-size: 0.88rem;
}
.woocommerce-checkout-review-order-table tfoot th {
    text-align: right;
    font-weight: 600;
}
.woocommerce-checkout-review-order-table tfoot td {
    text-align: left;
}
.woocommerce-checkout-review-order-table .order-total td .amount,
.woocommerce-checkout-review-order-table .order-total td {
    color: var(--accent-green);
    font-size: 1.1rem;
    font-weight: 800;
}

/* Payment methods */
.woocommerce-checkout #payment {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 18px;
    margin-top: 20px;
}
.woocommerce-checkout #payment ul.payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}
.woocommerce-checkout #payment ul.payment_methods li {
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: 0.92rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.woocommerce-checkout #payment ul.payment_methods li:hover {
    border-color: rgba(245, 158, 11, 0.2);
    background: rgba(245, 158, 11, 0.04);
}
.woocommerce-checkout #payment ul.payment_methods li input {
    accent-color: var(--accent-green);
}
.woocommerce-checkout #payment ul.payment_methods li label {
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    margin: 0;
}
.woocommerce-checkout #payment .payment_box {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    padding: 12px 14px;
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.7;
}

/* Place order button */
.woocommerce-checkout #place_order {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-emerald));
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 800;
    font-family: 'Vazirmatn', sans-serif;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.25);
    margin-top: 12px;
}
.woocommerce-checkout #place_order:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.35);
}
.woocommerce-checkout #place_order:active {
    transform: translateY(0);
}

/* Validation errors */
.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-info {
    background: rgba(244, 63, 94, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.25);
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 0.88rem;
}
.woocommerce-checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-info {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.25);
    color: #a3e635;
}

/* Checkout layout: 2-column on desktop, single column on mobile.
   WooCommerce puts customer billing form in .col-1 and order review in .col-2.
   On desktop we want them side-by-side; on mobile they stack. */
.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
    float: none;
    width: 100%;
}
@media (min-width: 900px) {
    .woocommerce-checkout #customer_details {
        display: grid;
        grid-template-columns: 1.4fr 1fr;
        gap: 32px;
        align-items: start;
    }
    .woocommerce-checkout #customer_details .col-1,
    .woocommerce-checkout #customer_details .col-2 {
        width: 100%;
    }
    /* On desktop, max-width should be larger to fit 2 columns */
    .woocommerce form.checkout,
    .woocommerce-checkout-review-order,
    .woocommerce-checkout #customer_details {
        max-width: 1200px;
    }
}

/* Mobile-specific checkout optimizations */
@media (max-width: 768px) {
    .woocommerce form.checkout,
    .woocommerce-checkout-review-order,
    .woocommerce-checkout #customer_details {
        padding: 0 14px;
    }

    .woocommerce-checkout h3 {
        font-size: 1.05rem;
        margin: 18px 0 14px;
    }

    .woocommerce-checkout .form-row {
        margin-bottom: 12px;
    }
    .woocommerce-checkout .form-row input.input-text,
    .woocommerce-checkout .form-row textarea.input-text,
    .woocommerce-checkout .form-row select {
        padding: 14px 14px;
        font-size: 1rem; /* ≥16px to prevent iOS zoom */
    }

    /* Larger tap targets for radio buttons */
    .woocommerce-checkout #payment ul.payment_methods li {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    /* Make place order button sticky on mobile */
    .woocommerce-checkout #payment {
        margin-bottom: 80px;
    }
    .woocommerce-checkout #payment .form-row.place-order {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(180deg, rgba(15, 15, 15, 0.96), rgba(8, 8, 8, 0.98));
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(245, 158, 11, 0.25);
        padding: 12px 14px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        margin: 0;
        z-index: 1001;
        box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.45);
    }
    .woocommerce-checkout #payment .form-row.place-order #place_order {
        margin: 0;
        box-shadow: 0 6px 16px rgba(245, 158, 11, 0.3);
    }

    /* Hide order review table on mobile when sticky button is visible — keep only the total */
    .woocommerce-checkout-review-order-table thead,
    .woocommerce-checkout-review-order-table tbody {
        /* keep visible — just compact */
    }
    .woocommerce-checkout-review-order-table th,
    .woocommerce-checkout-review-order-table td {
        padding: 10px 12px;
        font-size: 0.82rem;
    }
}.header-search-toggle[aria-expanded="true"] {
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent-green);
}

/* Overlay container — hidden by default via `display: none`. When .open
   is added by JS (which also removes the `hidden` attribute), it becomes
   a flex container that fills the viewport.
   We use opacity + pointer-events for the fade transition (NOT
   visibility:hidden, which can leave inputs non-interactive on mobile). */
.kudmaye-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.kudmaye-search-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
/* `hidden` HTML attribute = display:none (browser default). When JS
   removes `hidden` and adds .open, the overlay becomes visible. */
.kudmaye-search-overlay[hidden] {
    display: none !important;
}

/* Backdrop — click-to-close dim layer */
.kudmaye-search-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Search panel — centered card */
.kudmaye-search-panel {
    position: relative;
    background:
        linear-gradient(180deg, rgba(245, 158, 11, 0.04) 0%, transparent 30%),
        var(--bg-secondary);
    border: 1px solid rgba(245, 158, 11, 0.12);
    border-radius: 0;
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    max-height: 100vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    transform: translateY(-20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.kudmaye-search-overlay.open .kudmaye-search-panel {
    transform: translateY(0);
}
@media (min-width: 769px) {
    .kudmaye-search-panel {
        margin-top: 60px;
        margin-bottom: 60px;
        border-radius: 24px;
        max-height: calc(100vh - 120px);
    }
}

/* Header row of the panel — title + close button */
.kudmaye-search-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
    z-index: 2;
}
.kudmaye-search-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 800;
}
.kudmaye-search-title svg {
    color: var(--accent-green);
}
.kudmaye-search-close {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.kudmaye-search-close:hover {
    background: rgba(244, 63, 94, 0.15);
    color: var(--accent-red);
}

/* Input wrapper — search icon + input + clear button */
.kudmaye-search-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    background: rgba(245, 158, 11, 0.02);
}
.kudmaye-search-input-icon {
    color: var(--text-muted);
    flex-shrink: 0;
}
.kudmaye-search-input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: 'Vazirmatn', sans-serif;
    outline: none;
    padding: 4px 0;
    min-width: 0;
    pointer-events: auto;
    -webkit-user-select: text;
    user-select: text;
    -webkit-appearance: none;
    appearance: none;
    /* Prevent iOS zoom by ensuring font-size >= 16px */
    -webkit-text-size-adjust: 100%;
}
.kudmaye-search-input::placeholder {
    color: var(--text-muted);
}
.kudmaye-search-clear {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.kudmaye-search-clear:hover {
    background: rgba(244, 63, 94, 0.15);
    color: var(--accent-red);
}

/* Results container */
.kudmaye-search-results {
    padding: 14px 22px 22px;
    min-height: 200px;
}

/* Hint state (initial) */
.kudmaye-search-hint {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
}
.kudmaye-search-hint svg {
    color: var(--accent-green);
    opacity: 0.4;
    margin-bottom: 14px;
}
.kudmaye-search-hint p {
    font-size: 0.9rem;
}

/* Loading state */
.kudmaye-search-loading {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-secondary);
}
.kudmaye-search-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(245, 158, 11, 0.2);
    border-top-color: var(--accent-green);
    border-radius: 50%;
    margin: 0 auto 14px;
    animation: kudmaye-search-spin 0.8s linear infinite;
}
@keyframes kudmaye-search-spin {
    to { transform: rotate(360deg); }
}

/* Empty / no-results state */
.kudmaye-search-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}
.kudmaye-search-empty-icon {
    font-size: 2.4rem;
    margin-bottom: 12px;
    opacity: 0.6;
}
.kudmaye-search-empty p {
    font-size: 0.92rem;
    margin-bottom: 18px;
}

/* Results list */
.kudmaye-search-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

/* Individual result card */
.kudmaye-search-result {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    align-items: center;
}
.kudmaye-search-result:hover {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.2);
    transform: translateX(-3px);
}
.kudmaye-search-result-image {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-card), var(--bg-primary));
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.kudmaye-search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}
.kudmaye-search-result-sale {
    position: absolute;
    top: 3px;
    right: 3px;
    background: linear-gradient(135deg, #fb923c, #f43f5e);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    line-height: 1.3;
}
.kudmaye-search-result-out {
    position: absolute;
    inset: 0;
    background: rgba(14, 10, 7, 0.7);
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}
.kudmaye-search-result-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.kudmaye-search-result-brand {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--accent-green);
    background: rgba(245, 158, 11, 0.1);
    padding: 1px 8px;
    border-radius: 8px;
    width: fit-content;
}
.kudmaye-search-result-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
    /* Clamp to 1 line */
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kudmaye-search-result-price {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--accent-green);
}
.kudmaye-search-result-price del {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.78rem;
    margin-left: 6px;
}
.kudmaye-search-result-price ins {
    background: none;
    text-decoration: none;
    color: inherit;
}

/* "View all results" button at the bottom */
.kudmaye-search-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-emerald));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Vazirmatn', sans-serif;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.25);
    margin-top: 6px;
}
.kudmaye-search-view-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.35);
}
.kudmaye-search-view-all:active {
    transform: translateY(0);
}

/* Body when search open — lock scroll */
body.search-open {
    overflow: hidden !important;
}

/* Search results page (search.php) — uses .shop-card styles already defined */
.search-empty-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 20px 0;
}
.search-empty-cats .filter-chip {
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
}

/* Mobile tweaks for search overlay */
@media (max-width: 768px) {
    .kudmaye-search-panel {
        max-height: 100vh;
        border-radius: 0;
    }
    .kudmaye-search-head {
        padding: 14px 16px;
    }
    .kudmaye-search-title {
        font-size: 1rem;
    }
    .kudmaye-search-input-wrap {
        padding: 14px 16px;
    }
    .kudmaye-search-input {
        font-size: 1rem; /* ≥16px prevents iOS zoom */
    }
    .kudmaye-search-results {
        padding: 12px 16px 18px;
    }
    .kudmaye-search-result {
        grid-template-columns: 56px 1fr;
        gap: 10px;
        padding: 8px;
    }
    .kudmaye-search-result-image {
        width: 56px;
        height: 56px;
    }
    .kudmaye-search-result-title {
        font-size: 0.88rem;
    }
    .kudmaye-search-result-price {
        font-size: 0.84rem;
    }

    /* Hide the result image on very small screens to save space */
    @media (max-width: 380px) {
        .kudmaye-search-result {
            grid-template-columns: 48px 1fr;
        }
        .kudmaye-search-result-image {
            width: 48px;
            height: 48px;
        }
    }
}

/* Brand filter chip count badge (new in v2.2.4) */
.filter-chip-count {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 10px;
    margin-right: 6px;
    min-width: 22px;
    text-align: center;
}
.filter-chip.active .filter-chip-count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* Make filter chips styled as links (v2.2.4 — they're <a> tags now) */
a.filter-chip {
    text-decoration: none;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}/* ============================================
   USAGE CALCULATOR — v2.4.0 (single product page)
   ============================================ */
.sp-usage-calc-section {
    padding: 50px 0;
    background: var(--bg-secondary);
    border-top: 1px solid rgba(245, 158, 11, 0.08);
    border-bottom: 1px solid rgba(245, 158, 11, 0.08);
    margin: 40px 0;
}
.sp-usage-calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}
.sp-usage-calc-form {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.sp-usage-calc-field {
    margin-bottom: 20px;
}
.sp-usage-calc-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.sp-usage-calc-label svg {
    color: var(--accent-green);
}
.sp-usage-calc-select,
.sp-usage-calc-input {
    width: 100%;
    padding: 13px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Vazirmatn', sans-serif;
    outline: none;
    transition: border-color 0.2s ease;
}
/* Style the dropdown OPTIONS explicitly — without this, browsers use the
   OS default (white background, black text on macOS/Windows light mode,
   but white-on-white on some Linux/Android configs). */
.sp-usage-calc-select option,
.sp-usage-calc-select optgroup {
    background: #1f1611;
    color: #ffffff;
    padding: 8px 12px;
    font-family: 'Vazirmatn', sans-serif;
}
.sp-usage-calc-select option:checked,
.sp-usage-calc-select option:hover,
.sp-usage-calc-select option:focus {
    background: rgba(245, 158, 11, 0.25);
    color: #ffffff;
}
.sp-usage-calc-select:focus,
.sp-usage-calc-input:focus {
    border-color: var(--accent-green);
    background: rgba(245, 158, 11, 0.04);
}
.sp-usage-calc-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a0a0a0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    padding-left: 38px;
    cursor: pointer;
}.sp-usage-calc-input-row .sp-usage-calc-input {
    border: none;
    background: transparent;
    border-radius: 0;
}
.sp-usage-calc-suffix {
    padding: 0 16px;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.sp-usage-calc-toggle {
    display: flex;
    gap: 8px;
}
.sp-usage-calc-toggle-btn {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}
.sp-usage-calc-toggle-btn.active {
    border-color: var(--accent-green);
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-green);
    font-weight: 600;
}
.sp-usage-calc-submit {
    width: 100%;
    margin-top: 8px;
    justify-content: center;
}

/* Result panel */
.sp-usage-calc-result {
    background:
        linear-gradient(180deg, rgba(245, 158, 11, 0.06) 0%, transparent 40%),
        var(--bg-card);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    animation: spUsageCalcFadeIn 0.4s ease;
}
@keyframes spUsageCalcFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}.sp-usage-calc-disclaimer {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .sp-usage-calc-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .sp-usage-calc-form,
    .sp-usage-calc-result {
        padding: 22px 18px;
    }}.customer-results-cta .btn {
    display: inline-flex;
    padding: 14px 28px;
}

@media (max-width: 1024px) {}
@media (max-width: 768px) {}
@media (max-width: 480px) {}

/* ============================================
   QUICK VIEW MODAL — v2.4.0
   ============================================ */
.kudmaye-quickview-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.kudmaye-quickview-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.kudmaye-quickview-overlay[hidden] {
    display: none !important;
}
.kudmaye-quickview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.kudmaye-quickview-panel {
    position: relative;
    background:
        linear-gradient(180deg, rgba(245, 158, 11, 0.04) 0%, transparent 30%),
        var(--bg-secondary);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 24px;
    max-width: 880px;
    width: calc(100% - 32px);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    margin: 32px auto;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    transform: translateY(-15px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.kudmaye-quickview-overlay.open .kudmaye-quickview-panel {
    transform: translateY(0) scale(1);
}
.kudmaye-quickview-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.2s ease;
}
.kudmaye-quickview-close:hover {
    background: rgba(244, 63, 94, 0.15);
    color: var(--accent-red);
}
.kudmaye-quickview-body {
    padding: 30px;
}
.kudmaye-quickview-loading,
.kudmaye-quickview-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}
.kudmaye-quickview-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(245, 158, 11, 0.2);
    border-top-color: var(--accent-green);
    border-radius: 50%;
    margin: 0 auto 14px;
    animation: kudmayeQvSpin 0.8s linear infinite;
}
@keyframes kudmayeQvSpin {
    to { transform: rotate(360deg); }
}

/* Quick View content grid */
.kudmaye-quickview-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    align-items: start;
}
.kudmaye-quickview-image-wrap {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-card), var(--bg-primary));
    border: 1px solid rgba(255, 255, 255, 0.06);
    aspect-ratio: 1;
}
.kudmaye-quickview-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
}
.kudmaye-quickview-sale {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #fb923c, #f43f5e);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 10px;
}
.kudmaye-quickview-stock {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(14, 10, 7, 0.85);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 10px;
    backdrop-filter: blur(8px);
}
.kudmaye-quickview-stock.in {
    color: var(--accent-green);
}
.kudmaye-quickview-stock.out {
    color: var(--accent-red);
}
.kudmaye-quickview-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
}
.kudmaye-quickview-thumbs img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.kudmaye-quickview-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 10px;
    line-height: 1.3;
}
.kudmaye-quickview-brand {
    display: inline-block;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0.08));
    color: var(--accent-green);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 10px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}
.kudmaye-quickview-sku {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-bottom: 14px;
}
.kudmaye-quickview-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-green);
    margin-bottom: 14px;
}
.kudmaye-quickview-price del {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 400;
    margin-left: 10px;
}
.kudmaye-quickview-price ins {
    background: none;
    text-decoration: none;
    color: inherit;
}
.kudmaye-quickview-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 16px;
}
.kudmaye-quickview-attrs {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
}
.kudmaye-quickview-attrs h4 {
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 700;
    margin: 0 0 10px;
}
.kudmaye-quickview-attrs ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.kudmaye-quickview-attrs li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.85rem;
}
.kudmaye-quickview-attrs li:last-child {
    border-bottom: none;
}
.kudmaye-quickview-attrs li span {
    color: var(--text-muted);
}
.kudmaye-quickview-attrs li strong {
    color: var(--text-primary);
}
.kudmaye-quickview-actions {
    display: flex;
    gap: 10px;
}
.kudmaye-quickview-actions > * {
    flex: 1;
    justify-content: center;
}

body.quickview-open {
    overflow: hidden !important;
}

@media (max-width: 768px) {
    .kudmaye-quickview-panel {
        width: calc(100% - 16px);
        margin: 8px auto;
        max-height: calc(100vh - 16px);
        border-radius: 16px;
    }
    .kudmaye-quickview-body {
        padding: 20px 16px;
    }
    .kudmaye-quickview-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .kudmaye-quickview-image-wrap {
        max-width: 300px;
        margin: 0 auto;
    }
    .kudmaye-quickview-title {
        font-size: 1.2rem;
    }
    .kudmaye-quickview-price {
        font-size: 1.25rem;
    }
    .kudmaye-quickview-actions {
        flex-direction: column;
    }
}

/* Quick View button on shop cards */
.shop-card-quick-view {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(14, 10, 7, 0.9);
    color: var(--accent-green);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 22px;
    padding: 7px 14px;
    font-size: 0.74rem;
    font-weight: 600;
    font-family: 'Vazirmatn', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.shop-card:hover .shop-card-quick-view {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.shop-card-quick-view:hover {
    background: var(--accent-green);
    color: #fff;
    border-color: var(--accent-green);
}
@media (max-width: 768px) {
    /* On mobile, always show the quick view button (no hover) */
    .shop-card-quick-view {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
        padding: 6px 12px;
        font-size: 0.7rem;
    }
}

/* Help text inside label (for the package volume hint) */
.sp-usage-calc-help {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 2px;
}/* Style the package-volume field slightly differently (highlighted) */
#usagePackageVolume {
    background: rgba(245, 158, 11, 0.05);
    border-color: rgba(245, 158, 11, 0.2);
}
#usagePackageVolume:focus {
    background: rgba(245, 158, 11, 0.08);
    border-color: var(--accent-green);
}

/* ============================================
   PHONE CAPTURE POPUP — v2.5.0
   ============================================ */
.kudmaye-phone-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.kudmaye-phone-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.kudmaye-phone-overlay[hidden] {
    display: none !important;
}
.kudmaye-phone-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.kudmaye-phone-panel {
    position: relative;
    background:
        linear-gradient(180deg, rgba(245, 158, 11, 0.06) 0%, transparent 30%),
        var(--bg-secondary);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 24px;
    max-width: 440px;
    width: calc(100% - 32px);
    margin: 60px auto;
    padding: 36px 30px 28px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    transform: translateY(-15px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.kudmaye-phone-overlay.open .kudmaye-phone-panel {
    transform: translateY(0) scale(1);
}
.kudmaye-phone-close {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.kudmaye-phone-close:hover {
    background: rgba(244, 63, 94, 0.15);
    color: var(--accent-red);
}
.kudmaye-phone-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(236, 72, 153, 0.08));
    border: 1px solid rgba(245, 158, 11, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-green);
    animation: kudmayePhonePulse 2s ease-in-out infinite;
}
@keyframes kudmayePhonePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 12px rgba(245, 158, 11, 0); }
}
.kudmaye-phone-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 8px;
    line-height: 1.4;
}
.kudmaye-phone-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0 0 22px;
}
.kudmaye-phone-form {
    text-align: right;
}
.kudmaye-phone-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s ease;
    direction: ltr;
}
.kudmaye-phone-input-wrap:focus-within {
    border-color: var(--accent-green);
    background: rgba(245, 158, 11, 0.04);
}
.kudmaye-phone-input-icon {
    color: var(--text-muted);
    flex-shrink: 0;
    padding: 0 14px;
}
.kudmaye-phone-input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-family: 'Vazirmatn', sans-serif;
    outline: none;
    padding: 14px 14px 14px 0;
    text-align: left;
    direction: ltr;
    min-width: 0;
    -webkit-appearance: none;
    appearance: none;
}
.kudmaye-phone-input::placeholder {
    color: var(--text-muted);
}
.kudmaye-phone-error {
    color: var(--accent-red);
    font-size: 0.82rem;
    margin-top: 8px;
    text-align: right;
    background: rgba(244, 63, 94, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.2);
    padding: 6px 10px;
    border-radius: 8px;
}
.kudmaye-phone-submit {
    width: 100%;
    margin-top: 16px;
    justify-content: center;
    position: relative;
}
.kudmaye-phone-submit.loading {
    pointer-events: none;
    opacity: 0.8;
}
.kudmaye-phone-submit-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: kudmayePhoneSpin 0.7s linear infinite;
    margin-right: 8px;
}
@keyframes kudmayePhoneSpin {
    to { transform: rotate(360deg); }
}
.kudmaye-phone-skip {
    display: block;
    width: 100%;
    margin-top: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: 'Vazirmatn', sans-serif;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s ease;
}
.kudmaye-phone-skip:hover {
    color: var(--text-secondary);
}
.kudmaye-phone-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-size: 0.74rem;
    line-height: 1.5;
}
.kudmaye-phone-trust svg {
    color: var(--accent-green);
    flex-shrink: 0;
}

body.phone-popup-open {
    overflow: hidden !important;
}

@media (max-width: 480px) {
    .kudmaye-phone-panel {
        margin: 16px auto;
        padding: 30px 22px 22px;
        border-radius: 18px;
    }
    .kudmaye-phone-title {
        font-size: 1.05rem;
    }
}

/* ============================================
   SHIPPING INFO POPUP — v2.5.0
   ============================================ */
.kudmaye-shipping-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.kudmaye-shipping-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.kudmaye-shipping-overlay[hidden] {
    display: none !important;
}
.kudmaye-shipping-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.kudmaye-shipping-panel {
    position: relative;
    background:
        linear-gradient(180deg, rgba(245, 158, 11, 0.05) 0%, transparent 30%),
        var(--bg-secondary);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 24px;
    max-width: 520px;
    width: calc(100% - 32px);
    margin: 60px auto;
    padding: 36px 30px 28px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    transform: translateY(-15px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.kudmaye-shipping-overlay.open .kudmaye-shipping-panel {
    transform: translateY(0) scale(1);
}
.kudmaye-shipping-close {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.kudmaye-shipping-close:hover {
    background: rgba(244, 63, 94, 0.15);
    color: var(--accent-red);
}
.kudmaye-shipping-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(236, 72, 153, 0.08));
    border: 1px solid rgba(245, 158, 11, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-green);
}
.kudmaye-shipping-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 22px;
}
.kudmaye-shipping-content {
    text-align: right;
    margin-bottom: 24px;
}
.kudmaye-shipping-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    margin-bottom: 10px;
}
.kudmaye-shipping-item-free {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(236, 72, 153, 0.03));
    border-color: rgba(245, 158, 11, 0.2);
}
.kudmaye-shipping-item-icon {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
}
.kudmaye-shipping-item-body {
    flex: 1;
}
.kudmaye-shipping-item-body strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.kudmaye-shipping-item-body p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}
.kudmaye-shipping-cost,
.kudmaye-shipping-free {
    color: var(--accent-green);
    font-weight: 800;
}
.kudmaye-shipping-ok {
    width: 100%;
    justify-content: center;
}

/* v2.24.16 — بلوک .kudmaye-shipping-notice/.kudmaye-shipping-trigger/.kudmaye-shipping-hint
   حذف شد: markup آن از هوک قدیمی 01-shop-base.php می‌آمد که خودِ هوک حذف شد
   (خروجی مرده که CSS از قبل display:none کرده بود). هیچ markup ای این کلاس‌ها ندارد. */

/* Inamad badge on checkout */
.kudmaye-inamad-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    margin: 16px 0;
}
.kudmaye-inamad-badge {
    flex-shrink: 0;
}
.kudmaye-inamad-badge img {
    max-height: 80px;
    width: auto;
}
.kudmaye-inamad-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    background: rgba(245, 158, 11, 0.06);
    border: 1px dashed rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    color: var(--accent-green);
    font-size: 0.78rem;
    font-weight: 600;
}
.kudmaye-inamad-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: right;
    flex: 1;
}

@media (max-width: 768px) {
    .kudmaye-shipping-panel,
    .kudmaye-phone-panel {
        margin: 16px auto;
        padding: 30px 22px 22px;
        border-radius: 18px;
    }
    .kudmaye-shipping-title {
        font-size: 1.05rem;
    }
    .kudmaye-inamad-section {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   THANK YOU PAGE — v2.6.0
   ============================================ */
.kudmaye-thankyou-page {
    background:
        radial-gradient(ellipse at top right, rgba(245, 158, 11, 0.06), transparent 60%),
        var(--bg-primary);
    min-height: 100vh;
    padding: 0 0 60px;
}

.ty-hero {
    padding: 60px 0 30px;
    text-align: center;
    background:
        radial-gradient(600px 300px at 50% 0%, rgba(245, 158, 11, 0.12), transparent 60%);
}

/* Animated checkmark */
.ty-success-animation {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}
.ty-checkmark {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: block;
    stroke-width: 4;
    stroke: #fff;
    stroke-miterlimit: 10;
    box-shadow: inset 0 0 0 var(--accent-green);
    animation: ty-fill-circle 0.6s ease-in-out 0.4s forwards, ty-scale 0.4s ease-in-out 1s forwards;
}
.ty-checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 4;
    stroke: var(--accent-green);
    stroke-miterlimit: 10;
    fill: none;
    animation: ty-stroke-circle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.ty-checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: ty-stroke-check 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}
@keyframes ty-stroke-circle {
    to { stroke-dashoffset: 0; }
}
@keyframes ty-stroke-check {
    to { stroke-dashoffset: 0; }
}
@keyframes ty-fill-circle {
    to { box-shadow: inset 0 0 0 50px var(--accent-green); }
}
@keyframes ty-scale {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
.ty-checkmark-warn {
    animation: none;
}
.ty-checkmark-warn .ty-checkmark-circle {
    stroke: var(--accent-orange);
    animation: ty-stroke-circle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.ty-checkmark-warn .ty-checkmark-check {
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    animation: ty-stroke-check 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

/* v2.24.19 — WCAG 2.2.2: انیمیشن تیک برای کاربران حساس به حرکت؛
   stroke-dashoffset صفر تا مسیرها بدون انیمیشن هم کامل دیده شوند */
@media (prefers-reduced-motion: reduce) {
    .ty-checkmark,
    .ty-checkmark-circle,
    .ty-checkmark-check,
    .ty-checkmark-warn .ty-checkmark-circle,
    .ty-checkmark-warn .ty-checkmark-check {
        animation: none !important;
        stroke-dashoffset: 0 !important;
    }
}

.ty-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 10px;
    animation: ty-fade-up 0.6s ease 1.2s both;
}
.ty-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
    animation: ty-fade-up 0.6s ease 1.4s both;
}
@keyframes ty-fade-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ty-order-section {
    padding: 20px 0;
}
.ty-order-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.ty-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 22px 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.ty-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-green);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ty-card-head h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}
.ty-order-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ty-order-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.92rem;
}
.ty-order-list li:last-child { border-bottom: none; }
.ty-order-list li span { color: var(--text-muted); }
.ty-order-list li strong { color: var(--text-primary); }
.ty-total { color: var(--accent-green) !important; font-size: 1.05rem; }
.ty-status-completed { color: var(--accent-green) !important; }
.ty-status-processing { color: var(--accent-gold) !important; }
.ty-status-pending { color: var(--accent-orange) !important; }
.ty-status-cancelled, .ty-status-failed, .ty-status-refunded { color: var(--accent-red) !important; }

.ty-shipping-info { padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); margin-bottom: 14px; }
.ty-shipping-name { color: var(--text-primary); font-weight: 700; font-size: 1rem; margin: 0 0 6px; }
.ty-shipping-phone, .ty-shipping-address { color: var(--text-secondary); font-size: 0.88rem; margin: 4px 0; }
.ty-shipping-estimate {
    display: flex;
    gap: 12px;
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 12px;
    padding: 12px 14px;
}
.ty-shipping-estimate-icon { font-size: 1.5rem; flex-shrink: 0; }
.ty-shipping-estimate strong { display: block; color: var(--text-primary); font-size: 0.9rem; margin-bottom: 4px; }
.ty-shipping-estimate p { color: var(--text-secondary); font-size: 0.82rem; line-height: 1.6; margin: 0; }

/* Detailed shipping notice (v2.19.16) */
.ty-shipping-notice {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.10), rgba(245, 158, 11, 0.04));
    border: 1px solid rgba(245, 158, 11, 0.30);
    border-right: 5px solid #f59e0b;
    border-radius: 14px;
    padding: 18px 22px;
    margin: 18px 0;
}
.ty-shipping-notice-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 158, 11, 0.15);
    border-radius: 12px;
}
.ty-shipping-notice-body { flex: 1; }
.ty-shipping-notice-body h3 {
    color: #f59e0b;
    font-size: 1.02rem;
    font-weight: 700;
    margin: 0 0 8px;
}
.ty-shipping-notice-msg {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.95;
    margin: 0 0 12px;
}
.ty-shipping-notice-msg strong { color: var(--text-primary); }
.ty-shipping-notice-sms {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f59e0b;
    color: #0f172a !important;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}
.ty-shipping-notice-sms:hover { background: #d97706; transform: translateY(-1px); }
@media (max-width: 640px) {
    .ty-shipping-notice { flex-direction: column; gap: 12px; padding: 14px 16px; }
    .ty-shipping-notice-icon { width: 44px; height: 44px; font-size: 1.6rem; }
}

/* Items list */
.ty-items-list { list-style: none; padding: 0; margin: 0; }
.ty-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.ty-item:last-child { border-bottom: none; }
.ty-item-image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-secondary), var(--bg-primary));
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.ty-item-image img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.ty-item-name { font-size: 0.92rem; color: var(--text-primary); margin: 0 0 4px; font-weight: 600; }
.ty-item-qty { font-size: 0.8rem; color: var(--text-muted); margin: 0; }
.ty-item-price { color: var(--accent-green); font-weight: 800; font-size: 0.95rem; }

/* SMS notice */
.ty-sms-notice {
    display: flex;
    gap: 14px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.06), rgba(236, 72, 153, 0.02));
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 16px;
    margin: 20px 0;
}
.ty-sms-icon { font-size: 2rem; flex-shrink: 0; }
.ty-sms-content { flex: 1; }
.ty-sms-content h3 { color: var(--text-primary); font-size: 1rem; margin: 0 0 6px; }
.ty-sms-content p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6; margin: 0 0 12px; }
.ty-sms-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-emerald));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ty-sms-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(245, 158, 11, 0.25); }

/* Channels grid */
.ty-channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin: 20px 0;
}
.ty-channel {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.25s ease;
}
.ty-channel:hover { transform: translateY(-2px); border-color: rgba(245, 158, 11, 0.25); }
.ty-channel-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ty-channel-whatsapp .ty-channel-icon { background: #25d366; color: #fff; }
.ty-channel-baleh .ty-channel-icon { background: #29a0dc; color: #fff; }
.ty-channel-rubika .ty-channel-icon { background: #c5344c; color: #fff; }
.ty-channel-body strong { display: block; font-size: 0.92rem; color: var(--text-primary); }
.ty-channel-body p { font-size: 0.78rem; color: var(--text-muted); margin: 2px 0 0; }

/* CTA row */
.ty-cta-row {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.ty-cta-row .btn { flex: 1; min-width: 200px; justify-content: center; }

@media (max-width: 768px) {
    .ty-hero { padding: 40px 0 24px; }
    .ty-title { font-size: 1.4rem; }
    .ty-order-grid { grid-template-columns: 1fr; }
    .ty-sms-notice { flex-direction: column; text-align: center; }
    .ty-cta-row { flex-direction: column; }
    .ty-cta-row .btn { width: 100%; }
}

/* ============================================
   MY ACCOUNT PAGE — v2.6.0
   ============================================ */
.kudmaye-account-page {
    background:
        radial-gradient(ellipse at top, rgba(245, 158, 11, 0.04), transparent 50%),
        var(--bg-primary);
    min-height: 100vh;
    padding: 0 0 60px;
}
.ma-hero {
    padding: 40px 0 20px;
    background:
        radial-gradient(600px 200px at 50% 0%, rgba(245, 158, 11, 0.08), transparent 60%);
}
.ma-hero-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
}
.ma-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-emerald));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}
.ma-greeting h1 { color: var(--text-primary); font-size: 1.5rem; margin: 0 0 6px; font-weight: 800; }
.ma-greeting p { color: var(--text-secondary); font-size: 0.9rem; margin: 0; }
.ma-quick-links { display: flex; gap: 8px; }
.ma-quick-link {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease;
}
.ma-quick-link:hover { transform: translateY(-2px); }
.ma-quick-link-wa { background: #25d366; color: #fff; }
.ma-quick-link-baleh { background: #29a0dc; color: #fff; }
.ma-quick-link-rubika { background: #c5344c; color: #fff; }

/* Stats */
.ma-stats { padding: 20px 0; }
.ma-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ma-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.ma-stat-icon { font-size: 1.8rem; line-height: 1; }
.ma-stat-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ma-stat-value { color: var(--accent-green); font-size: 1.2rem; font-weight: 800; line-height: 1.2; }
.ma-stat-label { color: var(--text-muted); font-size: 0.78rem; }

/* Content */
.ma-content { padding: 20px 0; }
.ma-content-body {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

/* Override WooCommerce's default nav */
.ma-content .woocommerce-MyAccount-navigation {
    margin-bottom: 20px;
}
.ma-content .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ma-content .woocommerce-MyAccount-navigation ul li {
    padding: 0;
}
.ma-content .woocommerce-MyAccount-navigation ul li a {
    display: inline-block;
    padding: 10px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s ease;
}
.ma-content .woocommerce-MyAccount-navigation ul li.is-active a,
.ma-content .woocommerce-MyAccount-navigation ul li a:hover {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-green);
}
.ma-content .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a {
    color: var(--accent-red);
}
.ma-content .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
    background: rgba(244, 63, 94, 0.1);
}

/* Orders list (inside ma-content-body) */
.ma-orders-list { display: flex; flex-direction: column; gap: 12px; }
.ma-order-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 16px 18px;
    transition: border-color 0.2s ease;
}
.ma-order-card:hover { border-color: rgba(245, 158, 11, 0.2); }
.ma-order-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.ma-order-info { display: flex; align-items: center; gap: 10px; }
.ma-order-num { color: var(--text-primary); font-weight: 700; font-size: 1rem; }
.ma-order-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 700;
}
.ma-order-status-pending { background: rgba(251, 146, 60, 0.15); color: var(--accent-orange); }
.ma-order-status-processing { background: rgba(250, 204, 21, 0.15); color: var(--accent-gold); }
.ma-order-status-hold { background: rgba(160, 160, 160, 0.15); color: var(--text-secondary); }
.ma-order-status-completed { background: rgba(245, 158, 11, 0.15); color: var(--accent-green); }
.ma-order-status-cancelled, .ma-order-status-failed, .ma-order-status-refunded {
    background: rgba(244, 63, 94, 0.15); color: var(--accent-red);
}
.ma-order-date { color: var(--text-muted); font-size: 0.82rem; }
.ma-order-body { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.ma-order-summary { display: flex; gap: 20px; flex-wrap: wrap; }
.ma-order-summary-item { display: flex; flex-direction: column; gap: 2px; }
.ma-order-summary-item span { color: var(--text-muted); font-size: 0.75rem; }
.ma-order-summary-item strong { color: var(--text-primary); font-size: 0.95rem; }
.ma-order-total { color: var(--accent-green) !important; }
.ma-order-actions { display: flex; gap: 8px; }
.ma-order-view, .ma-order-reorder {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    font-size: 0.82rem;
    border-radius: 10px;
    text-decoration: none;
}
.ma-order-view { background: rgba(255, 255, 255, 0.05); color: var(--text-secondary); border: 1px solid rgba(255, 255, 255, 0.08); }
.ma-order-view:hover { background: rgba(255, 255, 255, 0.08); color: var(--text-primary); }
.ma-order-reorder { background: linear-gradient(135deg, var(--accent-green), var(--accent-emerald)); color: #fff; }
.ma-order-reorder:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3); }

.ma-orders-empty {
    text-align: center;
    padding: 40px 20px;
}
.ma-orders-empty-icon { font-size: 3rem; margin-bottom: 14px; opacity: 0.5; }
.ma-orders-empty h3 { color: var(--text-primary); font-size: 1.1rem; margin: 0 0 8px; }
.ma-orders-empty p { color: var(--text-secondary); font-size: 0.88rem; margin: 0 0 18px; }

.ma-orders-pagination { margin-top: 20px; text-align: center; }
.ma-orders-pagination .page-numbers {
    display: inline-flex; gap: 4px; padding: 6px 12px;
    background: rgba(255, 255, 255, 0.04); color: var(--text-secondary);
    border-radius: 8px; text-decoration: none; margin: 0 2px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.ma-orders-pagination .page-numbers.current {
    background: var(--accent-green); color: #fff; border-color: var(--accent-green);
}

/* Help banner */
.ma-help { padding: 30px 0; }
.ma-help-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.06), rgba(236, 72, 153, 0.02));
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 16px;
}
.ma-help-icon { font-size: 2rem; flex-shrink: 0; }
.ma-help-body { flex: 1; }
.ma-help-body h3 { color: var(--text-primary); font-size: 1rem; margin: 0 0 4px; }
.ma-help-body p { color: var(--text-secondary); font-size: 0.85rem; margin: 0; }
.ma-help-actions { display: flex; gap: 8px; flex-shrink: 0; }

@media (max-width: 768px) {
    .ma-hero-grid { grid-template-columns: auto 1fr; }
    .ma-quick-links { grid-column: 1 / -1; justify-content: flex-start; }
    .ma-stats-grid { grid-template-columns: 1fr; }
    .ma-help-card { flex-direction: column; text-align: center; }
    .ma-help-actions { width: 100%; }
    .ma-help-actions .btn { flex: 1; }
    .ma-content .woocommerce-MyAccount-navigation ul { flex-direction: column; }
    .ma-content .woocommerce-MyAccount-navigation ul li a { display: block; width: 100%; }
}

/* ============================================
   FOOTER CHANNELS — v2.6.0
   ============================================ */
.footer-col-channels .footer-channels-desc {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin: 0 0 10px;
}
.footer-channels { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-channel {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
}
.footer-channel:hover { transform: translateY(-1px); }/* ============================================
   NOTIFICATION BAR — v2.8.0
   ============================================ */
.kudmaye-notice-bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1002;
    padding: 8px 16px; text-align: center;
    font-size: 0.85rem; font-weight: 600; color: #fff;
    display: flex; align-items: center; justify-content: center;
    gap: 12px;
}
/* When notice bar is visible, push header down */
body.has-notice-bar .site-header { top: 36px !important; }/* ============================================
   ABOUT PAGE — v2.8.0 (team, certs, timeline, video)
   ============================================ */
.about-team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.about-team-card {
    background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 18px; padding: 24px; text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.about-team-card:hover { transform: translateY(-4px); border-color: rgba(245,158,11,0.2); }
.about-team-avatar {
    width: 80px; height: 80px; margin: 0 auto 14px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(236,72,153,0.08));
    border: 2px solid rgba(245,158,11,0.25);
    display: flex; align-items: center; justify-content: center; font-size: 2rem;
}
.about-team-card h3 { font-size: 1rem; color: var(--text-primary); margin: 0 0 4px; }
.about-team-card span { display: block; font-size: 0.78rem; color: var(--accent-green); margin-bottom: 8px; font-weight: 600; }
.about-team-card p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; margin: 0; }

.about-certs-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.about-cert-card {
    background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px; padding: 24px; text-align: center;
}
.about-cert-icon { font-size: 2.5rem; margin-bottom: 10px; }
.about-cert-card h3 { font-size: 0.95rem; color: var(--text-primary); margin: 0 0 6px; }
.about-cert-card p { font-size: 0.8rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

.about-timeline { position: relative; padding-right: 30px; max-width: 700px; margin: 0 auto; }
.about-timeline::before { content: ''; position: absolute; right: 8px; top: 0; bottom: 0; width: 2px; background: rgba(245,158,11,0.2); }
.about-timeline-item { position: relative; margin-bottom: 24px; }
.about-timeline-dot { position: absolute; right: -26px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent-green); border: 2px solid var(--bg-secondary); }
.about-timeline-content { background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; padding: 16px 18px; }
.about-timeline-year { display: inline-block; background: rgba(245,158,11,0.12); color: var(--accent-green); padding: 2px 10px; border-radius: 8px; font-size: 0.78rem; font-weight: 700; margin-bottom: 6px; }
.about-timeline-content h3 { font-size: 0.95rem; color: var(--text-primary); margin: 0 0 4px; }
.about-timeline-content p { font-size: 0.82rem; color: var(--text-secondary); margin: 0; line-height: 1.6; }

.about-video-section { padding: 60px 0; }
.about-video-wrapper { max-width: 800px; margin: 0 auto; border-radius: 18px; overflow: hidden; }
.about-video-placeholder {
    aspect-ratio: 16/9; background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border: 1px solid rgba(245,158,11,0.15); border-radius: 18px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.about-video-play {
    width: 72px; height: 72px; border-radius: 50%; border: none;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-emerald));
    color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: transform 0.3s ease; box-shadow: 0 8px 24px rgba(245,158,11,0.3);
}
.about-video-play:hover { transform: scale(1.1); }
.about-video-placeholder p { color: var(--text-secondary); font-size: 0.95rem; }

@media (max-width: 768px) {
    .about-team-grid, .about-certs-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}
@media (max-width: 480px) {
    .about-team-grid, .about-certs-grid { grid-template-columns: 1fr; }
}

/* ============================================
   ARTICLES — v2.8.0
   ============================================ */
.articles-section { padding: 40px 0; }
.articles-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.articles-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.article-card {
    background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 18px; overflow: hidden; transition: transform 0.3s ease, border-color 0.3s ease;
}
.article-card:hover { transform: translateY(-4px); border-color: rgba(245,158,11,0.2); }
.article-card-image { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-secondary); }.article-card-cat {
    position: absolute; top: 10px; right: 10px;
    background: rgba(245,158,11,0.9); color: #fff; font-size: 0.72rem;
    padding: 3px 10px; border-radius: 8px; font-weight: 700;
}
.article-card-body { padding: 16px 18px; }
.article-card-date { font-size: 0.75rem; color: var(--text-muted); display: block; margin-bottom: 6px; }
.article-card-title { font-size: 1rem; color: var(--text-primary); margin: 0 0 8px; line-height: 1.4; }
.article-card-title a { color: inherit; text-decoration: none; }
.article-card-title a:hover { color: var(--accent-green); }
.article-card-excerpt { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; margin: 0 0 10px; }
.article-card-read { font-size: 0.85rem; color: var(--accent-green); text-decoration: none; font-weight: 600; }
.article-card-read:hover { text-decoration: underline; }@media (max-width: 1024px) { .articles-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .articles-grid { grid-template-columns: 1fr; } }

/* Single article */
.article-single-page { padding: 20px 0 60px; }
.article-single { max-width: 800px; margin: 0 auto; }
.article-single-head { text-align: center; margin: 24px 0; }
.article-single-cat { display: inline-block; background: rgba(245,158,11,0.12); color: var(--accent-green); padding: 4px 14px; border-radius: 12px; font-size: 0.78rem; font-weight: 700; margin-bottom: 12px; }
.article-single-title { font-size: 1.8rem; color: var(--text-primary); margin: 0 0 12px; line-height: 1.4; }
.article-single-meta { display: flex; gap: 16px; justify-content: center; color: var(--text-muted); font-size: 0.82rem; }
.article-single-image { border-radius: 18px; overflow: hidden; margin-bottom: 24px; }
.article-single-image img { width: 100%; height: auto; }
.article-single-content { color: var(--text-secondary); font-size: 0.95rem; line-height: 2; }
.article-single-content h2, .article-single-content h3 { color: var(--text-primary); }
.article-single-content p { margin-bottom: 16px; }
.article-single-content img { border-radius: 12px; }
.article-single-cta { text-align: center; padding: 30px; background: var(--bg-card); border: 1px solid rgba(245,158,11,0.15); border-radius: 18px; margin: 30px 0; }
.article-single-cta h3 { color: var(--text-primary); margin: 0 0 6px; }
.article-single-cta p { color: var(--text-secondary); margin: 0 0 16px; }
.article-single-related { margin-top: 40px; }
.article-single-related h3 { color: var(--text-primary); margin-bottom: 20px; }

/* ============================================
   CHAT WIDGET — v2.8.0
   ============================================ */
.kudmaye-chat-widget { position: fixed; bottom: 80px; z-index: 999; }
.kudmaye-chat-left { left: 20px; }
.kudmaye-chat-right { right: 20px; }
.kudmaye-chat-toggle {
    width: 56px; height: 56px; border-radius: 50%; border: none;
    background: linear-gradient(135deg, #25d366, #128c7e); color: #fff;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 20px rgba(37,211,102,0.4); transition: transform 0.3s ease;
    animation: kudmayeChatPulse 2s ease-in-out infinite;
}
.kudmaye-chat-toggle:hover { transform: scale(1.08); }
@keyframes kudmayeChatPulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 6px 30px rgba(37,211,102,0.7); }
}
.kudmaye-chat-panel {
    position: fixed; bottom: 145px; width: 340px; max-width: calc(100vw - 32px);
    background: var(--bg-secondary); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    opacity: 0; transform: translateY(10px); transition: all 0.3s ease; pointer-events: none;
    z-index: 1000;
}
.kudmaye-chat-left .kudmaye-chat-panel { left: 20px; }
.kudmaye-chat-right .kudmaye-chat-panel { right: 20px; }
.kudmaye-chat-panel:not([hidden]) { opacity: 1; transform: translateY(0); pointer-events: auto; }
.kudmaye-chat-head {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-emerald));
    color: #fff; padding: 16px 18px; display: flex; align-items: center; gap: 12px;
}
.kudmaye-chat-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.kudmaye-chat-head strong { display: block; font-size: 0.92rem; }
.kudmaye-chat-status { font-size: 0.72rem; opacity: 0.9; }
.kudmaye-chat-body { padding: 16px; }
.kudmaye-chat-welcome-msg { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.7; margin: 0 0 14px; }
.kudmaye-chat-option {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px; text-decoration: none; color: var(--text-primary);
    margin-bottom: 8px; transition: all 0.2s ease; cursor: pointer; font-family: inherit;
}
.kudmaye-chat-option:hover { background: rgba(255,255,255,0.06); border-color: rgba(245,158,11,0.2); }
.kudmaye-chat-option svg { flex-shrink: 0; }
.kudmaye-chat-option strong { display: block; font-size: 0.88rem; }
.kudmaye-chat-option span { font-size: 0.75rem; color: var(--text-muted); }
.kudmaye-chat-wa svg { color: #25d366; }
.kudmaye-chat-baleh svg { color: #29a0dc; }
.kudmaye-chat-sms svg { color: var(--accent-green); }

@media (max-width: 480px) {
    .kudmaye-chat-panel { width: calc(100vw - 40px); }
}

/* ============================================
   FERTILIZER WIZARD — v2.8.0
   ============================================ */
.wizard-section { padding: 60px 0; background: var(--bg-secondary); }
.wizard-container {
    max-width: 700px; margin: 0 auto; background: var(--bg-card);
    border: 1px solid rgba(245,158,11,0.15); border-radius: 20px; padding: 28px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
/* v2.24.1 — این دو قاعده فقط برای ویزارد قدیمی v2.8.0 (المان #wizardContainer)
   معتبرند. قبلاً بدون اسکوپ بودند و ویزارد «برنامه کودی» (که کلاس wizard-step
   را با attribute-based toggling استفاده می‌کند) را کاملاً نامرئی می‌کردند. */
#wizardContainer .wizard-step { display: none; }
#wizardContainer .wizard-step.wizard-step-active { display: block; animation: wizardFadeIn 0.4s ease; }
@keyframes wizardFadeIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }
.wizard-step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.wizard-step-num {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-emerald));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.9rem; flex-shrink: 0;
}
.wizard-step-head h3 { font-size: 1.1rem; color: var(--text-primary); margin: 0; }
.wizard-options { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.wizard-option {
    padding: 14px 16px; background: rgba(255,255,255,0.03);
    border: 1.5px solid rgba(255,255,255,0.08); border-radius: 14px;
    color: var(--text-secondary); font-size: 0.92rem; font-family: inherit;
    cursor: pointer; transition: all 0.2s ease; text-align: center;
}
.wizard-option:hover { border-color: rgba(245,158,11,0.3); background: rgba(245,158,11,0.06); color: var(--text-primary); }
.wizard-option.selected { border-color: var(--accent-green); background: rgba(245,158,11,0.12); color: var(--accent-green); font-weight: 600; }
.wizard-progress { margin-top: 20px; height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }.wizard-result { text-align: center; animation: wizardFadeIn 0.4s ease; }.wizard-result h3 { color: var(--text-primary); margin: 0 0 16px; }.wizard-result-actions .btn { min-width: 180px; justify-content: center; }
.wizard-restart { background: none; border: none; color: var(--text-muted); font-size: 0.85rem; cursor: pointer; font-family: inherit; }
.wizard-restart:hover { color: var(--accent-green); }

@media (max-width: 600px) {
    .wizard-options { grid-template-columns: 1fr; }    .wizard-result-actions .btn { width: 100%; }
}

/* ============================================
   CHAT WIDGET PHONE STEP — v2.9.0
   ============================================ */
.kudmaye-chat-phone-prompt { color: var(--text-secondary); font-size: 0.82rem; margin: 0 0 10px; }
.kudmaye-chat-phone-input-wrap {
    display: flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.04); border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 10px; padding: 8px 10px; direction: ltr;
}
.kudmaye-chat-phone-input-wrap:focus-within { border-color: var(--accent-green); }
.kudmaye-chat-phone-input-wrap svg { color: var(--text-muted); flex-shrink: 0; }
.kudmaye-chat-phone-input {
    flex: 1; border: none; background: transparent; color: var(--text-primary);
    font-size: 0.95rem; font-family: 'Vazirmatn', sans-serif; outline: none;
    text-align: left; direction: ltr; min-width: 0;
}
.kudmaye-chat-phone-input::placeholder { color: var(--text-muted); }
.kudmaye-chat-phone-error {
    color: var(--accent-red); font-size: 0.78rem; margin-top: 6px;
    background: rgba(244,63,94,0.08); border: 1px solid rgba(244,63,94,0.2);
    padding: 4px 8px; border-radius: 6px;
}
.kudmaye-chat-phone-skip:hover { color: var(--text-secondary) !important; }

/* ============================================
   v2.9.1 — Fix large product images on mobile
   Some uploaded product images have very large dimensions and overflow
   their containers. These rules enforce strict sizing constraints.
   ============================================ */

/* Shop card image — strict constraints */
.shop-card-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.shop-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 100%;
}
@media (max-width: 768px) {
    .shop-card-image img {
        max-height: 200px;
        padding: 8px;
    }
}
@media (max-width: 480px) {
    .shop-card-image img {
        max-height: 180px;
        padding: 6px;
    }
}

/* Product card (homepage swiper) image */
.product-card-media {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.product-card-media img,
.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 100%;
}
@media (max-width: 768px) {
    .product-card-media img,
    .product-image {
        max-height: 200px;
        padding: 8px;
    }
}

/* Quick View modal image */
.kudmaye-quickview-image {
    max-height: 100%;
}

/* Single product gallery main image */
.sp-gallery-main {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.sp-main-img {
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
@media (max-width: 768px) {
    .sp-gallery-main {
        max-width: 360px;
        margin: 0 auto;
    }
    .sp-main-img {
        padding: 20px;
    }
}/* Article card images */
.article-card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}/* Make add-to-cart button full width now that WA button is removed */
.shop-card-actions .shop-card-btn-primary,
.product-card-actions .product-card-btn-primary {
    width: 100%;
    justify-content: center;
}

/* ============================================
   v2.10.0 — MOBILE CARD FIXES
   Fix oversized product card batches on mobile.
   Force strict dimensions and reduce padding.
   ============================================ */
@media (max-width: 768px) {
    .shop-card,
    .product-card {
        max-width: 100%;
        overflow: hidden;
    }
    .shop-card-image,
    .product-card-media {
        aspect-ratio: 1 / 1;
        max-height: 220px;
    }
    .shop-card-image img,
    .product-card-media img,
    .product-image {
        max-height: 220px;
        padding: 14px !important;
        object-fit: contain !important;
    }
    .shop-card-body,
    .product-info {
        padding: 12px !important;
    }
    .shop-card-title,
    .product-name {
        font-size: 0.88rem !important;
        line-height: 1.4;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    .shop-card-price,
    .product-price {
        font-size: 0.92rem !important;
    }
    .shop-card-actions,
    .product-card-actions {
        padding: 0 12px 12px !important;
    }
    .shop-card-btn-primary,
    .product-card-btn-primary {
        font-size: 0.82rem !important;
        padding: 9px 10px !important;
    }
}
@media (max-width: 480px) {
    .shop-card-image img,
    .product-card-media img,
    .product-image {
        max-height: 170px;
        padding: 10px !important;
    }
    .shop-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .shop-card-image,
    .product-card-media {
        max-height: 170px;
    }
}

/* ============================================
   v2.10.0 — HERO BACKGROUND DECORATIONS
   Beautiful floating elements in homepage hero
   ============================================ */
.hero {
    position: relative;
    overflow: hidden;
}
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.hero::before {
    top: -60px;
    left: -60px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12), transparent 70%);
    animation: heroFloat1 8s ease-in-out infinite;
}
.hero::after {
    bottom: -80px;
    right: -40px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.08), transparent 70%);
    animation: heroFloat2 10s ease-in-out infinite;
}
@keyframes heroFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, 30px) scale(1.1); }
}
@keyframes heroFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, -20px) scale(0.9); }
}
.hero-content { position: relative; z-index: 1; }

/* Decorative leaf particles */
.hero-particle {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    animation: heroParticleFloat 6s ease-in-out infinite;
}
.hero-particle:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.hero-particle:nth-child(2) { top: 60%; left: 85%; animation-delay: 1s; font-size: 1.2rem; }
.hero-particle:nth-child(3) { top: 80%; left: 15%; animation-delay: 2s; font-size: 1rem; }
.hero-particle:nth-child(4) { top: 30%; left: 75%; animation-delay: 3s; font-size: 1.3rem; }
@keyframes heroParticleFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(10deg); }
}.kudmaye-shipping-notice-checkout-top .kudmaye-shipping-trigger {
    font-size: 0.95rem;
}
.kudmaye-shipping-notice-checkout-top .kudmaye-shipping-hint {
    margin: 0;
    flex: 1;
    min-width: 200px;
}.brands-slider {
    display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth;
    padding-bottom: 12px; scrollbar-width: none; -ms-overflow-style: none;
}
.brands-slider::-webkit-scrollbar { display: none; }
.brands-slider .brand-card {
    flex: 0 0 300px; max-width: 300px;
}@media (max-width: 768px) {
    .brands-slider .brand-card { flex: 0 0 260px; max-width: 260px; }
}

/* ============================================
   v2.11.0 — BACK TO TOP ABOVE CHAT WIDGET
   ============================================ */
.back-to-top {
    z-index: 1001 !important;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout) .back-to-top {
    bottom: 90px;
}

/* ============================================
   v2.11.0 — CHECKOUT: hide ship-to-different-address + show order review in desktop
   ============================================ */
.woocommerce-shipping-fields {
    display: none !important;
}
/* On desktop, show order review (col-2) side by side with billing (col-1) */
@media (min-width: 900px) {
    .woocommerce-checkout #customer_details {
        display: grid !important;
        grid-template-columns: 1.4fr 1fr !important;
        gap: 32px !important;
    }
    .woocommerce-checkout #customer_details .col-2 {
        display: block !important;
    }
    .woocommerce-checkout #customer_details .col-2 .woocommerce-checkout-review-order {
        position: sticky; top: 100px;
    }
}

/* ============================================
   v2.11.0 — WELCOME LEAD POPUP (shown on first visit)
   ============================================ */
.kudmaye-welcome-popup-overlay {
    position: fixed; inset: 0; z-index: 5000;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.kudmaye-welcome-popup-overlay.open { opacity: 1; pointer-events: auto; }
.kudmaye-welcome-popup-overlay[hidden] { display: none !important; }
.kudmaye-welcome-popup-backdrop {
    position: absolute; inset: 0;
    background: rgba(5,5,5,0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.kudmaye-welcome-popup-panel {
    position: relative; max-width: 440px; width: calc(100% - 32px);
    margin: 50px auto; padding: 36px 28px 28px; text-align: center;
    background:
        linear-gradient(180deg, rgba(245,158,11,0.08) 0%, transparent 40%),
        var(--bg-secondary);
    border: 1px solid rgba(245,158,11,0.2); border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    transform: translateY(-15px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.kudmaye-welcome-popup-overlay.open .kudmaye-welcome-popup-panel {
    transform: translateY(0) scale(1);
}
.kudmaye-welcome-popup-close {
    position: absolute; top: 14px; left: 14px; width: 34px; height: 34px;
    border: none; background: rgba(255,255,255,0.06); color: var(--text-secondary);
    border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.kudmaye-welcome-popup-close:hover { background: rgba(244,63,94,0.15); color: var(--accent-red); }
.kudmaye-welcome-popup-icon {
    width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(245,158,11,0.18), rgba(236,72,153,0.08));
    border: 1px solid rgba(245,158,11,0.3);
    display: flex; align-items: center; justify-content: center; font-size: 2rem;
    animation: kudmayeWelcomePulse 2s ease-in-out infinite;
}
@keyframes kudmayeWelcomePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245,158,11,0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 12px rgba(245,158,11,0); }
}
.kudmaye-welcome-popup-title {
    font-size: 1.25rem; font-weight: 800; color: var(--text-primary); margin: 0 0 8px;
}
.kudmaye-welcome-popup-desc {
    color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; margin: 0 0 20px;
}
.kudmaye-welcome-popup-discount-badge {
    display: inline-block; background: linear-gradient(135deg, #fb923c, #f43f5e);
    color: #fff; padding: 6px 18px; border-radius: 12px; font-size: 0.92rem; font-weight: 800;
    margin-bottom: 16px; box-shadow: 0 4px 14px rgba(244,63,94,0.3);
}
.kudmaye-welcome-popup-input-wrap {
    display: flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.04); border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 14px; overflow: hidden; padding: 8px 12px; direction: ltr;
}
.kudmaye-welcome-popup-input-wrap:focus-within { border-color: var(--accent-green); }
.kudmaye-welcome-popup-input-wrap svg { color: var(--text-muted); flex-shrink: 0; }
.kudmaye-welcome-popup-input {
    flex: 1; border: none; background: transparent; color: var(--text-primary);
    font-size: 1rem; font-family: 'Vazirmatn',sans-serif; outline: none;
    text-align: left; direction: ltr; min-width: 0;
}
.kudmaye-welcome-popup-input::placeholder { color: var(--text-muted); }
.kudmaye-welcome-popup-error {
    color: var(--accent-red); font-size: 0.8rem; margin-top: 8px; text-align: right;
    background: rgba(244,63,94,0.08); border: 1px solid rgba(244,63,94,0.2);
    padding: 6px 10px; border-radius: 8px;
}
.kudmaye-welcome-popup-submit {
    width: 100%; margin-top: 14px; justify-content: center;
}
.kudmaye-welcome-popup-skip {
    display: block; width: 100%; margin-top: 8px; background: none; border: none;
    color: var(--text-muted); font-size: 0.82rem; cursor: pointer; font-family: inherit; padding: 6px;
}
.kudmaye-welcome-popup-skip:hover { color: var(--text-secondary); }
.kudmaye-welcome-popup-trust {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.06);
    color: var(--text-muted); font-size: 0.72rem;
}
.kudmaye-welcome-popup-trust svg { color: var(--accent-green); }

body.welcome-popup-open { overflow: hidden !important; }

@media (max-width: 480px) {
    .kudmaye-welcome-popup-panel { margin: 16px auto; padding: 28px 20px 22px; border-radius: 18px; }
    .kudmaye-welcome-popup-title { font-size: 1.1rem; }
}

/* ============================================
   v2.12.0 — CATEGORY AUTO-SCROLL SLIDER
   Horizontal loop, no nav buttons, auto-scroll
   ============================================ */
.cat-auto-slider {
    overflow: hidden;
    margin-bottom: 24px;
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.cat-auto-slider-track {
    display: flex;
    gap: 12px;
    width: max-content;
    animation: catAutoScroll 30s linear infinite;
}
.cat-auto-slider:hover .cat-auto-slider-track {
    animation-play-state: paused;
}
/* RTL: scroll from right to left (positive translateX) */
@keyframes catAutoScroll {
    from { transform: translateX(0); }
    to { transform: translateX(50%); }
}

/* v2.24.17 — WCAG 2.2.2: توقف با فوکوس کیبورد + reduced-motion (هم‌الگوی تیکر) */
.cat-auto-slider:focus-within .cat-auto-slider-track {
    animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
    .cat-auto-slider-track { animation: none; }
    .cat-auto-slider { overflow-x: auto; }
}
.cat-auto-slide {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.cat-auto-slide:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--accent-green);
}
.cat-auto-slide.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(236, 72, 153, 0.06));
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--accent-green);
}
.cat-auto-slide-icon {
    font-size: 1.1rem;
    line-height: 1;
}
.cat-auto-slide-count {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 0.7rem;
    padding: 1px 7px;
    border-radius: 8px;
    font-weight: 600;
}
.cat-auto-slide.active .cat-auto-slide-count {
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent-green);
}

@media (max-width: 768px) {
    .cat-auto-slide {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    .cat-auto-slider-track {
        animation-duration: 20s;
    }
}

/* ============================================
   v2.13.0 — CART TOAST NOTIFICATION
   ============================================ */
.kudmaye-cart-toast {
    position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(20px);
    z-index: 5000; display: flex; align-items: center; gap: 12px;
    padding: 14px 20px;
    background: linear-gradient(135deg, rgba(15,15,15,0.97), rgba(8,8,8,0.98));
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(245,158,11,0.3); border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    opacity: 0; transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
    max-width: 380px; width: calc(100% - 32px);
}
.kudmaye-cart-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.kudmaye-cart-toast-icon { font-size: 1.5rem; flex-shrink: 0; }
.kudmaye-cart-toast-body { flex: 1; }
.kudmaye-cart-toast-body strong { display: block; color: #fff; font-size: 0.92rem; }
.kudmaye-cart-toast-body p { color: var(--accent-green); font-size: 0.8rem; margin: 2px 0 0; }
.kudmaye-cart-toast-close {
    background: none; border: none; color: var(--text-muted); font-size: 1.4rem;
    cursor: pointer; padding: 0 4px; line-height: 1;
}
.kudmaye-cart-toast-close:hover { color: #fff; }

@media (max-width: 480px) {
    .kudmaye-cart-toast { bottom: 90px; padding: 12px 16px; }
    .kudmaye-cart-toast-body strong { font-size: 0.85rem; }
    .kudmaye-cart-toast-body p { font-size: 0.75rem; }
}

/* ============================================
   v2.13.0 — CART PHONE POPUP (after add-to-cart)
   ============================================ */
.kudmaye-cart-phone-popup {
    position: fixed; inset: 0; z-index: 5100;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.kudmaye-cart-phone-popup.show { opacity: 1; pointer-events: auto; }
.kudmaye-cart-phone-popup-backdrop {
    position: absolute; inset: 0; background: rgba(5,5,5,0.85);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.kudmaye-cart-phone-popup-panel {
    position: relative; max-width: 380px; width: calc(100% - 32px);
    margin: 60px auto; padding: 32px 24px 22px; text-align: center;
    background:
        linear-gradient(180deg, rgba(245,158,11,0.08) 0%, transparent 40%),
        var(--bg-secondary);
    border: 1px solid rgba(245,158,11,0.2); border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    transform: translateY(-15px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.kudmaye-cart-phone-popup.show .kudmaye-cart-phone-popup-panel {
    transform: translateY(0) scale(1);
}
.kudmaye-cart-phone-popup-close {
    position: absolute; top: 12px; left: 12px; width: 30px; height: 30px;
    border: none; background: rgba(255,255,255,0.06); color: var(--text-secondary);
    border-radius: 8px; cursor: pointer; font-size: 1.3rem; line-height: 1;
}
.kudmaye-cart-phone-popup-icon {
    width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(245,158,11,0.18), rgba(236,72,153,0.08));
    border: 1px solid rgba(245,158,11,0.3);
    display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.kudmaye-cart-phone-popup-panel h3 { color: var(--text-primary); font-size: 1.1rem; margin: 0 0 8px; }
.kudmaye-cart-phone-popup-panel p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6; margin: 0 0 16px; }
.kudmaye-cart-phone-popup-input-wrap {
    display: flex; background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(255,255,255,0.1); border-radius: 12px; overflow: hidden;
    padding: 8px 12px; direction: ltr;
}
.kudmaye-cart-phone-popup-input-wrap:focus-within { border-color: var(--accent-green); }
.kudmaye-cart-phone-popup-input-wrap input {
    flex: 1; border: none; background: transparent; color: var(--text-primary);
    font-size: 1rem; font-family: 'Vazirmatn',sans-serif; outline: none;
    text-align: left; direction: ltr; min-width: 0;
}
.kudmaye-cart-phone-popup-input-wrap input::placeholder { color: var(--text-muted); }
.kudmaye-cart-phone-popup-error {
    color: var(--accent-red); font-size: 0.78rem; margin-top: 6px; text-align: right;
    background: rgba(244,63,94,0.08); border: 1px solid rgba(244,63,94,0.2);
    padding: 4px 8px; border-radius: 6px;
}
.kudmaye-cart-phone-popup-submit { width: 100%; margin-top: 12px; justify-content: center; }
.kudmaye-cart-phone-popup-skip {
    display: block; width: 100%; margin-top: 6px; background: none; border: none;
    color: var(--text-muted); font-size: 0.8rem; cursor: pointer; font-family: inherit; padding: 4px;
}
.kudmaye-cart-phone-popup-skip:hover { color: var(--text-secondary); }

/* ============================================
   v2.13.0 — FOOTER ENHANCEMENT
   ============================================ */
.site-footer {
    background:
        linear-gradient(180deg, var(--bg-secondary) 0%, #050505 100%);
    padding: 60px 0 0;
    border-top: 1px solid rgba(245,158,11,0.08);
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
    padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-logo { font-size: 1.5rem; font-weight: 900; }
.footer-desc {
    font-size: 0.88rem; color: var(--text-muted); line-height: 1.8;
    margin-top: 12px; max-width: 280px;
}
.footer-title {
    font-size: 0.95rem; color: var(--text-primary); margin-bottom: 16px;
    font-weight: 700; position: relative; padding-right: 12px;
}
.footer-title::before {
    content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    width: 3px; height: 16px; background: var(--accent-green); border-radius: 2px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    font-size: 0.88rem; color: var(--text-secondary); text-decoration: none;
    transition: all 0.2s ease; display: inline-flex; align-items: center; gap: 4px;
}
.footer-links a:hover { color: var(--accent-green); transform: translateX(-3px); }
.footer-bottom {
    text-align: center; padding: 20px 0; color: var(--text-muted);
    font-size: 0.82rem;
}
.footer-bottom p { margin: 0; }

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ===== v2.19.12: Accessibility — Skip Link & Screen Reader Text ===== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 99999;
    padding: 12px 24px;
    background: var(--color-primary, #22c55e);
    color: #000;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ===== v2.19.12: Category Description After Products ===== */
.kudmaye-category-description {
    margin: 2rem auto 0;
    max-width: 900px;
    padding: 1.5rem 2rem;
    background: var(--bg-card, #111);
    border: 1px solid rgba(34, 197, 94, 0.15);
    border-right: 4px solid var(--color-primary, #22c55e);
    border-radius: 12px;
}
.kudmaye-category-description__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary, #f5f5f5);
    margin: 0 0 0.75rem;
}
.kudmaye-category-description__content {
    color: var(--text-secondary, #a3a3a3);
    line-height: 2;
    font-size: 0.92rem;
}
.kudmaye-category-description__content p {
    margin: 0 0 0.75rem;
}
.kudmaye-category-description__content p:last-child {
    margin-bottom: 0;
}
.kudmaye-category-description__content h3,
.kudmaye-category-description__content h4 {
    color: var(--text-primary, #f5f5f5);
    margin: 1.25rem 0 0.5rem;
}
.kudmaye-category-description__content ul,
.kudmaye-category-description__content ol {
    padding-right: 1.25rem;
    margin: 0.5rem 0;
}
.kudmaye-category-description__content li {
    margin-bottom: 0.35rem;
}
.kudmaye-category-description__content a {
    color: var(--color-primary, #22c55e);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.kudmaye-category-description__content a:hover {
    opacity: 0.85;
}
.kudmaye-category-description__content strong,
.kudmaye-category-description__content b {
    color: var(--text-primary, #f5f5f5);
}
@media (max-width: 768px) {
    .kudmaye-category-description {
        padding: 1rem 1.25rem;
        margin: 1.5rem auto 0;
    }
    .kudmaye-category-description__title {
        font-size: 1.05rem;
    }
    .kudmaye-category-description__content {
        font-size: 0.85rem;
        line-height: 1.85;
    }
}.kudmaye-default-page__content .page-links {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary, #a3a3a3);
    font-size: 0.85rem;
}
@media (max-width: 768px) {}

/* ===== v2.19.12: Index Page Template ===== */
.kudmaye-index-listing {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}
.kudmaye-index-header {
    text-align: center;
    margin-bottom: 2rem;
}
.kudmaye-index-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary, #f5f5f5);
    margin: 0;
}
.kudmaye-index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.kudmaye-index-card {
    background: var(--bg-card, #111);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.kudmaye-index-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.kudmaye-index-card__image {
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.kudmaye-index-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.kudmaye-index-card:hover .kudmaye-index-card__image img {
    transform: scale(1.05);
}
.kudmaye-index-card__body {
    padding: 1.25rem;
}
.kudmaye-index-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary, #f5f5f5);
    margin: 0 0 0.5rem;
    line-height: 1.5;
}
.kudmaye-index-card__title a {
    color: inherit;
    text-decoration: none;
}
.kudmaye-index-card__title a:hover {
    color: var(--color-primary, #22c55e);
}
.kudmaye-index-card__excerpt {
    color: var(--text-secondary, #a3a3a3);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}
.kudmaye-index-card__link {
    display: inline-block;
    color: var(--color-primary, #22c55e);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}
.kudmaye-index-card__link:hover {
    opacity: 0.8;
}
.kudmaye-index-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    color: var(--text-secondary, #a3a3a3);
    line-height: 1.9;
    font-size: 0.95rem;
}
.kudmaye-index-empty {
    text-align: center;
    padding: 4rem 1.5rem;
}
.kudmaye-index-empty h1 {
    font-size: 1.5rem;
    color: var(--text-primary, #f5f5f5);
    margin-bottom: 0.75rem;
}
.kudmaye-index-empty p {
    color: var(--text-secondary, #a3a3a3);
    margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
    .kudmaye-index-listing {
        padding: 1.5rem 1rem;
    }
    .kudmaye-index-title {
        font-size: 1.4rem;
    }
    .kudmaye-index-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== v2.19.12: Focus-Visible Styles ===== */
*:focus-visible {
    outline: 2px solid var(--color-primary, #22c55e);
    outline-offset: 2px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-primary, #22c55e);
    outline-offset: 2px;
}
/* Remove default outline but keep focus-visible for accessibility */
*:focus:not(:focus-visible) {
    outline: none;
}

/* ============================================================
   v2.20.0 — LANDING PAGE TEMPLATES
   Used by: page-landing-starter.php, page-landing-flowering.php,
            page-landing-reproductive.php, page-landing-program.php
   Theme variants:
     .flowering-landing     → orange accent (#fb923c)
     .reproductive-landing  → gold accent (#facc15)
   (default = green via var(--accent-green))
   ============================================================ */

/* ---------- Base ---------- */
.landing-page {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding-bottom: 80px;
}

.landing-page .container {
    max-width: 1200px;
}

/* ---------- Section header ---------- */
.section-header {
    text-align: center;
    margin-bottom: 48px;
    padding: 0 16px;
}
.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent-green);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}
.flowering-landing .section-badge {
    background: rgba(251, 146, 60, 0.12);
    color: var(--accent-orange);
    border-color: rgba(251, 146, 60, 0.3);
}
.reproductive-landing .section-badge {
    background: rgba(250, 204, 21, 0.12);
    color: var(--accent-gold);
    border-color: rgba(250, 204, 21, 0.3);
}
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}
.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---------- HERO ---------- */
.pkg-hero {
    padding: 60px 0 80px;
    background:
        radial-gradient(ellipse at top right, rgba(245, 158, 11, 0.12), transparent 60%),
        radial-gradient(ellipse at bottom left, rgba(236, 72, 153, 0.08), transparent 60%),
        var(--bg-primary);
    position: relative;
    overflow: hidden;
}
.flowering-landing .pkg-hero {
    background:
        radial-gradient(ellipse at top right, rgba(251, 146, 60, 0.14), transparent 60%),
        radial-gradient(ellipse at bottom left, rgba(244, 63, 94, 0.08), transparent 60%),
        var(--bg-primary);
}
.reproductive-landing .pkg-hero {
    background:
        radial-gradient(ellipse at top right, rgba(250, 204, 21, 0.14), transparent 60%),
        radial-gradient(ellipse at bottom left, rgba(245, 158, 11, 0.08), transparent 60%),
        var(--bg-primary);
}
.pkg-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}
.pkg-hero-content { max-width: 640px; }

.pkg-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 24px;
}
.flowering-landing .pkg-badge {
    background: rgba(251, 146, 60, 0.15);
    color: var(--accent-orange);
    border-color: rgba(251, 146, 60, 0.35);
}
.reproductive-landing .pkg-badge {
    background: rgba(250, 204, 21, 0.15);
    color: var(--accent-gold);
    border-color: rgba(250, 204, 21, 0.35);
}
.pkg-hero-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 18px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.flowering-landing .pkg-hero-title {
    background: linear-gradient(135deg, #fb923c, #f43f5e);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.reproductive-landing .pkg-hero-title {
    background: linear-gradient(135deg, #facc15, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.pkg-hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 28px;
}

.pkg-hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px;
    margin-bottom: 32px;
}
.pkg-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}
.pkg-feature-icon {
    font-size: 1.15rem;
    line-height: 1;
}

.pkg-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Hero floating price card */
.pkg-hero-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-lg);
}.pkg-hero-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.pkg-hero-price .pkg-price-now {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-green);
}
.flowering-landing .pkg-hero-price .pkg-price-now { color: var(--accent-orange); }
.reproductive-landing .pkg-hero-price .pkg-price-now { color: var(--accent-gold); }
.pkg-hero-price .pkg-price-old {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}
.pkg-hero-buy { width: 100%; padding: 16px 24px; font-size: 1.05rem; }
.pkg-hero-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}.flowering-landing .pkg-price-box::before {
    background: linear-gradient(135deg, #fb923c, #f43f5e);
}
.reproductive-landing .pkg-price-box::before {
    background: linear-gradient(135deg, #facc15, #f59e0b);
}.flowering-landing .pkg-price-now { color: var(--accent-orange); }
.reproductive-landing .pkg-price-now { color: var(--accent-gold); }.flowering-landing .pkg-price-save {
    background: rgba(251, 146, 60, 0.15);
    color: var(--accent-orange);
}
.reproductive-landing .pkg-price-save {
    background: rgba(250, 204, 21, 0.15);
    color: var(--accent-gold);
}/* ---------- HECTARE SELECTOR ---------- */
.pkg-hectare-section { padding: 64px 0; }
.pkg-hectare-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: var(--shadow-md);
    max-width: 760px;
    margin: 0 auto;
}
.pkg-hectare-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}
.pkg-hectare-btn {
    flex: 1 1 120px;
    padding: 14px 18px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.pkg-hectare-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--accent-green);
}
.flowering-landing .pkg-hectare-btn:hover { border-color: var(--accent-orange); }
.reproductive-landing .pkg-hectare-btn:hover { border-color: var(--accent-gold); }
.pkg-hectare-btn[aria-pressed="true"] {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}
.flowering-landing .pkg-hectare-btn[aria-pressed="true"] {
    background: linear-gradient(135deg, #fb923c, #f43f5e);
    box-shadow: 0 4px 14px rgba(251, 146, 60, 0.4);
}
.reproductive-landing .pkg-hectare-btn[aria-pressed="true"] {
    background: linear-gradient(135deg, #facc15, #f59e0b);
    box-shadow: 0 4px 14px rgba(250, 204, 21, 0.4);
}
.pkg-hectare-custom {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 14px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}
.pkg-hectare-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.pkg-hectare-input {
    width: 120px;
    padding: 10px 14px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    text-align: center;
}
.pkg-hectare-input:focus {
    outline: none;
    border-color: var(--accent-green);
}
.flowering-landing .pkg-hectare-input:focus { border-color: var(--accent-orange); }
.reproductive-landing .pkg-hectare-input:focus { border-color: var(--accent-gold); }

.pkg-hectare-info {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    padding: 18px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.pkg-hectare-info strong {
    color: var(--accent-green);
    font-weight: 800;
}
.flowering-landing .pkg-hectare-info strong { color: var(--accent-orange); }
.reproductive-landing .pkg-hectare-info strong { color: var(--accent-gold); }

/* ---------- PRODUCTS ---------- */
.pkg-products-section { padding: 64px 0; }
.pkg-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.pkg-product-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}
.pkg-product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: var(--shadow-lg);
}
.flowering-landing .pkg-product-card:hover { border-color: rgba(251, 146, 60, 0.4); }
.reproductive-landing .pkg-product-card:hover { border-color: rgba(250, 204, 21, 0.4); }

.pkg-product-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 24px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.pkg-product-icon {
    font-size: 2.4rem;
    line-height: 1;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}
.pkg-product-meta { display: flex; flex-direction: column; gap: 4px; }
.pkg-product-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}
.pkg-product-qty {
    color: var(--accent-green);
    font-size: 0.9rem;
    font-weight: 600;
}
.flowering-landing .pkg-product-qty { color: var(--accent-orange); }
.reproductive-landing .pkg-product-qty { color: var(--accent-gold); }

.pkg-product-body { padding: 18px 24px 24px; }
.pkg-product-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 14px;
}
.pkg-product-benefits {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}
.pkg-benefit {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
}
.pkg-benefit-tick {
    color: var(--accent-green);
    font-weight: 800;
    flex-shrink: 0;
}
.flowering-landing .pkg-benefit-tick { color: var(--accent-orange); }
.reproductive-landing .pkg-benefit-tick { color: var(--accent-gold); }

.pkg-product-bottles {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}/* ---------- USAGE STAGES ---------- */
.pkg-usage-section { padding: 64px 0; }
.pkg-usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
.pkg-usage-step {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    position: relative;
    transition: var(--transition);
}
.pkg-usage-step:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.4);
}
.flowering-landing .pkg-usage-step:hover { border-color: rgba(251, 146, 60, 0.4); }
.reproductive-landing .pkg-usage-step:hover { border-color: rgba(250, 204, 21, 0.4); }
.pkg-usage-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 800;
    font-size: 1.4rem;
    border-radius: 50%;
    margin-bottom: 16px;
}
.flowering-landing .pkg-usage-num {
    background: linear-gradient(135deg, #fb923c, #f43f5e);
}
.reproductive-landing .pkg-usage-num {
    background: linear-gradient(135deg, #facc15, #f59e0b);
}
.pkg-usage-time {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.pkg-usage-dose {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-secondary);
    color: var(--accent-green);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.flowering-landing .pkg-usage-dose { color: var(--accent-orange); }
.reproductive-landing .pkg-usage-dose { color: var(--accent-gold); }
.pkg-usage-note {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
}

/* ---------- BENEFITS ---------- */
.pkg-benefits-section { padding: 64px 0; }
.pkg-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
.pkg-benefit-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    transition: var(--transition);
}
.pkg-benefit-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.4);
}
.flowering-landing .pkg-benefit-card:hover { border-color: rgba(251, 146, 60, 0.4); }
.reproductive-landing .pkg-benefit-card:hover { border-color: rgba(250, 204, 21, 0.4); }
.pkg-benefit-icon {
    font-size: 2.4rem;
    line-height: 1;
    display: block;
    margin-bottom: 14px;
}
.pkg-benefit-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.pkg-benefit-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* ---------- CTA ---------- */
.pkg-cta-section { padding: 64px 0; }
.pkg-cta {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.pkg-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0.08;
    pointer-events: none;
}
.flowering-landing .pkg-cta::before {
    background: linear-gradient(135deg, #fb923c, #f43f5e);
}
.reproductive-landing .pkg-cta::before {
    background: linear-gradient(135deg, #facc15, #f59e0b);
}
.pkg-cta-text { position: relative; z-index: 1; margin-bottom: 24px; }
.pkg-cta-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
}
.pkg-cta-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}
.pkg-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}
.pkg-cta-btn { padding: 16px 36px; font-size: 1.05rem; }
.pkg-cta-phone {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    direction: ltr;
    display: inline-block;
}

/* ---------- STICKY CART ---------- */
.pkg-sticky-cart {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}
.pkg-sticky-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pkg-sticky-name {
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.pkg-sticky-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-green);
}
.flowering-landing .pkg-sticky-price { color: var(--accent-orange); }
.reproductive-landing .pkg-sticky-price { color: var(--accent-gold); }
.pkg-sticky-btn {
    padding: 12px 24px;
    font-size: 0.95rem;
    white-space: nowrap;
}/* ============================================================
   WIZARD — page-landing-program.php
   ============================================================ */
.program-landing .pkg-hero { padding: 60px 0 40px; }
.program-hero-content { max-width: 760px; margin: 0 auto; text-align: center; }
.program-hero-content .pkg-hero-features { justify-content: center; }
.program-hero-content .pkg-hero-title {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.program-hero-content .pkg-badge { margin: 0 auto 24px; }

.wizard-section { padding: 40px 0 80px; }

/* Steps indicator */
.steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}
.step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}
.step-dot.active { color: var(--accent-green); }
.step-dot.done { color: var(--accent-emerald); }
.step-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-weight: 800;
    border-radius: 50%;
    transition: var(--transition);
    font-size: 1.1rem;
}
.step-dot.active .step-circle {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}
.step-dot.done .step-circle {
    background: var(--accent-emerald);
    color: #fff;
    border-color: transparent;
}
.step-label {
    font-size: 0.85rem;
    font-weight: 600;
}
.step-line {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1px;
}

/* Wizard step container */
.wizard-step { animation: fadeIn 0.4s ease; }
/* v2.24.1 — قواعد قطعی نمایش/پنهان‌سازی گام‌های ویزارد «برنامه کودی»:
   صفحه با hidden attribute گام‌ها را جابه‌جا می‌کند؛ این قاعده مطمئن می‌شود
   هیچ قاعده display دیگری (از هر بلاک قدیمی) گام‌ها را قفل نکند. */
.program-landing .wizard-step { display: block; }
.program-landing .wizard-step[hidden] { display: none !important; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Crops grid */
.crops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    margin-top: 24px;
}
.crop-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 28px 18px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    position: relative;
}
.crop-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-green);
    box-shadow: var(--shadow-lg);
}
.crop-icon {
    font-size: 3rem;
    line-height: 1;
}
.crop-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}
.crop-latin {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-style: italic;
    direction: ltr;
}
.crop-stages-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-green);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
}

/* Wizard hectare card extras */
.wizard-hectare-card { max-width: 760px; margin: 0 auto; }
.wizard-selected-crop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px;
    margin-bottom: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}
.wizard-selected-icon {
    font-size: 2rem;
    line-height: 1;
}
.wizard-selected-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-green);
}

/* Wizard actions */
.wizard-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 28px;
    flex-wrap: wrap;
}

/* Program (step 3) */
.program-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
}
.program-head-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.program-head-crop {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-green);
}
.program-head-ha {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.program-stages {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}
.program-stage {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
}
.program-stage:hover { border-color: rgba(245, 158, 11, 0.3); }
.program-stage-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.program-stage-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 800;
    border-radius: 50%;
    flex-shrink: 0;
}
.program-stage-head-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.program-stage-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}
.program-stage-time {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.program-stage-products {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.program-stage-product {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}
.program-stage-product-name {
    font-weight: 600;
    color: var(--text-primary);
}
.program-stage-product-dose {
    color: var(--text-secondary);
    font-size: 0.88rem;
}
.program-stage-product-dose strong {
    color: var(--accent-green);
    font-weight: 800;
}

/* Bottle summary */
.bottle-summary {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    margin-bottom: 32px;
}
.bottle-summary .section-header { margin-bottom: 24px; }
.bottle-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.bottle-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}
.bottle-item-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
}
.bottle-item-total {
    color: var(--text-secondary);
    font-size: 0.88rem;
}
.bottle-item-total strong {
    color: var(--accent-green);
    font-weight: 800;
}
.bottle-item-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}
.bottle-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}
.bottle-chip-20 {
    background: rgba(245, 158, 11, 0.18);
    color: var(--accent-green);
}
.bottle-chip-5 {
    background: rgba(236, 72, 153, 0.18);
    color: var(--accent-emerald);
}
.bottle-chip-1 {
    background: rgba(160, 160, 160, 0.18);
    color: var(--text-secondary);
}

/* Buy program CTA */
.buy-program {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    padding: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.buy-program::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0.08;
    pointer-events: none;
}
.buy-program-info { position: relative; z-index: 1; }
.buy-program-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(245, 158, 11, 0.18);
    color: var(--accent-green);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.buy-program-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.buy-program-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin: 0;
    max-width: 460px;
}
.buy-program-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 1;
    min-width: 240px;
}
.buy-program-btn {
    padding: 14px 24px;
    font-size: 0.98rem;
    white-space: nowrap;
}
.pdf-download {
    padding: 12px 20px;
    font-size: 0.92rem;
    white-space: nowrap;
}

/* ============================================================
   RESPONSIVE — Landing Pages
   ============================================================ */
@media (max-width: 992px) {
    .pkg-hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .pkg-hero-content { max-width: 100%; text-align: center; }
    .pkg-hero-features { justify-content: center; }
    .pkg-hero-cta { justify-content: center; }    .buy-program { padding: 28px; }
}

@media (max-width: 600px) {
    .pkg-hero { padding: 40px 0 50px; }
    .pkg-price-section,
    .pkg-hectare-section,
    .pkg-products-section,
    .pkg-usage-section,
    .pkg-benefits-section,
    .pkg-cta-section { padding: 44px 0; }

    .section-header { margin-bottom: 32px; }
    .pkg-hero-card { padding: 24px; }
    .pkg-hero-price .pkg-price-now { font-size: 1.8rem; }    .pkg-hectare-card { padding: 24px; }
    .pkg-hectare-btn { flex: 1 1 calc(50% - 6px); }
    .pkg-hectare-info { flex-direction: column; gap: 10px; }
    .pkg-product-head { padding: 18px 18px 14px; }
    .pkg-product-body { padding: 14px 18px 20px; }
    .pkg-cta { padding: 32px 24px; }
    .pkg-cta-actions { flex-direction: column; align-items: stretch; }
    .pkg-cta-btn { width: 100%; }

    .pkg-sticky-cart { padding: 12px 14px; }
    .pkg-sticky-name { font-size: 0.82rem; }
    .pkg-sticky-price { font-size: 1.05rem; }
    .pkg-sticky-btn { padding: 10px 16px; font-size: 0.88rem; }

    /* Wizard */
    .steps-indicator { gap: 4px; }
    .step-line { width: 30px; }
    .step-circle { width: 38px; height: 38px; font-size: 0.95rem; }
    .step-label { font-size: 0.75rem; }
    .crops-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .crop-card { padding: 20px 14px; }
    .crop-icon { font-size: 2.4rem; }
    .crop-name { font-size: 0.98rem; }
    .crop-latin { font-size: 0.7rem; }
    .program-stage { padding: 18px; }
    .program-stage-product { padding: 8px 12px; }
    .bottle-summary { padding: 22px 18px; }
    .buy-program { padding: 22px; }
    .buy-program-actions { min-width: 0; width: 100%; }
    .buy-program-btn,
    .pdf-download { width: 100%; }
}

@media (max-width: 480px) {
    .pkg-hero-title { font-size: 1.8rem; }
    .pkg-hero-subtitle { font-size: 0.95rem; }
    .section-title { font-size: 1.4rem; }
    .pkg-products-grid { grid-template-columns: 1fr; }
    .pkg-usage-grid { grid-template-columns: 1fr; }
    .pkg-benefits-grid { grid-template-columns: 1fr; }
    .pkg-product-icon { width: 48px; height: 48px; font-size: 2rem; }
    .pkg-product-name { font-size: 1.05rem; }

    .crops-grid { grid-template-columns: 1fr; }
    .step-label { display: none; }
    .step-line { width: 24px; }
    .pkg-hectare-btn { flex: 1 1 100%; }

    .pkg-sticky-cart {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px 12px;
    }
    .pkg-sticky-info { flex-direction: row; justify-content: space-between; align-items: center; }
    .pkg-sticky-btn { width: 100%; }

    .program-head { padding: 16px; }
    .program-head-crop { font-size: 1.2rem; }
    .program-stage-product {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* ============================================================
   v2.21.0 — PREMIUM GLASS HEADER + POGO BOTTOM NAV
   ------------------------------------------------------------
   Sections:
   A. Hide legacy header/nav elements
   B. Glass header (sticky, blur, magic pill indicator, drawer)
   C. Pogo bottom navigation (mobile-only, spring anim)
   D. Critical fixes (body padding, drawer overlay, card visibility,
      mobile order button spacing, empty cart, notification bars)
   E. Body filter none
   ============================================================ */

/* ============================================================
   A. HIDE LEGACY HEADER / NAV ELEMENTS
   ------------------------------------------------------------
   The old .site-header / .main-nav / .menu-toggle / .drawer-head /
   .mobile-menu-overlay are replaced by the new .header-shell,
   .desktop-nav, .mobile-toggle, .drawer-header, .drawer-overlay.
   We hide them with !important so any leftover markup or old cached
   CSS rules can never re-display them.
   ============================================================ */
.site-header,
.main-nav,
.menu-toggle,
.drawer-head,
.mobile-menu-overlay {
    display: none !important;
}

/* ============================================================
   B. GLASS HEADER
   ============================================================ */

/* ---------- Local header variables (dark theme overrides) ---------- */
.header-shell {
    --km-header-bg: rgba(15, 20, 30, 0.72);
    --km-surface: rgba(20, 25, 40, 0.82);
    --km-surface-solid: #151a28;
    --km-text: #f0f2f8;
    --km-text-muted: #9ba4b5;
    --km-accent: var(--accent-green, #f59e0b);
    --km-accent-2: var(--accent-emerald, #ec4899);
    --km-accent-rgb: 132, 204, 22;
    --km-border: rgba(255, 255, 255, 0.08);
    --km-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 4px 14px rgba(0, 0, 0, 0.3);
    --km-ease: cubic-bezier(.22, 1, .36, 1);
    --km-spring: cubic-bezier(.68, -.35, .27, 1.35);
    --km-header-height: 76px;
    --km-safe-top: env(safe-area-inset-top, 0px);
}

/* ---------- Header Shell ---------- */
.header-shell {
    position: sticky;
    top: calc(20px + var(--km-safe-top));
    z-index: 100;
    width: min(1200px, calc(100vw - 40px));
    margin: 0 auto;
    transition: transform 0.4s var(--km-ease), width 0.4s var(--km-ease), top 0.4s var(--km-ease);
}
.header-shell.scrolled {
    width: 100%;
    top: 0;
}

/* ---------- Main Header (glass bar) ---------- */
.top-header {
    height: var(--km-header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border: 1px solid var(--km-border);
    border-radius: 28px;
    background: var(--km-header-bg);
    box-shadow: var(--km-shadow);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    backdrop-filter: blur(24px) saturate(1.4);
    transition: all 0.4s var(--km-ease);
}
.header-shell.scrolled .top-header {
    border-radius: 0 0 28px 28px;
    border-top: none;
    padding: 0 5%;
    background: rgba(10, 12, 18, 0.88);
}

/* ---------- Logo ---------- */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.5px;
    z-index: 10;
    color: var(--km-text);
    font-family: 'Vazirmatn', sans-serif;
}
.logo .logo-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--km-accent), var(--km-accent-2));
    color: #0e0a07;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 24px rgba(var(--km-accent-rgb), 0.25);
    transition: transform 0.5s var(--km-spring);
    font-size: 22px;
    line-height: 1;
    overflow: hidden;
    flex-shrink: 0;
}
.logo .logo-icon-wrap.logo-icon-img {
    background: transparent;
    box-shadow: none;
    padding: 0;
}
.logo .logo-icon-wrap.logo-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}
.logo:hover .logo-icon-wrap {
    transform: translateY(-3px) scale(1.05) rotate(-5deg);
}
.logo .logo-text {
    color: var(--km-text);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* ---------- Desktop Navigation ---------- */
.desktop-nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    height: 100%;
}
.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}
.nav-link {
    position: relative;
    z-index: 2;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    color: var(--km-text-muted);
    border-radius: 100px;
    transition: color 0.3s var(--km-ease);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.nav-link:hover,
.nav-link.active {
    color: var(--km-accent);
}
.nav-link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s var(--km-ease);
}
.nav-item:hover .nav-link svg {
    transform: rotate(180deg);
}

/* ---------- Dropdown ---------- */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: var(--km-surface-solid);
    border: 1px solid var(--km-border);
    border-radius: 18px;
    padding: 10px;
    box-shadow: var(--km-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.95);
    transition: all 0.4s var(--km-spring);
    transform-origin: top right;
    z-index: 50;
}
.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    color: var(--km-text);
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 11px;
    transition: background 0.2s var(--km-ease), color 0.2s;
}
.dropdown-menu a:hover {
    background: rgba(var(--km-accent-rgb), 0.12);
    color: var(--km-accent);
}
.dropdown-menu a.dropdown-all {
    margin-top: 4px;
    border-top: 1px solid var(--km-border);
    border-radius: 0 0 11px 11px;
    padding-top: 12px;
    color: var(--km-accent);
}
.dropdown-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--km-accent);
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(var(--km-accent-rgb), 0.15);
}

/* ---------- Magic Pill Indicator ---------- */
.nav-indicator {
    position: absolute;
    z-index: 1;
    height: 42px;
    border-radius: 100px;
    background: rgba(var(--km-accent-rgb), 0.12);
    transition: all 0.5s var(--km-spring);
    opacity: 0;
    pointer-events: none;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}
.desktop-nav:hover .nav-indicator {
    opacity: 1;
}
.desktop-nav.has-active:not(:hover) .nav-indicator {
    opacity: 1;
    background: rgba(var(--km-accent-rgb), 0.06);
}

/* ---------- Header Actions ---------- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}
.icon-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--km-surface);
    border: 1px solid var(--km-border);
    color: var(--km-text);
    transition: all 0.3s var(--km-ease);
    cursor: pointer;
    text-decoration: none;
}
.icon-btn:hover {
    background: var(--km-surface-solid);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    color: var(--km-accent);
    border-color: rgba(var(--km-accent-rgb), 0.4);
}
.icon-btn svg {
    width: 20px;
    height: 20px;
}

/* Cart count badge inside icon-btn */
.icon-btn .cart-count {
    position: absolute;
    top: -6px;
    left: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--km-accent);
    color: #0e0a07;
    font-size: 10px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(var(--km-accent-rgb), 0.5);
    transform: scale(0);
    transition: transform 0.3s var(--km-spring);
}
.icon-btn .cart-count.has-items {
    transform: scale(1);
}

/* Primary button (WhatsApp CTA) */
.primary-btn {
    padding: 0 22px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--km-accent), var(--km-accent-2));
    color: #0e0a07;
    font-weight: 800;
    font-size: 14px;
    transition: all 0.4s var(--km-ease);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(var(--km-accent-rgb), 0.25);
}
.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(var(--km-accent-rgb), 0.4);
    color: #0e0a07;
}

/* Mobile toggle hidden by default */
.mobile-toggle {
    display: none;
}

/* ---------- Mobile Drawer ---------- */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--km-ease);
}
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    background: var(--km-surface-solid);
    z-index: 1001;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: translateX(100%);
    /* v2.24.13 — a11y: کشوییِ بسته کاملاً از درخت دسترس‌پذیری و tab-order خارج می‌شود.
       قبلاً فقط translateX(100%) بود و لینک‌ها با Tab فوکوس‌پذیر می‌ماندند (aria-hidden=true
       روی محتوای فوکوس‌پذیر = نقض WCAG 4.1.2). تأخیر visibility برابر duration ترنزیشن است
       تا انیمیشن بسته‌شدن کامل دیده شود. */
    visibility: hidden;
    transition: transform 0.5s var(--km-spring), visibility 0s 0.5s;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    color: var(--km-text);
}
body.drawer-open {
    overflow: hidden;
}
body.drawer-open .mobile-drawer {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.5s var(--km-spring), visibility 0s 0s;
}

/* Drawer Header */
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--km-border);
}
.close-btn {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: var(--km-surface);
    border: 1px solid var(--km-border);
    border-radius: 12px;
    color: var(--km-text);
    cursor: pointer;
    transition: all 0.3s var(--km-ease);
}
.close-btn:hover {
    background: rgba(244, 63, 94, 0.15);
    color: #f43f5e;
    border-color: rgba(244, 63, 94, 0.4);
}

/* Mobile Nav (inside drawer) */
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.mobile-nav > a,
.mobile-nav .mobile-nav-group > a {
    display: block;
    padding: 13px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    color: var(--km-text);
    background: var(--km-surface);
    border: 1px solid var(--km-border);
    transition: all 0.25s var(--km-ease);
}
.mobile-nav > a:hover,
.mobile-nav .mobile-nav-group > a:hover {
    background: rgba(var(--km-accent-rgb), 0.1);
    color: var(--km-accent);
}
.mobile-nav > a.active,
.mobile-nav .mobile-nav-group > a.active {
    background: rgba(var(--km-accent-rgb), 0.15);
    color: var(--km-accent);
    border-color: rgba(var(--km-accent-rgb), 0.4);
}
.mobile-nav .mobile-nav-cart {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mobile-nav .nav-cart-badge {
    background: var(--km-accent);
    color: #0e0a07;
    min-width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 11px;
    padding: 0 7px;
    font-size: 11px;
    font-weight: 800;
}
.mobile-nav .nav-cart-badge:not(.has-items) {
    background: var(--km-surface);
    color: var(--km-text-muted);
}

/* Sub-menu (brands list inside drawer) */
.mobile-nav .sub-menu {
    margin: 4px 0 6px 0;
    padding: 8px 16px 8px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-right: 2px solid var(--km-border);
}
.mobile-nav .sub-menu a {
    background: transparent;
    border: none;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 13.5px;
    color: var(--km-text-muted);
    border-radius: 8px;
}
.mobile-nav .sub-menu a:hover {
    color: var(--km-accent);
    background: rgba(var(--km-accent-rgb), 0.08);
}

/* Drawer Contact */
.drawer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--km-border);
}
.drawer-contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--km-surface);
    border: 1px solid var(--km-border);
    color: var(--km-text);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.25s var(--km-ease);
}
.drawer-contact-row:hover {
    background: rgba(var(--km-accent-rgb), 0.1);
    color: var(--km-accent);
}
.drawer-contact-row.drawer-contact-wa:hover {
    background: rgba(37, 211, 102, 0.12);
    color: #25d366;
}
.drawer-copy {
    margin-top: 6px;
    text-align: center;
    color: var(--km-text-muted);
    font-size: 12px;
}

/* ---------- Responsive: Header at ≤992px ---------- */
@media (max-width: 992px) {
    .desktop-nav {
        display: none;
    }
    .mobile-toggle {
        display: grid;
    }
    .primary-btn.desktop-only {
        display: none;
    }
    .header-shell {
        width: calc(100vw - 24px);
        top: calc(12px + var(--km-safe-top, 0px));
    }
    .top-header {
        padding: 0 14px;
        border-radius: 22px;
        height: 64px;
    }
    .header-shell.scrolled .top-header {
        border-radius: 0 0 22px 22px;
        padding: 0 16px;
    }
    .logo .logo-text {
        font-size: 16px;
    }
    .logo .logo-icon-wrap {
        width: 38px;
        height: 38px;
    }
    .icon-btn {
        width: 40px;
        height: 40px;
    }
    .icon-btn svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .header-shell {
        width: calc(100vw - 16px);
    }
    .top-header {
        padding: 0 12px;
        border-radius: 20px;
    }
    .logo {
        gap: 8px;
    }
    .logo .logo-text {
        font-size: 15px;
    }
    .header-actions {
        gap: 6px;
    }
}

/* v2.24.11 — هدر در گوشی‌های باریک (≤355px): جمع‌شدن بدون فشردگی */
@media (max-width: 355px) {
    .top-header { padding: 0 8px; }
    .logo { gap: 6px; }
    .logo .logo-text { font-size: 14px; }
    .logo .logo-icon-wrap { width: 34px; height: 34px; }
    .icon-btn { width: 36px; height: 36px; }
    .header-actions { gap: 4px; }
}

/* ============================================================
   C. POGO BOTTOM NAVIGATION
   ============================================================ */

.pogo-nav-shell {
    --pogo-accent: var(--accent-green, #f59e0b);
    --pogo-accent-rgb: 132, 204, 22;
    --pogo-nav-bg: rgba(20, 25, 35, 0.95);
    --pogo-surface: rgba(255, 255, 255, 0.06);
    --pogo-text: #e0e0e0;
    --pogo-text-muted: #9ba4b5;
    --pogo-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 2px 10px rgba(0, 0, 0, 0.3);
    --pogo-ease: cubic-bezier(.22, 1, .36, 1);
    --pogo-spring: cubic-bezier(.68, -.35, .27, 1.35);
    --pogo-nav-width: 430px;
    --pogo-nav-height: 76px;
    --pogo-safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Hidden on desktop — only visible on mobile (≤992px) */
.pogo-nav-shell {
    display: none;
}

.pogo-bottom-nav {
    position: relative;
    height: var(--pogo-nav-height);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 26px;
    background: var(--pogo-nav-bg);
    box-shadow: var(--pogo-shadow);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    backdrop-filter: blur(24px) saturate(1.4);
    transition: background-color 0.55s var(--pogo-ease), box-shadow 0.55s var(--pogo-ease);
}

.pogo-nav-item {
    position: relative;
    z-index: 2;
    height: 100%;
    border: 0;
    background: transparent;
    color: var(--pogo-text);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 18px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.3s var(--pogo-ease), transform 0.2s var(--pogo-ease);
    text-decoration: none;
    font-family: inherit;
}
.pogo-nav-item:active {
    transform: scale(0.92);
}
.pogo-icon-wrap {
    position: relative;
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
}
.pogo-nav-item svg {
    width: 24px;
    height: 24px;
    overflow: visible;
}
.pogo-nav-item svg * {
    vector-effect: non-scaling-stroke;
}
.pogo-label {
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
    opacity: 1;
    color: var(--pogo-text);
}
.pogo-nav-item.active {
    color: var(--pogo-accent);
}
.pogo-nav-item.active .pogo-label {
    opacity: 1;
    color: var(--pogo-accent);
}

/* Indicator (the floating pill) */
.pogo-indicator {
    position: absolute;
    z-index: 1;
    top: 8px;
    right: 10px;
    width: calc((100% - 20px) / 5);
    height: calc(100% - 16px);
    border-radius: 18px;
    background: rgba(var(--pogo-accent-rgb), 0.12);
    box-shadow: 0 4px 16px rgba(var(--pogo-accent-rgb), 0.18);
    transform: translateX(0);
    transition: transform 0.65s var(--pogo-spring), background-color 0.5s var(--pogo-ease);
    pointer-events: none;
}

/* Ripple effect on click */
.pogo-ripple {
    position: absolute;
    inset: auto auto 50% 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(var(--pogo-accent-rgb), 0.25);
    transform: translate(-50%, 50%) scale(0);
    pointer-events: none;
}
.pogo-nav-item.rippling .pogo-ripple {
    animation: pogoRipple 0.55s var(--pogo-ease);
}
@keyframes pogoRipple {
    to {
        transform: translate(-50%, 50%) scale(8);
        opacity: 0;
    }
}

/* Center button (Cart) */
.pogo-center-btn {
    z-index: 3;
}
.pogo-center-btn .pogo-icon-wrap {
    width: 54px;
    height: 54px;
    margin-top: -29px;
    border-radius: 16px;
    color: #0e0a07;
    background: linear-gradient(135deg, var(--pogo-accent), var(--accent-emerald, #ec4899));
    box-shadow: 0 12px 28px rgba(var(--pogo-accent-rgb), 0.32);
    transition: transform 0.45s var(--pogo-spring), box-shadow 0.4s var(--pogo-ease), background 0.4s var(--pogo-ease);
}
.pogo-center-btn svg {
    width: 26px;
    height: 26px;
}
.pogo-center-btn .pogo-label {
    margin-top: -1px;
    color: var(--pogo-text);
}
.pogo-center-btn.active .pogo-icon-wrap {
    animation: pogo 0.72s var(--pogo-spring);
    box-shadow: 0 16px 34px rgba(var(--pogo-accent-rgb), 0.4);
}
@keyframes pogo {
    0%   { transform: translateY(0) scale(1) rotate(0); }
    22%  { transform: translateY(-17px) scale(1.12) rotate(-6deg); }
    45%  { transform: translateY(3px) scale(0.94) rotate(4deg); }
    68%  { transform: translateY(-5px) scale(1.04) rotate(-2deg); }
    100% { transform: translateY(0) scale(1) rotate(0); }
}

/* Cart badge inside center button */
.pogo-cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #f43f5e;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(244, 63, 94, 0.55);
    transform: scale(0);
    transition: transform 0.3s var(--pogo-spring);
}
.pogo-cart-badge.has-items {
    transform: scale(1);
}

/* "Lottie-like" local animation engine */
.pogo-lottie-host {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
}
.pogo-lottie-host svg {
    display: block;
}
.pogo-nav-item.active .pogo-lottie-host {
    animation: pogoIconFloat 0.65s var(--pogo-spring);
}
@keyframes pogoIconFloat {
    0%   { transform: translateY(0) scale(1); }
    35%  { transform: translateY(-8px) scale(1.14); }
    60%  { transform: translateY(2px) scale(0.96); }
    100% { transform: translateY(0) scale(1); }
}
.pogo-center-btn.active .pogo-lottie-host {
    animation: none;
}

/* Mobile pogo-nav positioning & shell */
@media (max-width: 992px) {
    .pogo-nav-shell {
        display: block;
        position: fixed;
        z-index: 90;
        left: 50%;
        bottom: calc(14px + var(--pogo-safe-bottom, 0px));
        width: min(var(--pogo-nav-width), calc(100vw - 24px));
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .pogo-nav-shell {
        --pogo-nav-height: 70px;
        width: calc(100vw - 18px);
        bottom: calc(9px + var(--pogo-safe-bottom, 0px));
    }
    .pogo-bottom-nav {
        padding: 7px 7px;
        border-radius: 23px;
    }
    .pogo-icon-wrap {
        width: 28px;
        height: 28px;
    }
    .pogo-nav-item svg {
        width: 22px;
        height: 22px;
    }
    .pogo-label {
        font-size: 9px;
    }
    .pogo-center-btn .pogo-icon-wrap {
        width: 48px;
        height: 48px;
        margin-top: -24px;
        border-radius: 14px;
    }
    .pogo-center-btn svg {
        width: 24px;
        height: 24px;
    }
    .pogo-indicator {
        top: 7px;
        right: 7px;
        width: calc((100% - 14px) / 5);
        height: calc(100% - 14px);
        border-radius: 17px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .pogo-nav-item,
    .pogo-nav-item .pogo-icon-wrap,
    .pogo-lottie-host,
    .pogo-indicator,
    .pogo-ripple {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================
   D. CRITICAL FIXES
   ============================================================ */

/* D.1 — Body top padding so content clears the sticky glass header.
   The new header is ~76px tall + a 20px floating gap = 96px on desktop.
   On mobile (≤992px) the header is shorter (64px) + 12px gap = 76px,
   but we keep 86px to give breathing room. */
body {
    padding-top: 96px !important;
}
@media (max-width: 992px) {
    body {
        padding-top: 86px !important;
    }
    /* Body bottom padding on mobile so the floating pogo-nav doesn't
       cover the last content. */
    body {
        padding-bottom: 110px !important;
    }
}

/* D.2 — Drawer overlay visibility. The new .drawer-overlay must be
   completely invisible (and non-interactive) when the drawer is closed,
   even if some other CSS accidentally shows it. */
.drawer-overlay {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
body.drawer-open .drawer-overlay {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* D.3 — Force product/shop/brand/article cards visible.
   Some old visibility:hidden / opacity:0 rules from legacy CSS
   could leave cards invisible after the rewrite. Force-show them. */
.product-card,
.shop-card,
.brand-card,
.article-card {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* D.4 — Mobile order button spacing (Was: tight gap that made
   "افزودن به سبد" + WhatsApp buttons overlap). */
.ma-order-actions {
    gap: 12px !important;
}
.ma-order-actions .btn,
.ma-order-actions button,
.ma-order-actions a.btn {
    flex: 1 1 auto;
    min-width: 0;
}
@media (max-width: 480px) {
    .ma-order-actions {
        gap: 10px !important;
        flex-direction: column !important;
    }
    .ma-order-actions .btn,
    .ma-order-actions button,
    .ma-order-actions a.btn {
        width: 100% !important;
    }
}

/* D.5 — Empty cart beautification. When WooCommerce's cart is empty
   it shows a plain message + button. We wrap it in a card with an
   emoji icon and softer colors so the dark theme doesn't look broken. */
.woocommerce-cart .cart-empty,
.cart-empty {
    text-align: center !important;
    padding: 48px 24px !important;
    margin: 24px auto !important;
    max-width: 540px !important;
    background: var(--bg-card, #1f1611) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 18px !important;
    color: var(--text-primary, #f5f5f5) !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    position: relative;
}
.woocommerce-cart .cart-empty::before,
.cart-empty::before {
    content: "🛒";
    display: block;
    font-size: 56px;
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.85;
}
.woocommerce-cart .return-to-shop,
.return-to-shop {
    text-align: center !important;
    margin: 24px 0 !important;
}
.woocommerce-cart .return-to-shop .button,
.woocommerce-cart .return-to-shop .btn,
.return-to-shop .button,
.return-to-shop .btn {
    display: inline-block !important;
    margin: 0 auto !important;
    padding: 14px 32px !important;
    background: var(--accent-green, #f59e0b) !important;
    color: #0e0a07 !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    transition: all 0.3s var(--transition, all 0.3s ease) !important;
}
.woocommerce-cart .return-to-shop .button:hover,
.return-to-shop .button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.35) !important;
}

/* D.6 — Disable notification bar (legacy top bar that pushes content
   down — no longer used in the new glass header layout). */
.kudmaye-notice-bar,
.kudmaye-notification-bar {
    display: none !important;
}

/* ============================================================
   D.7 — v2.23.16 ANNOUNCEMENT TICKER (نوار اعلان زیرنویس‌طور)
   تیکر متحرک بالای سایت: رندر با wp_body_open (functions.php)،
   کلاس جدید برای اجتناب از قاعده D.6. حرکت خالص CSS بدون JS.
   ============================================================ */
.kudmaye-ticker-bar {
    position: relative;
    z-index: 1001;
    display: flex;
    align-items: stretch;
    width: 100%;
    background: var(--ticker-bg, linear-gradient(135deg, #f59e0b, #ec4899));
    color: #0e0a07;
    font-size: 13px;
    font-weight: 700;
    overflow: hidden;
    -webkit-user-select: none;
    user-select: none;
}
.kudmaye-ticker-label {
    display: flex;
    align-items: center;
    padding: 0 14px 0 12px;
    flex: none;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.18);
}
.kudmaye-ticker-viewport {
    flex: 1 1 auto;
    overflow: hidden;
    padding: 9px 0;
    /* محو گرادیانی لبه‌ها برای حس زیرنویس تلویزیونی */
    -webkit-mask-image: linear-gradient(to left, transparent 0, #000 26px, #000 calc(100% - 26px), transparent 100%);
    mask-image: linear-gradient(to left, transparent 0, #000 26px, #000 calc(100% - 26px), transparent 100%);
}
.kudmaye-ticker-track {
    display: inline-flex;
    white-space: nowrap;
    will-change: transform;
    /* RTL: متن از چپ وارد و به راست خارج می‌شود (الگوی خبری فارسی) */
    animation: kudmaye-announce-scroll var(--kudmaye-ticker-speed, 40s) linear infinite;
}
.kudmaye-ticker-track-link {
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
    min-width: 100%;
}
a.kudmaye-ticker-track-link:hover .kudmaye-ticker-seg {
    text-decoration: underline;
    text-underline-offset: 4px;
}
.kudmaye-ticker-seg {
    padding: 0 18px;
}
.kudmaye-ticker-dot {
    padding: 0 4px;
    font-size: 9px;
    opacity: 0.55;
}
.kudmaye-ticker-cd {
    background: rgba(0, 0, 0, 0.16);
    border-radius: 99px;
    margin-inline-start: 8px;
    padding: 2px 16px;
}
.kudmaye-ticker-cd-timer {
    font-variant-numeric: tabular-nums;
    direction: ltr;
    unicode-bidi: embed;
}
@keyframes kudmaye-announce-scroll {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
    .kudmaye-ticker-track { animation: none; }
    .kudmaye-ticker-viewport { overflow-x: auto; }
}
@media (max-width: 640px) {
    .kudmaye-ticker-bar { font-size: 12px; }
    .kudmaye-ticker-seg { padding: 0 12px; }
}

/* D.8 — v2.23.1 Account icon (header) badge */
.account-btn { position: relative; }
.account-badge {
    position: absolute;
    top: 6px;
    inset-inline-end: 6px;
    font-size: 8px;
    color: #34d399;
    line-height: 1;
}
.account-badge.is-on { color: #34d399; }

/* D.7 — REMOVED in v2.24.16: rule «.kudmaye-shipping-notice { display: none !important; }»
   — markup آن از هوک حذف‌شدهٔ سبد می‌آمد؛ با حذف هوک، این بند-کمکی هم یتیم شد. */

/* D.8 — Make sure the body has no leftover scroll lock after drawer
   closes (defensive; the JS already handles this, but !important here
   prevents any plugin from re-locking it). */
body:not(.drawer-open) {
    overflow: auto !important;
}

/* D.9 — Hide the old .bottom-nav (legacy pogo-less bottom nav)
   in case any cached markup still renders it. The new pogo nav
   uses .pogo-bottom-nav and is mobile-only. */
.bottom-nav {
    display: none !important;
}

/* D.10 — Hide old .back-to-top on mobile (the pogo nav provides
   navigation; the back-to-top button would overlap it). */
@media (max-width: 992px) {
    .back-to-top {
        bottom: calc(100px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* ============================================================
   E. BODY FILTER NONE
   ------------------------------------------------------------
   Some legacy code applies a CSS `filter` to <body> (e.g. for
   dark-mode dimming). This breaks `position: fixed` children
   (the header, pogo nav, drawer overlay) by creating a containing
   block. We force `filter: none` on body so all fixed elements
   behave correctly.
   ============================================================ */
body {
    filter: none !important;
}

/* ============================================================
   END v2.21.0 — Header / Footer / Pogo Nav / CSS rebuild
   ============================================================ */

/* ============================================
   v2.23.6 — FINAL EMPTY CART BEAUTIFICATION
   ============================================ */
.woocommerce-cart .cart-empty,
.woocommerce-cart .wc-empty-cart-message {
    background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(236,72,153,0.04)) !important;
    border: 1px solid rgba(245,158,11,0.15) !important;
    border-radius: 28px !important;
    padding: 60px 32px !important;
    margin: 40px auto !important;
    max-width: 600px !important;
    text-align: center !important;
    color: var(--text-primary) !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3) !important;
    position: relative;
    overflow: hidden;
}
.woocommerce-cart .cart-empty::before,
.woocommerce-cart .wc-empty-cart-message::before {
    content: '🛒';
    display: block;
    font-size: 4rem;
    margin-bottom: 20px;
    animation: cartBounce 2s ease-in-out infinite;
}
@keyframes cartBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.woocommerce-cart .return-to-shop {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}
.woocommerce-cart .return-to-shop .button,
.woocommerce-cart .return-to-shop .wc-backward {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-emerald)) !important;
    color: #0e0a07 !important;
    padding: 16px 36px !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    border-radius: 14px !important;
    border: none !important;
    box-shadow: 0 12px 32px rgba(245,158,11,0.3) !important;
    transition: all 0.3s !important;
}
.woocommerce-cart .return-to-shop .button:hover,
.woocommerce-cart .return-to-shop .wc-backward:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 16px 40px rgba(245,158,11,0.4) !important;
}
.woocommerce-cart .woocommerce-info {
    background: transparent !important;
    border: none !important;
    border-top: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* v2.24.16 — اعلان‌های ووکامرس روی سبد حالا رندر می‌شوند (wc_print_notices بازگشت؛
   قبلاً خطای کوپن نامعتبر بی‌صدا رد می‌شد). استایل تیره هم‌خوان با تسویه (همان الگو). */
.woocommerce-cart .woocommerce-error,
.woocommerce-cart .woocommerce-message {
    background: rgba(244, 63, 94, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.25);
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: 12px;
    margin: 0 0 16px;
    font-size: 0.88rem;
    list-style: none;
}
.woocommerce-cart .woocommerce-message {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.25);
    color: var(--accent-green, #f59e0b);
}

/* v2.24.16 — سبد: نوار چسبان «تکمیل خرید» همیشه پایینِ viewport است
   (fixed z1001، بدون منطق نمایش/مخفی) و Pogo (fixed z90، bottom 9-14px)
   زیر آن دفن می‌شد — دوقلوی باگ برگهٔ ۳. سبد صفحهٔ متمرکز است؛
   نوار خرید = نوار پایینِ صفحه، پس Pogo آگاهانه مخفی می‌شود. */
body.woocommerce-cart .pogo-nav-shell {
    display: none;
}

/* v2.23.12 — WooCommerce orders page fix */
.woocommerce_page_wc-orders .wp-list-table,
.edit-php.post-type-shop_order .wp-list-table {
    table-layout: auto !important;
}
.woocommerce_page_wc-orders .wp-list-table th,
.woocommerce_page_wc-orders .wp-list-table td,
.edit-php.post-type-shop_order .wp-list-table th,
.edit-php.post-type-shop_order .wp-list-table td {
    white-space: nowrap;
}
.woocommerce_page_wc-orders .wp-list-table .column-order_status,
.woocommerce_page_wc-orders .wp-list-table .column-kudmaye_shipment {
    min-width: 100px;
}
@media (max-width: 782px) {
    .woocommerce_page_wc-orders .wrap .search-form,
    .edit-php.post-type-shop_order .wrap .search-form {
        margin-bottom: 10px;
    }
    .woocommerce_page_wc-orders .subsubsub,
    .edit-php.post-type-shop_order .subsubsub {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* ============================================================================
   v2.22.5–v2.22.9 — کودلند دات کام Pro Features
   - Flash Sale countdown bar
   - Cross-sell popup
   - Product badges (Torb approval + Free shipping)
   - Pro orders admin styles
   - Pro dashboard styles
   ============================================================================ */

/* ===== Flash Sale Bar ===== */
#kudmaye-flash-sale-bar {
    font-family: var(--font-body, 'Vazirmatn', sans-serif) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4) !important;
    animation: kudmaye-flash-bar-glow 2s ease-in-out infinite;
}
@keyframes kudmaye-flash-bar-glow {
    0%, 100% { box-shadow: 0 2px 12px rgba(251, 146, 60, 0.6); }
    50% { box-shadow: 0 2px 20px rgba(244, 63, 94, 0.8); }
}
#kudmaye-flash-timer {
    animation: kudmaye-flash-timer-pulse 1s ease-in-out infinite;
}
@keyframes kudmaye-flash-timer-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
@media (max-width: 480px) {
    #kudmaye-flash-sale-bar {
        font-size: 12px !important;
        padding: 8px 10px !important;
    }
    #kudmaye-flash-sale-bar > div {
        gap: 8px !important;
    }
    #kudmaye-flash-timer {
        font-size: 14px !important;
    }
}

/* ===== Cross-sell Popup ===== */
#kudmaye-crosssell-modal {
    animation: kudmaye-modal-fade-in 0.3s ease-out;
}
#kudmaye-crosssell-modal > div {
    animation: kudmaye-modal-scale-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes kudmaye-modal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes kudmaye-modal-scale-in {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

/* ===== Product Badges (single-product page) ===== */
.kudmaye-product-badges {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 8px 0 14px !important;
}
.kudmaye-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    font-family: var(--font-body, 'Vazirmatn', sans-serif) !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.kudmaye-badge:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25) !important;
}
.kudmaye-badge-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}
.kudmaye-badge-text {
    font-size: 12px !important;
}
.kudmaye-badge.kudmaye-badge-guarantee {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(236, 72, 153, 0.15)) !important;
    color: var(--accent-green, #f59e0b) !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
}
.kudmaye-badge.kudmaye-badge-guarantee .kudmaye-badge-icon {
    color: var(--accent-emerald, #ec4899) !important;
}
.kudmaye-badge.kudmaye-badge-freeship {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.15), rgba(250, 204, 21, 0.15)) !important;
    color: var(--accent-orange, #fb923c) !important;
    border: 1px solid rgba(251, 146, 60, 0.4) !important;
}
.kudmaye-badge.kudmaye-badge-freeship .kudmaye-badge-icon {
    color: var(--accent-gold, #facc15) !important;
}
@media (max-width: 480px) {
    .kudmaye-badge {
        font-size: 11px !important;
        padding: 5px 10px !important;
    }
    .kudmaye-product-badges {
        gap: 6px !important;
    }
}

/* ===== Pro Orders Admin Styles ===== */
.kudmaye-badge-info {
    background: #e8f4f8 !important;
    color: #0c5460 !important;
}/* ===== Pro Dashboard Styles ===== */
.kudmaye-pro-dashboard .kpi-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 18px;
    border-radius: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.kudmaye-pro-dashboard .kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.kudmaye-pro-dashboard .kpi-icon {
    font-size: 24px;
}
.kudmaye-pro-dashboard .kpi-value {
    font-size: 24px;
    font-weight: bold;
    margin-top: 8px;
}
.kudmaye-pro-dashboard .kpi-label {
    font-size: 11px;
    color: #75665a;
    margin-top: 4px;
}

/* ============================================================
   D.15 — v2.24.5 پنل ویزیتور بدون نوار پایین Pogo
   گزارش کاربر: «بخش سفارشات من برای ویزیتور خرابه و مقصر فهرست
   موبایلی که باز میشه» — نوار شناور Pogo (دکمه برجسته سبد + بج
   عددی قرمز) روی کارت‌ها/دکمه‌های پایین تب سفارشات می‌نشست.
   footer.php هم این صفحه‌ها را رندر نمی‌کند (PHP guard) — این قانون
   پشتیبان است تا حتی با کش/برون‌سپاری مطمئن باشد.
   ============================================================ */
body.page-template-page-visitor-panel .pogo-nav-shell,
body.page-template-page-visitor-login .pogo-nav-shell {
    display: none !important;
}
/* پدینگ پایین body (که برای جا دادن نوار است) در این صفحه‌ها
   به مقدار طبیعی برمی‌گردد تا انتهای لیست سفارشات خالی نماند. */
@media (max-width: 992px) {
    body.page-template-page-visitor-panel,
    body.page-template-page-visitor-login {
        padding-bottom: 32px !important;
    }
}

/* ============================================================
   D.16 — v2.24.10 صفحهٔ محصول موبایل‌محور (spapp)
   بازطراحی اپ‌مانند بر اساس پیش‌نمایش تأییدشدهٔ کاربر:
   گالری سوایپی + کارت خرید شناور + چیپ حجم + آکاردئون +
   نوار اعتماد + کاروسل مرتبط + نوار خرید چسبان + توست.
   موبایل‌فیرست؛ دسکتاپ (≥992px): چیدمان دوستونی هم‌خوان با
   بقیهٔ صفحات (همان متغیرها و پالت سایت).
   ============================================================ */

/* ---------- پایه ---------- */
.spapp-page { padding-bottom: 120px; }
.spapp-page .breadcrumb { margin: 14px 0 10px; }
.spapp-hero { position: relative; }

/* ---------- گالری ---------- */
.spapp-gallery {
    position: relative;
    background: linear-gradient(180deg, #101210, #0e0a07);
}
.spapp-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.spapp-track::-webkit-scrollbar { display: none; }
.spapp-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.spapp-slide img {
    width: 88%;
    height: 88%;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(245, 158, 11, 0.14);
}
.spapp-disc-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 5;
    background: linear-gradient(135deg, #fb923c, #f43f5e);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 7px 12px;
    border-radius: 999px;
    box-shadow: 0 8px 20px -6px rgba(244, 63, 94, 0.6);
    display: flex;
    align-items: center;
    gap: 4px;
}
.spapp-counter {
    position: absolute;
    bottom: 48px;
    left: 16px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    color: #e5e7eb;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.spapp-dots {
    position: absolute;
    bottom: 48px;
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    justify-content: center;
    gap: 6px;
}
.spapp-dots i {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    transition: all 0.3s;
}
.spapp-dots i.on { background: var(--accent-green); width: 18px; }
.spapp-stockout {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    background: rgba(244, 63, 94, 0.92);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 7px 14px;
    border-radius: 999px;
}

/* ---------- کارت خرید ---------- */
.spapp-wrap { padding: 0 14px; }
.spapp-buy { padding: 0 14px; }
.spapp-buy-card {
    margin-top: -38px;
    position: relative;
    z-index: 10;
    background: linear-gradient(180deg, #181818, #141414);
    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: 24px;
    padding: 18px 16px 16px;
    box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
.spapp-card {
    background: linear-gradient(180deg, #161616, #131313);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 16px;
    margin-top: 14px;
    box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.7);
}
.spapp-seller-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.spapp-shop {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    flex: 0 0 auto;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(236, 72, 153, 0.12));
    border: 1px solid rgba(245, 158, 11, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-green);
}
.spapp-seller-row .spapp-t { flex: 1; min-width: 0; }
.spapp-seller-row .spapp-t b {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
    color: #f3f4f6;
}
.spapp-seller-row .spapp-t b svg { color: #38bdf8; flex: 0 0 auto; }
.spapp-seller-row .spapp-t span { font-size: 11px; color: #71717a; font-weight: 500; }
.spapp-perf {
    font-size: 10.5px;
    font-weight: 700;
    color: #facc15;
    white-space: nowrap;
    background: rgba(250, 204, 21, 0.1);
    border: 1px solid rgba(250, 204, 21, 0.25);
    padding: 4px 8px;
    border-radius: 8px;
}
.spapp-title {
    font-size: 16.5px;
    font-weight: 800;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.spapp-brand {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-green);
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 2px 8px;
    border-radius: 7px;
    vertical-align: 3px;
    margin-left: 6px;
}
.spapp-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 11.5px;
    color: #a1a1aa;
    font-weight: 500;
    margin-bottom: 12px;
}
.spapp-stars { color: #facc15; display: flex; align-items: center; gap: 3px; font-weight: 700; }
.spapp-rate { font-weight: 800; color: #facc15; font-size: 12.5px; }
.spapp-sep { width: 3px; height: 3px; border-radius: 99px; background: #52525b; }
.spapp-sku { direction: ltr; letter-spacing: 0.5px; }
.spapp-stock-in { color: var(--accent-green); font-weight: 700; }
.spapp-stock-out { color: #f43f5e; font-weight: 700; }

/* ---------- قیمت ---------- */
.spapp-price-block {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 2px 12px;
}
.spapp-old {
    font-size: 13px;
    color: #71717a;
    text-decoration: line-through;
    font-weight: 600;
    align-self: center;
}
.spapp-now { display: flex; align-items: baseline; gap: 6px; }
.spapp-now b {
    font-size: 27px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    font-variant-numeric: tabular-nums;
}
.spapp-now span { font-size: 12px; color: #a1a1aa; font-weight: 600; }
.spapp-off {
    align-self: center;
    background: linear-gradient(135deg, #fb923c, #f43f5e);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 9px;
    box-shadow: 0 8px 18px -6px rgba(244, 63, 94, 0.5);
}

/* ---------- چیپ ارسال ---------- */
.spapp-ship-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.07);
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 12px;
    padding: 9px 12px;
    margin-bottom: 14px;
    color: #d9f99d;
    font-size: 12px;
    font-weight: 600;
}
.spapp-ship-chip svg { color: var(--accent-green); flex: 0 0 auto; }
.spapp-ship-chip .spapp-d { margin-right: auto; color: #a1a1aa; font-size: 11px; font-weight: 500; white-space: nowrap; }

/* ---------- تعداد + CTA ---------- */
.spapp-cta-row { display: flex; gap: 10px; align-items: stretch; }
.spapp-qty {
    display: flex;
    align-items: center;
    background: #0f0f0f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    overflow: hidden;
    flex: 0 0 auto;
}
.spapp-qty button {
    width: 44px;
    height: 52px;
    border: 0;
    background: transparent;
    color: #e5e7eb;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.spapp-qty button:active { background: rgba(245, 158, 11, 0.15); }
.spapp-qty b {
    width: 34px;
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}
.spapp-btn-buy {
    flex: 1;
    border: 0;
    border-radius: 14px;
    min-height: 52px;
    background: var(--gradient-primary);
    color: #0e0a07;
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 16px 32px -12px rgba(245, 158, 11, 0.5);
    transition: transform 0.15s ease, box-shadow 0.2s, filter 0.2s;
}
.spapp-btn-buy:active { transform: scale(0.97); }
.spapp-btn-buy:hover { filter: brightness(1.06); }
.spapp-btn-buy svg { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15)); }
.spapp-btn-buy.spapp-btn-wa {
    background: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.35);
    color: #4ade80;
    box-shadow: none;
}

/* ---------- واتساپ / تماس / اشتراک ---------- */
.spapp-wa-row { display: flex; gap: 10px; margin-top: 10px; }
.spapp-btn-wa {
    flex: 1;
    border: 1px solid rgba(37, 211, 102, 0.35);
    background: rgba(37, 211, 102, 0.08);
    color: #4ade80;
    border-radius: 13px;
    min-height: 46px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    transition: background 0.2s;
}
.spapp-btn-wa:hover { background: rgba(37, 211, 102, 0.15); }
.spapp-icobtn {
    flex: 0 0 auto;
    width: 52px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #e5e7eb;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.spapp-icobtn:hover { background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.35); color: var(--accent-green); }

/* ---------- سرصفحهٔ بخش ---------- */
.spapp-section { margin-top: 14px; }
.spapp-sec-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 14px 14px 10px;
}
.spapp-sec-head .spapp-ic,
.spapp-card .spapp-sec-head .spapp-ic {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    flex: 0 0 auto;
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
}
.spapp-sec-head h2,
.spapp-sec-head h3 { font-size: 15.5px; font-weight: 800; color: var(--text-primary); margin: 0; }
.spapp-sec-head .spapp-sub { font-size: 11.5px; color: #71717a; margin-top: 2px; font-weight: 500; }
.spapp-sec-head .spapp-more {
    margin-right: auto;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-green);
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    cursor: pointer;
}
.spapp-card .spapp-sec-head { padding: 0 0 14px; margin-bottom: 0; }

/* ---------- چیپ‌های حجم ---------- */
.spapp-vol-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 14px 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x proximity;
}
.spapp-vol-scroll::-webkit-scrollbar { display: none; }
.spapp-vol {
    flex: 0 0 auto;
    min-width: 118px;
    scroll-snap-align: start;
    background: #151515;
    border: 1.5px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    padding: 11px 12px;
    cursor: pointer;
    text-align: center;
    position: relative;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    display: block;
}
.spapp-vol:hover { border-color: rgba(245, 158, 11, 0.45); transform: translateY(-2px); }
.spapp-vol.on {
    border-color: var(--accent-green);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.14), rgba(245, 158, 11, 0.05));
    cursor: default;
}
.spapp-vol b { display: block; font-size: 14px; font-weight: 800; color: var(--text-primary); margin-bottom: 3px; }
.spapp-vol span { font-size: 11.5px; color: #a1a1aa; font-weight: 600; font-variant-numeric: tabular-nums; }
.spapp-vol.on span { color: #d9f99d; }
.spapp-vol-tag {
    position: absolute;
    top: -8px;
    right: 10px;
    background: var(--accent-green);
    color: #0e0a07;
    font-size: 9.5px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 99px;
}
.spapp-vol-tag.sale { background: linear-gradient(135deg, #fb923c, #f43f5e); color: #fff; }
.spapp-vol-out { opacity: 0.55; }
.spapp-vol-em { display: block; font-style: normal; font-size: 10px; color: #f43f5e; font-weight: 700; margin-top: 3px; }

/* ---------- در یک نگاه ---------- */
.spapp-feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.spapp-feat {
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.spapp-feat .spapp-ic,
.spapp-feat > .spapp-ic {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-green);
    padding: 0;
    border: 0;
}
.spapp-feat .spapp-b { min-width: 0; }
.spapp-feat .spapp-b label { display: block; font-size: 10.5px; color: #71717a; font-weight: 600; margin-bottom: 2px; }
.spapp-feat .spapp-b b {
    display: block;
    font-size: 13px;
    color: #f3f4f6;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- آکاردئون ---------- */
.spapp-acc-item { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.spapp-acc-item:last-child { border-bottom: 0; }
.spapp-acc-btn {
    width: 100%;
    background: transparent;
    border: 0;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 2px;
    cursor: pointer;
    text-align: right;
}
.spapp-acc-ic {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.05);
    color: #a1a1aa;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, color 0.25s;
}
.spapp-acc-item.open .spapp-acc-ic { background: rgba(245, 158, 11, 0.12); color: var(--accent-green); }
.spapp-acc-btn b { font-size: 14.5px; font-weight: 700; color: #f3f4f6; line-height: 1.6; }
.spapp-acc-hint { font-size: 11px; color: #71717a; font-weight: 500; margin-right: 6px; }
.spapp-chev { margin-right: auto; color: #71717a; transition: transform 0.3s; flex: 0 0 auto; display: flex; }
.spapp-acc-item.open .spapp-chev { transform: rotate(-180deg); color: var(--accent-green); }
.spapp-acc-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.spapp-acc-inner { padding: 2px 2px 16px; }
.spapp-acc-txt {
    font-size: 13px;
    color: #a1a1aa;
    line-height: 2.2;
    text-align: justify;
    max-height: 260px;
    overflow: hidden;
    mask-image: linear-gradient(180deg, #000 62%, transparent 96%);
    -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 96%);
}
.spapp-acc-item.open .spapp-acc-txt { mask-image: none; -webkit-mask-image: none; }
.spapp-acc-txt p { margin-bottom: 10px; }
.spapp-acc-txt h2, .spapp-acc-txt h3 { font-size: 15px; color: #e5e7eb; margin: 12px 0 6px; }
.spapp-acc-more {
    margin-top: 8px;
    background: transparent;
    border: 0;
    font-family: inherit;
    color: var(--accent-green);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ---------- مشخصات ---------- */
.spapp-spec-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 2px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
    font-size: 13px;
}
.spapp-spec-row:last-child { border-bottom: 0; }
.spapp-spec-row label { color: #71717a; font-weight: 600; flex: 0 0 auto; }
.spapp-spec-row b { color: #e5e7eb; font-weight: 700; text-align: left; }

/* ---------- نظرات ---------- */
.spapp-rate-hero {
    display: flex;
    gap: 14px;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 14px;
}
.spapp-rate-hero .spapp-big {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 0 0 auto;
    background: rgba(250, 204, 21, 0.08);
    border: 1px solid rgba(250, 204, 21, 0.25);
    border-radius: 16px;
    padding: 10px 18px;
}
.spapp-rate-hero .spapp-big b { font-size: 26px; font-weight: 800; color: #facc15; line-height: 1.3; }
.spapp-rate-hero .spapp-big span { font-size: 10.5px; color: #a16207; font-weight: 700; }
.spapp-rate-bars { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.spapp-rbar { display: flex; align-items: center; gap: 7px; font-size: 10px; color: #71717a; font-weight: 600; }
.spapp-rbar .spapp-tr { flex: 1; height: 5px; background: rgba(255, 255, 255, 0.07); border-radius: 99px; overflow: hidden; }
.spapp-rbar .spapp-tr i { display: block; height: 100%; background: #facc15; border-radius: 99px; }
.spapp-review {
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 13px;
    margin-bottom: 10px;
}
.spapp-review .spapp-rh { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.spapp-av {
    width: 34px;
    height: 34px;
    border-radius: 99px;
    flex: 0 0 auto;
    background: var(--gradient-primary);
    color: #0e0a07;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}
.spapp-review .spapp-rh b { font-size: 12.5px; color: #f3f4f6; font-weight: 700; }
.spapp-review .spapp-when { font-size: 10.5px; color: #71717a; margin-right: auto; font-weight: 500; }
.spapp-rs { color: #facc15; font-size: 12px; letter-spacing: 1px; margin-bottom: 7px; }
.spapp-review p { font-size: 12.5px; color: #a1a1aa; line-height: 2; }
.spapp-rev-empty { font-size: 12.5px; color: #71717a; line-height: 2.2; padding: 8px 2px; }
.spapp-rev-toggle {
    margin-top: 4px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--accent-green);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    padding: 9px 16px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}
.spapp-rev-toggle:hover { background: rgba(245, 158, 11, 0.15); }
.spapp-rev-form { margin-top: 14px; border-top: 1px dashed rgba(255, 255, 255, 0.08); padding-top: 14px; }
.spapp-rev-form .comment-reply-title { font-size: 13.5px; font-weight: 700; color: #e5e7eb; margin-bottom: 10px; display: block; }
.spapp-rev-form p { margin-bottom: 10px; }
.spapp-rev-form input[type="text"],
.spapp-rev-form input[type="email"],
.spapp-rev-form input[type="url"],
.spapp-rev-form textarea {
    width: 100%;
    background: #0f0f0f;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 10px 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13px;
}
.spapp-rev-form input[type="text"]:focus,
.spapp-rev-form textarea:focus { outline: none; border-color: rgba(245, 158, 11, 0.5); }
.spapp-rev-form .submit,
.spapp-rev-form input[type="submit"] {
    background: var(--gradient-primary);
    color: #0e0a07;
    border: 0;
    border-radius: 10px;
    padding: 10px 22px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}
.spapp-rev-form .comment-notes,
.spapp-rev-form .logged-in-as { font-size: 11px; color: #71717a; }

/* ---------- نوار اعتماد ---------- */
.spapp-trust-wrap { margin-top: 14px; }
.spapp-trust-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 14px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.spapp-trust-scroll::-webkit-scrollbar { display: none; }
.spapp-tchip {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 13px;
    padding: 10px 14px;
}
.spapp-tchip .spapp-ic {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-green);
    padding: 0;
    border: 0;
}
.spapp-tchip b { font-size: 12px; color: #e5e7eb; font-weight: 700; display: block; }
.spapp-tchip span { font-size: 10px; color: #71717a; font-weight: 500; }

/* ---------- محصولات مرتبط ---------- */
.spapp-rel-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 14px 6px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.spapp-rel-scroll::-webkit-scrollbar { display: none; }
.spapp-rel-card {
    flex: 0 0 158px;
    scroll-snap-align: start;
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}
.spapp-rel-card .spapp-im { position: relative; aspect-ratio: 1 / 1.05; background: #0f0f0f; display: flex; align-items: center; justify-content: center; }
.spapp-rel-card .spapp-im img { width: 86%; height: 86%; object-fit: cover; border-radius: 14px; }
.spapp-rel-card .spapp-im > a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.spapp-rel-card .spapp-off {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #f43f5e;
    color: #fff;
    font-size: 9.5px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 7px;
    box-shadow: none;
}
.spapp-rel-out {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #e5e7eb;
    font-size: 9.5px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.spapp-rel-card .spapp-bd { padding: 10px 11px 12px; }
.spapp-rel-card .spapp-bd b {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #f3f4f6;
    line-height: 1.8;
    height: 43px;
    overflow: hidden;
}
.spapp-rel-card .spapp-bd b a { color: inherit; }
.spapp-rel-card .spapp-pr { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; }
.spapp-rel-card .spapp-v { display: flex; flex-direction: column; }
.spapp-rel-card .spapp-v i { font-size: 10px; color: #71717a; text-decoration: line-through; font-style: normal; font-weight: 600; }
.spapp-rel-card .spapp-v b { font-size: 13px; color: var(--text-primary); font-weight: 800; font-variant-numeric: tabular-nums; height: auto; overflow: visible; }
.spapp-rel-card .spapp-v b small { font-size: 9.5px; color: #a1a1aa; font-weight: 600; }
.spapp-add {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 0;
    flex: 0 0 auto;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}
.spapp-add:hover { background: rgba(245, 158, 11, 0.28); }
.spapp-add-out { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.15); color: #a1a1aa; }

/* ---------- توست ---------- */
.spapp-toast {
    position: fixed;
    bottom: 96px;
    left: 50%;
    transform: translateX(-50%) translateY(14px) scale(0.9);
    z-index: 80;
    margin: 0 auto;
    width: max-content;
    max-width: 86vw;
    background: rgba(22, 22, 22, 0.95);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #d9f99d;
    font-size: 12.5px;
    font-weight: 700;
    padding: 11px 18px;
    border-radius: 999px;
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.spapp-toast.show { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }

/* ---------- نوار خرید چسبان ---------- */
/* v2.24.15 — visibility:hidden وقتی نوار مخفی است (WCAG 4.1.2): لینک‌های داخل نوار
   با translateY(110%) خارج از صفحه بودند اما تیب‌پذیر می‌ماندند؛ اکنون هم‌کلاس فیکس
   برگهٔ ۲، visibility با تأخیر هم‌اندازهٔ transition آزاد می‌شود تا انیمیشن سالم بماند. */
.spapp-bottombar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 70;
    background: linear-gradient(0deg, #0e0a07 55%, rgba(14, 10, 7, 0.88));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(110%);
    visibility: hidden;
    transition: transform 0.35s ease, visibility 0s linear 0.35s;
}
.spapp-bottombar.show { transform: none; visibility: visible; transition: transform 0.35s ease; }
.spapp-bbp { min-width: 0; max-width: 52%; overflow: hidden; }
.spapp-bbp i {
    display: block;
    font-style: normal;
    font-size: 10.5px;
    color: #71717a;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.spapp-bbp b {
    font-size: 17px;
    color: var(--text-primary);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.spapp-bbp b small { font-size: 10.5px; color: #a1a1aa; font-weight: 600; flex: 0 0 auto; }
.spapp-go {
    flex: 1;
    border: 0;
    border-radius: 13px;
    min-height: 50px;
    font-family: inherit;
    background: var(--gradient-primary);
    color: #0e0a07;
    font-size: 14.5px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    box-shadow: 0 14px 28px -10px rgba(245, 158, 11, 0.45);
    padding: 0 18px;
    white-space: nowrap;
}
.spapp-go:active { transform: scale(0.97); }
.spapp-go-wa { background: rgba(37, 211, 102, 0.12); border: 1px solid rgba(37, 211, 102, 0.4); color: #4ade80; box-shadow: none; }
.spapp-atc-busy { opacity: 0.65; pointer-events: none; }

/* ---------- تحویل جایگاه به Pogo (v2.24.15) ---------- */
/* همپوشانی fixed×fixed: .spapp-bottombar (z70, bottom:0) × .pogo-nav-shell
   (z90, bottom:9-14px, عرض تا 100vw−18px) — در موبایل قرص شیشه‌ای Pogo روی CTA
   «افزودن به سبد» می‌افتاد و کلیک به آیتم ناوبری می‌رفت (باگ کانورژن). وقتی نوار
   خرید نمایان است (body.spapp-bar-live از js/single-product.js)، Pogo به پایین
   می‌لغزد؛ با بازگشت نوار دوباره ظاهر می‌شود. */
@media (max-width: 992px) {
    .pogo-nav-shell {
        transition: opacity 0.3s var(--pogo-ease, ease), transform 0.3s var(--pogo-ease, ease);
    }
    body.spapp-bar-live .pogo-nav-shell {
        opacity: 0;
        pointer-events: none;
        transform: translateX(-50%) translateY(140%);
    }
}

/* ============================================================
   D.16.1 — spapp دسکتاپ (≥992px): دوستونی، هم‌خوان با سایت
   ============================================================ */
@media (min-width: 992px) {
    .spapp-page { padding-bottom: 60px; }
    .spapp-hero {
        max-width: 1200px;
        margin: 0 auto;
        padding: 8px 24px 0;
        display: grid;
        grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
        gap: 32px;
        align-items: start;
    }
    .spapp-gallery { border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.06); }
    .spapp-track { border-radius: 24px; }
    .spapp-slide { aspect-ratio: 1 / 1; }
    .spapp-slide img { width: 86%; height: 86%; }
    .spapp-buy { padding: 0; }
    .spapp-buy-card { margin-top: 0; position: sticky; top: calc(var(--header-height) + 20px); }
    .spapp-title { font-size: 20px; }
    .spapp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
    .spapp-section { max-width: 1200px; margin: 22px auto 0; }
    .spapp-sec-head { padding: 0 24px 10px; }
    .spapp-vol-scroll { overflow: visible; flex-wrap: wrap; padding: 4px 24px 6px; }
    .spapp-vol { min-width: 130px; }
    .spapp-feat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .spapp-trust-scroll { overflow: visible; flex-wrap: wrap; padding: 2px 24px; }
    .spapp-rel-scroll { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; padding: 4px 24px 6px; }
    .spapp-rel-card { flex: initial; }
    .spapp-card { margin-top: 22px; }
    .spapp-bottombar, .spapp-toast { display: none; }
}

/* ============================================================
   D.16.2 — v2.24.11 سخت‌سازی موبایل (رفع بیرون‌زدگی المان‌ها)
   سه لایهٔ دفاعی:
   ۱) حصار عرض: همهٔ جعبه‌های spapp حداکثر ۱۰۰٪ عرض والد
   ۲) شکستن توکن‌های نشکن (لینک/کد/متن انگلیسی بلند) +
      min-width:0 روی فرزندان flex تا جمع شوند، نه بیرون‌زدن
   ۳) قیمت با چیدمان مقاوم + لایه‌های فشردگی ۳۸۰/۳۵۵px
   (بگ‌رپورت کاربر: «برای گوشی المان‌ها زدن بیرون» — ریشه:
   توکن نشکن در نظرات/مشخصات + شیفت RTL با overflow-x:hidden)
   ============================================================ */

/* ---- در یک نگاه: مسیرهای grid قابل‌جمع‌شدن ----
   (1fr خالی زیر min-content آیتم نمی‌رود → شبکه از کارد بیرون می‌زد) ---- */
.spapp-feat-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.spapp-feat { min-width: 0; }

/* ---- ۱) حصار عرض ---- */
.spapp-page { max-width: 100%; }
.spapp-hero, .spapp-buy, .spapp-wrap, .spapp-section,
.spapp-buy-card, .spapp-card, .spapp-gallery { min-width: 0; max-width: 100%; }
.spapp-sku { max-width: 100%; }

/* ---- ۲) شکستن توکن‌های نشکن ---- */
.spapp-title,
.spapp-acc-txt,
.spapp-acc-btn b,
.spapp-acc-hint,
.spapp-review p,
.spapp-rev-empty,
.spapp-review .spapp-rh b,
.spapp-spec-row label,
.spapp-spec-row b,
.spapp-sku,
.spapp-sec-head h2,
.spapp-sec-head h3,
.spapp-sec-head .spapp-sub,
.spapp-vol b,
.spapp-vol span,
.spapp-tchip b,
.spapp-tchip span,
.spapp-seller-row .spapp-t b,
.spapp-seller-row .spapp-t span,
.spapp-bbp i,
.spapp-rel-card .spapp-bd b,
.spapp-toast { overflow-wrap: anywhere; }

/* ---- فرزندان flex جمع‌شونده (به‌جای بیرون‌زدن) ---- */
.spapp-seller-row .spapp-t,
.spapp-meta-row,
.spapp-price-block,
.spapp-cta-row,
.spapp-cta-row .spapp-btn-buy,
.spapp-wa-row,
.spapp-ship-chip,
.spapp-spec-row,
.spapp-spec-row b,
.spapp-rate-bars,
.spapp-review .spapp-rh,
.spapp-rel-card .spapp-pr,
.spapp-rel-card .spapp-v,
.spapp-bbp,
.spapp-sec-head,
.spapp-feat .spapp-b { min-width: 0; }

/* ---- ۳) قیمت: چیدمان مقاوم —
   ردیف ۱: قیمت بزرگ + «تومان» (عرض کامل)
   ردیف ۲: قیمت خط‌خورده (راست) + پیل تخفیف (چپ) ---- */
.spapp-price-block { flex-wrap: wrap; row-gap: 4px; padding-bottom: 10px; }
.spapp-now { flex: 1 1 100%; order: 1; }
.spapp-old { order: 2; }
.spapp-off { order: 3; }
.spapp-now b { font-size: clamp(21px, 6.2vw, 27px); }
.spapp-now span { flex: 0 0 auto; }
.spapp-old { font-size: 12px; }

/* ---- چیپ ارسال: بخش «رایگان بالای …» جمع‌شونده ---- */
.spapp-ship-chip .spapp-d { min-width: 0; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; }

/* ---- بج حجم‌ها: دیده‌شدن کامل بج بالای چیپ ---- */
.spapp-vol-scroll { padding: 12px 14px 6px; }

/* ---- نوار خرید پایین: جمع‌شدن امن ---- */
.spapp-go { min-width: 0; }
.spapp-bbp b { overflow: hidden; min-width: 0; }
.spapp-bbp b > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- تاریخ نظر: جمع‌شونده ---- */
.spapp-review .spapp-when { min-width: 0; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; }

/* ---- کارت مرتبط: قیمت یک‌خطی جمع‌شونده ---- */
.spapp-rel-card .spapp-v b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* ---- حس اپ: لمس بدون زوم دوبل، بدون هایلایت آبی،
        اسکرول افقی مهارشده (جلوگیری از back-swipe اندروید) ---- */
.spapp-qty button,
.spapp-acc-btn,
.spapp-acc-more,
.spapp-vol,
.spapp-add,
.spapp-btn-buy,
.spapp-btn-wa,
.spapp-icobtn,
.spapp-go,
.spapp-rev-toggle,
.spapp-rev-form .submit,
.spapp-rev-form input[type="submit"] {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.spapp-track,
.spapp-vol-scroll,
.spapp-rel-scroll,
.spapp-trust-scroll {
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

/* ---- موبایل باریک: فشردگی بیشتر (۳۸۰px) ---- */
@media (max-width: 380px) {
    .spapp-rel-card { flex: 0 0 144px; }
    .spapp-btn-buy { font-size: 14px; }
    .spapp-qty button { width: 40px; height: 50px; }
    .spapp-qty b { width: 30px; }
    .spapp-btn-buy { min-height: 50px; }
    .spapp-add { width: 32px; height: 32px; }
    .spapp-rel-card .spapp-v b { font-size: 12.5px; }
    .spapp-meta-row { gap: 10px; font-size: 11px; }
}

/* ---- لایهٔ ۳۵۵px: گوشی‌های باریک ---- */
@media (max-width: 355px) {
    .spapp-qty button { width: 36px; font-size: 18px; }
    .spapp-qty b { width: 26px; font-size: 15px; }
    .spapp-cta-row, .spapp-wa-row { gap: 8px; }
    .spapp-btn-buy { font-size: 13.5px; gap: 6px; }
    .spapp-btn-buy svg { width: 17px; height: 17px; }
    .spapp-icobtn { width: 46px; }
    .spapp-go { font-size: 13px; padding: 0 12px; }
    .spapp-go svg { display: none; }
    .spapp-bbp b { font-size: 15px; }
    .spapp-bbp b small { font-size: 9.5px; }
    .spapp-now b { font-size: 20px; }
    .spapp-ship-chip { font-size: 11px; }
    .spapp-vol { min-width: 106px; }
    .spapp-feat .spapp-ic { width: 32px; height: 32px; }
    .spapp-feat { gap: 8px; padding: 10px; }
    .spapp-wrap, .spapp-buy { padding-left: 10px; padding-right: 10px; }
    .spapp-buy-card { padding: 16px 12px 14px; }
}

/* ============================================
   FRONT PAGE (kfp-) — moved from front-page.php inline <style> in v2.24.12
   kfp- prefix = Kudland Front Page (scoped, avoids conflicts).
   ============================================ */
.kfp-hero { padding:60px 0 80px; background:
    radial-gradient(ellipse at top right, rgba(245,158,11,.12), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(236,72,153,.08), transparent 60%),
    var(--bg-primary); position:relative; overflow:hidden; }
.kfp-hero-inner { display:grid; grid-template-columns:1.2fr 0.8fr; gap:48px; align-items:center; }
.kfp-hero-badge { display:inline-flex; align-items:center; gap:8px; padding:8px 18px;
    background:rgba(245,158,11,.15); color:var(--accent-green); border:1px solid rgba(245,158,11,.35);
    border-radius:999px; font-weight:700; font-size:.9rem; margin-bottom:24px; }
.kfp-hero h1 { font-size:clamp(2rem,5vw,3.4rem); font-weight:800; line-height:1.2; margin-bottom:18px; color:var(--text-primary); }
.kfp-hero-desc { font-size:1.1rem; color:var(--text-secondary); line-height:1.8; margin-bottom:28px; max-width:640px; }
.kfp-hero-btns { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:40px; }
.kfp-hero-stats { display:flex; flex-wrap:wrap; gap:32px; }
.kfp-hero-stat { display:flex; flex-direction:column; }
.kfp-hero-stat-num { font-size:1.8rem; font-weight:800; color:var(--accent-green); } .kfp-hero-stat-label { font-size:.9rem; color:var(--text-secondary); }
.kfp-hero-emoji { font-size:14rem; line-height:1; text-align:center; }
/* .grad — gradient highlight span used in section titles.
 * (پیوستِ v2.24.12: این قاعده در فرانت‌پیج inline بود؛ لندینگ‌ها تعریف inline خودشان را دارند که override می‌کند.) */
.grad { background:var(--gradient-primary); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; color:var(--accent-green); }
/* Trust bar. */
.kfp-trust { background:var(--bg-secondary); border-block:1px solid rgba(255,255,255,.06); padding:20px 0; }
.kfp-trust-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:16px; }
.kfp-trust-item { display:flex; align-items:center; gap:10px; justify-content:center; font-size:.92rem; color:var(--text-primary); font-weight:600; }
/* Section spacing. */
.kfp-section { padding:72px 0; }
/* v2.24.12 — helper classes (replaced inline style attributes). */
.kfp-section--alt { background: var(--bg-secondary); }
.kfp-actions-center { text-align:center; }
.kfp-actions-center--flex { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.kfp-product-media { display:inline-block; }
/* Packages. */
.kfp-packages-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:28px; align-items:stretch; }
.kfp-pkg-card { position:relative; background:var(--bg-card); border:1px solid rgba(255,255,255,.08);
    border-radius:var(--radius-lg); padding:32px 24px; transition:var(--transition); display:flex; flex-direction:column; }
.kfp-pkg-card:hover { transform:translateY(-6px); border-color:rgba(255,255,255,.18); }
.kfp-pkg-card--green  { border-top:4px solid var(--accent-green); }
.kfp-pkg-card--orange { border-top:4px solid var(--accent-orange); }
.kfp-pkg-card--gold   { border-top:4px solid var(--accent-gold); }
.kfp-pkg-card--featured { box-shadow:0 12px 40px rgba(251,146,60,.18); transform:translateY(-12px); }
.kfp-pkg-ribbon { position:absolute; top:-12px; right:24px; background:linear-gradient(135deg,#fb923c,#f43f5e);
    color:#fff; padding:6px 14px; border-radius:999px; font-size:.78rem; font-weight:700; }
.kfp-pkg-icon { font-size:2.4rem; margin-bottom:12px; }
.kfp-pkg-name { font-size:1.35rem; font-weight:800; margin-bottom:8px; color:var(--text-primary); }
.kfp-pkg-desc { font-size:.95rem; color:var(--text-secondary); line-height:1.7; margin-bottom:18px; }
.kfp-pkg-items { list-style:none; padding:0; margin:0 0 20px; flex-grow:1; }
.kfp-pkg-item { display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px dashed rgba(255,255,255,.06); font-size:.92rem; color:var(--text-primary); }
.kfp-pkg-item-qty { color:var(--text-secondary); font-weight:600; }
.kfp-pkg-price { font-size:1.5rem; font-weight:800; margin-bottom:16px; }
.kfp-pkg-card--green  .kfp-pkg-price { color:var(--accent-green); }
.kfp-pkg-card--orange .kfp-pkg-price { color:var(--accent-orange); }
.kfp-pkg-card--gold   .kfp-pkg-price { color:var(--accent-gold); }
.kfp-pkg-btn { display:block; text-align:center; padding:12px; border-radius:var(--radius-md); font-weight:700; transition:var(--transition); }
.kfp-pkg-card--green  .kfp-pkg-btn { background:rgba(245,158,11,.15);  color:var(--accent-green); }
.kfp-pkg-card--green  .kfp-pkg-btn:hover { background:var(--accent-green);  color:#fff; }
.kfp-pkg-card--orange .kfp-pkg-btn { background:rgba(251,146,60,.15);  color:var(--accent-orange); }
.kfp-pkg-card--orange .kfp-pkg-btn:hover { background:var(--accent-orange); color:#fff; }
.kfp-pkg-card--gold   .kfp-pkg-btn { background:rgba(250,204,21,.15);  color:var(--accent-gold); }
.kfp-pkg-card--gold   .kfp-pkg-btn:hover { background:var(--accent-gold);   color:#fff; }
/* Best sellers. */
.kfp-products-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.kfp-product-card { background:var(--bg-card); border:1px solid rgba(255,255,255,.08);
    border-radius:var(--radius-lg); padding:24px; text-align:center; transition:var(--transition);
    display:flex; flex-direction:column; align-items:center; }
.kfp-product-card:hover { transform:translateY(-4px); border-color:rgba(245,158,11,.4); }
.kfp-product-img { width:80px; height:80px; border-radius:50%; background:rgba(245,158,11,.12);
    display:flex; align-items:center; justify-content:center; font-size:2.2rem; margin-bottom:16px; }
.kfp-product-name { font-weight:700; color:var(--text-primary); margin-bottom:8px; min-height:42px; }
.kfp-product-price { color:var(--accent-green); font-weight:800; font-size:1.1rem; margin-bottom:14px; }
.kfp-product-btn { width:100%; padding:10px; background:rgba(245,158,11,.15); color:var(--accent-green);
    border-radius:var(--radius-md); font-weight:700; transition:var(--transition); }
.kfp-product-btn:hover { background:var(--accent-green); color:#fff; }
/* v2.24.12 — WC ajax add-to-cart states on best-seller buttons. */
.kfp-product-btn.add_to_cart_button.loading { opacity:.6; pointer-events:none; }
.kfp-product-btn.add_to_cart_button.added  { background:var(--accent-green); color:#fff; }
/* Program crops (v2.24.12: کارت‌ها لینک شدند). */
.kfp-crops-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:16px; margin-bottom:32px; }
.kfp-crop { background:var(--bg-card); border:1px solid rgba(255,255,255,.08); border-radius:var(--radius-md);
    padding:24px 12px; text-align:center; transition:var(--transition); }
a.kfp-crop { display:block; text-decoration:none; }
.kfp-crop:hover { transform:translateY(-4px); border-color:rgba(245,158,11,.4); background:var(--bg-card-hover); }
.kfp-crop-icon { font-size:2.4rem; margin-bottom:8px; } .kfp-crop-name { color:var(--text-primary); font-weight:600; font-size:.95rem; }
/* Calculator. */
.kfp-calc { background:var(--bg-card); border:1px solid rgba(255,255,255,.08); border-radius:var(--radius-lg); padding:32px; max-width:840px; margin:0 auto; }
.kfp-calc-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-bottom:20px; }
.kfp-calc-label { display:block; font-size:.85rem; color:var(--text-secondary); margin-bottom:6px; }
.kfp-calc-field { width:100%; padding:12px; background:var(--bg-primary); border:1px solid rgba(255,255,255,.1);
    border-radius:var(--radius-md); color:var(--text-primary); font-family:'Vazirmatn',sans-serif; font-size:.95rem; }
.kfp-calc-result { background:rgba(245,158,11,.08); border:1px solid rgba(245,158,11,.25); border-radius:var(--radius-md); padding:20px; margin-bottom:16px; }
.kfp-calc-result-row { display:flex; justify-content:space-between; padding:6px 0; }
.kfp-calc-result-row strong { color:var(--accent-green); }
/* Features. */
.kfp-features-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.kfp-feature { background:var(--bg-card); border:1px solid rgba(255,255,255,.08); border-radius:var(--radius-lg);
    padding:28px 20px; text-align:center; transition:var(--transition); }
.kfp-feature:hover { transform:translateY(-4px); border-color:rgba(245,158,11,.4); }
.kfp-feature-icon { font-size:2.6rem; margin-bottom:12px; } .kfp-feature-title { font-weight:700; color:var(--text-primary); margin-bottom:6px; } .kfp-feature-desc { font-size:.88rem; color:var(--text-secondary); }
/* CTA. */
.kfp-cta { background:radial-gradient(ellipse at center, rgba(245,158,11,.18), transparent 70%),
    var(--bg-secondary); border-radius:var(--radius-xl); padding:60px 24px; text-align:center; }
.kfp-cta-title { font-size:clamp(1.6rem,3vw,2.4rem); font-weight:800; margin-bottom:12px; color:var(--text-primary); }
.kfp-cta-phone { font-size:1.5rem; font-weight:800; color:var(--accent-green); margin:16px 0 24px; display:block; direction:ltr; }
/* Responsive. */
@media (max-width:900px) {
    .kfp-hero-inner { grid-template-columns:1fr; } .kfp-hero-emoji { font-size:8rem; }
    .kfp-trust-grid { grid-template-columns:repeat(2,1fr); } .kfp-packages-grid { grid-template-columns:1fr; }
    .kfp-pkg-card--featured { transform:none; } .kfp-products-grid { grid-template-columns:repeat(2,1fr); }
    .kfp-crops-grid { grid-template-columns:repeat(2,1fr); } .kfp-calc-grid { grid-template-columns:1fr; }
    .kfp-features-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:520px) {
    .kfp-products-grid { grid-template-columns:1fr; } .kfp-features-grid { grid-template-columns:1fr; }
    .kfp-hero-stats { gap:18px; } .kfp-hero-stat-num { font-size:1.4rem; }
}

/* ============================================================
   v2.24.13 — برگه ۲ (header/footer): کلاس‌های منتقل‌شده از inline
   ============================================================ */

/* لوگو/آیکن بستن درپوش کشویی — قبلاً style inline در header.php */
.drawer-logo-icon { width: 36px; height: 36px; }
.drawer-logo-text { font-size: 18px; }
.drawer-close-icon { width: 20px; height: 20px; }

/* آیکن واتساپ دکمه اصلی هدر — قبلاً style inline (margin-left:6px) */
.primary-btn .btn-wa-icon { margin-left: 6px; }

/* اعداد/URLهای LTR داخل متن RTL (تلفن فوتر، کد اینماد) — قبلاً style inline */
.ltr-inline { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* فوتر: لینک‌های تماس و کِرِدیت — قبلاً style inline */
.footer-contact a { color: inherit; text-decoration: none; }
.footer-credit a { color: inherit; text-decoration: underline; }

/* Honeypot خبرنامه — کاملاً از دید خارج؛ tabindex=-1 هم آن را از tab-order
   خارج می‌کند. کاربر واقعی هرگز آن را نمی‌بیند/پر نمی‌کند؛ بات‌ها پرش می‌کنند. */
.footer-newsletter-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* ============================================
   v2.24.14 — بادج‌های اعتماد فوتر (اینماد / ساماندهی)
   قبلاً هیچ CSS نداشتند (کلاس‌ها در footer.php بود ولی استایلشان در
   یکی از بازآرایی‌های v2.19.x گم شده بود) → ایموجی + متن لخت رندر می‌شد.
   حالا: کارت شیشه‌ای هم‌خوان با زبان بصری فوتر + آیکون SVG.
   ============================================ */
.footer-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 28px 0 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    min-height: 44px; /* هدف لمسی */
}

.footer-trust-badge:hover {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.06);
    transform: translateY(-1px);
}

.footer-trust-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-green, #f59e0b);
    flex-shrink: 0;
}

.footer-trust-badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.footer-trust-badge-text strong {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary, #f1f5f9);
}

.footer-trust-badge-text span {
    font-size: 0.75rem;
    color: var(--text-secondary, #94a3b8);
}

/* بادج کد اینماد: غیرقابل کلیک — افکت hover ندارد */
.footer-trust-badge-code {
    cursor: default;
}
.footer-trust-badge-code:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 600px) {
    .footer-trust-badges { gap: 8px; padding: 16px 0; }
    .footer-trust-badge { padding: 8px 12px; gap: 8px; }
    .footer-trust-badge-icon { width: 36px; height: 36px; }
    .footer-trust-badge-icon svg { width: 22px; height: 22px; }
    .footer-trust-badge-text strong { font-size: 0.82rem; }
    .footer-trust-badge-text span { font-size: 0.7rem; }
}

/* ============================================
   v2.25.0 — APPEARANCE CUSTOMIZER
   بج «جدید» خودکار + بج ویژهٔ هر محصول (kudmaye_opt)
   چیدمان گوشه‌ها: برند بالا-راست · تخفیف بالا-چپ · جدید پایین-راست · ویژه پایین-چپ
   (pointer-events:none ⇒ کلیک از روی بج به لینک کارت می‌رسد)
   ============================================ */
.kud-badge-new,
.kud-badge-custom {
    position: absolute;
    bottom: 14px;
    z-index: 3;
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    padding: 6px 13px;
    border-radius: 50px;
    color: #0e0a07;
    letter-spacing: .2px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    white-space: nowrap;
}
.kud-badge-new { right: 14px; }
.kud-badge-custom { left: 14px; }
@media (max-width: 768px) {
    .kud-badge-new, .kud-badge-custom { bottom: 10px; font-size: 10px; padding: 5px 10px; }
    .kud-badge-new { right: 10px; }
    .kud-badge-custom { left: 10px; }
}

/* ============================================================
   v2.29.0 — THEMING DEFAULT WOOCOMMERCE BUTTONS (Fix B)
   هر دکمهٔ پیش‌فرض ووکامرس که در هر نقطه‌ای از سایت رندر شود
   (fallback کارت‌ها، کراس‌سل سبد، افزونه‌ها، شورت‌کدها) باید
   هم‌زبان طراحی قالب دیده شود — نه دکمهٔ خاکستریِ خام.
   انتخابگرها محدود به .woocommerce هستند تا پیشخوان دست‌نخورده بماند.
   ============================================================ */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce .single_add_to_cart_button,
.woocommerce button.single_add_to_cart_button,
.woocommerce a.button.wc-forward,
.woocommerce button.button.wc-forward,
.woocommerce .wc-block-components-button.wp-element-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 18px !important;
    background: linear-gradient(135deg, var(--accent-green), #d97706) !important;
    color: #0e0a07 !important;
    border: none !important;
    border-radius: 12px !important;
    font-family: 'Vazirmatn', sans-serif !important;
    font-size: 0.88rem !important;
    font-weight: 800 !important;
    line-height: 1.6 !important;
    text-decoration: none !important;
    text-shadow: none !important;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    overflow: hidden;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce .single_add_to_cart_button:hover,
.woocommerce a.button.wc-forward:hover,
.woocommerce button.button.wc-forward:hover,
.woocommerce .wc-block-components-button.wp-element-button:hover {
    transform: translateY(-2px);
    color: #0e0a07 !important;
    box-shadow: 0 10px 22px rgba(245, 158, 11, 0.45);
    filter: brightness(1.08);
}
.woocommerce a.button:active,
.woocommerce button.button:active,
.woocommerce .single_add_to_cart_button:active,
.woocommerce .wc-block-components-button.wp-element-button:active {
    transform: translateY(0);
}
.woocommerce a.button.disabled,
.woocommerce a.button:disabled,
.woocommerce button.button.disabled,
.woocommerce button.button:disabled,
.woocommerce .single_add_to_cart_button.disabled,
.woocommerce .single_add_to_cart_button:disabled,
.woocommerce .wc-block-components-button.wp-element-button[aria-disabled="true"] {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-muted) !important;
    box-shadow: none !important;
    cursor: not-allowed;
    transform: none !important;
    opacity: 0.75;
}
/* دکمهٔ اضافه‌به‌سبدِ حلقه (اگر از مسیر fallback یا افزونه رندر شود) — هم‌عرض کارت */
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product .button {
    width: 100%;
    margin-top: 10px;
}
/* ============================================================================
 * v2.28.0 — KUDLAND MOBILE-FIRST MINIMALIST CHECKOUT
 * ----------------------------------------------------------------------------
 * بازنویسی کامل v2.27.0 برای پاسخ به خواسته کاربر:
 *   «شکل صفحه چک اوت مفید نیست و برای موبایل بهینه نیست. میخوام با موبایل
 *    که مشتری میاد خیلی ساده اطلاعاتی که گفتمو بزنه و تمام».
 *
 * طراحی جدید:
 *   - فقط ۳ فیلد قابل مشاهده: فامیل، شماره موبایل، نشانی کامل
 *   - هدر مینیمال (عنوان + pill شمارش + دکمه بازگشت)
 *   - خلاصه سفارش تاشو (collapsible) روی موبایل
 *   - دکمه پرداخت چسبان (sticky) پایین viewport
 *   - اندازه لمسی بزرگ (min 56px height) — استاندارد Apple HIG
 *   - font-size ≥ 16px روی input — جلوگیری از iOS auto-zoom
 *   - حذف hero/trust-bar/footnote (design noise برای موبایل)
 *   - دسکتاپ: چیدمان دوستونی با خلاصه بدون تاشو و sticky
 * ============================================================================ */

/* --- Hidden fields utility (works for both classic + block checkout) --- */
.kudmaye-hidden-field,
.kudmaye-hidden-field .form-row,
.woocommerce-checkout .kudmaye-hidden-field,
.woocommerce-checkout .kudmaye-hidden-field label,
.woocommerce-checkout .kudmaye-hidden-field input,
.woocommerce-checkout .kudmaye-hidden-field select,
.woocommerce-checkout .kudmaye-hidden-field .select2-container {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    pointer-events: none !important;
}

/* --- Main container: mobile-first, full width --- */
.kco-checkout {
    background: var(--bg-primary);
    min-height: 100vh;
    min-height: 100dvh; /* dynamic viewport — handles iOS Safari URL bar */
    padding: 0 0 100px; /* bottom padding for sticky pay button */
}

/* --- Minimal header --- */
.kco-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    position: sticky;
    top: var(--header-height, 70px);
    z-index: 20;
}

.kco-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.kco-back:hover { color: var(--accent-green); border-color: rgba(245, 158, 11, 0.25); }

.kco-title {
    flex: 1;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    text-align: right;
}

.kco-cart-pill {
    display: inline-block;
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-green);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid rgba(245, 158, 11, 0.18);
    flex-shrink: 0;
}

/* --- Form container --- */
.kudmaye-checkout-form {
    max-width: 580px;
    margin: 0 auto;
    padding: 16px;
}

/* --- Section spacing --- */
.kco-fields-section,
.kco-summary-section {
    margin-bottom: 14px;
}

.kco-section-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 4px;
}

.kco-section-hint {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0 0 16px;
    line-height: 1.6;
}

/* --- Form fields: BIG touch targets, no iOS zoom --- */
.kudmaye-checkout-form .form-row,
.woocommerce-checkout .kudmaye-checkout-form .form-row {
    margin-bottom: 14px;
    padding: 0 !important;
    width: 100% !important;
    display: block !important;
    clear: both;
}

.kudmaye-checkout-form .form-row label,
.woocommerce-checkout .kudmaye-checkout-form .form-row label {
    display: block;
    color: var(--text-secondary) !important;
    font-size: 0.86rem !important;
    font-weight: 700 !important;
    margin-bottom: 6px !important;
    padding: 0 !important;
}

.kudmaye-checkout-form .form-row label .required,
.woocommerce-checkout .kudmaye-checkout-form .form-row label .required {
    color: var(--accent-red) !important;
    margin-right: 2px;
}

.kudmaye-checkout-form .form-row input.input-text,
.kudmaye-checkout-form .form-row textarea.input-text,
.kudmaye-checkout-form .form-row select,
.woocommerce-checkout .kudmaye-checkout-form .form-row input.input-text,
.woocommerce-checkout .kudmaye-checkout-form .form-row textarea.input-text,
.woocommerce-checkout .kudmaye-checkout-form .form-row select {
    width: 100% !important;
    padding: 16px 14px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    color: var(--text-primary) !important;
    font-size: 16px !important; /* iOS no-zoom threshold */
    font-family: 'Vazirmatn', sans-serif !important;
    outline: none !important;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease !important;
    min-height: 56px; /* Apple HIG touch target */
    box-sizing: border-box !important;
    -webkit-appearance: none;
    appearance: none;
}

.kudmaye-checkout-form .form-row input.input-text:focus,
.kudmaye-checkout-form .form-row textarea.input-text:focus,
.kudmaye-checkout-form .form-row select:focus,
.woocommerce-checkout .kudmaye-checkout-form .form-row input.input-text:focus,
.woocommerce-checkout .kudmaye-checkout-form .form-row textarea.input-text:focus,
.woocommerce-checkout .kudmaye-checkout-form .form-row select:focus {
    border-color: var(--accent-green) !important;
    background: rgba(245, 158, 11, 0.04) !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1) !important;
}

.kudmaye-checkout-form .form-row input::placeholder,
.kudmaye-checkout-form .form-row textarea::placeholder {
    color: var(--text-muted) !important;
    opacity: 0.7;
}

/* Invalid field (validation error) */
.kudmaye-checkout-form .form-row input.woocommerce-invalid,
.kudmaye-checkout-form .form-row input.woocommerce-invalid:focus {
    border-color: var(--accent-red) !important;
    background: rgba(244, 63, 94, 0.04) !important;
}

/* Phone field — LTR for proper digit entry */
.kudmaye-checkout-form .kudmaye-lead-phone-field input.input-text {
    direction: ltr;
    text-align: right;
    letter-spacing: 0.02em;
}

/* Soft accent on last_name field (the lead-capture trigger) */
.kudmaye-checkout-form .kudmaye-lead-name-field input.input-text {
    border-color: rgba(245, 158, 11, 0.2) !important;
    background: rgba(245, 158, 11, 0.03) !important;
}

/* --- Lead status pill (auto-save feedback) --- */
.kudmaye-lead-status {
    margin-top: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    transition: all 0.2s ease;
}
.kudmaye-lead-status::before { content: '\25CF'; font-size: 0.5rem; line-height: 1; }
.kudmaye-lead-status--saving {
    color: var(--accent-gold);
    background: rgba(250, 204, 21, 0.08);
    border-color: rgba(250, 204, 21, 0.2);
}
.kudmaye-lead-status--saving::before { color: var(--accent-gold); animation: kudmayeLeadPulse 1s ease-in-out infinite; }
.kudmaye-lead-status--saved {
    color: #10b981;
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
}
.kudmaye-lead-status--saved::before { content: '\2713'; font-size: 0.85rem; color: #10b981; }
.kudmaye-lead-status--error {
    color: var(--accent-red);
    background: rgba(244, 63, 94, 0.06);
    border-color: rgba(244, 63, 94, 0.2);
}
.kudmaye-lead-status--error::before { color: var(--accent-red); }
.kudmaye-lead-status--waiting {
    color: var(--accent-orange);
    background: rgba(251, 146, 60, 0.06);
    border-color: rgba(251, 146, 60, 0.2);
}
.kudmaye-lead-status--waiting::before { color: var(--accent-orange); }
@keyframes kudmayeLeadPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
@media (prefers-reduced-motion: reduce) {
    .kudmaye-lead-status--saving::before { animation: none !important; }
}

/* --- Hide WC h3 (we have our own .kco-section-title) --- */
.kudmaye-checkout-form .woocommerce-billing-fields > h3 {
    display: none !important;
}
.kudmaye-checkout-form .woocommerce-shipping-fields > h3,
.kudmaye-checkout-form .woocommerce-additional-fields > h3 {
    display: none !important;
}

/* --- Order summary collapsible (mobile-first) --- */
.kco-summary-toggle {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 14px 16px;
    margin: 0;
}

.kco-summary-toggle summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    list-style: none;
    user-select: none;
    padding: 0;
    margin: 0;
}
.kco-summary-toggle summary::-webkit-details-marker { display: none; }
.kco-summary-toggle summary::after {
    content: '';
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--accent-green);
    border-bottom: 2px solid var(--accent-green);
    transform: rotate(45deg);
    transition: transform 0.25s ease;
    margin-left: 8px;
    flex-shrink: 0;
}
.kco-summary-toggle[open] summary::after {
    transform: rotate(-135deg);
    margin-top: 4px;
}

.kco-summary-toggle[open] summary {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.kco-summary-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
}

.kco-summary-total {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--accent-green);
    margin-right: auto;
    padding-left: 12px;
}

.kco-summary-body { padding: 0; }

/* --- Order review table (compact for mobile) --- */
.kudmaye-checkout-form .woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
}
.kudmaye-checkout-form .woocommerce-checkout-review-order-table thead { display: none; }
.kudmaye-checkout-form .woocommerce-checkout-review-order-table tbody td {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background: transparent !important;
    font-size: 0.88rem;
    color: var(--text-secondary);
    vertical-align: top;
}
.kudmaye-checkout-form .woocommerce-checkout-review-order-table tbody .product-name {
    color: var(--text-primary);
    font-weight: 600;
    padding-right: 12px;
    width: auto;
}
.kudmaye-checkout-form .woocommerce-checkout-review-order-table tbody .product-quantity {
    color: var(--text-muted);
    font-size: 0.78rem;
    width: auto;
    text-align: center;
    padding: 10px 4px;
}
.kudmaye-checkout-form .woocommerce-checkout-review-order-table tbody .product-total {
    text-align: left;
    color: var(--text-primary);
    font-weight: 700;
    white-space: nowrap;
    width: auto;
}
.kudmaye-checkout-form .woocommerce-checkout-review-order-table tfoot th,
.kudmaye-checkout-form .woocommerce-checkout-review-order-table tfoot td {
    padding: 8px 0;
    background: transparent !important;
    border-bottom: none !important;
    color: var(--text-secondary);
    font-size: 0.86rem;
}
.kudmaye-checkout-form .woocommerce-checkout-review-order-table tfoot th { text-align: right; font-weight: 600; }
.kudmaye-checkout-form .woocommerce-checkout-review-order-table tfoot td { text-align: left; }
.kudmaye-checkout-form .woocommerce-checkout-review-order-table tfoot .cart-subtotal td,
.kudmaye-checkout-form .woocommerce-checkout-review-order-table tfoot .cart-subtotal th {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}
.kudmaye-checkout-form .woocommerce-checkout-review-order-table .order-total th,
.kudmaye-checkout-form .woocommerce-checkout-review-order-table .order-total td {
    color: var(--accent-green);
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    padding-top: 12px;
    border-top: 1px solid rgba(245, 158, 11, 0.15) !important;
}

/* --- Payment methods (compact, no card box) --- */
.kudmaye-checkout-form #payment {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 12px 0 0 !important;
    margin: 8px 0 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}
.kudmaye-checkout-form #payment ul.payment_methods {
    padding: 0 !important;
    margin: 0 0 12px !important;
    list-style: none;
}
.kudmaye-checkout-form #payment ul.payment_methods li {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    color: var(--text-primary) !important;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.kudmaye-checkout-form #payment ul.payment_methods li input {
    accent-color: var(--accent-green);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.kudmaye-checkout-form #payment ul.payment_methods li label {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    margin: 0 !important;
    flex: 1;
    display: inline-block !important;
}
.kudmaye-checkout-form #payment ul.payment_methods li img {
    max-height: 24px;
    margin-right: 4px;
}
.kudmaye-checkout-form #payment .payment_box {
    background: transparent !important;
    color: var(--text-muted) !important;
    font-size: 0.78rem !important;
    padding: 4px 28px 0 0 !important;
    margin: 0 0 8px !important;
    line-height: 1.6;
}

/* --- Place Order button — STICKY BOTTOM on mobile --- */
.kudmaye-checkout-form #payment .form-row.place-order {
    padding: 0 !important;
    margin: 12px 0 0 !important;
}
.kudmaye-checkout-form #payment .form-row.place-order::before,
.kudmaye-checkout-form #payment .form-row.place-order::after { display: none !important; }

.kudmaye-checkout-form #place_order {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--gradient-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 18px 24px !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    font-family: 'Vazirmatn', sans-serif !important;
    width: 100% !important;
    min-height: 60px;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.4), 0 6px 16px rgba(245, 158, 11, 0.3) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 0 !important;
    /* safe-area inset for iPhone X+ notches */
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0)) !important;
}

.kudmaye-checkout-form #place_order:hover {
    transform: none;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.4), 0 8px 20px rgba(245, 158, 11, 0.4) !important;
}
.kudmaye-checkout-form #place_order:active { transform: scale(0.99); }
.kudmaye-checkout-form #place_order:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* --- Support footer pill --- */
.kco-footer {
    text-align: center;
    padding: 24px 16px;
    margin-top: 8px;
}

/* --- v2.28.2 — Hide WC privacy policy text + terms notice on checkout
     ----------------------------------------------------------------------------
     WC به‌صورت خودکار یک پاراگراف «اطلاعات شخصی شما برای پردازش سفارش...»
     بالای دکمهٔ #place_order تزریق می‌کنه. روی موبایل این پاراگراف محتوای
     صفحه رو به‌هم می‌ریزه و دکمهٔ چسبون (position: fixed) روی اون می‌چسبه.
     متن کاملاً مخفی می‌شه. اگه کاربر日后 تصمیم به نمایش گرفت، کافیه این
     بلاک CSS رو حذف کنه. --- */
.kudmaye-checkout-form .woocommerce-privacy-policy-text,
.woocommerce-checkout .woocommerce-privacy-policy-text,
.kudmaye-checkout-form .woocommerce-terms-and-conditions,
.woocommerce-checkout .woocommerce-terms-and-conditions,
.kudmaye-checkout-form .woocommerce-privacy-policy-text a,
.woocommerce-checkout .woocommerce-privacy-policy-text a {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* --- v2.28.3 — Phone captured badge (shown when customer's phone is already in cookie) --- */
.kco-phone-captured-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 10px;
    padding: 10px 14px;
    margin: 0 0 14px;
    color: #10b981;
    font-size: 0.84rem;
    line-height: 1.5;
}
.kco-phone-captured-badge svg {
    color: #10b981;
    flex-shrink: 0;
}
.kco-phone-captured-badge strong {
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: 0.02em;
}

/* v2.28.2 — payment section wrapper for new <section class="kco-payment-section"> */
.kco-payment-section {
    margin: 0;
}
.kco-payment-section .screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}
.kco-support-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.02);
}
.kco-support-pill svg { color: #25d366; }
.kco-support-pill:hover {
    color: var(--text-primary);
    border-color: rgba(37, 211, 102, 0.3);
    background: rgba(37, 211, 102, 0.05);
}

/* --- Validation error messages (WC injects these) --- */
.kudmaye-checkout-form .woocommerce-error,
.kudmaye-checkout-form .woocommerce-message,
.kudmaye-checkout-form .woocommerce-info {
    background: rgba(245, 158, 11, 0.08) !important;
    color: var(--text-primary) !important;
    border-right: 4px solid var(--accent-green) !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    margin: 0 0 12px !important;
    font-size: 0.86rem !important;
    direction: rtl;
}
.kudmaye-checkout-form .woocommerce-error {
    background: rgba(244, 63, 94, 0.08) !important;
    border-right-color: var(--accent-red) !important;
}

/* ============================================
   DESKTOP LAYOUT (≥920px) — 2-column, summary sticky
   ============================================ */
@media (min-width: 920px) {
    .kco-checkout {
        padding: 24px 0 60px;
    }

    .kco-header {
        position: static;
        max-width: 980px;
        margin: 0 auto 16px;
        padding: 12px 0;
        background: transparent;
        border: none;
    }
    .kco-title { font-size: 1.4rem; text-align: right; }

    .kudmaye-checkout-form {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 380px;
        gap: 28px;
        max-width: 980px;
        padding: 0 24px;
        align-items: start;
    }

    .kco-fields-section,
    .kco-summary-section {
        margin-bottom: 0;
    }

    /* Summary not collapsible on desktop — always open, sticky */
    .kco-summary-toggle {
        position: sticky;
        top: calc(var(--header-height, 70px) + 16px);
        padding: 18px 20px;
    }
    .kco-summary-toggle summary {
        display: none;
    }
    .kco-summary-toggle[open] summary {
        margin: 0;
        padding: 0;
        border: none;
    }
    .kco-summary-body { display: block !important; }

    /* Place order button normal flow on desktop */
    .kudmaye-checkout-form #place_order {
        position: static;
        border-radius: 14px !important;
        padding: 16px 24px !important;
        padding-bottom: 16px !important;
        box-shadow: 0 6px 16px rgba(245, 158, 11, 0.3) !important;
    }

    .kco-footer {
        max-width: 980px;
        margin: 16px auto 0;
        padding: 16px 24px 0;
    }
}

/* ============================================
   TABLET (601-919px) — single column, wider
   ============================================ */
@media (min-width: 601px) and (max-width: 919px) {
    .kudmaye-checkout-form {
        max-width: 640px;
        padding: 20px 24px;
    }
}

/* ============================================
   SMALL MOBILE (≤480px) — even tighter
   ============================================ */
@media (max-width: 480px) {
    .kco-header { padding: 12px 14px; }
    .kco-title { font-size: 1.05rem; }
    .kudmaye-checkout-form { padding: 12px; }
    .kco-section-title { font-size: 0.95rem; }
    .kco-section-hint { font-size: 0.78rem; }

    .kudmaye-checkout-form .form-row input.input-text,
    .kudmaye-checkout-form .form-row textarea.input-text,
    .kudmaye-checkout-form .form-row select {
        font-size: 16px !important; /* keep iOS no-zoom */
        padding: 14px 12px !important;
    }

    .kudmaye-checkout-form .form-row label {
        font-size: 0.82rem !important;
    }

    .kco-summary-toggle { padding: 12px 14px; }
    .kco-summary-label { font-size: 0.88rem; }
    .kco-summary-total { font-size: 0.92rem; }

    .kudmaye-checkout-form #place_order {
        font-size: 0.98rem !important;
        padding: 16px 16px !important;
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0)) !important;
    }
}

/* ============================================
   TOUCH DEVICE TWEAKS — disable stuck hovers
   ============================================ */
@media (hover: none) {
    .kudmaye-checkout-form #place_order:hover {
        transform: none;
        box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.4), 0 6px 16px rgba(245, 158, 11, 0.3) !important;
    }
    .kudmaye-checkout-form #payment ul.payment_methods li:hover {
        background: rgba(255, 255, 255, 0.03) !important;
        border-color: rgba(255, 255, 255, 0.06) !important;
    }
    .kco-back:hover { background: rgba(255, 255, 255, 0.04); }
    .kco-support-pill:hover { color: var(--text-muted); border-color: rgba(255, 255, 255, 0.06); }
}

/* ============================================
   PRINT — minimal, hide non-essential
   ============================================ */
@media print {
    .kco-footer, .kco-support-pill, .kco-back { display: none !important; }
    .kco-checkout { padding: 0; background: white; }
    .kco-header { background: white; position: static; }
    .kco-title, .kco-section-title, .kco-section-hint { color: black !important; }
    .kudmaye-checkout-form { padding: 0; max-width: 100%; }
    .kudmaye-checkout-form #place_order { display: none !important; }
    .kco-summary-toggle { position: static; }
    .kco-summary-toggle summary { display: none; }
}

/* ============================================
   COLOR SCHEME HINT — native controls match dark theme
   ============================================ */
.woocommerce-checkout,
.kco-checkout {
    color-scheme: dark;
}

