/* ============================================================
   EvoX Store — Main Stylesheet
   Dark-first • Neon Accents • Mobile-First
   ============================================================ */

/* ── 0. Design Tokens ──────────────────────────────────────── */
:root {
    /* Brand */
    --cyan:          #22d3ee;
    --cyan-dim:      rgba(34,211,238,.12);
    --purple:        #a855f7;
    --purple-dim:    rgba(168,85,247,.12);
    --gradient:      linear-gradient(135deg, #22d3ee 0%, #a855f7 100%);
    --gradient-r:    linear-gradient(135deg, #a855f7 0%, #22d3ee 100%);

    /* Semantic aliases (backward compat with inline styles) */
    --primary:       #0a0a20;
    --accent:        #22d3ee;
    --accent-h:      #06b6d4;

    /* Surfaces */
    --bg:            #08081a;
    --bg2:           #0e0e26;
    --card:          #121228;
    --surface:       #1a1a38;
    --overlay:       rgba(8,8,26,.94);

    /* Text */
    --text:          #f0f0ff;
    --text-dim:      #c0c0e0;
    --muted:         #6868a0;

    /* Borders */
    --border:        rgba(140,120,255,.1);
    --border-accent: rgba(34,211,238,.3);

    /* Glow / Shadow */
    --shadow:        0 4px 20px rgba(0,0,0,.5);
    --shadow-lg:     0 8px 40px rgba(0,0,0,.65);
    --glow-sm:       0 0 18px rgba(34,211,238,.2);
    --glow-md:       0 0 32px rgba(34,211,238,.35);
    --glow-purple:   0 0 32px rgba(168,85,247,.3);

    /* Geometry */
    --radius-xs:     6px;
    --radius:        14px;
    --radius-lg:     20px;
    --radius-pill:   50px;

    /* Transitions */
    --transition:    .2s ease;
    --trans-slow:    .35s cubic-bezier(.4,0,.2,1);

    /* Font */
    --font:          'Inter', system-ui, -apple-system, sans-serif;
    --font-ar:       'Tajawal', 'Inter', system-ui, -apple-system, sans-serif;

    /* Layout */
    --container:     1200px;
    --header-h:      48px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Offset for fixed header — JS in main.js sets exact measured value */
    padding-top: var(--header-h);
}

[dir="rtl"] body,
[dir="rtl"] input,
[dir="rtl"] textarea,
[dir="rtl"] select,
[dir="rtl"] button {
    font-family: var(--font-ar);
    letter-spacing: 0;
}

img  { display: block; max-width: 100%; }
a    { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
ul   { list-style: none; }

/* ── 2. Layout ─────────────────────────────────────────────── */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ── 3. Announce Bar ───────────────────────────────────────── */
.announce-bar {
    background: var(--gradient);
    color: #fff;
    text-align: center;
    font-size: .8rem;
    font-weight: 700;
    padding: .5rem 1rem;
    letter-spacing: .4px;
    position: relative;
    overflow: hidden;
    max-height: 60px; /* قيمة ابتدائية للـ transition */
    opacity: 1;
}
.announce-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,transparent,rgba(255,255,255,.08),transparent);
    animation: shimmer 3s infinite;
}
@keyframes shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ── 4. Header ────────────────────────────────────────────────
   position: fixed — الهيدر ثابت دائماً بالـ viewport بغض النظر
   عن أي overflow أو scroll container.
   body.padding-top يُضبط بـ JS (main.js) ليعوّض ارتفاع الهيدر.
──────────────────────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(8,8,26,.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: background .3s, border-color .3s, box-shadow .3s;
}
.site-header.scrolled {
    background: rgba(8,8,26,.98);
    border-bottom-color: rgba(34,211,238,.15);
    box-shadow: 0 2px 20px rgba(0,0,0,.55);
}
.header-inner {
    display: flex;
    align-items: center;
    height: var(--header-h); /* ثابت — لا يتغير من JS أبداً */
    gap: 1.5rem;
}

/* Logo */
.logo {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: -1px;
    text-decoration: none;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(34,211,238,.3));
    transition: filter var(--transition);
    line-height: 1;
}
.logo:hover {
    text-decoration: none;
    filter: drop-shadow(0 0 14px rgba(168,85,247,.5));
}

/* Desktop Nav */
.main-nav {
    display: flex;
    gap: 1.5rem;
    flex: 1;
    justify-content: center;
}
.main-nav a {
    color: var(--text-dim);
    font-size: .84rem;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    padding-bottom: 3px;
    transition: color var(--transition);
    white-space: nowrap;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    inset-inline-start: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform .22s ease;
    transform-origin: start;
}
.main-nav a:hover          { color: var(--text); }
.main-nav a:hover::after   { transform: scaleX(1); }
.main-nav a.active         { color: var(--cyan); }
.main-nav a.active::after  { transform: scaleX(1); background: var(--gradient); }

