/* =========================================================
   ALEXPRESS TUNISIE — PREMIUM DESIGN SYSTEM
========================================================= */
:root {
    --bg-main: #f2f6fd;
    --bg-card: #ffffff;
    --bg-elevated: #ffffff;
    --primary: #1e63ff;
    --primary-hover: #1550d9;
    --primary-soft: rgba(30, 99, 255, 0.12);
    --accent: #10b981;
    --accent-hover: #059669;
    --accent-soft: rgba(16, 185, 129, 0.12);
    --cyan: #06b6d4;
    --cyan-soft: rgba(6, 182, 212, 0.14);
    --navy: #0b1327;
    --text-main: #0c1526;
    --text-muted: #5b6b84;
    --text-light: #93a3bc;
    --border: #e3eaf6;
    --border-strong: #cbd8ee;
    --dark: #0f172a;
    --danger: #ef4444;
    --warning: #f59e0b;

    --grad-brand: linear-gradient(120deg, #1e63ff 0%, #06b6d4 100%);
    --grad-brand-soft: linear-gradient(120deg, rgba(30, 99, 255, 0.16), rgba(6, 182, 212, 0.14));
    --grad-emerald: linear-gradient(120deg, #10b981, #06b6d4);

    --font-body: 'Cairo', system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;

    --max-w: 1140px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;

    --shadow-sm: 0 2px 10px rgba(11, 19, 39, 0.05);
    --shadow-md: 0 12px 34px -10px rgba(11, 19, 39, 0.12);
    --shadow-lg: 0 28px 60px -18px rgba(11, 19, 39, 0.2);
    --shadow-glow: 0 10px 40px -8px rgba(30, 99, 255, 0.35);
    --shadow-glow-soft: 0 6px 26px -6px rgba(30, 99, 255, 0.22);

    --header-h: 72px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark mode */
body.dark {
    --bg-main: #070d1d;
    --bg-card: #0e1730;
    --bg-elevated: #14203f;
    --text-main: #eaf1ff;
    --text-muted: #9db0d0;
    --text-light: #64789e;
    --border: #1c2b4e;
    --border-strong: #2c3f6c;
    --primary: #3d7bff;
    --primary-hover: #5a8fff;
    --primary-soft: rgba(61, 123, 255, 0.16);
    --cyan-soft: rgba(6, 182, 212, 0.16);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 12px 34px -10px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 28px 60px -18px rgba(0, 0, 0, 0.55);
    --shadow-glow: 0 10px 44px -8px rgba(61, 123, 255, 0.4);
    --shadow-glow-soft: 0 6px 26px -6px rgba(61, 123, 255, 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg-main);
    color: var(--text-main);
    direction: rtl;
    line-height: 1.65;
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;
}

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* =========================================================
   HEADER
========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 300;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s, box-shadow 0.3s;
}
body.dark .site-header {
    background: rgba(11, 17, 32, 0.85);
}
.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: white;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 1.15rem; font-weight: 800; color: var(--text-main); }
.brand-sub { font-size: 0.7rem; color: var(--text-muted); font-weight: 500; letter-spacing: 0.02em; }

.main-nav { display: flex; gap: 8px; }
.nav-link {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.92rem;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all var(--transition);
}
.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--primary-soft);
}

.header-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: all var(--transition);
    border: 1px solid var(--border);
}
.theme-toggle:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-soft);
}

.btn-header {
    display: flex; align-items: center; gap: 8px;
    background: var(--primary);
    color: white;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all var(--transition);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}
.btn-header:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.nav-toggle {
    display: none;
    width: 40px; height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    width: 22px; height: 2.5px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--bg-card);
    z-index: 250;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-inner {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mobile-link {
    font-size: 1.15rem;
    font-weight: 700;
    padding: 14px 16px;
    border-radius: 12px;
    color: var(--text-main);
    transition: background var(--transition);
}
.mobile-link:hover { background: var(--primary-soft); color: var(--primary); }
.mobile-cta { margin-top: 20px; }

/* =========================================================
   HERO
========================================================= */
.hero {
    position: relative;
    padding: 90px 0 70px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}
.orb-1 {
    width: 420px; height: 420px;
    background: rgba(37, 99, 235, 0.25);
    top: -120px; right: -80px;
    animation: float 12s ease-in-out infinite;
}
.orb-2 {
    width: 320px; height: 320px;
    background: rgba(16, 185, 129, 0.18);
    bottom: -80px; left: -60px;
    animation: float 15s ease-in-out infinite reverse;
}
.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}
@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -25px); }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}
.modern-badge {
    background: var(--primary-soft);
    color: var(--primary);
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.live-badge {
    background: var(--accent-soft);
    color: var(--accent);
    padding: 7px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.pulse {
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-copy h1 {
    font-size: clamp(2.4rem, 4.2vw, 3.4rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.gradient-text {
    background: linear-gradient(135deg, var(--primary), #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: 1.08rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.hero-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.hero-features li:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.feature-icon {
    width: 32px; height: 32px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
}

/* Calc Card */
.calc-wrapper { position: relative; }
.calc-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.4s, box-shadow 0.4s;
}
.calc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.calc-glow {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(37, 99, 235, 0.06), transparent 50%);
    pointer-events: none;
}

.calc-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, var(--bg-elevated), transparent);
}
.calc-icon-box {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: white;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
.calc-header h2 { font-size: 1.15rem; font-weight: 800; }
.calc-header p { font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; }

.calc-card-body { padding: 28px; }

.input-group {
    display: flex;
    align-items: center;
    background: var(--bg-main);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 6px 8px 6px 16px;
    margin-bottom: 16px;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.input-group:focus-within {
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px var(--primary-soft);
}
.input-icon { color: var(--text-light); margin-left: 10px; font-size: 0.95rem; }
.input-group input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 0;
    font-size: 0.92rem;
    outline: none;
    font-family: var(--font-mono);
    direction: ltr;
    text-align: left;
    color: var(--text-main);
}
.paste-btn {
    width: 40px; height: 40px;
    border-radius: 10px;
    color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition);
}
.paste-btn:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.btn-block {
    width: 100%;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all var(--transition);
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: white;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.45);
}
.btn-primary:active { transform: translateY(0); }
.btn-arrow { transition: transform var(--transition); }
.btn-primary:hover .btn-arrow { transform: translateX(-4px); }

.btn-lg { padding: 18px 32px; font-size: 1.05rem; border-radius: 14px; }

.loading-state {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    padding: 16px;
    background: var(--primary-soft);
    border-radius: var(--radius-md);
}
.modern-spinner {
    width: 28px; height: 28px;
    border: 3px solid rgba(37, 99, 235, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
}
.loading-bar {
    height: 4px;
    background: rgba(37, 99, 235, 0.15);
    border-radius: 4px;
    margin-top: 8px;
    overflow: hidden;
}
.loading-bar-fill {
    height: 100%;
    width: 30%;
    background: var(--primary);
    border-radius: 4px;
    animation: loadingProgress 1.8s ease-in-out infinite;
}
@keyframes loadingProgress {
    0% { width: 10%; margin-right: 0; }
    50% { width: 60%; margin-right: 20%; }
    100% { width: 10%; margin-right: 90%; }
}

.calc-trust {
    margin-top: 18px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.calc-trust i { color: var(--accent); }

/* =========================================================
   RESULTS
========================================================= */
.result-section {
    padding: 0 0 60px;
}
.result-container {
    animation: resultIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes resultIn {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    max-width: 640px;
    margin: 0 auto;
}

.success-alert {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #065f46;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    border: 1px solid #a7f3d0;
}
body.dark .success-alert {
    background: rgba(16, 185, 129, 0.12);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.25);
}
.success-icon {
    width: 40px; height: 40px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.success-alert strong { display: block; font-size: 0.95rem; }
.success-alert span { font-size: 0.8rem; opacity: 0.8; }

.product-body {
    display: flex;
    gap: 22px;
    margin-bottom: 28px;
    align-items: flex-start;
}
.product-img-wrapper {
    width: 110px; height: 110px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    flex-shrink: 0;
    position: relative;
    background: var(--bg-main);
}
.product-img-wrapper img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.img-badge {
    position: absolute;
    bottom: 6px; left: 6px;
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

.product-details h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ratings-row {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.stars { color: var(--warning); font-weight: 700; }
.original-price {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.calculation-box {
    background: linear-gradient(135deg, #f0f7ff, #eef2ff);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    text-align: center;
    margin-bottom: 18px;
    border: 1px dashed #93c5fd;
    position: relative;
    overflow: hidden;
}
body.dark .calculation-box {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.3);
}
.calc-label-box {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.calc-price-display {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 8px;
    color: var(--primary);
    font-family: var(--font-mono);
}
.calc-price-display h2 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}
.calc-price-display .currency {
    font-size: 1.3rem;
    font-weight: 700;
}
.price-breakdown {
    margin-top: 10px;
    font-size: 0.78rem;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.price-breakdown .bd-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.price-breakdown .bd-row strong {
    color: var(--text);
    font-family: var(--font-mono);
    font-weight: 700;
}
.price-breakdown .bd-row:first-child strong {
    color: var(--primary);
}
.price-breakdown .bd-note {
    font-size: 0.72rem;
    color: var(--text-muted);
    direction: ltr;
    text-align: right;
}

.variant-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.5;
}
.variant-hint a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.btn-success {
    background: linear-gradient(135deg, var(--accent), #34d399);
    color: white;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}
.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(16, 185, 129, 0.45);
}

/* Order Form */
.order-form-container {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    animation: formSlide 0.4s ease;
}
@keyframes formSlide {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}
.form-header { margin-bottom: 22px; }
.form-header h4 { font-size: 1.15rem; font-weight: 800; }
.form-header p { font-size: 0.88rem; color: var(--text-muted); margin-top: 4px; }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 7px;
}
.req { color: var(--danger); }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    background: var(--bg-main);
    color: var(--text-main);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
    background: var(--bg-card);
}
.form-group textarea { height: 90px; resize: none; }
.full-width { grid-column: span 2; margin-bottom: 20px; }

.btn-dark {
    background: var(--dark);
    color: white;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.25);
}
body.dark .btn-dark {
    background: #e2e8f0;
    color: #0f172a;
}
.btn-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.35);
}

.order-feedback {
    margin-top: 16px;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px;
    border-radius: 10px;
}
.order-feedback.success {
    background: var(--accent-soft);
    color: var(--accent);
}
.order-feedback.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* =========================================================
   STATS
========================================================= */
.stats-section {
    padding: 50px 0;
    background: var(--bg-card);
    border-block: 1px solid var(--border);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.stat-item { padding: 16px; }
.stat-number {
    font-size: 2.4rem;
    font-weight: 900;
    font-family: var(--font-mono);
    color: var(--primary);
    line-height: 1;
    margin-bottom: 6px;
}
.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* =========================================================
   PROCESS
========================================================= */
.process-section {
    padding: 90px 0;
}
.section-header {
    text-align: center;
    margin-bottom: 52px;
}
.section-tag {
    display: inline-block;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 14px;
}
.section-title {
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    font-weight: 900;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 480px;
    margin: 0 auto;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.process-card {
    text-align: center;
    padding: 36px 22px 32px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    position: relative;
    transition: all var(--transition);
    overflow: hidden;
}
.process-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.step-number {
    position: absolute;
    top: 16px; left: 18px;
    font-size: 0.75rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--text-light);
    opacity: 0.6;
}
.icon-wrapper {
    width: 64px; height: 64px;
    background: var(--primary-soft);
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.45rem;
    color: var(--primary);
    transition: all var(--transition);
}
.process-card:hover .icon-wrapper {
    background: var(--primary);
    color: white;
    transform: scale(1.08);
}
.process-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 10px;
}
.process-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* =========================================================
   TRUST
========================================================= */
.trust-section {
    padding: 90px 0;
    background: var(--bg-card);
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.trust-card {
    padding: 32px 24px;
    background: var(--bg-main);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.trust-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}
.trust-icon {
    width: 52px; height: 52px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 18px;
}
.trust-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 10px;
}
.trust-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* =========================================================
   TESTIMONIALS
========================================================= */
.testimonials-section {
    padding: 90px 0;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition);
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.stars-row {
    color: var(--warning);
    font-size: 0.85rem;
    margin-bottom: 14px;
    display: flex;
    gap: 3px;
}
.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.65;
    margin-bottom: 22px;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.author-avatar {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--primary), #06b6d4);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 1rem;
}
.testimonial-author strong {
    display: block;
    font-size: 0.92rem;
}
.testimonial-author span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =========================================================
   FAQ
========================================================= */
.faq-section {
    padding: 90px 0;
    background: var(--bg-card);
}
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--bg-main);
    transition: border-color var(--transition);
}
.faq-item.active {
    border-color: var(--primary);
}
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    text-align: right;
    transition: background var(--transition);
}
.faq-question:hover { background: var(--primary-soft); }
.faq-question i {
    color: var(--text-muted);
    transition: transform 0.3s;
    font-size: 0.85rem;
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.active .faq-answer {
    max-height: 200px;
}
.faq-answer p {
    padding: 0 22px 20px;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* =========================================================
   CTA
========================================================= */
.cta-section {
    padding: 60px 0 90px;
}
.cta-box {
    background: linear-gradient(135deg, #1e40af, #2563eb 50%, #0ea5e9);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    color: white;
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.35);
    position: relative;
    overflow: hidden;
}
.cta-box::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 60%);
    pointer-events: none;
}
.cta-content h2 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 8px;
}
.cta-content p {
    opacity: 0.9;
    font-size: 1.05rem;
}
.cta-box .btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    flex-shrink: 0;
}
.cta-box .btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
    background: var(--dark);
    color: #f8fafc;
    padding-top: 64px;
}
body.dark .site-footer {
    background: #020617;
}
.footer-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand .brand-name { color: white; }
.footer-brand .brand-sub { color: #94a3b8; }
.footer-brand p {
    color: #94a3b8;
    max-width: 360px;
    font-size: 0.95rem;
    line-height: 1.6;
}
.footer-links h4,
.footer-contact h4 {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 18px;
    color: white;
}
.footer-links a {
    display: block;
    color: #94a3b8;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 0.92rem;
    transition: color var(--transition);
}
.footer-links a:hover { color: white; }
.footer-contact a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e2e8f0;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color var(--transition);
}
.footer-contact a:hover { color: #60a5fa; }
.footer-bottom {
    text-align: center;
    padding: 24px;
    color: #64748b;
    font-size: 0.88rem;
}

/* =========================================================
   FLOATING ELEMENTS
========================================================= */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    left: 28px;
    width: 58px; height: 58px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
    z-index: 200;
    transition: all var(--transition);
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.55);
}