/* desk-only: hide on mobile, show on desktop */
.desk-only { display: inline-flex; }

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-shrink: 0;
}

/* Cart Link */
.cart-link {
    position: relative;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    transition: color var(--transition);
    padding: .3rem;
}
.cart-link:hover { color: var(--cyan); text-decoration: none; }
.cart-badge {
    position: absolute;
    top: -6px;
    inset-inline-end: -8px;
    background: var(--gradient);
    color: #fff;
    font-size: .6rem;
    font-weight: 800;
    border-radius: 99px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    animation: badge-pop .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes badge-pop {
    from { transform: scale(0); }
    to   { transform: scale(1); }
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    gap: 2px;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 3px;
}
.lang-btn {
    padding: .2rem .65rem;
    border-radius: var(--radius-pill);
    font-size: .72rem;
    font-weight: 700;
    color: var(--muted);
    text-decoration: none;
    transition: all .2s;
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}
.lang-btn:hover { color: var(--text); text-decoration: none; }
.lang-btn.active {
    background: var(--gradient);
    color: #fff;
}

/* Hamburger — hidden on desktop */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: rgba(255,255,255,.06);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    cursor: pointer;
    padding: 9px;
    flex-shrink: 0;
    transition: border-color var(--transition);
}
.menu-toggle:hover { border-color: var(--cyan); }
.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text-dim);
    border-radius: 1px;
    transition: all .25s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; width: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 5. Mobile Drawer ──────────────────────────────────────── */
.mob-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .32s cubic-bezier(.4,0,.2,1),
                visibility .32s cubic-bezier(.4,0,.2,1);
}
.mob-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.mob-drawer {
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    width: 280px;
    height: 100dvh;
    background: var(--bg2);
    border-inline-end: 1px solid var(--border-accent);
    z-index: 1200;
    padding: 1.5rem 1.25rem 2rem;
    /* GPU-accelerated: transform instead of position offset */
    transform: translateX(-105%);
    transition: transform .38s cubic-bezier(.4,0,.2,1),
                box-shadow .38s cubic-bezier(.4,0,.2,1);
    will-change: transform;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: none;
}
[dir="rtl"] .mob-drawer { transform: translateX(105%); }
.mob-drawer.open {
    transform: translateX(0);
    box-shadow: 8px 0 48px rgba(0,0,0,.7), var(--glow-sm);
}
[dir="rtl"] .mob-drawer.open { box-shadow: -8px 0 48px rgba(0,0,0,.7), var(--glow-sm); }

.mob-drawer-logo {
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -1px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.75rem;
    margin-top: .5rem;
    text-decoration: none;
    display: block;
}
.mob-nav {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    margin-bottom: auto;
}
.mob-nav a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .9rem 1rem;
    border-radius: var(--radius);
    color: var(--text-dim);
    font-size: .97rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
    border: 1px solid transparent;
}
.mob-nav a:hover {
    background: var(--card);
    color: var(--text);
    border-color: var(--border);
    transform: translateX(4px);
}
[dir="rtl"] .mob-nav a:hover { transform: translateX(-4px); }
.mob-nav-divider {
    height: 1px;
    background: var(--border);
    margin: .75rem 0;
}
.mob-actions {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}
.mob-close {
    position: absolute;
    top: 1.25rem;
    inset-inline-end: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-dim);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: .85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s, color .2s;
    line-height: 1;
}
.mob-close:hover { color: var(--text); border-color: var(--cyan); }

/* ── 6. Buttons ────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    background: var(--gradient);
    color: #fff;
    border: none;
    padding: .6rem 1.5rem;
    border-radius: var(--radius-pill);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: box-shadow .2s ease, transform .15s ease, opacity .2s;
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
    letter-spacing: .2px;
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background .2s;
}
.btn:hover {
    box-shadow: var(--glow-sm);
    transform: translateY(-1px);
    text-decoration: none;
    color: #fff;
}
.btn:hover::before { background: rgba(255,255,255,.07); }
.btn:active  { transform: translateY(0); box-shadow: none; }

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border-accent);
    color: var(--cyan);
}
.btn-outline:hover {
    background: var(--cyan-dim);
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: var(--glow-sm);
}
.btn-outline::before { display: none; }

.btn-ghost {
    background: rgba(255,255,255,.05);
    border: 1px solid var(--border);
    color: var(--text-dim);
}
.btn-ghost:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.2);
    color: var(--text);
    box-shadow: none;
    transform: none;
}
.btn-ghost::before { display: none; }

.btn-primary {
    background: linear-gradient(135deg, var(--cyan), #06b6d4);
    color: #050810;
    font-weight: 800;
    border: none;
}
.btn-primary:hover {
    box-shadow: 0 8px 24px rgba(0,212,255,.35);
    transform: translateY(-2px);
    color: #050810;
}
.btn-primary::before { display: none; }

.btn-secondary {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
}
.btn-secondary:hover {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.18);
    box-shadow: none;
    transform: none;
}
.btn-secondary::before { display: none; }

.btn-danger {
    background: #dc2626;
    color: #fff;
}
.btn-danger:hover {
    background: #b91c1c;
    box-shadow: 0 0 16px rgba(220,38,38,.3);
}

.btn-sm   { padding: .35rem 1rem; font-size: .8rem; }
.btn-full { width: 100%; }

/* ── 7. Forms ──────────────────────────────────────────────── */
.form-group { margin-bottom: 1.1rem; }
.form-group label {
    display: block;
    font-size: .83rem;
    font-weight: 700;
    margin-bottom: .4rem;
    color: var(--text-dim);
    letter-spacing: .2px;
}
.form-group small { display: block; font-size: .76rem; color: var(--muted); margin-top: .3rem; }

.form-group input,
.form-group select,
.form-group textarea,
.form-control {
    width: 100%;
    padding: .65rem 1rem;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: .93rem;
    font-family: inherit;
    color: var(--text);
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-control:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px var(--cyan-dim);
}
.form-group input::placeholder,
.form-group textarea::placeholder,
.form-control::placeholder { color: var(--muted); }
.form-group select { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
textarea { resize: vertical; min-height: 110px; }

/* ── 8. Cards & Surfaces ───────────────────────────────────── */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}
.card h2 { margin-bottom: 1.25rem; font-size: 1.1rem; font-weight: 700; }

/* ── 9. Flash Messages ─────────────────────────────────────── */
.flash {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1.1rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    font-size: .9rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
}
.flash-success {
    background: rgba(5,150,105,.12);
    border: 1px solid rgba(5,150,105,.3);
    color: #34d399;
}
.flash-error {
    background: rgba(220,38,38,.1);
    border: 1px solid rgba(220,38,38,.25);
    color: #f87171;
}
.flash button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    opacity: .6;
    color: inherit;
}
.flash button:hover { opacity: 1; }

/* ── 10. Main ──────────────────────────────────────────────── */
.site-main { padding: 1.75rem 0 3rem; }

/* ── 11. Hero ──────────────────────────────────────────────── */
.hero {
    background: var(--bg);
    position: relative;
    overflow: hidden;
    padding: 7rem 1.25rem 6rem;
    text-align: center;
    margin-bottom: 4rem;
    margin-top: -2.5rem;
}
/* Grid pattern */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(140,120,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(140,120,255,.04) 1px, transparent 1px);
    background-size: 52px 52px;
    pointer-events: none;
}
/* Glow orbs */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 45% 60% at 15% 50%, rgba(34,211,238,.08) 0%, transparent 100%),
        radial-gradient(ellipse 45% 60% at 85% 50%, rgba(168,85,247,.08) 0%, transparent 100%);
    pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}
.hero p {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 520px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
}
.hero .btn {
    font-size: 1rem;
    padding: .9rem 2.75rem;
    box-shadow: var(--glow-sm);
}
.hero .btn:hover { box-shadow: var(--glow-md); transform: translateY(-2px); }

/* ── 12. Section Headings ──────────────────────────────────── */
.section-heading {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
    letter-spacing: -.3px;
}
.section-heading a {
    font-size: .85rem;
    font-weight: 600;
    color: var(--cyan);
    opacity: .85;
    transition: opacity .2s;
}
.section-heading a:hover { opacity: 1; text-decoration: none; }

/* ── 13. Page Heading ──────────────────────────────────────── */
.page-heading {
    margin-bottom: 2rem;
}
.page-heading h1 {
    font-size: clamp(1.75rem, 4vw, 2.4rem);
    font-weight: 900;
    letter-spacing: -.5px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.15;
    margin-bottom: .35rem;
}
.page-heading p { color: var(--muted); font-size: .95rem; }

/* ── 14. Filter Bar ────────────────────────────────────────── */
.filter-bar {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.filter-bar a {
    padding: .38rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-dim);
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
    background: rgba(255,255,255,.03);
}
.filter-bar a:hover {
    background: var(--card);
    color: var(--text);
    border-color: rgba(255,255,255,.15);
}
.filter-bar a.active {
    background: var(--gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--glow-sm);
    font-weight: 700;
}