.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 46px; height: 46px;
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow-md);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all var(--transition);
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* =========================================================
   ANIMATIONS (Scroll Reveal)
========================================================= */
[data-animate] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-animate="fade-left"] {
    transform: translateX(-36px);
}
[data-animate].in-view {
    opacity: 1;
    transform: translate(0, 0);
}
[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1024px) {
    .process-grid,
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 860px) {
    .main-nav, .btn-header { display: none; }
    .nav-toggle { display: flex; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero { padding: 60px 0 40px; }
    .footer-content { grid-template-columns: 1fr; gap: 36px; }
    .cta-box {
        flex-direction: column;
        text-align: center;
        padding: 40px 28px;
    }
}

@media (max-width: 600px) {
    .process-grid,
    .trust-grid,
    .testimonials-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .full-width { grid-column: span 1; }
    .product-body { flex-direction: column; align-items: center; text-align: center; }
    .product-card { padding: 24px 18px; }
    .calc-price-display h2 { font-size: 2.6rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .whatsapp-float { bottom: 20px; left: 16px; width: 52px; height: 52px; }
    .back-to-top { bottom: 20px; right: 16px; }
}

/* =========================================================
   PRODUCT DETAILS — gallery / variants / shipping / info / specs
========================================================= */
.discount-badge {
    position: absolute;
    top: 6px; right: 6px;
    background: #ef4444;
    color: #fff;
    font-size: 0.66rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.35);
}
.orig-tnd {
    display: inline-block;
    margin-inline-start: 6px;
    color: #ef4444;
    font-weight: 700;
    text-decoration: line-through;
}
.sold-count {
    align-items: center;
    gap: 5px;
    background: var(--accent-soft);
    color: var(--accent-hover);
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}
body.dark .sold-count { color: var(--accent); }

.box-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.box-title i { color: var(--primary); }

/* ---- Gallery ---- */
.p-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 20px;
    scrollbar-width: thin;
}
.p-gallery .thumb {
    flex: 0 0 auto;
    width: 64px; height: 64px;
    padding: 0;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-main);
    cursor: pointer;
    transition: var(--transition);
}
.p-gallery .thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.p-gallery .thumb:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.p-gallery .thumb.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

/* ---- Variants ---- */
.variants-box,
.shipping-box,
.specs-box {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 18px;
}
.variant-group { margin-bottom: 14px; }
.variant-group:last-child { margin-bottom: 0; }
.variant-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.variant-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border: 1.5px solid var(--border-strong);
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.variant-chip img {
    width: 26px; height: 26px;
    border-radius: 6px;
    object-fit: cover;
}
.variant-chip .chip-color {
    width: 16px; height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.15);
}
.variant-chip:hover { border-color: var(--primary); transform: translateY(-1px); }
.variant-chip.active {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

/* ---- Shipping ---- */
.ship-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px dashed var(--border);
}
.ship-row:last-child { border-bottom: none; padding-bottom: 0; }
.ship-row:first-of-type { padding-top: 0; }
.ship-icon {
    width: 34px; height: 34px;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.ship-row.highlight .ship-icon { background: var(--accent-soft); color: var(--accent-hover); }
.ship-text { display: flex; flex-direction: column; gap: 3px; }
.ship-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }
.ship-value { font-size: 0.9rem; color: var(--text-main); font-weight: 800; }
.ship-row.highlight .ship-value { color: var(--accent-hover); }
body.dark .ship-row.highlight .ship-value { color: var(--accent); }

/* ---- Info grid ---- */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}
.info-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.info-icon {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--warning);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
}
.info-value {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-main);
    word-break: break-word;
}
.info-label { font-size: 0.74rem; color: var(--text-muted); font-weight: 600; }

/* ---- Specs ---- */
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table tr:last-child { border-bottom: none; }
.specs-table td { padding: 9px 4px; font-size: 0.86rem; vertical-align: top; }
.spec-name { color: var(--text-muted); font-weight: 600; width: 45%; }
.spec-value { color: var(--text-main); font-weight: 700; }

@media (max-width: 600px) {
    .p-gallery .thumb { width: 56px; height: 56px; }
    .info-grid { grid-template-columns: repeat(2, 1fr); }
}

/* رابط واتساب بعد تأكيد الطلب */
.order-wa-link{display:block;margin-top:8px;color:#16a34a;font-weight:700;text-decoration:none;font-size:.9rem}
.order-wa-link:hover{text-decoration:underline}

/* =========================================================
   HOME PRODUCT SEARCH
========================================================= */
.search-section {
    padding: 90px 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}
.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 720px;
    margin: 0 auto 16px;
    padding: 10px 12px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}
.search-box .search-icon {
    color: var(--text-light);
    padding-inline-start: 10px;
    transition: color var(--transition);
}
.search-box:focus-within .search-icon { color: var(--primary); }
.search-box input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text-main);
    padding: 12px 4px;
}
.search-box input::placeholder { color: var(--text-light); font-weight: 500; }
.search-box .btn-primary {
    padding: 13px 28px;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 0.95rem;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
}
.search-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 36px;
}
.chip {
    background: var(--bg-main);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition);
}
.chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
    transform: translateY(-2px);
}
.search-msg {
    text-align: center;
    padding: 36px 18px;
    background: var(--bg-main);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.95rem;
}
.search-msg.err { color: var(--danger); border-color: var(--danger); }
.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
    gap: 20px;
}
.s-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    animation: sIn 0.45s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes sIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}
.s-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.s-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--bg-card);
    overflow: hidden;
}
.s-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}
.s-card:hover .s-thumb img { transform: scale(1.07); }
.s-rating {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    background: rgba(15, 23, 42, 0.78);
    color: #fbbf24;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 50px;
    backdrop-filter: blur(6px);
}
.s-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 15px 16px;
    flex: 1;
}
.s-title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.5;
    height: 2.7em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.s-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    font-family: var(--font-mono);
}
.s-usd { font-size: 0.88rem; color: var(--text-muted); }
.s-td { font-size: 1.18rem; font-weight: 800; color: var(--accent); }
.s-tier { font-size: 0.74rem; color: var(--text-light); }
.s-actions { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.s-actions .s-row2 { display: flex; gap: 7px; }
.s-go {
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, var(--accent), #34d399);
    color: #053b23;
    font-family: inherit;
    font-weight: 800;
    font-size: 0.87rem;
    height: 44px;
    padding: 0 8px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    white-space: nowrap;
    overflow: hidden;
    transition: all var(--transition);
}
.s-go i { font-size: 0.85rem; }
.s-go:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
}
.s-go:active { transform: scale(0.97); }
.s-ext {
    width: 44px;
    flex: 0 0 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: all 0.2s;
}
.s-ext:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-2px); }
.s-skel {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.s-skel .sk {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--border) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite linear;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.s-skel .sk-img { aspect-ratio: 1 / 1; }
.s-skel .sk-line { height: 12px; margin: 12px 14px; border-radius: 6px; }
.s-skel .sk-line.short { width: 55%; }

@media (max-width: 720px) {
    .search-box { flex-wrap: wrap; padding: 10px; }
    .search-box input { width: 100%; flex: 1 1 200px; }
    .search-box .btn-primary { width: 100%; }
    .search-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 13px; }
    .s-title { font-size: 0.83rem; }
}


/* ---------- Featured products bar ---------- */
.featured-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    max-width: 760px;
    margin: 6px auto 4px;
}
.featured-bar .search-msg {
    margin: 0;
    text-align: start;
}
.featured-bar .chip i {
    margin-inline-end: 6px;
}
body.dark .featured-bar .search-msg {
    color: var(--text-dim);
}
@media (max-width: 720px) {
    .featured-bar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .featured-bar .search-msg {
        text-align: center;
    }
}