/* ── 15. Product Grid & Cards ──────────────────────────────── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}
.product-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    position: relative;
}
.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34,211,238,.2);
    box-shadow: var(--glow-sm), 0 12px 36px rgba(0,0,0,.45);
}
.product-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform .4s ease;
    background: var(--bg2);
    display: block;
}
.product-card:hover img { transform: scale(1.05); }
.product-card-body {
    padding: 1rem 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: .35rem;
}
.product-card-body .category {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    font-weight: 700;
}
.product-card-body h3 {
    font-size: .97rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
}
.product-card-body h3 a { color: inherit; text-decoration: none; }
.product-card-body h3 a:hover { color: var(--cyan); }
.product-card-body .price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--cyan);
    margin-top: .1rem;
}
.product-card-body .btn {
    margin-top: auto;
    font-size: .83rem;
    padding: .55rem 1rem;
    width: 100%;
}
@media (hover: hover) {
    .product-card:hover .product-card-body .btn {
        box-shadow: var(--glow-sm);
    }
}

/* ── 16. Product Detail ────────────────────────────────────── */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin: 2rem 0;
}
.product-detail img {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--card);
}
.product-detail-info h1 { font-size: 1.9rem; font-weight: 900; margin-bottom: .5rem; letter-spacing: -.5px; }
.product-detail-info .price { font-size: 1.75rem; color: var(--cyan); font-weight: 800; margin-bottom: 1rem; }
.product-detail-info .description { color: var(--text-dim); margin-bottom: 1.5rem; line-height: 1.7; }
.product-detail-info .stock-info { font-size: .88rem; color: var(--muted); margin-bottom: 1.25rem; }
.qty-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.qty-row input {
    width: 64px; text-align: center; padding: .5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius); font-size: 1rem;
    background: var(--bg2); color: var(--text);
}

/* ── 16b. Product Type Styles ─────────────────────────────── */
/* Type 3 — Quote only */
.price-quote-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: linear-gradient(135deg, rgba(168,85,247,.18), rgba(139,92,246,.12));
    border: 1px solid rgba(168,85,247,.35);
    color: #c084fc;
    padding: .55rem 1.1rem;
    border-radius: var(--radius-lg);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: .2px;
}
.quote-request-box {
    background: var(--card);
    border: 1px solid rgba(168,85,247,.25);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: .75rem;
}
.quote-intro {
    color: var(--text-dim);
    font-size: .92rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}
.quote-form { display: flex; flex-direction: column; gap: .75rem; }

/* Type 2 — Custom questions */
.custom-questions-section {
    background: linear-gradient(135deg, rgba(34,211,238,.06), rgba(168,85,247,.06));
    border: 1px solid rgba(34,211,238,.2);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}
.custom-q-title {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: .3rem;
    color: var(--cyan);
}
.custom-q-subtitle {
    font-size: .84rem;
    color: var(--muted);
    margin-bottom: 1rem;
}
.custom-questions-section .form-group { margin-bottom: .85rem; }
.custom-questions-section .form-group:last-child { margin-bottom: 0; }

/* ── 17. Cart ──────────────────────────────────────────────── */
.cart-page-title { margin-bottom: 1.5rem; }
.cart-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1.5rem; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 0; min-width: 520px; }
.cart-table th, .cart-table td {
    padding: .9rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.cart-table tbody tr:last-child td { border-bottom: none; }
.cart-table th {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: var(--muted);
    font-weight: 700;
    background: var(--bg2);
}
.cart-table tr:hover td { background: rgba(255,255,255,.02); }
.cart-table img { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); flex-shrink: 0; }
.cart-table td.product-col { display: flex; align-items: center; gap: 1rem; }
.cart-item-name { font-weight: 600; line-height: 1.4; }
.cart-item-custom { font-size: .78rem; color: var(--muted); margin-top: .25rem; }
.cart-qty-input {
    width: 56px; padding: .35rem .5rem;
    border: 1px solid var(--border); border-radius: var(--radius-xs);
    text-align: center; background: var(--bg2); color: var(--text); font-family: inherit;
}
.cart-summary {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    max-width: 420px;
    margin-left: auto;
    margin-top: 1.5rem;
}
.cart-summary .row { display: flex; justify-content: space-between; padding: .45rem 0; font-size: .92rem; }
.cart-summary .row.total {
    font-size: 1.1rem; font-weight: 800;
    padding-top: .85rem;
    border-top: 1px solid var(--border); margin-top: .5rem;
    color: var(--cyan);
}
.cart-summary .discount-row { color: #34d399; font-weight: 600; }
.discount-form { display: flex; gap: .5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.discount-form input { flex: 1; min-width: 140px; }
.cart-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-top: 1.5rem;
    align-items: center;
}

/* ── 18. Checkout ──────────────────────────────────────────── */
.checkout-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 2rem; align-items: start; }
.checkout-form-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}
.order-summary {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: sticky;
    top: calc(var(--header-h) + 1rem);
}
.order-summary h3 { margin-bottom: 1rem; font-weight: 700; }
.order-item-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: .45rem 0; font-size: .9rem;
    border-bottom: 1px solid var(--border);
    gap: .5rem;
}
.order-item-row span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-total-row {
    display: flex; justify-content: space-between;
    font-weight: 800; margin-top: .85rem;
    font-size: 1.05rem; color: var(--cyan);
}