/* ---------- Product image zoom (lightbox) ---------- */
.product-img-wrapper #p-img {
    cursor: zoom-in;
}
.img-zoom-hint {
    position: absolute;
    bottom: 12px;
    inset-inline-start: 12px;
    background: rgba(15, 23, 42, .78);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    opacity: 0;
    transition: opacity .2s;
    pointer-events: none;
    z-index: 3;
}
.product-img-wrapper:hover .img-zoom-hint {
    opacity: 1;
}
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(3, 7, 18, .94);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .22s ease;
    backdrop-filter: blur(3px);
}
.lightbox.open {
    opacity: 1;
}
.lightbox #lb-img {
    max-width: 90vw;
    max-height: 84vh;
    border-radius: 14px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
    animation: lbPop .25s ease;
    user-select: none;
}
@keyframes lbPop {
    from { transform: scale(.94); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.lb-btn {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .2s;
    z-index: 2;
}
.lb-btn:hover {
    background: var(--primary, #2563eb);
    transform: scale(1.07);
}
.lb-close {
    top: 22px;
    inset-inline-end: 22px;
}
.lb-prev {
    inset-inline-start: 26px;
    top: 50%;
    transform: translateY(-50%);
}
.lb-next {
    inset-inline-end: 26px;
    top: 50%;
    transform: translateY(-50%);
}
.lb-prev:hover { transform: translateY(-50%) scale(1.07); }
.lb-next:hover { transform: translateY(-50%) scale(1.07); }
.lb-counter {
    direction: ltr;
    unicode-bidi: isolate;
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: #e2e8f0;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'IBM Plex Mono', monospace;
}
@media (max-width: 640px) {
    .lb-btn { width: 42px; height: 42px; font-size: 15px; }
    .lb-prev { inset-inline-start: 12px; }
    .lb-next { inset-inline-end: 12px; }
    .lightbox #lb-img { max-width: 96vw; max-height: 78vh; }
}


/* ---------- Cart (سلة المشتريات) ---------- */
.cart-btn {
    position: relative;
}
.cart-count {
    position: absolute;
    top: -7px;
    inset-inline-start: -7px;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    border: 2px solid #fff;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, .58);
    z-index: 3400;
}
.cart-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    inset-inline-start: 0;
    width: min(410px, 93vw);
    background: var(--bg-card, #ffffff);
    color: var(--text, #0f172a);
    z-index: 3500;
    display: flex;
    flex-direction: column;
    transform: translateX(105%);
    transition: transform .32s cubic-bezier(.22, .8, .3, 1);
    box-shadow: -20px 0 60px rgba(0, 0, 0, .25);
}
.cart-drawer.open {
    transform: translateX(0);
}
.cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(148, 163, 184, .3);
}
.cart-head h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cart-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, .4);
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 15px;
    transition: all .2s;
}
.cart-close:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cart-empty {
    text-align: center;
    color: #94a3b8;
    padding: 50px 14px;
}
.cart-empty i {
    font-size: 42px;
    margin-bottom: 12px;
    display: block;
    opacity: .5;
}
.cart-empty p {
    margin: 0 0 6px;
    font-weight: 800;
    color: #64748b;
}
.cart-empty span {
    font-size: .84rem;
}
.cart-item {
    display: flex;
    gap: 10px;
    background: rgba(148, 163, 184, .1);
    border: 1px solid rgba(148, 163, 184, .25);
    border-radius: 14px;
    padding: 10px;
}
.cart-item img,
.ci-noimg {
    width: 62px;
    height: 62px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(148, 163, 184, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}
.ci-info {
    flex: 1;
    min-width: 0;
}
.ci-title {
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ci-variant {
    font-size: .72rem;
    color: var(--primary, #2563eb);
    font-weight: 700;
    margin-top: 2px;
}
.ci-price {
    font-size: .8rem;
    font-weight: 800;
    color: var(--accent, #10b981);
    margin-top: 4px;
}
.ci-usd {
    color: #94a3b8;
    font-weight: 600;
    font-size: .7rem;
}
.ci-qty {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}
.ci-qty button {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, .45);
    background: transparent;
    color: inherit;
    font-weight: 800;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: all .15s;
}
.ci-qty button:hover {
    background: var(--primary, #2563eb);
    color: #fff;
    border-color: var(--primary, #2563eb);
}
.ci-qty span {
    min-width: 22px;
    text-align: center;
    font-weight: 800;
    font-size: .85rem;
}
.ci-qty .ci-rm {
    margin-inline-start: auto;
    border-color: rgba(239, 68, 68, .5);
    color: #ef4444;
}
.ci-qty .ci-rm:hover {
    background: #ef4444;
    color: #fff;
}
.cart-foot {
    border-top: 1px solid rgba(148, 163, 184, .3);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cart-row {
    display: flex;
    justify-content: space-between;
    font-size: .88rem;
    font-weight: 700;
    color: #64748b;
}
.cart-row strong {
    color: var(--text, #0f172a);
}
.cart-row.cart-total {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text, #0f172a);
    padding-top: 8px;
    border-top: 1px dashed rgba(148, 163, 184, .4);
}
.cart-row.cart-total strong {
    color: var(--accent, #10b981);
    font-size: 1.05rem;
}
.cart-clear {
    border: 0;
    background: transparent;
    color: #ef4444;
    font-weight: 700;
    font-size: .82rem;
    cursor: pointer;
    padding: 6px;
}
.cart-clear:hover {
    text-decoration: underline;
}
.btn-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
    padding: 13px 20px;
    border-radius: 14px;
    border: 2px solid var(--primary, #2563eb);
    background: transparent;
    color: var(--primary, #2563eb);
    font-weight: 800;
    font-size: .98rem;
    cursor: pointer;
    transition: all .25s;
}
.btn-outline:hover {
    background: var(--primary, #2563eb);
    color: #fff;
    transform: translateY(-2px);
}
.s-cart {
    flex: 1;
    min-width: 0;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--primary, #2563eb), #1d4ed8);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    padding: 0 8px;
    transition: all 0.2s;
}
.s-cart span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.s-cart i { font-size: 0.92rem; flex: 0 0 auto; }
.s-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.4);
}
.s-cart:active { transform: scale(0.97); }
.s-cart.added {
    background: linear-gradient(135deg, var(--accent), #34d399);
    color: #053b23;
    box-shadow: 0 8px 18px rgba(16, 185, 129, 0.4);
}
#cart-order-host {
    max-width: 760px;
    margin: 0 auto;
}
#cart-order-host:empty {
    display: none;
}
.cart-summary-box {
    background: rgba(16, 185, 129, .08);
    border: 2px dashed rgba(16, 185, 129, .5);
    border-radius: 16px;
    padding: 16px;
    margin: 18px 0;
}
.cs-head {
    font-weight: 800;
    font-size: .98rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent, #10b981);
}
.cs-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: .86rem;
    font-weight: 700;
    padding: 5px 0;
    border-bottom: 1px dashed rgba(148, 163, 184, .35);
}
.cs-line:last-child {
    border-bottom: 0;
}
.cs-line .cs-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cs-line.cs-total {
    font-size: 1rem;
    font-weight: 800;
    color: var(--accent, #10b981);
    padding-top: 8px;
}
@media (max-width: 640px) {
    .cart-drawer {
        width: 94vw;
    }
}


/* ---------- Footer visits counter ---------- */
.visits-line {
    font-size: .8rem;
    opacity: .75;
    margin-top: 6px;
    font-weight: 600;
}


/* =========================================================
   MICRO-INTERACTIONS & ENTRANCES
   ========================================================= */
@keyframes heroIn {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}
.badge-row { animation: heroIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both 0.05s; }
.hero h1 { animation: heroIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both 0.15s; }
.hero-sub { animation: heroIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both 0.3s; }

.trust-card,
.process-card,
.s-card {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
.trust-card:hover,
.process-card:hover,
.s-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}
.s-thumb img { transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.s-card:hover .s-thumb img { transform: scale(1.06); }

.btn-primary,
.btn-success,
.btn-dark,
.btn-outline,
.btn-header {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.25s ease,
                background 0.25s ease,
                opacity 0.25s ease,
                border-color 0.25s ease;
}
.btn-primary:active,
.btn-success:active,
.btn-dark:active,
.btn-outline:active {
    transform: scale(0.97);
}

@keyframes bump {
    0% { transform: scale(1); }
    40% { transform: scale(1.45); }
    100% { transform: scale(1); }
}
.cart-count.bump { animation: bump 0.4s cubic-bezier(0.16, 1, 0.3, 1); }

.order-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: var(--primary-soft);
    border: 1px dashed var(--primary);
    color: var(--text-main);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 0.86rem;
    line-height: 1.7;
    margin: 4px 0 14px;
}
.order-note i { color: var(--primary); margin-top: 4px; }

.cart-post-note {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    background: var(--accent-soft);
    border-radius: 10px;
    padding: 9px 12px;
    margin-top: 8px;
}
.cart-post-note i { color: var(--accent); }

.cs-line.cs-note strong { color: var(--accent); font-weight: 600; font-size: 0.82rem; }

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001s !important;
        scroll-behavior: auto !important;
    }
}


/* =========================================================
   ORDER FORM — STRONG DESIGN
   ========================================================= */
.order-form-container {
    margin-top: 32px;
    padding: 26px 24px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg-card);
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border);
}
.form-header {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, var(--primary), #1d4ed8);
    color: #fff;
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 20px;
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.3);
}
.form-header h4 { color: #fff; font-size: 1.1rem; font-weight: 800; }
.form-header p { color: rgba(255, 255, 255, 0.85); font-size: 0.83rem; margin-top: 3px; }
.fh-icon {
    width: 46px; height: 46px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: grid; place-items: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.fh-text { flex: 1; min-width: 0; }
.fh-step {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    white-space: nowrap;
}
.form-section {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    background: var(--bg-main);
}
.form-section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
    font-size: 0.92rem;
    margin-bottom: 14px;
    color: var(--text-main);
}
.form-section-title i {
    width: 30px; height: 30px;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
    display: grid; place-items: center;
    font-size: 0.82rem;
}
.order-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--primary-soft);
    border: 1px dashed var(--primary);
    border-radius: 14px;
    padding: 10px 12px;
    margin-bottom: 16px;
}
.order-mini img {
    width: 54px; height: 54px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--bg-card);
    border: 2px solid #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}
.om-info { flex: 1; min-width: 0; }
.om-title {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-main);
}
.om-price { display: block; margin-top: 3px; }
.om-price b { color: var(--primary); font-size: 0.98rem; }
.om-price small { color: var(--text-muted); font-size: 0.74rem; }
.om-badge {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--accent);
    background: var(--bg-card);
    border-radius: 999px;
    padding: 6px 10px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.form-guarantees {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 2px 0 16px;
}
.form-guarantees span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 7px 11px;
    border-radius: 999px;
}
.btn-submit-order {
    background: linear-gradient(135deg, var(--accent), #059669);
    color: #fff;
    font-size: 1rem;
    padding: 16px 18px;
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.35);
}
.btn-submit-order:hover { transform: translateY(-2px); }
.btn-submit-order:active { transform: scale(0.98); }
@media (max-width: 560px) {
    .order-form-container { padding: 18px 14px; }
    .form-header { flex-wrap: wrap; }
    .fh-step { order: 3; }
}


/* =========================================================
   ROUND 4 — FOOTER SOCIAL + UNIFIED CARD BUTTONS + PRO
   ========================================================= */
.footer-social h4 { margin-bottom: 12px; }
.social-row { display: flex; gap: 10px; flex-wrap: wrap; }
.social-link {
    width: 42px; height: 42px;
    border-radius: 13px;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text-main);
    font-size: 1.02rem;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s, box-shadow 0.25s, color 0.25s;
}
.social-link:hover { transform: translateY(-5px) scale(1.08); color: #fff; }
.social-link:has(.fa-facebook-f):hover { background: #1877f2; box-shadow: 0 10px 22px rgba(24, 119, 242, 0.45); border-color: #1877f2; }
.social-link:has(.fa-instagram):hover { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); box-shadow: 0 10px 22px rgba(214, 36, 159, 0.45); border-color: transparent; }
.social-link:has(.fa-tiktok):hover { background: #010101; box-shadow: 0 10px 22px rgba(0, 0, 0, 0.5); border-color: #25f4ee; color: #25f4ee; }
.social-link:has(.fa-whatsapp):hover { background: #25d366; box-shadow: 0 10px 22px rgba(37, 211, 102, 0.45); border-color: #25d366; }
.social-link i { pointer-events: none; }

.powered-by {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.83rem;
    color: var(--text-muted);
}
.pb-heart { color: #ef4444; animation: pbBeat 1.4s ease-in-out infinite; display: inline-flex; }
@keyframes pbBeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.35); }
    30% { transform: scale(1); }
    45% { transform: scale(1.25); }
    60% { transform: scale(1); }
}
.pb-name {
    font-weight: 900;
    letter-spacing: 0.04em;
    background: linear-gradient(90deg, var(--primary), #a855f7, var(--accent), var(--primary));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: pbShine 4s linear infinite;
    text-decoration: none;
    position: relative;
}
.pb-name::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -3px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: pbUnderline 2.4s ease-in-out infinite;
}
@keyframes pbShine { to { background-position: 300% 0; } }
@keyframes pbUnderline {
    0%, 100% { opacity: 0.35; transform: scaleX(0.55); }
    50% { opacity: 1; transform: scaleX(1); }
}
.pb-badge {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 999px;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.35);
    animation: pbGlow 2.2s ease-in-out infinite;
}
@keyframes pbGlow {
    0%, 100% { box-shadow: 0 0 0 rgba(251, 191, 36, 0); }
    50% { box-shadow: 0 0 12px rgba(251, 191, 36, 0.45); }
}

/* --- unified card action buttons (احسب / سلة / فتح الرابط) --- */
.s-actions { align-items: stretch; gap: 8px; }
.s-actions .s-go,
.s-actions .s-cart,
.s-actions .s-ext {
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.86rem;
}
.s-actions .s-go { width: 100%; padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-actions .s-cart { flex: 1; min-width: 0; }
.s-actions .s-ext { width: 44px; flex: 0 0 44px; text-decoration: none; }
.s-actions .s-cart.added { background: linear-gradient(135deg, var(--accent), #34d399); color: #053b23; }

/* --- pro: share row under result --- */
.share-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.share-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s;
}
.share-btn:hover { transform: translateY(-2px); border-color: var(--primary); color: var(--primary); }
.share-btn.wa:hover { background: #25d366; border-color: #25d366; color: #fff; }
.share-btn.fb:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.share-btn.copy:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* --- pro: recently viewed strip --- */
.recent-strip { margin-top: 26px; }
.recent-strip h4 { font-size: 1rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.recent-list { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.recent-item {
    flex: 0 0 auto;
    width: 150px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.22s, box-shadow 0.22s;
}
.recent-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.recent-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: var(--bg-main); }
.recent-item .ri-body { padding: 8px 9px; }
.recent-item .ri-title { font-size: 0.72rem; font-weight: 700; line-height: 1.35; height: 2.7em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.recent-item .ri-price { font-size: 0.8rem; font-weight: 900; color: var(--accent); margin-top: 4px; }

/* --- pro: trust chips row --- */
.trust-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.trust-chip {
    font-size: 0.73rem; font-weight: 700;
    padding: 6px 11px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    display: inline-flex; align-items: center; gap: 5px;
}
@media (max-width: 560px) {
    .s-actions .s-go { font-size: 0.8rem; }
    .s-actions .s-cart { font-size: 0.78rem; gap: 5px; }
    .recent-item { width: 132px; }
}

/* ============ ROUND 5: وصف المنتج + شحن مجاني + أزرار احترافية ============ */
.desc-box {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 18px;
}
.desc-text {
    font-size: 0.9rem;
    line-height: 1.85;
    color: var(--text-muted);
    white-space: pre-wrap;
    max-height: 7.4em;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
    transition: max-height 0.3s ease;
}
.desc-text.expanded {
    max-height: none;
    -webkit-mask-image: none;
    mask-image: none;
}
.desc-more {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid var(--primary);
    background: var(--primary-soft, rgba(37, 99, 235, 0.08));
    color: var(--primary);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
}
.desc-more:hover { background: var(--primary); color: #fff; }
.desc-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}
.desc-link:hover { text-decoration: underline; }
.desc-note {
    margin-top: 6px;
    font-size: 0.78rem;
    color: var(--text-muted, #6b7280);
    line-height: 1.6;
}

/* شارة الشحن المجاني */
.free-ship-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #059669;
    font-size: 0.8rem;
    font-weight: 800;
    animation: shipPulse 2.4s ease-in-out infinite;
}
@keyframes shipPulse {
    0%, 100% { box-shadow: 0 0 0 rgba(16, 185, 129, 0); }
    50% { box-shadow: 0 0 14px rgba(16, 185, 129, 0.35); }
}

/* زر السلة في صفحة المنتج */
.btn-cart-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary, #2563eb), #4f46e5);
    color: #fff;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.25s, background 0.25s;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.32);
}
.btn-cart-add:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(37, 99, 235, 0.42); }
.btn-cart-add:active { transform: scale(0.98); }
.btn-cart-add i { transition: transform 0.3s; }
.btn-cart-add:hover i { transform: scale(1.15); }
.btn-cart-add.added {
    background: linear-gradient(135deg, var(--accent, #10b981), #34d399);
    color: #053b23;
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.4);
    animation: addedPop 0.35s ease;
}
@keyframes addedPop {
    0% { transform: scale(1); }
    45% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

/* وصف مختصر في عناصر السلة */
.ci-desc {
    font-size: 0.7rem;
    color: var(--text-light);
    line-height: 1.4;
    margin-top: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============ ROUND 5: أنيميشن خانة البحث ============ */
.search-box {
    position: relative;
    overflow: hidden;
}
.search-box::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(110deg, transparent 20%, rgba(37, 99, 235, 0.75) 45%, rgba(16, 185, 129, 0.75) 55%, transparent 80%);
    background-size: 250% 100%;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}
.search-box:focus-within::after {
    opacity: 1;
    animation: borderSweep 1.8s linear infinite;
}
@keyframes borderSweep {
    0% { background-position: 130% 0; }
    100% { background-position: -130% 0; }
}
.search-box:focus-within .btn-primary {
    animation: searchBtnPulse 1.6s ease-in-out infinite;
}
@keyframes searchBtnPulse {
    0%, 100% { box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3); }
    50% { box-shadow: 0 6px 24px rgba(37, 99, 235, 0.55); }
}
.search-box input::placeholder {
    transition: opacity 0.2s;
    animation: placeholderFade 2.6s ease-in-out infinite;
}
@keyframes placeholderFade {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 0.95; }
}

/* =========================================================
   ROUND 6 � MOBILE-FIRST PREMIUM REDESIGN
   ========================================================= */

/* ---------- Base: readability, focus states, scroll anchors ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
section[id],
#result-wrap { scroll-margin-top: calc(var(--header-h) + 10px); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: 8px;
}

/* ---------- Touch targets >= 44px ---------- */
.paste-btn { width: 44px; height: 44px; }
.chip { padding: 11px 17px; min-height: 44px; display: inline-flex; align-items: center; }
.share-btn { padding: 11px 15px; min-height: 44px; }
.desc-more { min-height: 44px; padding: 10px 16px; }
.variant-chip { min-height: 44px; padding: 10px 14px; }
.ci-qty button { width: 44px; height: 44px; font-size: 16px; }
.cart-close { width: 44px; height: 44px; font-size: 16px; }
.social-link { width: 44px; height: 44px; }
.faq-question { min-height: 56px; }

/* ---------- Price hierarchy on result card ---------- */
.original-price { font-size: 0.85rem; }
.calc-price-display h2 { color: var(--accent); }
.price-breakdown .bd-row:first-child strong { color: var(--accent); }

/* ---------- Card pricing hierarchy (USD small secondary / TND large primary) ---------- */
.s-usd { font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
.s-td { font-size: 1.22rem; font-weight: 800; white-space: nowrap; }
.s-tier { font-size: 0.72rem; line-height: 1.45; }
.s-title { font-size: 0.88rem; line-height: 1.45; height: auto; max-height: 2.9em; }

/* ---------- Product images: clean background, contain ---------- */
.s-thumb { background: var(--bg-card); border-bottom: 1px solid var(--border); }
.s-thumb img { object-fit: contain; background: var(--bg-card); }
.recent-item img { object-fit: contain; }
.product-img-wrapper img { object-fit: contain; }
.p-gallery .thumb img { object-fit: contain; }

/* ---------- Card actions: 46px, one-line CTA ---------- */
.s-body { padding: 12px 13px 14px; gap: 7px; }
.s-actions .s-go {
    height: 46px;
    font-size: 0.93rem;
    border-radius: 12px;
    letter-spacing: -0.01em;
}
.s-actions .s-cart,
.s-actions .s-ext { height: 46px; border-radius: 12px; }
.s-actions .s-ext { width: 46px; flex: 0 0 46px; }
.s-rating {
    top: 8px;
    inset-inline-start: 8px;
    font-size: 0.7rem;
    padding: 3px 9px;
}

/* ---------- Cart badge (small, professional, theme-aware) ---------- */
.cart-count {
    top: -5px;
    inset-inline-start: -5px;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    border-color: var(--bg-card);
}

/* ---------- Floating buttons: safe-area aware, separate corners ---------- */
.whatsapp-float {
    width: 54px;
    height: 54px;
    font-size: 1.6rem;
    left: calc(16px + env(safe-area-inset-left, 0px));
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}
.back-to-top {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 1025px) {
    .whatsapp-float {
        width: 58px;
        height: 58px;
        left: 28px;
        bottom: 28px;
    }
    .back-to-top { right: 28px; bottom: 28px; }
}

/* ---------- FAQ: answers never cut off ---------- */
.faq-item.active .faq-answer { max-height: 480px; }

/* ---------- Container rhythm ---------- */
@media (max-width: 768px) { .container { padding: 0 20px; } }
@media (max-width: 480px) { .container { padding: 0 16px; } }

/* =========================================================
   HEADER — mobile: hamburger LEFT / brand CENTER / cart RIGHT
   ========================================================= */
.main-nav { gap: 4px; }
.nav-link { white-space: nowrap; font-size: 0.86rem; padding: 8px 11px; }
@media (max-width: 1279px) {
    .btn-header { display: none; }
}
@media (max-width: 1024px) {
    :root { --header-h: 60px; }
    .site-header { height: var(--header-h); }
    .header-inner { height: var(--header-h); gap: 8px; }

    .header-actions { display: contents; }
    .header-actions .cart-btn { order: 1; width: 44px; height: 44px; }
    .brand { order: 2; gap: 9px; }
    .header-actions .nav-toggle { order: 3; width: 44px; height: 44px; }
    .header-actions #theme-toggle { display: none; }
    .main-nav, .btn-header { display: none; }
    .nav-toggle { display: flex; }

    .brand-icon { width: 36px; height: 36px; border-radius: 10px; font-size: 0.95rem; }
    .brand-name { font-size: 1rem; }
    .brand-sub { font-size: 0.62rem; }
}
@media (max-width: 360px) {
    .brand-sub { display: none; }
    .brand-name { font-size: 0.96rem; }
}

/* ---------- Mobile menu: comfortable rows + theme switch ---------- */
.mobile-theme {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    margin-bottom: 6px;
    border-radius: 12px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
}
.mobile-theme:hover { border-color: var(--primary); background: var(--primary-soft); }
.mobile-nav-inner {
    padding: 18px 16px calc(26px + env(safe-area-inset-bottom, 0px));
    gap: 4px;
}
.mobile-link {
    min-height: 48px;
    display: flex;
    align-items: center;
    font-size: 1rem;
    padding: 12px 16px;
}
.mobile-cta { min-height: 50px; margin-top: 14px; }

/* =========================================================
   PRODUCT GRID � mobile 2 adaptive columns, no overflow
   ========================================================= */
@media (max-width: 720px) {
    .search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .search-box { padding: 9px 10px; }
    .search-box input { font-size: 1rem; padding: 11px 4px; }
    .search-box .btn-primary { padding: 12px 22px; min-height: 46px; }
    .search-chips { gap: 8px; }
}
@media (max-width: 400px) {
    .search-grid { gap: 10px; }
    .s-body { padding: 10px 11px 12px; }
    .s-actions .s-go { font-size: 0.86rem; padding: 0 6px; }
    .s-actions .s-cart { font-size: 0.8rem; gap: 4px; }
    .s-actions .s-cart, .s-actions .s-go, .s-actions .s-ext { height: 44px; }
    .s-actions .s-ext { width: 44px; flex: 0 0 44px; }
    .s-td { font-size: 1rem; }
    .s-title { font-size: 0.83rem; }
}

/* =========================================================
   CALC / RESULT / FORM � compact mobile rhythm
   ========================================================= */
@media (max-width: 600px) {
    .btn-block { padding: 14px 16px; font-size: 0.98rem; border-radius: 14px; }
    .input-group input { font-size: 0.95rem; padding: 13px 0; }
    .calc-header { padding: 18px; gap: 12px; }
    .calc-header h2 { font-size: 1.05rem; }
    .calc-card-body { padding: 18px; }
    .calc-card { border-radius: 20px; }
    .calc-price-display h2 { font-size: 2.5rem; }
    .product-card { padding: 20px 14px; border-radius: 20px; }
    .success-alert { padding: 12px 14px; gap: 10px; margin-bottom: 20px; }
    .form-group input, .form-group select, .form-group textarea { font-size: 1rem; padding: 12px 14px; }
    .order-form-container { padding: 18px 14px; }
    .share-row { gap: 8px; }
    .share-btn { flex: 1 1 auto; justify-content: center; }
}

/* =========================================================
   SECTIONS � breathing room, mobile typography
   ========================================================= */
@media (max-width: 600px) {
    .hero { padding: 44px 0 34px; }
    .hero-copy h1 { font-size: clamp(1.85rem, 8.5vw, 2.35rem); margin-bottom: 14px; }
    .hero-sub { font-size: 0.98rem; margin-bottom: 24px; }
    .badge-row { gap: 8px; margin-bottom: 16px; }
    .hero-features { gap: 10px; }
    .hero-features li { padding: 9px 13px; font-size: 0.85rem; }

    .search-section,
    .process-section,
    .trust-section,
    .testimonials-section,
    .faq-section { padding: 56px 0; }
    .section-header { margin-bottom: 32px; }
    .section-title { font-size: clamp(1.45rem, 6vw, 1.8rem); }
    .section-desc { font-size: 0.95rem; }

    .stats-section { padding: 34px 0; }
    .stat-number { font-size: 1.85rem; }
    .stat-label { font-size: 0.82rem; }
    .stat-item { padding: 8px 6px; }

    .process-card, .trust-card, .testimonial-card { padding: 24px 18px; }
    .icon-wrapper { width: 56px; height: 56px; font-size: 1.3rem; }

    .cta-section { padding: 26px 0 56px; }
    .cta-box { padding: 30px 20px; border-radius: 20px; gap: 20px; }
    .cta-content h2 { font-size: 1.35rem; }
    .cta-content p { font-size: 0.95rem; }
    .cta-box .btn-lg { width: 100%; justify-content: center; }

    .faq-question { padding: 16px 16px; font-size: 0.95rem; }
    .faq-answer p { padding: 0 16px 18px; font-size: 0.9rem; }

    .site-footer { padding-top: 44px; }
    .footer-content { gap: 28px; padding-bottom: 32px; }
    .footer-bottom { padding: 20px 8px; }

    .recent-item { width: 140px; }
    .cart-drawer { width: 100vw; }
    .search-msg { padding: 28px 14px; }
}

/* =========================================================
   TABLET
   ========================================================= */
@media (min-width: 601px) and (max-width: 860px) {
    .hero { padding: 64px 0 48px; }
    .search-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

/* =========================================================
   TUNIDROP PREMIUM REDESIGN LAYER
   ========================================================= */

/* ---------- Motion foundation ---------- */
[data-delay="50"] { transition-delay: 0.05s; }
[data-delay="80"] { transition-delay: 0.08s; }
[data-delay="120"] { transition-delay: 0.12s; }
[data-delay="150"] { transition-delay: 0.15s; }
[data-delay="160"] { transition-delay: 0.16s; }
[data-delay="240"] { transition-delay: 0.24s; }

[data-animate] { will-change: transform, opacity, filter; }
[data-animate="fade-up"] { transform: translateY(26px); filter: blur(6px); }
[data-animate="fade-left"] { transform: translateX(-34px); filter: blur(6px); }
[data-animate].in-view { transform: none; filter: blur(0); }

section[id], #calc-card { scroll-margin-top: calc(var(--header-h) + 18px); }

/* Hero entrance timeline (only after JS confirms motion is on) */
body.js-motion .hero-anim {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease-out) var(--d, 0s), transform 0.7s var(--ease-out) var(--d, 0s);
}
body.js-motion .hero-anim-side {
    opacity: 0;
    transform: translateX(-42px);
    transition: opacity 0.8s var(--ease-out) var(--d, 0s), transform 0.8s var(--ease-out) var(--d, 0s);
}
body.js-motion.loaded .hero-anim,
body.js-motion.loaded .hero-anim-side { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { padding: 108px 0 88px; }
.hero .orb-3 {
    width: 300px; height: 300px;
    background: rgba(6, 182, 212, 0.2);
    top: 34%; left: 38%;
    animation: float 17s ease-in-out infinite;
}
body.dark .hero .orb-1 { background: rgba(61, 123, 255, 0.3); }
.light-streak {
    position: absolute;
    height: 1.5px;
    width: 340px;
    background: linear-gradient(90deg, transparent, rgba(30, 99, 255, 0.55), rgba(6, 182, 212, 0.55), transparent);
    opacity: 0.5;
}
.streak-1 { top: 24%; right: -120px; transform: rotate(-18deg); animation: streak 9s ease-in-out infinite; }
.streak-2 { bottom: 20%; left: -140px; transform: rotate(14deg); animation: streak 11s ease-in-out infinite reverse; }
@keyframes streak {
    0%, 100% { transform: translateX(0) rotate(-18deg); opacity: 0.2; }
    50% { transform: translateX(-70px) rotate(-18deg); opacity: 0.6; }
}
#hero-particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.75; }
.grid-overlay {
    background-image:
        linear-gradient(rgba(30, 99, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 99, 255, 0.045) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(ellipse at 60% 40%, black 10%, transparent 72%);
}
body.dark .grid-overlay {
    background-image:
        linear-gradient(rgba(61, 123, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(61, 123, 255, 0.07) 1px, transparent 1px);
}

.badge-row { margin-bottom: 26px; }
.premium-badge {
    background: var(--grad-brand-soft);
    border: 1px solid rgba(30, 99, 255, 0.28);
    color: var(--primary);
    padding: 9px 18px;
    font-size: 0.86rem;
    box-shadow: var(--shadow-glow-soft);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}
.premium-badge::after {
    content: '';
    position: absolute;
    top: 0; left: -80%;
    width: 60%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    animation: badge-shine 4.2s ease-in-out infinite;
}
@keyframes badge-shine { 0%, 60% { left: -80%; } 100% { left: 130%; } }
.premium-badge i { color: var(--cyan); }

.hero-copy h1 {
    font-size: clamp(2.65rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 22px;
}
.gradient-text {
    background: linear-gradient(120deg, var(--primary) 0%, var(--cyan) 45%, var(--primary) 90%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: grad-shift 5.5s linear infinite;
}
@keyframes grad-shift { to { background-position: 220% center; } }
.flag-tn { display: inline-block; font-size: 0.82em; transform: translateY(-4px); }

.hero-sub { font-size: 1.12rem; line-height: 1.8; max-width: 540px; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-features { gap: 12px; }
.hero-features li { border-radius: 14px; padding: 11px 17px; background: color-mix(in srgb, var(--bg-card) 78%, transparent); backdrop-filter: blur(6px); }
.hero-features li:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(30, 99, 255, 0.35); }
.feature-icon {
    width: 34px; height: 34px;
    background: var(--grad-brand);
    color: #fff;
    border-radius: 10px;
    display: grid; place-items: center;
    font-size: 0.85rem;
    box-shadow: var(--shadow-glow-soft);
}

/* ---------- Buttons system ---------- */
.btn-primary {
    background: var(--grad-brand);
    color: #fff;
    border: none;
    box-shadow: 0 8px 22px -8px rgba(30, 99, 255, 0.55);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), filter 0.3s;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -8px rgba(30, 99, 255, 0.6);
    filter: brightness(1.06);
}
.btn-primary:active { transform: translateY(0) scale(0.985); }
.btn-primary i { transition: transform 0.3s var(--ease-out); }
.btn-primary:hover .btn-arrow { transform: translateX(-5px); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 26px;
    border-radius: 15px;
    font-weight: 800;
    font-size: 0.98rem;
    color: var(--text-main);
    background: color-mix(in srgb, var(--bg-card) 72%, transparent);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(6px);
    transition: all 0.3s var(--ease-out);
}
.btn-ghost:hover {
    border-color: rgba(30, 99, 255, 0.55);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-ghost:hover i { transform: translateY(3px); }
.btn-ghost i { transition: transform 0.3s var(--ease-out); }

.btn-light {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #0b1327;
    min-height: 52px;
    padding: 13px 28px;
    border-radius: 15px;
    font-weight: 900;
    font-size: 1rem;
    box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.4);
    transition: all 0.3s var(--ease-out);
}
.btn-light:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -12px rgba(0, 0, 0, 0.5); }
.btn-light:active { transform: translateY(0) scale(0.985); }

.btn-lg { min-height: 54px; padding: 14px 30px; font-size: 1rem; border-radius: 16px; }
.btn-block { width: 100%; justify-content: center; min-height: 52px; border-radius: 15px; font-weight: 800; }

.btn-success {
    background: var(--grad-emerald);
    color: #fff;
    box-shadow: 0 10px 26px -10px rgba(16, 185, 129, 0.6);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), filter 0.3s;
}
.btn-success:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 16px 34px -10px rgba(16, 185, 129, 0.65); }
.btn-success:active { transform: scale(0.985); }

.btn-cart-add {
    border: 1.5px solid rgba(30, 99, 255, 0.45);
    color: var(--primary);
    background: transparent;
    min-height: 50px;
    border-radius: 15px;
    font-weight: 800;
    transition: all 0.3s var(--ease-out);
}
.btn-cart-add:hover { background: var(--primary-soft); transform: translateY(-2px); border-color: var(--primary); }

.btn-dark {
    background: linear-gradient(120deg, #0b1327, #16234a);
    color: #fff;
    box-shadow: 0 12px 30px -12px rgba(11, 19, 39, 0.7);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), filter 0.3s;
}
.btn-dark:hover { transform: translateY(-2px); filter: brightness(1.15); }

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ---------- Navbar ---------- */
.site-header {
    background: color-mix(in srgb, var(--bg-main) 72%, transparent);
    backdrop-filter: blur(16px) saturate(1.5);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    border-bottom: 1px solid transparent;
    transition: background 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.site-header.scrolled {
    background: color-mix(in srgb, var(--bg-main) 88%, transparent);
    border-bottom-color: var(--border);
    box-shadow: 0 10px 34px -14px rgba(11, 19, 39, 0.18);
}
body.dark .site-header.scrolled { box-shadow: 0 10px 34px -14px rgba(0, 0, 0, 0.55); }
.site-header.scrolled .header-inner { height: 62px; }
.header-inner { transition: height 0.3s var(--ease-out); }

.brand-icon {
    background: var(--grad-brand);
    color: #fff;
    border-radius: 13px;
    box-shadow: var(--shadow-glow-soft);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.brand:hover .brand-icon { transform: rotate(-6deg) scale(1.06); box-shadow: var(--shadow-glow); }
.brand-name { letter-spacing: -0.01em; font-weight: 900; }
.brand-sub { color: var(--text-muted); font-size: 0.72rem; letter-spacing: 0.04em; }

.nav-link { position: relative; font-weight: 700; color: var(--text-muted); transition: color 0.25s; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -7px; right: 0;
    width: 0; height: 2.5px;
    background: var(--grad-brand);
    border-radius: 3px;
    transition: width 0.35s var(--ease-out);
}
.nav-link:hover { color: var(--text-main); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--primary); }

.btn-header {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--grad-brand);
    color: #fff;
    min-height: 44px;
    padding: 9px 20px;
    border-radius: 13px;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 8px 20px -8px rgba(30, 99, 255, 0.55);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.btn-header:hover { transform: translateY(-2px); box-shadow: 0 13px 27px -8px rgba(30, 99, 255, 0.6); }
.btn-header i { transition: transform 0.35s var(--ease-out); }
.btn-header:hover i { transform: rotate(180deg); }

.theme-toggle, .cart-btn {
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg-card) 70%, transparent);
    transition: all 0.3s var(--ease-out);
}
.theme-toggle:hover, .cart-btn:hover { border-color: rgba(30, 99, 255, 0.5); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.cart-count {
    background: var(--grad-brand);
    color: #fff;
    border: 2px solid var(--bg-card);
    animation: cart-pop 0.45s var(--ease-out);
}
@keyframes cart-pop {
    0% { transform: scale(0.4); opacity: 0; }
    60% { transform: scale(1.25); }
    100% { transform: scale(1); opacity: 1; }
}
.cart-btn.bump i { animation: cart-bump 0.5s var(--ease-out); }
@keyframes cart-bump { 30% { transform: scale(1.25) rotate(-8deg); } }

/* ---------- Section headers ---------- */
.section-tag {
    background: var(--grad-brand-soft);
    border: 1px solid rgba(30, 99, 255, 0.22);
    color: var(--primary);
    padding: 7px 17px;
    border-radius: 50px;
    font-weight: 800;
}
.section-title { font-weight: 900; letter-spacing: -0.02em; }
.section-title .gradient-text { font-weight: 900; }

/* ---------- Trust strip ---------- */
.stats-section { padding: 30px 0; }
.trust-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}
.trust-strip::before {
    content: '';
    position: absolute;
    top: 0; right: 8%; left: 8%;
    height: 2.5px;
    background: var(--grad-brand);
    border-radius: 0 0 4px 4px;
}
.ts-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    transition: background 0.3s, transform 0.3s var(--ease-out);
}
.ts-item:hover { background: var(--primary-soft); transform: translateY(-2px); }
.ts-icon {
    width: 44px; height: 44px;
    flex-shrink: 0;
    background: var(--grad-brand-soft);
    border: 1px solid rgba(30, 99, 255, 0.2);
    color: var(--primary);
    border-radius: 13px;
    display: grid; place-items: center;
    font-size: 1rem;
}
.ts-item strong { display: block; font-size: 0.9rem; font-weight: 800; line-height: 1.35; }
.ts-item span { font-size: 0.76rem; color: var(--text-muted); line-height: 1.4; }

/* ---------- Process (3 steps) ---------- */
.process-grid-3 { position: relative; gap: 26px; }
.process-grid-3 .process-card { position: relative; transition: transform 0.4s var(--ease-out), box-shadow 0.4s, border-color 0.4s; }
.process-grid-3 .process-card:hover { transform: translateY(-6px); border-color: rgba(30, 99, 255, 0.4); box-shadow: var(--shadow-lg), var(--shadow-glow-soft); }
.process-grid-3 .step-number {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(160deg, rgba(30, 99, 255, 0.3), rgba(6, 182, 212, 0.18));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: absolute;
    top: 18px;
    inset-inline-end: 22px;
    pointer-events: none;
    transition: transform 0.4s var(--ease-out), filter 0.4s;
}
.process-grid-3 .process-card:hover .step-number { transform: scale(1.12); filter: saturate(1.5); }
.process-grid-3 .icon-wrapper {
    background: var(--grad-brand-soft);
    border: 1px solid rgba(30, 99, 255, 0.2);
    color: var(--primary);
    box-shadow: none;
    transition: all 0.4s var(--ease-out);
}
.process-grid-3 .process-card:hover .icon-wrapper {
    background: var(--grad-brand);
    color: #fff;
    border-color: transparent;
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-glow);
}
.step-line {
    position: absolute;
    top: 66px;
    left: -33px;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--cyan));
    opacity: 0.55;
}
.step-line::after {
    content: '';
    position: absolute;
    top: -3px; left: 0;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
    animation: travel 2.4s linear infinite;
}
@keyframes travel { from { left: -8px; opacity: 0; } 20% { opacity: 1; } to { left: 100%; opacity: 0; } }