/* ── 19. Blog ──────────────────────────────────────────────── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.blog-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(168,85,247,.2);
    box-shadow: var(--glow-purple);
}
.blog-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); line-height: 1.4; }
.blog-card .excerpt { color: var(--muted); font-size: .9rem; line-height: 1.65; }
.blog-card .meta { font-size: .75rem; color: var(--muted); font-weight: 500; }
.blog-card .btn { margin-top: .5rem; align-self: flex-start; }
.post-body { max-width: 740px; }
.post-body h1 { font-size: 2rem; font-weight: 900; margin-bottom: .5rem; letter-spacing: -.5px; }
.post-body .meta { color: var(--muted); font-size: .88rem; margin-bottom: 2rem; }
.post-body h2 { font-size: 1.3rem; margin: 1.75rem 0 .6rem; color: var(--text); }
.post-body p  { margin-bottom: 1rem; line-height: 1.8; color: var(--text-dim); }

/* ── 20. Auth Pages ────────────────────────────────────────── */
.auth-page {
    max-width: 440px;
    margin: 2.5rem auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}
.auth-page h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.75rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -.4px;
}
.auth-page .alt-link {
    text-align: center;
    margin-top: 1.25rem;
    font-size: .88rem;
    color: var(--muted);
}
.auth-page .alt-link a { color: var(--cyan); }

/* ── 21. Pagination ────────────────────────────────────────── */
.pagination {
    display: flex; gap: .4rem;
    justify-content: center; margin-top: 2.5rem;
    flex-wrap: wrap;
}
.pagination a {
    padding: .45rem .95rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: .88rem;
    color: var(--text-dim);
    text-decoration: none;
    background: var(--card);
    transition: background .2s, color .2s, border-color .2s;
}
.pagination a:hover { background: var(--surface); color: var(--text); }
.pagination a.active {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--glow-sm);
    font-weight: 700;
}

/* ── 22. Order Confirm ─────────────────────────────────────── */
.confirm-box { max-width: 560px; margin: 2rem auto; text-align: center; }
.confirm-box .icon { font-size: 4rem; margin-bottom: 1rem; }
.confirm-box h1  { font-size: 2rem; margin-bottom: .5rem; font-weight: 900; }
.confirm-box p   { color: var(--muted); margin-bottom: 2rem; }

/* ── 24. Footer ────────────────────────────────────────────── */
.site-footer {
    background: var(--bg2);
    color: var(--text-dim);
    padding: 3.5rem 0 0;
    border-top: 1px solid var(--border);
    margin-top: 0;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    align-items: start;
}
.footer-brand .footer-logo {
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -1px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: block;
    text-decoration: none;
}
.footer-brand p {
    font-size: .87rem;
    line-height: 1.75;
    color: var(--muted);
    margin-bottom: 1.35rem;
    max-width: 280px;
}
.footer-social { display: flex; gap: .55rem; flex-wrap: wrap; }
.social-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted);
    font-size: .85rem;
    text-decoration: none;
    transition: all .2s;
}
.social-btn:hover {
    background: var(--card);
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: var(--glow-sm);
    text-decoration: none;
    transform: translateY(-2px);
}
.footer-col h4 {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--muted);
    margin-bottom: 1.1rem;
    font-weight: 700;
}
.footer-col h3 { font-size: 1rem; color: var(--text); margin-bottom: .85rem; font-weight: 700; }
.footer-col ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-col ul a {
    color: var(--text-dim);
    font-size: .88rem;
    text-decoration: none;
    transition: color .2s, padding-inline-start .2s;
}
.footer-col ul a:hover { color: var(--cyan); text-decoration: none; }
.footer-col p { font-size: .87rem; line-height: 1.65; color: var(--muted); }

/* Footer subscribe */
.footer-subscribe .subscribe-form { display: flex; gap: .4rem; margin-top: .75rem; }
.footer-subscribe .subscribe-form input {
    flex: 1;
    padding: .55rem .9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--text);
    font-size: .86rem;
    font-family: inherit;
    transition: border-color .2s;
}
.footer-subscribe .subscribe-form input::placeholder { color: var(--muted); }
.footer-subscribe .subscribe-form input:focus { outline: none; border-color: var(--cyan); }
.footer-subscribe .subscribe-form .btn { border-radius: var(--radius-pill); padding: .55rem 1.1rem; font-size: .82rem; }
.subscribe-msg { font-size: .8rem; margin-top: .5rem; }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.25rem 0;
    font-size: .8rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
}
.footer-bottom a { color: var(--muted); transition: color .2s; }
.footer-bottom a:hover { color: var(--cyan); text-decoration: none; }