/* ---------- Showcase ---------- */
.showcase-section { padding: 40px 0 20px; }
.showcase-panel {
    position: relative;
    background:
        radial-gradient(90% 120% at 100% 0%, rgba(6, 182, 212, 0.1), transparent 50%),
        radial-gradient(80% 100% at 0% 100%, rgba(30, 99, 255, 0.1), transparent 55%),
        var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 34px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.showcase-badge {
    position: absolute;
    top: 18px; left: 18px;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-light);
    background: color-mix(in srgb, var(--bg-main) 82%, transparent);
    border: 1px solid var(--border);
    padding: 5px 12px;
    border-radius: 50px;
    display: inline-flex;
    gap: 7px;
    align-items: center;
}
.showcase-badge i { color: var(--cyan); }
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
    gap: 22px;
    align-items: stretch;
    margin-top: 6px;
}
.showcase-breakdown { display: flex; flex-direction: column; gap: 11px; justify-content: center; }
.sc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 13px 16px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg-elevated) 72%, transparent);
    border-radius: 14px;
    transition: border-color 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.sc-row:hover { border-color: rgba(30, 99, 255, 0.45); transform: translateX(-4px); box-shadow: var(--shadow-sm); }
.sc-row.sc-rate {
    background: linear-gradient(120deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.08));
    border-color: rgba(16, 185, 129, 0.35);
}
.sc-label { display: flex; align-items: center; gap: 9px; font-size: 0.9rem; font-weight: 700; color: var(--text-muted); }
.sc-label i { color: var(--primary); width: 16px; text-align: center; }
.sc-rate .sc-label i { color: var(--accent-hover); }
.sc-values { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.sc-values strong { font-family: var(--font-mono); font-weight: 700; font-size: 0.98rem; color: var(--text-main); }
.sc-values strong.sc-num { color: var(--primary); font-weight: 700; }
.sc-values em { font-style: normal; font-size: 0.78rem; color: var(--text-light); }
.sc-values .sc-eq { color: var(--text-muted); }
.sc-values .sc-neutral { font-size: 0.84rem; color: var(--text-light); }
.sc-tier-hint {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.76rem;
    line-height: 1.7;
    color: var(--text-light);
    padding: 4px 6px;
}
.sc-tier-hint i { color: var(--primary); }
.showcase-total {
    margin-top: 0;
    background: linear-gradient(140deg, #0b1327, #14224b 55%, #16295f);
    border: 1px solid rgba(30, 99, 255, 0.45);
    border-radius: 18px;
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 13px;
    text-align: center;
    box-shadow: var(--shadow-glow-soft);
    position: relative;
    overflow: hidden;
}
.showcase-total::before {
    content: '';
    position: absolute;
    top: -60%; right: -10%;
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.35), transparent 65%);
    filter: blur(24px);
    pointer-events: none;
}
.showcase-total > * { position: relative; z-index: 1; }
.showcase-total .st-label { color: #9fb3e8; font-size: 0.88rem; font-weight: 700; }
.st-price { display: flex; align-items: baseline; justify-content: center; gap: 8px; direction: ltr; }
.showcase-total .st-num {
    font-family: var(--font-mono);
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 26px rgba(6, 182, 212, 0.6);
}
.showcase-total .st-cur { font-weight: 800; font-size: 1rem; color: var(--cyan); }
.showcase-total .st-note { font-size: 0.78rem; color: #8ea3d6; line-height: 1.65; margin: 0; }
.st-steps { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 2px; }
.st-step {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: grid; place-items: center;
    color: #6b7dab;
    font-size: 0.72rem;
    transition: all 0.3s var(--ease-out);
}
.st-step.done {
    background: var(--grad-brand);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 16px -6px rgba(30, 99, 255, 0.7);
}
.st-step-line { width: 26px; height: 2px; background: rgba(255, 255, 255, 0.18); border-radius: 2px; }
.st-step-line:has(+ .st-step.done), .st-step.done + .st-step-line { background: linear-gradient(90deg, rgba(30, 99, 255, 0.8), rgba(6, 182, 212, 0.7)); }

/* ---------- Calculator card ---------- */
.calc-wrapper { position: relative; }
.calc-card {
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(30, 99, 255, 0.08), transparent 55%),
        var(--bg-card);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.calc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg), var(--shadow-glow-soft); }
.calc-glow {
    position: absolute;
    top: -140px; right: -100px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.28), transparent 65%);
    filter: blur(30px);
    pointer-events: none;
    animation: float 12s ease-in-out infinite;
}
.calc-header { position: relative; gap: 14px; padding: 22px 22px 16px; border-bottom: 1px dashed var(--border); }
.calc-header h2 { font-size: 1.18rem; font-weight: 800; }
.calc-header p { font-size: 0.85rem; color: var(--text-muted); }
.calc-icon-box {
    width: 46px; height: 46px;
    background: var(--grad-brand);
    border-radius: 14px;
    display: grid; place-items: center;
    color: #fff; font-size: 1.1rem;
    box-shadow: var(--shadow-glow-soft);
    flex-shrink: 0;
}
.calc-live {
    margin-inline-start: auto;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 5px 11px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}
.calc-card-body { position: relative; padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 14px; }

/* flow: link -> price -> shipping -> Tunisia -> DT */
.calc-flow {
    position: relative;
    background: linear-gradient(160deg, rgba(30, 99, 255, 0.05), rgba(6, 182, 212, 0.05));
    border: 1px solid rgba(30, 99, 255, 0.14);
    border-radius: 16px;
    padding: 13px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
body.dark .calc-flow { background: linear-gradient(160deg, rgba(61, 123, 255, 0.1), rgba(6, 182, 212, 0.07)); border-color: rgba(61, 123, 255, 0.25); }
.flow-caption { font-size: 0.7rem; font-weight: 700; color: var(--text-light); letter-spacing: 0.02em; padding: 0 3px 3px; }
.flow-step {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 7px 11px;
    position: relative;
    animation: flow-glow 3.6s ease-in-out infinite;
    animation-delay: var(--fd, 0s);
    opacity: 0.72;
}
.flow-step:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 24px;
    width: 2px; height: 8px;
    background: linear-gradient(var(--primary), var(--cyan));
    opacity: 0.55;
}
@keyframes flow-glow {
    0%, 30%, 100% { opacity: 0.68; border-color: var(--border); box-shadow: none; }
    12% { opacity: 1; border-color: rgba(30, 99, 255, 0.5); box-shadow: 0 0 0 3px rgba(30, 99, 255, 0.08); }
}
.flow-dot {
    width: 27px; height: 27px;
    background: var(--grad-brand);
    color: #fff;
    border-radius: 9px;
    display: grid; place-items: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}
.flow-label { font-size: 0.8rem; font-weight: 700; color: var(--text-main); }
.flow-value { font-size: 0.76rem; font-weight: 700; color: var(--text-muted); font-family: var(--font-mono); direction: ltr; }
.flow-final {
    background: linear-gradient(120deg, rgba(16, 185, 129, 0.12), rgba(6, 182, 212, 0.12));
    border-color: rgba(16, 185, 129, 0.4) !important;
    animation: none;
    opacity: 1;
}
.flow-final .flow-dot { background: var(--grad-emerald); }
.flow-final .flow-value { color: var(--accent); font-weight: 800; font-size: 0.84rem; }
.flow-final .flow-label { color: var(--accent-hover); }

.input-group { border-radius: 15px; background: var(--bg-elevated); }
.input-group input { min-height: 52px; font-size: 0.98rem; }
.input-group:focus-within {
    border-color: rgba(30, 99, 255, 0.6);
    box-shadow: 0 0 0 4px rgba(30, 99, 255, 0.12), var(--shadow-glow-soft);
}
.input-glow { animation: input-pulse 1.1s var(--ease-out) 2; }
@keyframes input-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(30, 99, 255, 0); }
    50% { box-shadow: 0 0 0 6px rgba(30, 99, 255, 0.22); }
}
.calc-trust { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; justify-content: center; gap: 8px; }
.calc-trust i { color: var(--accent); }

/* ---------- Trust cards (why TuniDrop) ---------- */
.trust-cards { gap: 20px; }
.trust-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s, border-color 0.4s;
}
.trust-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0; left: 0;
    height: 3px;
    background: var(--grad-brand);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.45s var(--ease-out);
}
.trust-card:hover::before { transform: scaleX(1); }
.trust-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(30, 99, 255, 0.35); }
.trust-card .icon-wrapper {
    width: 52px; height: 52px;
    background: var(--grad-brand-soft);
    border: 1px solid rgba(30, 99, 255, 0.2);
    color: var(--primary);
    border-radius: 15px;
    display: grid; place-items: center;
    font-size: 1.2rem;
    margin-bottom: 16px;
    transition: all 0.4s var(--ease-out);
}
.trust-card:hover .icon-wrapper { background: var(--grad-brand); color: #fff; transform: rotate(-6deg) scale(1.06); box-shadow: var(--shadow-glow-soft); }
.trust-card h3 { font-size: 1.06rem; font-weight: 800; margin-bottom: 9px; }
.trust-card p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 14px; }
.trust-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--accent-hover);
    background: var(--accent-soft);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 5px 12px;
    border-radius: 50px;
}