/* ── 25. Admin Layout ──────────────────────────────────────── */
.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 0;
    min-height: calc(100vh - var(--header-h));
}
.admin-sidebar {
    background: var(--bg2);
    border-inline-end: 1px solid var(--border);
    padding: 1.5rem 1rem;
    position: sticky;
    top: var(--header-h);
    height: calc(100vh - var(--header-h));
    overflow-y: auto;
    z-index: 200;
    transition: transform .25s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.08) transparent;
}
.admin-sidebar::-webkit-scrollbar { width: 4px; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }
.admin-sidebar h2, .admin-sidebar h3 {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    margin-bottom: .6rem;
    padding: 0 .5rem;
    font-weight: 700;
}
.admin-sidebar ul { display: flex; flex-direction: column; gap: .15rem; }
.admin-sidebar ul a {
    display: flex; align-items: center; gap: .6rem;
    padding: .55rem .75rem;
    border-radius: var(--radius);
    color: var(--text-dim);
    font-size: .87rem;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
    border: 1px solid transparent;
}
.admin-sidebar ul a:hover {
    background: rgba(255,255,255,.06);
    color: var(--text);
    border-color: var(--border);
    text-decoration: none;
}
.admin-sidebar ul a.active {
    background: var(--cyan-dim);
    color: var(--cyan);
    border-color: rgba(34,211,238,.15);
}

/* Sidebar overlay (mobile) */
.sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.65);
    z-index: 199;
    backdrop-filter: blur(3px);
}
.sidebar-overlay.open { display: block; }
.admin-menu-toggle {
    display: none; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    background: rgba(255,255,255,.06);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs); cursor: pointer;
    flex-direction: column; gap: 4px; padding: 8px; flex-shrink: 0;
}
.admin-menu-toggle span {
    display: block; width: 18px; height: 2px;
    background: var(--text-dim); border-radius: 1px; transition: all .2s ease;
}
.admin-menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.admin-menu-toggle.open span:nth-child(2) { opacity: 0; }
.admin-menu-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.sidebar-close {
    display: none; position: absolute; top: .75rem; right: .75rem;
    background: rgba(255,255,255,.08); border: 1px solid var(--border);
    color: var(--text-dim); width: 30px; height: 30px;
    border-radius: 50%; cursor: pointer; font-size: 1rem;
    align-items: center; justify-content: center;
}

.admin-content { padding: 2rem; background: var(--bg); min-width: 0; }
.admin-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 1.5rem; letter-spacing: -.3px; }

/* ── 26. Stat Cards ────────────────────────────────────────── */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.35rem;
    text-align: center;
    transition: border-color .2s, box-shadow .2s;
}
.stat-card:hover { border-color: rgba(34,211,238,.2); box-shadow: var(--glow-sm); }
.stat-card .value {
    font-size: 1.85rem; font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-card .label { font-size: .8rem; color: var(--muted); margin-top: .3rem; font-weight: 500; }

/* ── 27. Tables (admin) ────────────────────────────────────── */
.data-table {
    width: 100%; border-collapse: collapse;
    background: var(--card); border-radius: var(--radius-lg);
    overflow: hidden; border: 1px solid var(--border);
}
.data-table th, .data-table td {
    padding: .85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: .89rem;
}
.data-table th {
    background: var(--bg2); font-weight: 700;
    font-size: .75rem; text-transform: uppercase;
    letter-spacing: .5px; color: var(--muted);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,.02); }
.action-group { display: flex; gap: .5rem; flex-wrap: wrap; }

.badge {
    display: inline-block; padding: .2rem .7rem;
    border-radius: 99px; font-size: .72rem;
    font-weight: 700; text-transform: capitalize;
}
.badge-pending    { background: rgba(245,158,11,.15); color: #fbbf24; border: 1px solid rgba(245,158,11,.2); }
.badge-processing { background: rgba(59,130,246,.15);  color: #60a5fa; border: 1px solid rgba(59,130,246,.2); }
.badge-shipped    { background: rgba(99,102,241,.15);  color: #818cf8; border: 1px solid rgba(99,102,241,.2); }
.badge-completed  { background: rgba(16,185,129,.15);  color: #34d399; border: 1px solid rgba(16,185,129,.2); }
.badge-cancelled  { background: rgba(239,68,68,.15);   color: #f87171; border: 1px solid rgba(239,68,68,.2); }

/* ── 28. Animations & Keyframes ────────────────────────────── */
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fade-in-up .4s ease both; }

/* ── 29. Responsive ────────────────────────────────────────── */

/* 1024px */
@media (max-width: 1024px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .main-nav { gap: 1.25rem; }
}

/* 900px */
@media (max-width: 900px) {
    .checkout-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .order-summary { position: static; }
    .product-detail { grid-template-columns: 1fr; gap: 1.75rem; }
    .cart-summary { max-width: 100%; margin-left: 0; }
    .main-nav { gap: .9rem; }
}

/* 860px — admin drawer */
@media (max-width: 860px) {
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar {
        position: fixed;
        top: 0; inset-inline-start: -260px;
        width: 260px; height: 100vh;
        padding: 3.5rem 1rem 2rem;
        overflow-y: auto;
        box-shadow: 4px 0 24px rgba(0,0,0,.5);
        transition: inset-inline-start .25s cubic-bezier(.4,0,.2,1);
    }
    .admin-sidebar.open { inset-inline-start: 0; }
    .sidebar-close { display: flex; }
    .admin-menu-toggle { display: flex; }
    .admin-content { padding: 1.25rem 1rem; min-height: calc(100vh - var(--header-h)); }
}

/* 768px */
@media (max-width: 768px) {
    .main-nav { display: none; }
    .menu-toggle { display: flex; }
    .desk-only { display: none !important; }
    .blog-grid { grid-template-columns: 1fr; }
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
    .data-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .trust-inner { gap: 1.5rem; }
    .footer-bottom { flex-direction: column; text-align: center; gap: .35rem; }
}

/* 640px */
@media (max-width: 640px) {
    :root { --container: 100%; }
    .container { padding: 0 1rem; }

    .hero { padding: 4rem 1rem 3.5rem; }
    .hero h1 { font-size: 2rem; letter-spacing: -.5px; }
    .hero p  { font-size: .97rem; }

    .product-grid { grid-template-columns: repeat(2, 1fr); gap: .85rem; }
    .product-card-body { padding: .75rem .85rem 1rem; }
    .product-card-body h3 { font-size: .88rem; }
    .product-card-body .price { font-size: .97rem; }

    .section-heading { font-size: 1.25rem; }
    .page-heading h1 { font-size: 1.5rem; }

    .footer-inner { grid-template-columns: 1fr !important; gap: 1.75rem; }
    .footer-brand { text-align: center; align-items: center; }
    .footer-brand .footer-social { justify-content: center; }
    .form-row { grid-template-columns: 1fr; }

    .cart-table { font-size: .85rem; min-width: 460px; }
    .cart-table th, .cart-table td { padding: .6rem .5rem; }
    .cart-table img { width: 44px; height: 44px; }
    .cart-actions { flex-direction: column; align-items: stretch; }
    .cart-actions .btn { text-align: center; }

    .auth-page { max-width: 100%; margin: 1rem; padding: 1.75rem 1.25rem; }

    /* Admin mobile */
    .admin-content  { padding: .9rem .8rem; }
    .admin-title    { font-size: 1.2rem; margin-bottom: 1rem; }
    .stat-cards     { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
    .stat-card      { padding: 1rem .9rem; }
    .stat-card .value { font-size: 1.5rem; }
    .card           { padding: 1.1rem; }
    .data-table th, .data-table td { padding: .5rem .55rem; white-space: nowrap; }
    .action-group   { gap: .3rem; }
    .btn-sm         { padding: .28rem .55rem; font-size: .75rem; }
    .btn            { padding: .5rem 1.1rem; font-size: .86rem; }

    .trust-inner { gap: 1rem; justify-content: flex-start; }
    .trust-item { font-size: .82rem; }

    .hide-xs { display: none !important; }
}

/* 400px */
@media (max-width: 400px) {
    .stat-cards { grid-template-columns: 1fr 1fr; gap: .5rem; }
    .stat-card .value { font-size: 1.25rem; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
}

/* ═══════════════════════════════════════════════════════════════
   Scroll-Reveal Animations
   Elements with class .reveal animate in when they enter viewport
   ═══════════════════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .55s cubic-bezier(.4,0,.2,1),
                transform .55s cubic-bezier(.4,0,.2,1);
}
.reveal.revealed {
    opacity: 1;
    transform: none;
}
/* Stagger children automatically */
.reveal-group > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s cubic-bezier(.4,0,.2,1),
                transform .5s cubic-bezier(.4,0,.2,1);
}
.reveal-group.revealed > *:nth-child(1) { transition-delay: .05s; opacity:1; transform:none; }
.reveal-group.revealed > *:nth-child(2) { transition-delay: .12s; opacity:1; transform:none; }
.reveal-group.revealed > *:nth-child(3) { transition-delay: .19s; opacity:1; transform:none; }
.reveal-group.revealed > *:nth-child(4) { transition-delay: .26s; opacity:1; transform:none; }
.reveal-group.revealed > *:nth-child(5) { transition-delay: .33s; opacity:1; transform:none; }
.reveal-group.revealed > *:nth-child(6) { transition-delay: .40s; opacity:1; transform:none; }
.reveal-group.revealed > *:nth-child(n+7) { transition-delay: .47s; opacity:1; transform:none; }

/* ── Click / press ripple on buttons ── */
.btn { position: relative; overflow: hidden; }
.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.25);
    transform: scale(0);
    animation: ripple-anim .5s linear;
    pointer-events: none;
}
@keyframes ripple-anim {
    to { transform: scale(4); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   Toast Notification System
   ═══════════════════════════════════════════════════════════════ */
#toast-container {
    position: fixed;
    bottom: 1.5rem;
    inset-inline-end: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: var(--card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius);
    padding: .85rem 1.15rem;
    font-size: .88rem;
    font-weight: 600;
    color: var(--text);
    box-shadow: 0 8px 32px rgba(0,0,0,.5), var(--glow-sm);
    pointer-events: all;
    min-width: 240px;
    max-width: 340px;
    animation: toast-in .35s cubic-bezier(.34,1.56,.64,1);
    transition: opacity .3s, transform .3s;
}
.toast.toast-out {
    opacity: 0;
    transform: translateX(20px);
}
.toast-icon { font-size: 1.3rem; flex-shrink: 0; }
.toast-body { flex: 1; }
.toast-title { display: block; font-weight: 700; margin-bottom: .1rem; }
.toast-msg   { display: block; color: var(--muted); font-size: .82rem; font-weight: 400; }
.toast-success { border-color: rgba(34,197,94,.35); }
.toast-success .toast-icon { filter: hue-rotate(20deg); }
.toast-error  { border-color: rgba(239,68,68,.35); }
.toast-cart   { border-color: var(--border-accent); }
@keyframes toast-in {
    from { opacity: 0; transform: translateY(16px) scale(.95); }
    to   { opacity: 1; transform: none; }
}

/* ── Account / "My Account" link in header ── */
.acct-link {
    display: inline-flex; align-items: center; gap: .3rem;
    color: var(--text-dim); font-size: .85rem; font-weight: 600;
    text-decoration: none; transition: color .2s;
}
.acct-link:hover { color: var(--cyan); text-decoration: none; }
@media (max-width: 768px) { .acct-link { display: none; } }


/* ── Page leave transition (JS adds .page-leaving before navigate) ── */
body {
    transition: opacity .23s ease;
}
body.page-leaving {
    opacity: 0;
}

/* ── Image fade-in on load (JS adds .img-loaded) ── */
img.img-loaded {
    transition: opacity .35s ease;
    opacity: 1;
}

/* ── Page entry animation (used by account tab panels) ── */
@keyframes page-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}

/* ── Account tab switching ── */
.acct-tab {
    transition: color .2s ease, border-color .2s ease;
}
.acct-tab-panel {
    animation: page-in .28s cubic-bezier(.4,0,.2,1) both;
}

/* ── Account action buttons ── */
.acct-action-btn {
    transition: color .2s ease,
                border-color .2s ease,
                background .2s ease,
                box-shadow .2s ease,
                transform .2s cubic-bezier(.34,1.56,.64,1);
}
.acct-action-btn:hover { transform: translateY(-2px); }

/* ── Footer link hover indent ── */
.footer-col ul a {
    display: inline-flex;
    transition: color .2s ease, padding-inline-start .2s ease;
}
.footer-col ul a:hover {
    padding-inline-start: .35rem;
}
[dir="rtl"] .footer-col ul a:hover {
    padding-inline-start: 0;
    padding-inline-end: .35rem;
}

/* ── Skeleton loading placeholder ── */
@keyframes skeleton-pulse {
    0%, 100% { opacity: .55; }
    50%       { opacity: 1; }
}
.skeleton {
    background: var(--surface);
    border-radius: var(--radius);
    animation: skeleton-pulse 1.4s ease infinite;
}

/* ── Cart quantity input ── */
.cart-qty-input {
    transition: border-color .2s ease, box-shadow .2s ease;
}

/* ═══════════════════════════════════════════════
   Mobile Overrides (≤ 600px)
═══════════════════════════════════════════════ */
@media (max-width: 600px) {

    /* ── Header: hide account link on small screens to prevent overflow ── */
    .acct-link { display: none !important; }

    /* ── Reduce main content top padding so content starts closer to header ── */
    .site-main { padding-top: 1.25rem; padding-bottom: 2.5rem; }

    /* ── Page heading: less vertical breathing room + smaller title ── */
    .page-heading { margin-bottom: 1rem; }
    .page-heading h1 { font-size: clamp(1.4rem, 6vw, 1.75rem); margin-bottom: .2rem; }
    .page-heading p  { font-size: .88rem; }

    /* ── Product grid: 1 column on small phones ── */
    .product-grid {
        grid-template-columns: 1fr;
    }

    /* ── Blog grid: 1 column ── */
    .blog-grid { grid-template-columns: 1fr; }

    /* ── Cart table: collapse to readable layout ── */
    .cart-table th:nth-child(3),
    .cart-table td:nth-child(3) { display: none; } /* hide qty col header */

    /* ── Checkout grid: stack ── */
    .checkout-grid { grid-template-columns: 1fr; gap: 1.25rem; }

    /* ── Footer: stack columns ── */
    .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }

    /* ── Auth pages: reduce padding ── */
    .auth-page { padding: 1.75rem 1.25rem; margin: 1.25rem auto; }

    /* ── Product detail: stack ── */
    .product-detail { grid-template-columns: 1fr; gap: 1.5rem; }
}