/* ---------- Story cards (honest testimonials) ---------- */
.story-grid { gap: 20px; }
.story-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s, border-color 0.4s;
}
.story-card::after {
    content: '';
    position: absolute;
    bottom: -40px; left: -40px;
    width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(30, 99, 255, 0.16), transparent 70%);
    filter: blur(12px);
    transition: transform 0.5s var(--ease-out);
}
.story-card:hover::after { transform: translate(14px, -14px) scale(1.25); }
.story-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(30, 99, 255, 0.35); }
.story-quote { font-size: 1.02rem; line-height: 1.8; font-weight: 600; color: var(--text-main); position: relative; z-index: 1; }
.story-quote i { color: var(--primary); opacity: 0.6; font-size: 0.9rem; }
.story-meta { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.story-avatar {
    width: 42px; height: 42px;
    background: var(--grad-brand);
    color: #fff;
    border-radius: 50%;
    display: grid; place-items: center;
    font-weight: 900;
    font-size: 0.95rem;
    box-shadow: var(--shadow-glow-soft);
}
.story-meta strong { display: block; font-size: 0.9rem; font-weight: 800; }
.story-meta span { font-size: 0.78rem; color: var(--text-muted); }
.story-note {
    font-size: 0.74rem;
    color: var(--text-light);
    background: var(--primary-soft);
    border: 1px dashed rgba(30, 99, 255, 0.3);
    border-radius: 11px;
    padding: 9px 12px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}
.story-note i { color: var(--primary); margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.faq-item:hover { border-color: rgba(30, 99, 255, 0.4); }
.faq-item.active { border-color: rgba(30, 99, 255, 0.55); box-shadow: var(--shadow-glow-soft); }
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 19px 21px;
    font-weight: 800;
    font-size: 0.99rem;
    text-align: start;
    transition: color 0.25s;
}
.faq-question:hover { color: var(--primary); }
.faq-question .faq-icon {
    width: 30px; height: 30px;
    flex-shrink: 0;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 9px;
    display: grid; place-items: center;
    transition: transform 0.4s var(--ease-out), background 0.3s, color 0.3s;
}
.faq-item.active .faq-question .faq-icon { transform: rotate(45deg); background: var(--grad-brand); color: #fff; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease-out); }
.faq-answer > div { padding: 0 21px 19px; color: var(--text-muted); line-height: 1.85; font-size: 0.93rem; }

/* ---------- Final CTA ---------- */
.cta-box {
    position: relative;
    background: linear-gradient(125deg, #0b1327 0%, #132352 55%, #16295f 100%);
    border: 1px solid rgba(30, 99, 255, 0.4);
    border-radius: var(--radius-xl);
    padding: clamp(34px, 6vw, 58px) clamp(24px, 5vw, 52px);
    text-align: center;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.cta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
    opacity: 0.55;
}
.cta-orb-1 { width: 280px; height: 280px; background: rgba(30, 99, 255, 0.55); top: -110px; right: -70px; animation: float 13s ease-in-out infinite; }
.cta-orb-2 { width: 220px; height: 220px; background: rgba(6, 182, 212, 0.4); bottom: -90px; left: -60px; animation: float 16s ease-in-out infinite reverse; }
.cta-box h2 { color: #fff; font-size: clamp(1.5rem, 4vw, 2.3rem); font-weight: 900; margin-bottom: 14px; position: relative; z-index: 1; }
.cta-box p { color: #b9c7ee; font-size: 1.02rem; line-height: 1.8; max-width: 560px; margin: 0 auto 28px; position: relative; z-index: 1; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; position: relative; z-index: 1; }

/* ---------- Product / result (price dominance) ---------- */
#result-container.result-enter {
    animation: result-in 0.55s var(--ease-out);
}
@keyframes result-in {
    from { opacity: 0; transform: translateY(26px); filter: blur(5px); }
    to { opacity: 1; transform: none; filter: blur(0); }
}
.calculation-box {
    background: linear-gradient(135deg, #0b1327 0%, #14224b 60%, #16295f 100%);
    border: 1px solid rgba(30, 99, 255, 0.45);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 4vw, 30px);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-glow-soft);
}
.calculation-box::before {
    content: '';
    position: absolute;
    top: -70px; left: -50px;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.3), transparent 65%);
    filter: blur(28px);
    pointer-events: none;
}
body.dark .calculation-box {
    background: linear-gradient(135deg, #0b1327 0%, #14224b 60%, #16295f 100%);
    border-color: rgba(30, 99, 255, 0.45);
}
.calculation-box .calc-label-box { color: #cfe0ff; font-weight: 800; font-size: 0.92rem; }
.calculation-box .calc-label-box i { color: var(--cyan); }
.calculation-box .calc-price-display { color: #fff; }
.calculation-box .calc-price-display .currency { color: var(--cyan); font-weight: 800; }
.calculation-box .price-breakdown { gap: 7px; margin-top: 14px; color: #b9c7ee; font-size: 0.86rem; }
.calculation-box .price-breakdown .bd-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    color: #b9c7ee;
    font-size: 0.87rem;
    font-weight: 600;
    transition: transform 0.3s var(--ease-out), border-color 0.3s, background 0.3s;
}
.calculation-box .price-breakdown .bd-row:hover {
    transform: translateX(-4px);
    border-color: rgba(6, 182, 212, 0.45);
    background: rgba(255, 255, 255, 0.08);
}
.calculation-box .price-breakdown .bd-row strong {
    color: #fff;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.93rem;
    direction: ltr;
}
.calculation-box .price-breakdown .bd-row:first-child strong {
    color: var(--cyan);
    text-shadow: 0 0 18px rgba(6, 182, 212, 0.5);
}
.calculation-box .price-breakdown .bd-row:nth-child(2) strong { color: #6ee7b7; }
.calculation-box .price-breakdown .bd-row:nth-child(3) strong { color: #cbd5e1; direction: rtl; }
.calculation-box .price-breakdown .bd-note {
    display: block;
    font-size: 0.74rem;
    color: #8ea3d6;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 8px 12px;
    margin-top: 3px;
}
.calculation-box .free-ship-badge {
    background: var(--grad-emerald);
    color: #fff;
    border: none;
    font-weight: 800;
    box-shadow: 0 8px 20px -8px rgba(16, 185, 129, 0.6);
    animation: cart-pop 0.5s var(--ease-out);
}
#p-price-tnd {
    font-size: clamp(1.7rem, 5vw, 2.4rem);
    font-weight: 700;
    background: linear-gradient(120deg, #fff, var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    direction: ltr;
    display: inline-block;
}

.product-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.product-image-wrap { overflow: hidden; position: relative; }
.product-image-wrap img { transition: transform 0.6s var(--ease-out); }
.product-image-wrap:hover img { transform: scale(1.06); }
.product-badge {
    position: absolute;
    top: 13px; right: 13px;
    background: var(--grad-brand);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 6px 13px;
    border-radius: 50px;
    box-shadow: var(--shadow-glow-soft);
    z-index: 2;
}
.variant-chip {
    border: 1.5px solid var(--border-strong);
    background: var(--bg-elevated);
    color: var(--text-muted);
    padding: 9px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.86rem;
    transition: all 0.25s var(--ease-out);
}
.variant-chip:hover { border-color: rgba(30, 99, 255, 0.5); color: var(--text-main); transform: translateY(-2px); }
.variant-chip.selected {
    background: var(--grad-brand);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 18px -8px rgba(30, 99, 255, 0.6);
    transform: translateY(-1px);
}
.shipping-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.07));
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 15px;
    padding: 16px 18px;
}
.shipping-box .ship-title { font-weight: 800; color: var(--accent-hover); font-size: 0.92rem; display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.shipping-box .ship-sub { font-size: 0.84rem; color: var(--text-muted); line-height: 1.65; }
.info-box {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 16px 18px;
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-muted);
}
.specs-table { width: 100%; border-collapse: collapse; font-size: 0.87rem; }
.specs-table tr { border-bottom: 1px dashed var(--border); }
.specs-table tr:last-child { border-bottom: none; }
.specs-table th { text-align: start; padding: 10px 6px; color: var(--text-light); font-weight: 700; width: 42%; }
.specs-table td { padding: 10px 6px; color: var(--text-main); font-weight: 600; }
.desc-box {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 17px 19px;
    font-size: 0.9rem;
    line-height: 1.85;
    color: var(--text-muted);
    max-height: 300px;
    overflow-y: auto;
}

/* ---------- Product cards (featured / search) ---------- */
.s-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s, border-color 0.4s;
}
.s-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(30, 99, 255, 0.4); }
.s-card-img { position: relative; overflow: hidden; aspect-ratio: 1 / 1; background: var(--bg-elevated); }
.s-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s var(--ease-out); }
.s-card:hover .s-card-img img { transform: scale(1.08); }
.s-card-body { padding: 15px 16px 17px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.s-card-title { font-size: 0.9rem; font-weight: 700; line-height: 1.55; color: var(--text-main); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.s-card-price { font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem; color: var(--primary); direction: ltr; text-align: start; }
.s-card-price small { font-size: 0.7em; color: var(--text-muted); }
.s-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-top: auto; }
.s-card .btn-mini {
    background: var(--grad-brand);
    color: #fff;
    border-radius: 11px;
    padding: 8px 15px;
    font-weight: 800;
    font-size: 0.8rem;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.s-card .btn-mini:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -8px rgba(30, 99, 255, 0.6); }

/* ---------- Order form ---------- */
.order-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 4vw, 30px);
    box-shadow: var(--shadow-md);
}
.form-row { display: grid; gap: 14px; }
.form-row.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-field label { font-size: 0.85rem; font-weight: 800; color: var(--text-muted); display: block; margin-bottom: 7px; }
.form-field input, .form-field select, .form-field textarea {
    width: 100%;
    min-height: 50px;
    background: var(--bg-elevated);
    border: 1.5px solid var(--border);
    border-radius: 13px;
    padding: 12px 15px;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: border-color 0.25s, box-shadow 0.25s;
}
.form-field textarea { min-height: 96px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    border-color: rgba(30, 99, 255, 0.6);
    box-shadow: 0 0 0 4px rgba(30, 99, 255, 0.12);
    outline: none;
}
.form-hint { font-size: 0.78rem; color: var(--text-light); margin-top: 6px; display: flex; gap: 7px; align-items: center; }
.form-hint i { color: var(--accent); }

/* ---------- Cart drawer ---------- */
.cart-drawer {
    background: var(--bg-card);
    border-inline-start: 1px solid var(--border);
    box-shadow: -20px 0 60px -20px rgba(11, 19, 39, 0.3);
}
body.dark .cart-drawer { box-shadow: -20px 0 60px -20px rgba(0, 0, 0, 0.6); }
.cart-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    gap: 12px;
    transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.cart-item:hover { border-color: rgba(30, 99, 255, 0.4); transform: translateX(-3px); }
.cart-item-img { width: 58px; height: 58px; border-radius: 11px; object-fit: cover; flex-shrink: 0; background: var(--bg-main); }
.cart-item-price { font-family: var(--font-mono); font-weight: 700; color: var(--primary); direction: ltr; }
.cart-remove {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    width: 30px; height: 30px;
    border-radius: 9px;
    display: grid; place-items: center;
    transition: all 0.25s;
    flex-shrink: 0;
}
.cart-remove:hover { background: rgba(239, 68, 68, 0.2); transform: rotate(8deg); }
.cart-total-bar {
    background: linear-gradient(120deg, rgba(30, 99, 255, 0.14), rgba(6, 182, 212, 0.1));
    border: 1px solid rgba(30, 99, 255, 0.35);
    border-radius: 15px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 800;
}
.cart-total-bar .ct-val { font-family: var(--font-mono); color: var(--primary); direction: ltr; }

/* ---------- Footer ---------- */
.site-footer {
    background: linear-gradient(180deg, var(--bg-card), #0b1327);
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
body.dark .site-footer { background: linear-gradient(180deg, var(--bg-card), #05090f); }
.site-footer::before {
    content: '';
    position: absolute;
    top: 0; right: 10%; left: 10%;
    height: 2.5px;
    background: var(--grad-brand);
    opacity: 0.8;
}
.footer-brand .brand-icon { background: var(--grad-brand); color: #fff; border-radius: 13px; }
.footer-col h4 { font-size: 0.95rem; font-weight: 800; margin-bottom: 15px; color: var(--text-main); }
.footer-col a { color: var(--text-muted); transition: color 0.25s, transform 0.25s; display: inline-block; }
.footer-col a:hover { color: var(--primary); transform: translateX(-4px); }
.footer-note {
    font-size: 0.8rem;
    color: var(--text-light);
    background: color-mix(in srgb, var(--bg-main) 60%, transparent);
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 13px 16px;
    line-height: 1.75;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.footer-note i { color: var(--cyan); margin-top: 3px; }
.footer-bottom { border-top: 1px solid var(--border); font-size: 0.82rem; color: var(--text-light); }

/* ---------- Float buttons ---------- */
.wa-float {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    box-shadow: 0 14px 34px -10px rgba(37, 211, 102, 0.55);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.wa-float:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 20px 42px -10px rgba(37, 211, 102, 0.65); }
.wa-float::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid rgba(37, 211, 102, 0.6);
    animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(1.55); opacity: 0; } }
.back-top {
    background: var(--grad-brand);
    color: #fff;
    box-shadow: var(--shadow-glow-soft);
    transition: transform 0.35s var(--ease-out), opacity 0.3s;
}
.back-top:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); }

/* ---------- Toast ---------- */
.toast {
    background: color-mix(in srgb, var(--bg-card) 92%, transparent);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-strong);
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    animation: toast-in 0.45s var(--ease-out);
}
@keyframes toast-in { from { opacity: 0; transform: translateY(22px) scale(0.96); } to { opacity: 1; transform: none; } }
.toast.removing { animation: toast-out 0.35s var(--ease-out) forwards; }
@keyframes toast-out { to { opacity: 0; transform: translateY(14px) scale(0.97); } }

/* ---------- Skeleton loading ---------- */
.skeleton {
    background: linear-gradient(90deg, var(--bg-elevated) 25%, color-mix(in srgb, var(--bg-elevated) 60%, var(--border)) 50%, var(--bg-elevated) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s linear infinite;
    border-radius: 11px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* =========================================================
   RESPONSIVE — MOBILE FIRST (320 / 360 / 375 / 390 / 414 / 430)
   ========================================================= */
@media (max-width: 860px) {
    .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .step-line { display: none; }
    .process-grid-3 { grid-template-columns: 1fr; }
    .showcase-panel { padding: 24px 18px; }
    .showcase-badge { position: static; margin-bottom: 14px; }
    .form-row.cols-2 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .hero { padding: 88px 0 56px; }
    .hero-copy h1 { font-size: clamp(2.15rem, 9vw, 2.75rem); }
    .hero-sub { font-size: 1rem; margin-bottom: 26px; }
    .hero-cta { flex-direction: column; gap: 12px; }
    .hero-cta .btn-primary, .hero-cta .btn-ghost, .hero-cta .btn-light { width: 100%; justify-content: center; }
    .calc-header { flex-wrap: wrap; }
    .calc-live { margin-inline-start: 0; }
    .flow-label { font-size: 0.76rem; }
    .flow-value { font-size: 0.72rem; }
    .showcase-grid { gap: 16px; }
    .calculation-box .price-breakdown .bd-row { flex-direction: column; align-items: flex-start; gap: 4px; }
    .cta-actions { flex-direction: column; align-items: stretch; }
    .cta-actions .btn-light, .cta-actions .btn-ghost { justify-content: center; }
    .trust-strip { grid-template-columns: 1fr; gap: 9px; padding: 13px; }
    .ts-item { padding: 9px 10px; }
    .story-card, .trust-card { padding: 21px 18px; }
    .header-inner { height: 62px; }
    .site-header.scrolled .header-inner { height: 58px; }
    .btn-header { padding: 8px 14px; font-size: 0.82rem; min-height: 40px; }
    .brand-sub { display: none; }
}

@media (max-width: 430px) {
    .calc-header, .calc-card-body { padding-inline: 16px; }
    .calc-icon-box { width: 40px; height: 40px; border-radius: 12px; font-size: 0.95rem; }
    .calc-header h2 { font-size: 1.05rem; }
    .calculation-box { padding: 17px 15px; }
    .calculation-box .price-breakdown .bd-row strong { font-size: 0.88rem; }
    .s-card-body { padding: 13px 13px 15px; }
    .specs-table th { width: 46%; font-size: 0.8rem; }
    .specs-table td { font-size: 0.82rem; }
    .flow-step { padding: 6px 9px; gap: 8px; }
    .flow-dot { width: 24px; height: 24px; font-size: 0.64rem; }
}

@media (max-width: 360px) {
    .hero-copy h1 { font-size: clamp(1.95rem, 9vw, 2.35rem); }
    .premium-badge { font-size: 0.78rem; padding: 8px 14px; }
    .hero-features li { font-size: 0.85rem; padding: 10px 14px; }
    .btn-lg, .btn-primary, .btn-ghost, .btn-light { padding-inline: 18px; font-size: 0.92rem; }
    .showcase-total .st-value { font-size: 1.35rem; }
    .cta-box { padding: 28px 18px; }
}

@media (max-width: 320px) {
    .container { padding-inline: 14px; }
    .hero-copy h1 { font-size: 1.85rem; }
    .ts-icon { width: 38px; height: 38px; font-size: 0.88rem; }
    .s-card-title { font-size: 0.84rem; }
    .faq-question { font-size: 0.88rem; padding: 16px 16px; }
    .faq-answer > div { padding-inline: 16px; font-size: 0.87rem; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    body.js-motion .hero-anim, body.js-motion .hero-anim-side { opacity: 1; transform: none; }
    [data-animate] { opacity: 1 !important; transform: none !important; filter: none !important; }
    #hero-particles { display: none; }
}

/* =========================================================
   SITE LOGO (logo.png)
   ========================================================= */
.brand-icon { overflow: hidden; padding: 0; }
.brand-icon .brand-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}
.brand-icon:has(.brand-logo) {
    background: none;
    box-shadow: 0 6px 18px -6px rgba(11, 19, 39, 0.5);
}
body.dark .brand-icon:has(.brand-logo) { box-shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.7); }
.brand:hover .brand-icon:has(.brand-logo) { box-shadow: var(--shadow-glow); }
.brand-logo-inline {
    height: 24px;
    width: 24px;
    object-fit: cover;
    border-radius: 7px;
    vertical-align: -6px;
    margin-inline-end: 6px;
    box-shadow: 0 3px 9px -3px rgba(11, 19, 39, 0.5);
}
h1 .brand-logo-inline { height: 30px; width: 30px; border-radius: 9px; vertical-align: -7px; }


/* ============ Loading redesign (animated stages) ============ */
.loading-state {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 14px;
    padding: 16px 16px 14px;
    margin-top: 20px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.09), rgba(168, 85, 247, 0.08));
    border: 1px solid rgba(37, 99, 235, 0.20);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 32px -20px rgba(37, 99, 235, 0.65);
    animation: loaderIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.loading-state::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.55) 50%, transparent 68%);
    transform: translateX(-130%);
    animation: loaderSheen 2.6s ease-in-out infinite;
    pointer-events: none;
}
.loading-state.is-done {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
}
.loader-visual {
    position: relative;
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    align-self: center;
    z-index: 1;
}
.loader-orbit {
    position: absolute;
    inset: 0;
    animation: orbitSpin 2.6s linear infinite;
}
.loader-orbit span {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary, #2563eb);
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.65);
}
.loader-orbit span:nth-child(1) { top: -4px; left: 50%; margin-left: -5px; }
.loader-orbit span:nth-child(2) { bottom: 0; right: 0; background: #a855f7; box-shadow: 0 0 12px rgba(168, 85, 247, 0.65); }
.loader-orbit span:nth-child(3) { bottom: 0; left: 0; background: #f59e0b; box-shadow: 0 0 12px rgba(245, 158, 11, 0.65); }
.loader-core {
    position: absolute;
    inset: 11px;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    color: var(--primary, #2563eb);
    font-size: 1.1rem;
    box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.16);
    animation: corePulse 1.6s ease-in-out infinite;
}
.loading-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 0;
    z-index: 1;
}
.loading-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.loading-title {
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--primary, #2563eb);
    min-height: 1.3em;
    transition: opacity 0.25s ease;
}
.loading-time {
    flex: none;
    font-size: 0.72rem;
    font-weight: 800;
    direction: ltr;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.13);
    color: var(--primary, #2563eb);
    animation: timePulse 1.2s ease-in-out infinite;
}
.loading-steps {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
}
.loading-steps .step {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(37, 99, 235, 0.14);
    color: #64748b;
    opacity: 0.55;
    transform: translateY(6px);
    animation: stepIn 0.4s ease both;
    transition: all 0.35s ease;
}
.loading-steps .step:nth-child(1) { animation-delay: 0.05s; }
.loading-steps .step:nth-child(2) { animation-delay: 0.15s; }
.loading-steps .step:nth-child(3) { animation-delay: 0.25s; }
.loading-steps .step:nth-child(4) { animation-delay: 0.35s; }
.loading-steps .step.active {
    opacity: 1;
    transform: none;
    color: var(--primary, #2563eb);
    border-color: rgba(37, 99, 235, 0.55);
    background: #fff;
    box-shadow: 0 8px 18px -12px rgba(37, 99, 235, 0.9);
}
.loading-steps .step.active i { animation: stepBounce 1s ease-in-out infinite; }
.loading-steps .step.done {
    opacity: 1;
    transform: none;
    color: #16a34a;
    border-color: rgba(22, 163, 74, 0.35);
    background: rgba(220, 252, 231, 0.85);
}
.loading-steps .step.done i { display: none; }
.loading-steps .step.done::after {
    content: '\2713';
    font-weight: 800;
    animation: stepCheck 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.loading-bar {
    height: 7px;
    background: rgba(37, 99, 235, 0.13);
    border-radius: 999px;
    margin-top: 0;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.08);
}
.loading-bar-fill {
    width: 8%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #7c3aed, #f59e0b, #2563eb);
    background-size: 300% 100%;
    animation: barFlow 1.5s linear infinite !important;
    transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.45);
}
.loading-hint {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.73rem;
    font-weight: 600;
    color: #64748b;
    animation: hintFade 2.2s ease-in-out infinite;
}
.loading-hint i { color: #16a34a; }

@keyframes loaderIn {
    from { opacity: 0; transform: translateY(14px) scale(0.97); }
    to { opacity: 1; transform: none; }
}
@keyframes loaderSheen {
    0% { transform: translateX(-130%); }
    55%, 100% { transform: translateX(130%); }
}
@keyframes orbitSpin {
    to { transform: rotate(360deg); }
}
@keyframes corePulse {
    0%, 100% { transform: scale(1); box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.16), 0 0 0 0 rgba(37, 99, 235, 0.25); }
    50% { transform: scale(1.07); box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.16), 0 0 0 9px rgba(37, 99, 235, 0); }
}
@keyframes timePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}
@keyframes stepIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}
@keyframes stepBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
@keyframes stepCheck {
    from { transform: scale(0.3); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
@keyframes barFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}
@keyframes hintFade {
    0%, 100% { opacity: 0.65; }
    50% { opacity: 1; }
}
@keyframes revealUp {
    from { opacity: 0; transform: translateY(28px) scale(0.985); }
    to { opacity: 1; transform: none; }
}
.result-container.is-enter { animation: revealUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
.result-container.is-enter .success-alert { animation: revealUp 0.55s 0.06s cubic-bezier(0.22, 1, 0.36, 1) both; }
.result-container.is-enter .product-card { animation: revealUp 0.6s 0.14s cubic-bezier(0.22, 1, 0.36, 1) both; }

@media (prefers-reduced-motion: reduce) {
    .loading-state, .loading-state::after, .loader-orbit, .loader-core,
    .loading-steps .step, .loading-bar-fill, .loading-hint, .loading-time,
    .result-container.is-enter, .result-container.is-enter .success-alert,
    .result-container.is-enter .product-card {
        animation: none !important;
        transition: none !important;
    }
}

/* ---------- متابعة الأسعار (Price watch) + شارة واتساب ---------- */
.watch-fab {
    position: fixed;
    bottom: calc(28px + 58px + 14px);
    left: 28px;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: var(--bg-card, #fff);
    color: #f59e0b;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.22);
    z-index: 200;
    transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s;
}
.watch-fab:hover { transform: scale(1.09); box-shadow: 0 8px 26px rgba(15, 23, 42, 0.3); }
.watch-fab.has-drop { color: #ef4444; }
.watch-fab.ring { animation: bellRing 0.6s ease; }
@keyframes bellRing {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(-15deg); }
    40% { transform: rotate(13deg); }
    60% { transform: rotate(-8deg); }
    80% { transform: rotate(5deg); }
}
.watch-fab-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 99px;
    background: #ef4444;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
}
.watch-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: watchFade 0.2s ease;
}
.watch-modal[hidden] { display: none; }
@keyframes watchFade { from { opacity: 0; } }
.watch-panel {
    background: var(--bg-card, #fff);
    color: var(--text, #0f172a);
    border-radius: 18px;
    width: min(450px, 100%);
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
    animation: watchPop 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes watchPop { from { opacity: 0; transform: translateY(16px) scale(0.97); } }
.watch-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border, #e2e8f0);
}
.watch-head h3 { font-size: 1rem; margin: 0; display: flex; align-items: center; gap: 8px; }
.watch-head h3 i { color: #f59e0b; }
.watch-close {
    background: none;
    border: 0;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--text-muted, #64748b);
    padding: 6px;
    line-height: 1;
}
.watch-sub {
    font-size: 0.8rem;
    color: var(--text-muted, #64748b);
    padding: 10px 16px 0;
    margin: 0;
}
.watch-list {
    overflow-y: auto;
    padding: 10px 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.watch-item {
    display: flex;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--border, #e2e8f0);
    background: var(--bg, #f8fafc);
    border-radius: 14px;
    padding: 8px 10px;
    position: relative;
    animation: watchPop 0.3s ease both;
}
.watch-item img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 10px;
    background: #e2e8f0;
    flex-shrink: 0;
}
.wi-main { flex: 1; min-width: 0; }
.wi-title {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.wi-price { font-size: 0.8rem; color: #b45309; font-weight: 800; margin-top: 2px; }
.wi-price s { color: #94a3b8; font-weight: 600; margin-inline-start: 5px; }
.wi-meta { font-size: 0.7rem; color: var(--text-muted, #94a3b8); margin-top: 2px; }
.watch-drop {
    display: inline-block;
    font-size: 0.68rem;
    background: #fee2e2;
    color: #b91c1c;
    font-weight: 800;
    border-radius: 99px;
    padding: 3px 8px;
    margin-top: 4px;
    animation: dropPop 0.4s ease;
}
@keyframes dropPop { from { transform: scale(0.5); opacity: 0; } }
.wi-acts { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.wi-acts button, .wi-acts a {
    border: 0;
    background: none;
    cursor: pointer;
    color: var(--text-muted, #94a3b8);
    font-size: 0.95rem;
    padding: 3px 6px;
    text-decoration: none;
    line-height: 1;
}
.wi-acts a { color: #16a34a; }
.wi-acts button:hover { color: #ef4444; }
.watch-empty {
    text-align: center;
    color: var(--text-muted, #64748b);
    padding: 34px 16px;
    font-weight: 700;
    font-size: 0.86rem;
    line-height: 1.7;
}
.watch-empty[hidden] { display: none; }
.watch-empty i { display: block; font-size: 2rem; margin-bottom: 8px; opacity: 0.45; }
.share-btn.watch-btn.on {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #fff;
}
.whatsapp-float .wa-float-label {
    position: absolute;
    left: 64px;
    top: 50%;
    transform: translateY(-50%) translateX(-6px);
    background: #111827;
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 99px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
}
.whatsapp-float:hover .wa-float-label,
.whatsapp-float:focus .wa-float-label { opacity: 1; transform: translateY(-50%) translateX(0); }
@media (max-width: 760px) {
    .watch-fab {
        width: 46px;
        height: 46px;
        font-size: 1.1rem;
        bottom: calc(20px + 54px + 12px);
        left: calc(16px + env(safe-area-inset-left, 0px));
    }
    .whatsapp-float .wa-float-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .watch-fab, .watch-modal, .watch-panel, .watch-item, .watch-drop { animation: none !important; }
}
