/* ╔═══════════════════════════════════════════════════════════════╗
   ║         DesignatorX — Editorial Bold Identity                ║
   ║   كريمي • أسود • كورال • Tajawal • علامة X كهوية             ║
   ╚═══════════════════════════════════════════════════════════════╝ */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { overflow-x: hidden; max-width: 100%; }

:root {
    /* ━━━ Brand Identity ━━━ */
    --x-cream:        #FFF8F0;      /* خلفية كريمي دافئة */
    --x-cream-deep:   #FAEFE0;      /* كريمي أعمق */
    --x-bg-soft:      #FAF4EC;      /* خلفية بطاقات */

    --x-ink:          #0A0A0A;      /* أسود حاد */
    --x-ink-soft:     #2A2A2A;      /* أسود ناعم */
    --x-text:         #1A1A1A;      /* نص */
    --x-text-mute:    #6B6B6B;      /* نص ثانوي */
    --x-line:         #E8DFD0;      /* خط فاصل كريمي */

    --x-coral:        #FF4D2E;      /* كورال ناري - اللون الرئيسي */
    --x-coral-dark:   #E63A1C;      /* كورال أعمق */
    --x-mint:         #00C896;      /* ميني - ثانوي */
    --x-mustard:      #FFB627;      /* خردلي - تأكيد */
    --x-rose:         #FF99A8;      /* وردي ناعم */

    /* ━━━ Spacing & Radii ━━━ */
    --r-xs: 6px;
    --r-sm: 10px;
    --r:    16px;
    --r-lg: 24px;
    --r-xl: 32px;
    --r-pill: 999px;

    /* ━━━ Shadows ━━━ */
    --shadow-sm:  0 1px 2px rgba(10,10,10,0.04);
    --shadow:     0 4px 18px rgba(10,10,10,0.06);
    --shadow-lg:  0 20px 40px -10px rgba(10,10,10,0.15);
    --shadow-brand: 0 12px 30px -8px rgba(255, 77, 46, 0.4);

    /* ━━━ Easing ━━━ */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--x-cream);
    color: var(--x-text);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--x-coral); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--x-coral-dark); }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 24px 18px;
}
@media (min-width: 768px) { .container { padding: 32px 30px; } }
@media (min-width: 1200px) { .container { padding: 40px 40px; } }

.muted { color: var(--x-text-mute); }
.small { font-size: 0.85em; }
.center { text-align: center; }

/* ╔══════ HEADER ══════╗ */
.site-header {
    background: var(--x-cream);
    border-bottom: 2px solid var(--x-ink);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Logo with X mark */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25em;
    font-weight: 900;
    color: var(--x-ink);
    letter-spacing: -0.5px;
    flex-shrink: 0;
}
.logo::before {
    content: "✕";
    background: var(--x-ink);
    color: var(--x-coral);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-xs);
    font-size: 0.95em;
    font-weight: 900;
    transition: transform 0.3s var(--ease-spring);
}
.logo:hover { color: var(--x-ink); }
.logo:hover::before { transform: rotate(90deg); background: var(--x-coral); color: var(--x-cream); }

.search-form {
    flex: 1;
    min-width: 0;
    display: flex;
    max-width: 480px;
    position: relative;
}
.search-form input {
    flex: 1;
    border: 2px solid var(--x-ink);
    background: var(--x-cream);
    color: var(--x-ink);
    padding: 10px 18px 10px 46px;
    border-radius: var(--r-pill);
    font-size: 0.95em;
    font-family: inherit;
    font-weight: 500;
    min-width: 0;
    transition: all 0.2s var(--ease);
}
.search-form input:focus {
    outline: none;
    background: white;
    box-shadow: 4px 4px 0 var(--x-ink);
    transform: translate(-2px, -2px);
}
.search-form input::placeholder { color: var(--x-text-mute); }
.search-form button {
    position: absolute;
    inset-inline-start: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--x-ink);
    color: var(--x-coral);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--ease);
}
.search-form button:hover { background: var(--x-coral); color: var(--x-cream); }

.header-nav { display: none; gap: 18px; align-items: center; }
@media (min-width: 768px) { .header-nav { display: flex; } }
.header-nav a {
    color: var(--x-ink-soft);
    font-weight: 700;
    font-size: 0.92em;
    position: relative;
}
.header-nav a::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: -4px;
    height: 2px;
    background: var(--x-coral);
    transform: scaleX(0);
    transform-origin: start;
    transition: transform 0.25s var(--ease);
}
.header-nav a:hover { color: var(--x-ink); }
.header-nav a:hover::after { transform: scaleX(1); }

.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--x-ink);
    color: var(--x-cream);
    border-radius: 50%;
    font-size: 1.15em;
    flex-shrink: 0;
    transition: all 0.2s var(--ease);
}
.cart-link:hover {
    background: var(--x-coral);
    color: var(--x-cream);
    transform: rotate(-10deg) scale(1.05);
}
.cart-badge {
    position: absolute;
    top: -4px;
    inset-inline-start: -4px;
    background: var(--x-coral);
    color: var(--x-cream);
    font-size: 0.7em;
    font-weight: 900;
    min-width: 20px;
    height: 20px;
    border-radius: var(--r-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 2px solid var(--x-cream);
}

.wa-link {
    background: #25d366;
    color: white !important;
    padding: 9px 14px;
    border-radius: var(--r-pill);
    font-weight: 700;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    font-size: 0.9em;
    border: 2px solid var(--x-ink);
    transition: all 0.2s var(--ease);
}
.wa-link:hover { color: white !important; transform: translateY(-2px); box-shadow: 4px 4px 0 var(--x-ink); }
.wa-text { display: none; }
.wa-icon { font-size: 1.1em; }
@media (min-width: 768px) {
    .wa-text { display: inline; }
    .wa-icon { display: none; }
}

/* Categories pill bar */
.cats-bar {
    background: var(--x-ink);
    color: var(--x-cream);
    border-bottom: 2px solid var(--x-ink);
    overflow: hidden;
}
.cats-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 10px 18px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.cats-inner::-webkit-scrollbar { display: none; }
.cats-inner a {
    color: var(--x-cream);
    white-space: nowrap;
    padding: 7px 16px;
    border-radius: var(--r-pill);
    font-weight: 700;
    font-size: 0.88em;
    transition: all 0.15s var(--ease);
}
.cats-inner a:hover { background: var(--x-coral); color: var(--x-cream); }

/* ╔══════ PROMO STRIP ══════╗ */
.promo-strip {
    background: var(--x-coral);
    color: var(--x-cream);
    padding: 11px 0;
    overflow: hidden;
    border-bottom: 2px solid var(--x-ink);
}
.marquee { overflow: hidden; }
.marquee-track {
    display: inline-flex;
    gap: 30px;
    white-space: nowrap;
    animation: marquee 35s linear infinite;
    font-size: 0.92em;
    font-weight: 700;
}
.marquee-track span:nth-child(even) { opacity: 0.6; }
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

/* ╔══════ EDITORIAL HERO ══════╗ */
.hero-pro {
    background: var(--x-cream);
    color: var(--x-ink);
    padding: 50px 0 30px;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid var(--x-ink);
}
.hero-bg, .hero-orb { display: none; } /* keep legacy class but hide */

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}
@media (min-width: 900px) {
    .hero-grid { grid-template-columns: 1.4fr 1fr; gap: 50px; padding: 30px 0; }
}

.hero-main-card {
    background: transparent;
    backdrop-filter: none;
    border: none;
    padding: 0;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--x-ink);
    color: var(--x-coral);
    padding: 6px 16px;
    border-radius: var(--r-pill);
    font-size: 0.85em;
    font-weight: 900;
    border: none;
    margin-bottom: 24px;
    letter-spacing: 1px;
}
.hero-tag::before { content: "✕"; }

.hero-title {
    font-size: 2.8em;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin-bottom: 22px;
    color: var(--x-ink);
}
@media (min-width: 768px) { .hero-title { font-size: 4.2em; } }
@media (min-width: 1200px) { .hero-title { font-size: 5.5em; } }

.grad-text {
    color: var(--x-coral);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: currentColor;
    position: relative;
    display: inline-block;
}
.grad-text::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 4%;
    height: 14%;
    background: var(--x-mustard);
    z-index: -1;
    opacity: 0.5;
}

.hero-desc {
    font-size: 1.1em;
    color: var(--x-text-mute);
    margin-bottom: 32px;
    max-width: 520px;
    line-height: 1.7;
    font-weight: 500;
}
@media (min-width: 768px) { .hero-desc { font-size: 1.2em; } }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-ghost-light {
    background: transparent;
    color: var(--x-ink);
    border: 2px solid var(--x-ink);
}
.btn-ghost-light:hover { background: var(--x-ink); color: var(--x-cream); }

/* Side feature blocks — Editorial style instead of bento */
.hero-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.bento {
    background: var(--x-bg-soft);
    border: 2px solid var(--x-ink);
    border-radius: var(--r);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-height: 140px;
    transition: all 0.25s var(--ease-spring);
    color: var(--x-ink);
}
.bento:hover {
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0 var(--x-ink);
}
.bento-stat {
    background: var(--x-coral);
    color: var(--x-cream);
    border-color: var(--x-ink);
}
.bento-num {
    font-size: 2.6em;
    font-weight: 900;
    color: currentColor;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: currentColor;
    line-height: 1;
    letter-spacing: -2px;
}
.bento-label {
    color: currentColor;
    opacity: 0.85;
    font-size: 0.9em;
    font-weight: 700;
}
.bento-feature .bento-icon {
    font-size: 2.2em;
    margin-bottom: 6px;
}
.bento-feature .bento-text {
    font-weight: 900;
    line-height: 1.3;
    color: var(--x-ink);
}
.bento-feature.alt {
    background: var(--x-mint);
    color: var(--x-ink);
}
.bento-feature.alt .bento-text { color: var(--x-ink); }
.bento-rating {
    grid-column: span 2;
    align-items: center;
    text-align: center;
    background: var(--x-mustard);
    color: var(--x-ink);
    min-height: auto;
    padding: 16px;
}
.stars {
    color: var(--x-ink);
    font-size: 1.4em;
    letter-spacing: 3px;
}

/* ╔══════ BUTTONS ══════╗ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid var(--x-ink);
    padding: 12px 24px;
    border-radius: var(--r-pill);
    font-size: 0.95em;
    font-weight: 900;
    font-family: inherit;
    cursor: pointer;
    color: var(--x-cream);
    background: var(--x-ink);
    transition: all 0.2s var(--ease);
    text-align: center;
    letter-spacing: 0.3px;
}
.btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--x-ink);
    color: var(--x-cream);
}
.btn:active { transform: translate(0, 0); box-shadow: none; }
.btn.big { padding: 14px 30px; font-size: 1.02em; }
.btn.block { display: flex; width: 100%; }
.btn-primary { background: var(--x-coral); border-color: var(--x-ink); color: var(--x-cream); }
.btn-accent  { background: var(--x-coral); border-color: var(--x-ink); color: var(--x-cream); }
.btn-success { background: var(--x-mint); color: var(--x-ink); }
.btn-warning { background: var(--x-mustard); color: var(--x-ink); }
.btn-info    { background: var(--x-ink); color: var(--x-cream); }
.btn-ghost {
    background: transparent;
    color: var(--x-ink);
}
.btn-ghost:hover { background: var(--x-ink); color: var(--x-cream); }

.btn-mini {
    background: var(--x-ink);
    color: var(--x-cream) !important;
    padding: 6px 14px;
    border-radius: var(--r-pill);
    font-size: 0.85em;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    transition: opacity 0.15s;
}
.btn-mini:hover { background: var(--x-coral); }
.btn-delete { background: var(--x-coral); }

/* ╔══════ SECTION HEADS ══════╗ */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 50px 0 24px;
    gap: 16px;
    flex-wrap: wrap;
}
.section-head h2 {
    font-size: 1.7em;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--x-ink);
    position: relative;
    padding-inline-start: 22px;
}
.section-head h2::before {
    content: "✕";
    position: absolute;
    inset-inline-start: 0;
    color: var(--x-coral);
    font-size: 0.7em;
    top: 14%;
}
@media (min-width: 768px) { .section-head h2 { font-size: 2.2em; } }
.see-all {
    color: var(--x-ink);
    font-weight: 900;
    font-size: 0.95em;
    border-bottom: 2px solid var(--x-coral);
    padding-bottom: 2px;
}
.see-all:hover { color: var(--x-coral); }

/* ╔══════ PRODUCT GRID ══════╗ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; } }

.product-card {
    background: var(--x-cream);
    border: 2px solid var(--x-ink);
    border-radius: var(--r);
    overflow: hidden;
    transition: all 0.25s var(--ease);
    color: var(--x-ink);
    position: relative;
    box-shadow: 4px 4px 0 var(--x-ink);
}
.product-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--x-coral);
    color: var(--x-ink);
}
.product-card-link {
    color: var(--x-ink);
    display: block;
}
.product-card-link:hover { color: var(--x-ink); }
.badge-discount {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    background: var(--x-ink);
    color: var(--x-coral);
    padding: 5px 12px;
    border-radius: var(--r-pill);
    font-size: 0.78em;
    font-weight: 900;
    z-index: 2;
    border: none;
}
.badge-discount.inline {
    position: static;
    display: inline-block;
    margin-inline-start: 10px;
    background: var(--x-coral);
    color: var(--x-cream);
    font-size: 0.85em;
}
.product-img {
    aspect-ratio: 1;
    background: var(--x-bg-soft);
    overflow: hidden;
    position: relative;
    border-bottom: 2px solid var(--x-ink);
}
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s var(--ease);
}
.product-card:hover .product-img img { transform: scale(1.08); }
.img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    color: var(--x-text-mute);
}
.img-placeholder.big { font-size: 6em; }
.product-info { padding: 14px; }
.product-info h3 {
    font-size: 0.95em;
    margin-bottom: 8px;
    line-height: 1.4;
    font-weight: 700;
    color: var(--x-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}
@media (min-width: 768px) { .product-info h3 { font-size: 1.02em; } }
.prices { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.price {
    color: var(--x-ink);
    font-size: 1.18em;
    font-weight: 900;
    letter-spacing: -0.5px;
}
.price small { color: var(--x-text-mute); font-size: 0.65em; font-weight: 700; }
.price-old {
    color: var(--x-text-mute);
    text-decoration: line-through;
    font-size: 0.88em;
}
.card-buy-btn {
    display: block;
    background: var(--x-coral);
    color: var(--x-cream) !important;
    text-align: center;
    padding: 11px;
    font-weight: 900;
    font-size: 0.92em;
    border-top: 2px solid var(--x-ink);
    transition: background 0.2s var(--ease);
    letter-spacing: 0.5px;
}
.card-buy-btn:hover { background: var(--x-ink); color: var(--x-cream) !important; }

/* Overlay CTA يظهر عند hover على الصورة (في وضع Affiliate) */
.card-hover-cta {
    position: absolute;
    inset: 0;
    background: rgba(255, 77, 46, 0.92);
    color: var(--x-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1em;
    opacity: 0;
    transition: opacity 0.25s var(--ease);
    z-index: 1;
}
.product-card:hover .card-hover-cta { opacity: 1; }
/* على الجوال: ما يحتاج hover، نخليه يظهر دائماً بشكل خفيف */
@media (max-width: 768px) {
    .card-hover-cta {
        position: static;
        inset: auto;
        background: var(--x-coral);
        padding: 8px;
        opacity: 1;
        font-size: 0.85em;
    }
}

/* ╔══════ FEATURES TILES ══════╗ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 40px 0;
}
@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.feature-tile {
    background: var(--x-cream);
    padding: 26px 20px;
    border-radius: var(--r);
    border: 2px solid var(--x-ink);
    text-align: center;
    transition: all 0.25s var(--ease);
    position: relative;
    color: var(--x-ink);
}
.feature-tile:hover {
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0 var(--x-coral);
    background: var(--x-cream);
}
.feature-tile::before { display: none; }
.feature-icon-wrap {
    width: 60px;
    height: 60px;
    background: var(--x-mustard);
    border: 2px solid var(--x-ink);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    margin: 0 auto 14px;
    transition: transform 0.3s var(--ease-spring);
}
.feature-tile:hover .feature-icon-wrap { transform: rotate(8deg) scale(1.08); }
.feature-tile:nth-child(2) .feature-icon-wrap { background: var(--x-coral); }
.feature-tile:nth-child(3) .feature-icon-wrap { background: var(--x-mint); }
.feature-tile:nth-child(4) .feature-icon-wrap { background: var(--x-rose); }
.feature-tile h3 {
    font-size: 1.05em;
    font-weight: 900;
    margin-bottom: 6px;
    color: var(--x-ink);
}
.feature-tile p {
    color: var(--x-text-mute);
    font-size: 0.88em;
    line-height: 1.5;
    font-weight: 500;
}

/* ╔══════ CATEGORIES SHOWCASE ══════╗ */
.categories-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
@media (min-width: 640px) { .categories-showcase { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .categories-showcase { grid-template-columns: repeat(6, 1fr); gap: 18px; } }
.cat-card {
    background: var(--x-cream);
    border: 2px solid var(--x-ink);
    padding: 22px 14px;
    border-radius: var(--r);
    text-align: center;
    color: var(--x-ink);
    transition: all 0.25s var(--ease);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.cat-card:hover {
    transform: translate(-2px, -2px);
    background: var(--x-coral);
    color: var(--x-cream);
    box-shadow: 4px 4px 0 var(--x-ink);
}
.cat-emoji { font-size: 2.3em; line-height: 1; }
.cat-name { font-weight: 900; font-size: 0.92em; }

/* ╔══════ COMING SOON ══════╗ */
.coming-soon {
    background: var(--x-ink);
    border-radius: var(--r-xl);
    padding: 60px 30px;
    text-align: center;
    color: var(--x-cream);
    position: relative;
    overflow: hidden;
    margin: 30px 0;
    border: 2px solid var(--x-ink);
}
.coming-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--x-coral);
    border-radius: 50%;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    opacity: 0.15;
    filter: blur(80px);
    animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 0.15; }
    50%      { opacity: 0.3; transform: translateX(-50%) scale(1.1); }
}
.coming-content { position: relative; z-index: 1; }
.coming-icon { font-size: 4em; margin-bottom: 14px; }
.coming-soon h2 {
    font-size: 2em;
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: -1px;
}
@media (min-width: 768px) { .coming-soon h2 { font-size: 2.8em; } }
.coming-sub {
    color: rgba(255, 248, 240, 0.85);
    margin-bottom: 26px;
    font-size: 1.05em;
}

/* ╔══════ BIG CTA ══════╗ */
.big-cta { padding: 40px 0 30px; }
.cta-card {
    background: var(--x-coral);
    border: 2px solid var(--x-ink);
    border-radius: var(--r-xl);
    padding: 40px 28px;
    color: var(--x-cream);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
    box-shadow: 8px 8px 0 var(--x-ink);
}
@media (min-width: 768px) {
    .cta-card {
        flex-direction: row;
        justify-content: space-between;
        text-align: start;
        padding: 50px 60px;
    }
}
.cta-text h2 {
    font-size: 1.6em;
    font-weight: 900;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}
@media (min-width: 768px) { .cta-text h2 { font-size: 2.2em; } }
.cta-text p { opacity: 0.95; font-size: 1.02em; font-weight: 500; }
.cta-card .btn-accent {
    background: var(--x-ink);
    color: var(--x-cream);
    border-color: var(--x-cream);
    flex-shrink: 0;
}
.cta-card .btn-accent:hover {
    background: var(--x-cream);
    color: var(--x-ink);
    box-shadow: 4px 4px 0 var(--x-ink);
}

/* ╔══════ FORMS ══════╗ */
.form { display: flex; flex-direction: column; gap: 8px; }
.form label {
    font-weight: 700;
    color: var(--x-ink);
    margin-top: 10px;
    font-size: 0.9em;
}
.form input, .form select, .form textarea {
    background: var(--x-cream);
    border: 2px solid var(--x-ink);
    padding: 11px 16px;
    border-radius: var(--r-sm);
    font-size: 0.95em;
    font-family: inherit;
    color: var(--x-ink);
    font-weight: 500;
    transition: all 0.15s var(--ease);
}
.form input:focus, .form select:focus, .form textarea:focus {
    outline: none;
    background: white;
    box-shadow: 3px 3px 0 var(--x-ink);
    transform: translate(-1px, -1px);
}
.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}
.search-bar input {
    flex: 1;
    padding: 11px 16px;
    border: 2px solid var(--x-ink);
    border-radius: var(--r-pill);
    background: var(--x-cream);
}
.inline-form { flex-direction: row; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.inline-form input { flex: 1; min-width: 150px; }

/* ╔══════ FLASH ══════╗ */
.flash {
    padding: 14px 18px;
    margin-bottom: 18px;
    border-radius: var(--r-sm);
    font-weight: 700;
    border: 2px solid var(--x-ink);
    animation: slideDown 0.3s var(--ease);
}
.flash-error { background: var(--x-coral); color: var(--x-cream); }
.flash-success { background: var(--x-mint); color: var(--x-ink); }
@keyframes slideDown {
    from { transform: translateY(-10px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* ╔══════ EMPTY STATES ══════╗ */
.empty-shop, .empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--x-text-mute);
}
.empty-shop h2, .empty-state h3 { color: var(--x-ink); margin-bottom: 12px; font-weight: 900; }

/* ╔══════ AUTH PAGES ══════╗ */
.auth-page { background: var(--x-cream-deep); min-height: 100vh; }
.auth-wrapper { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-card {
    background: var(--x-cream);
    padding: 40px 32px;
    border-radius: var(--r-xl);
    border: 2px solid var(--x-ink);
    width: 100%;
    max-width: 440px;
    box-shadow: 8px 8px 0 var(--x-ink);
}
.auth-title {
    text-align: center;
    color: var(--x-ink);
    margin-bottom: 6px;
    font-weight: 900;
    font-size: 1.8em;
    letter-spacing: -0.5px;
}
.auth-subtitle { text-align: center; color: var(--x-text-mute); margin-bottom: 28px; }

/* ╔══════ ADMIN ══════╗ */
.admin-body { background: var(--x-cream-deep); }
.admin-side {
    position: fixed;
    inset-inline-end: 0;
    top: 0;
    width: 240px;
    height: 100vh;
    background: var(--x-ink);
    color: var(--x-cream);
    padding: 24px 16px;
    overflow-y: auto;
    z-index: 50;
    border-inline-start: 2px solid var(--x-ink);
}
.admin-side .brand {
    font-size: 1.15em;
    font-weight: 900;
    color: var(--x-coral);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(255, 248, 240, 0.1);
}
.admin-menu { display: flex; flex-direction: column; gap: 4px; }
.admin-menu a {
    color: rgba(255, 248, 240, 0.8);
    padding: 11px 14px;
    border-radius: var(--r-sm);
    transition: all 0.15s var(--ease);
    font-size: 0.95em;
    font-weight: 700;
}
.admin-menu a:hover {
    background: rgba(255, 248, 240, 0.08);
    color: var(--x-coral);
    transform: translateX(-3px);
}
.admin-menu hr { border: none; border-top: 1px solid rgba(255, 248, 240, 0.1); margin: 12px 0; }
.admin-menu .logout { color: var(--x-coral); }

.admin-main { margin-inline-end: 240px; padding: 30px 32px; min-height: 100vh; }
@media (max-width: 768px) {
    .admin-side { position: static; width: 100%; height: auto; padding: 16px; border-inline-start: none; }
    .admin-menu { flex-direction: row; flex-wrap: wrap; }
    .admin-menu a { padding: 8px 12px; font-size: 0.85em; }
    .admin-main { margin-inline-end: 0; padding: 20px 16px; }
}

.page-title { font-size: 1.7em; margin-bottom: 20px; font-weight: 900; letter-spacing: -0.5px; }
.page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

/* Stats / panels / tables */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}
.stat-card {
    background: var(--x-cream);
    padding: 22px;
    border-radius: var(--r);
    border: 2px solid var(--x-ink);
    box-shadow: 4px 4px 0 var(--x-ink);
    transition: transform 0.2s var(--ease);
}
.stat-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--x-coral); }
.stat-label { color: var(--x-text-mute); font-size: 0.85em; display: block; margin-bottom: 6px; font-weight: 700; }
.stat-value { font-size: 2em; font-weight: 900; color: var(--x-ink); letter-spacing: -1px; }

.panel {
    background: var(--x-cream);
    padding: 26px;
    border-radius: var(--r);
    border: 2px solid var(--x-ink);
    margin-bottom: 20px;
    box-shadow: 4px 4px 0 var(--x-ink);
}
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.panel h3 { color: var(--x-ink); margin-bottom: 14px; font-weight: 900; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--x-cream);
}
.data-table th {
    background: var(--x-ink);
    color: var(--x-cream);
    padding: 12px 14px;
    text-align: start;
    font-weight: 900;
    font-size: 0.85em;
}
.data-table td { padding: 12px 14px; border-top: 1px solid var(--x-line); }
.data-table tr:hover { background: var(--x-bg-soft); }
.mini-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--x-ink); }
.mini-thumb-empty { width: 48px; height: 48px; background: var(--x-bg-soft); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: 1.4em; border: 1px solid var(--x-ink); }
.badge-ok { background: var(--x-mint); color: var(--x-ink); padding: 3px 12px; border-radius: var(--r-pill); font-size: 0.8em; font-weight: 700; }
.badge-off { background: var(--x-line); color: var(--x-text-mute); padding: 3px 12px; border-radius: var(--r-pill); font-size: 0.8em; font-weight: 700; }
.badge-star { color: var(--x-mustard); }

/* Product detail page */
.product-page { padding: 24px 18px; }
@media (min-width: 768px) { .product-page { padding: 40px 30px; } }
.breadcrumb { margin-bottom: 18px; font-size: 0.9em; }
.breadcrumb a { color: var(--x-text-mute); }
.breadcrumb a:hover { color: var(--x-ink); }
.product-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}
@media (min-width: 1024px) { .product-layout { grid-template-columns: 1.1fr 1fr; gap: 50px; } }
.product-media .main-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: var(--x-cream);
    border: 2px solid var(--x-ink);
    border-radius: var(--r-lg);
    box-shadow: 6px 6px 0 var(--x-ink);
}
.thumbnails { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--r-sm);
    cursor: pointer;
    border: 2px solid var(--x-line);
    transition: all 0.2s var(--ease);
}
.thumb:hover { border-color: var(--x-coral); transform: scale(1.05); }
.product-detail h1 { font-size: 1.7em; margin-bottom: 14px; font-weight: 900; letter-spacing: -0.5px; line-height: 1.2; color: var(--x-ink); }
@media (min-width: 768px) { .product-detail h1 { font-size: 2.4em; } }
.short-desc { color: var(--x-text-mute); margin-bottom: 20px; font-size: 1.05em; font-weight: 500; }
.price-block {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin: 24px 0;
    padding: 20px;
    background: var(--x-bg-soft);
    border: 2px solid var(--x-ink);
    border-radius: var(--r);
}
.price-big {
    color: var(--x-ink);
    font-size: 2.4em;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1px;
}
@media (min-width: 768px) { .price-big { font-size: 3em; } }
.price-big small { color: var(--x-text-mute); font-size: 0.45em; font-weight: 700; }
.price-old.big { font-size: 1.3em; }
.stock-line {
    padding: 12px 16px;
    border-radius: var(--r-sm);
    margin-bottom: 18px;
    font-weight: 700;
    font-size: 0.95em;
    border: 2px solid var(--x-ink);
}
.in-stock { background: var(--x-mint); color: var(--x-ink); }
.out-of-stock { background: var(--x-coral); color: var(--x-cream); }
.note {
    padding: 12px;
    background: var(--x-mustard);
    border: 2px solid var(--x-ink);
    border-radius: var(--r-sm);
    color: var(--x-ink);
    margin-top: 14px;
    font-size: 0.9em;
    font-weight: 500;
}
.desc-section { margin-top: 36px; padding-top: 28px; border-top: 2px solid var(--x-line); }
.desc-section h3 { margin-bottom: 14px; font-weight: 900; font-size: 1.3em; }
.desc-content { color: var(--x-text-mute); line-height: 1.85; font-size: 1em; font-weight: 500; }
.related-section { margin-top: 50px; }
.affiliate-note {
    background: var(--x-bg-soft);
    color: var(--x-ink);
    padding: 12px 14px;
    border: 2px solid var(--x-ink);
    border-radius: var(--r-sm);
    margin-top: 10px;
    font-weight: 700;
    font-size: 0.88em;
}

/* Catalog */
.catalog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 14px; }
.catalog-head h1 { font-size: 1.8em; font-weight: 900; letter-spacing: -0.5px; }
@media (min-width: 768px) { .catalog-head h1 { font-size: 2.2em; } }
.sort-form { display: flex; align-items: center; gap: 10px; }
.sort-form select { padding: 9px 14px; border: 2px solid var(--x-ink); border-radius: var(--r-pill); font-family: inherit; background: var(--x-cream); font-size: 0.9em; cursor: pointer; font-weight: 700; }
.result-count { margin-bottom: 16px; }

/* Cart icon, add to cart, etc. */
.add-to-cart-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.qty-control { display: flex; align-items: center; width: fit-content; border: 2px solid var(--x-ink); border-radius: var(--r-pill); overflow: hidden; background: var(--x-cream); }
.qty-control input { width: 60px; text-align: center; border: none; padding: 9px 4px; font-size: 1em; font-weight: 900; font-family: inherit; background: transparent; color: var(--x-ink); }
.qty-btn { width: 36px; height: 38px; border: none; background: var(--x-bg-soft); cursor: pointer; font-size: 1.2em; color: var(--x-ink); transition: background 0.15s; font-weight: 900; }
.qty-btn:hover { background: var(--x-coral); color: var(--x-cream); }

/* Cart page */
.cart-layout { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 20px; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: 1fr 340px; gap: 30px; align-items: start; } }
.cart-items { background: var(--x-cream); border: 2px solid var(--x-ink); border-radius: var(--r); padding: 8px; }
.cart-row { display: grid; grid-template-columns: 80px 1fr auto auto; gap: 14px; align-items: center; padding: 14px; border-bottom: 1px solid var(--x-line); }
.cart-row:last-of-type { border-bottom: none; }
.cart-img { width: 80px; height: 80px; border-radius: var(--r-sm); overflow: hidden; background: var(--x-bg-soft); border: 1px solid var(--x-ink); display: flex; align-items: center; justify-content: center; }
.cart-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-name { font-weight: 700; color: var(--x-ink); display: block; margin-bottom: 4px; }
.cart-price { color: var(--x-text-mute); font-size: 0.9em; font-weight: 500; }
.cart-qty input { width: 60px; text-align: center; padding: 8px; border: 2px solid var(--x-ink); border-radius: var(--r-sm); font-family: inherit; font-weight: 700; }
.cart-line-total { text-align: center; min-width: 90px; }
.cart-line-total strong { display: block; font-size: 1.05em; font-weight: 900; }
.cart-line-total small { color: var(--x-text-mute); font-size: 0.8em; }
.cart-remove-form { padding: 0 14px 12px; text-align: end; border-bottom: 1px solid var(--x-line); }
.btn-link-danger { background: none; border: none; color: var(--x-coral); cursor: pointer; font-family: inherit; font-size: 0.85em; font-weight: 700; }
.cart-row-actions { display: flex; justify-content: space-between; padding: 16px 14px; gap: 10px; flex-wrap: wrap; }
.cart-summary { background: var(--x-cream); border: 2px solid var(--x-ink); border-radius: var(--r); padding: 22px; box-shadow: 4px 4px 0 var(--x-ink); position: sticky; top: 90px; }
.cart-summary h3 { font-weight: 900; margin-bottom: 14px; }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; }
.sum-row.total { font-size: 1.1em; padding-top: 14px; }
.sum-row.total .big { font-size: 1.3em; color: var(--x-ink); font-weight: 900; }
.cart-summary hr { border: none; border-top: 1px solid var(--x-line); margin: 8px 0; }
.free-tag { color: var(--x-mint); font-weight: 900; }
.ship-hint { color: var(--x-text-mute); font-size: 0.85em; background: var(--x-bg-soft); padding: 8px 10px; border-radius: var(--r-sm); margin: 8px 0; font-weight: 500; }

/* Checkout */
.checkout-layout { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 20px; }
@media (min-width: 900px) { .checkout-layout { grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: start; } }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.payment-methods { display: flex; flex-direction: column; gap: 10px; }
.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--x-bg-soft);
    border: 2px solid var(--x-line);
    border-radius: var(--r);
    cursor: pointer;
    transition: all 0.2s var(--ease);
}
.payment-option:hover { border-color: var(--x-ink); }
.payment-option input { width: 20px; height: 20px; accent-color: var(--x-coral); }
.payment-option:has(input:checked) { background: var(--x-cream); border-color: var(--x-coral); }
.payment-label { font-weight: 700; }
.check-line { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.95em; }
.check-line small { color: var(--x-text-mute); }
.checkout-summary .panel.sticky { position: sticky; top: 90px; }

/* Order success */
.success-wrap { padding: 30px 0; }
.success-card { background: var(--x-cream); border: 2px solid var(--x-ink); border-radius: var(--r-xl); padding: 36px 28px; box-shadow: 8px 8px 0 var(--x-ink); max-width: 720px; margin: 0 auto; text-align: center; }
.success-icon { font-size: 4em; background: var(--x-mint); border: 2px solid var(--x-ink); width: 100px; height: 100px; border-radius: 50%; color: var(--x-ink); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; box-shadow: 4px 4px 0 var(--x-ink); }
.success-card h1 { font-size: 2em; font-weight: 900; margin-bottom: 10px; }
.order-number { font-family: 'Consolas', monospace; background: var(--x-ink); color: var(--x-coral); padding: 10px 20px; border-radius: var(--r-pill); display: inline-block; margin: 6px 0 24px; font-size: 1.2em; }
.next-steps { text-align: start; background: var(--x-bg-soft); border: 2px solid var(--x-ink); padding: 22px; border-radius: var(--r); margin: 20px 0; }
.next-steps h3 { margin-bottom: 12px; font-weight: 900; }
.next-steps ol { padding-inline-start: 20px; }
.next-steps li { padding: 4px 0; font-weight: 500; }
.bank-box { background: var(--x-cream); border: 2px dashed var(--x-coral); padding: 16px; border-radius: var(--r-sm); white-space: pre-line; font-family: 'Consolas', monospace; text-align: start; margin: 12px 0; }
.order-summary-box { text-align: start; margin: 24px 0; }
.text-end { text-align: end; }
.contact-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* Customer detail / public card / etc. */
.code-chip { background: var(--x-ink); color: var(--x-coral); padding: 4px 12px; border-radius: var(--r-sm); font-family: 'Consolas', monospace; font-weight: 900; letter-spacing: 1px; }
.code-chip.big { font-size: 1.2em; padding: 6px 16px; }

/* Settings */
.settings-form { max-width: 900px; }
.checkbox-group { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.checkbox-label { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 10px; background: var(--x-bg-soft); border: 2px solid var(--x-line); border-radius: var(--r-sm); font-weight: 500; }
.checkbox-label input { width: 18px; height: 18px; accent-color: var(--x-coral); }
.form-actions { display: flex; gap: 12px; margin-top: 24px; padding-top: 24px; border-top: 2px solid var(--x-line); flex-wrap: wrap; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 20px; }
@media (min-width: 768px) { .form-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.form-col { display: flex; flex-direction: column; gap: 6px; }

/* Status tabs */
.status-tabs { display: flex; gap: 6px; margin-bottom: 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
.status-tabs .tab { background: var(--x-cream); color: var(--x-text-mute); padding: 8px 16px; border-radius: var(--r-pill); border: 2px solid var(--x-line); white-space: nowrap; font-size: 0.9em; font-weight: 700; }
.status-tabs .tab:hover { color: var(--x-ink); border-color: var(--x-ink); }
.status-tabs .tab.active { background: var(--x-ink); color: var(--x-cream); border-color: var(--x-ink); }
.tab-count { background: rgba(255,255,255,0.2); padding: 1px 8px; border-radius: var(--r-pill); margin-inline-start: 4px; font-size: 0.85em; }
.badge { padding: 3px 12px; border-radius: var(--r-pill); font-size: 0.8em; font-weight: 700; }
.badge-new { background: var(--x-coral); color: var(--x-cream); }
.badge-warn { background: var(--x-mustard); color: var(--x-ink); }
.badge-info { background: var(--x-mint); color: var(--x-ink); }

.order-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 1024px) { .order-grid { grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; } }
.totals-stack { text-align: end; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--x-line); }
.totals-stack p { display: flex; justify-content: space-between; padding: 4px 0; }
.totals-stack p.grand { font-size: 1.15em; padding-top: 10px; margin-top: 6px; border-top: 1px solid var(--x-line); color: var(--x-coral); font-weight: 900; }

/* ╔══════ Admin Dashboard Enhanced ══════╗ */
.dash-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
}
.dash-hero-actions { display: flex; gap: 10px; }

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}
.kpi-card {
    background: var(--x-cream);
    border: 2px solid var(--x-ink);
    border-radius: var(--r);
    padding: 18px 20px;
    box-shadow: 4px 4px 0 var(--x-ink);
    transition: transform 0.2s var(--ease);
}
.kpi-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--x-coral); }
.kpi-card.kpi-primary { background: var(--x-coral); color: var(--x-cream); }
.kpi-card.kpi-primary .kpi-label, .kpi-card.kpi-primary .kpi-sub { color: var(--x-cream); opacity: 0.9; }
.kpi-card.kpi-money { background: var(--x-mint); }
.kpi-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.kpi-label { color: var(--x-text-mute); font-size: 0.85em; font-weight: 700; }
.kpi-delta {
    font-size: 0.78em;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: var(--r-pill);
    background: rgba(255, 248, 240, 0.25);
}
.kpi-delta.up { background: var(--x-mint); color: var(--x-ink); }
.kpi-delta.down { background: var(--x-ink); color: var(--x-coral); }
.kpi-value {
    font-size: 2.2em;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1px;
    color: inherit;
}
.kpi-value small { font-size: 0.5em; font-weight: 700; opacity: 0.7; }
.kpi-sub { font-size: 0.82em; color: var(--x-text-mute); margin-top: 4px; font-weight: 500; }

.dash-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 1024px) {
    .dash-grid-2 { grid-template-columns: 1fr 1fr; gap: 24px; }
}

.top-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.top-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--x-bg-soft);
    border: 1px solid var(--x-line);
    border-radius: var(--r-sm);
}
.top-rank {
    background: var(--x-ink);
    color: var(--x-coral);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    flex-shrink: 0;
    font-size: 0.9em;
}
.top-item .mini-thumb,
.top-item .mini-thumb-empty { width: 44px; height: 44px; flex-shrink: 0; }
.top-info { flex: 1; min-width: 0; }
.top-name {
    display: block;
    color: var(--x-ink);
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.top-clicks { text-align: center; flex-shrink: 0; }
.top-clicks strong { display: block; font-size: 1.4em; color: var(--x-coral); font-weight: 900; line-height: 1; }
.top-clicks small { color: var(--x-text-mute); font-size: 0.75em; }

.activity-feed { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    background: var(--x-bg-soft);
    border-radius: var(--r-sm);
}
.activity-dot {
    width: 8px;
    height: 8px;
    background: var(--x-coral);
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
}
.activity-content { flex: 1; min-width: 0; }
.activity-content strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.activity-content small { font-size: 0.78em; }

/* Importer styles */
.importer-tip {
    background: var(--x-mustard);
    border: 2px solid var(--x-ink);
    padding: 12px 14px;
    border-radius: var(--r-sm);
    margin-top: 16px;
    font-size: 0.9em;
    line-height: 1.6;
}
.importer-tip a { color: var(--x-ink); border-bottom: 2px solid var(--x-coral); font-weight: 700; }
.import-preview-img {
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    background: var(--x-bg-soft);
    border: 2px solid var(--x-ink);
    border-radius: var(--r-sm);
    margin-bottom: 14px;
}
.how-list { padding-inline-start: 22px; }
.how-list li { padding: 5px 0; font-weight: 500; }

/* Bulk results */
.bulk-results { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-direction: column; gap: 8px; }
.bulk-row {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--r-sm);
    border: 2px solid var(--x-line);
}
.bulk-row.ok { background: rgba(0, 200, 150, 0.08); border-color: var(--x-mint); }
.bulk-row.fail { background: rgba(255, 77, 46, 0.08); border-color: var(--x-coral); }
.bulk-icon {
    font-size: 1.3em;
    font-weight: 900;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.bulk-row.ok .bulk-icon { background: var(--x-mint); color: var(--x-ink); }
.bulk-row.fail .bulk-icon { background: var(--x-coral); color: var(--x-cream); }
.bulk-content { flex: 1; min-width: 0; }
.bulk-msg { font-weight: 700; }

/* Block utility */
.block { display: block; }

/* Footer */
.site-footer {
    background: var(--x-ink);
    color: var(--x-cream);
    padding: 50px 0 30px;
    margin-top: 80px;
    text-align: center;
}
.site-footer p { opacity: 0.8; font-weight: 500; }

code { background: var(--x-bg-soft); padding: 3px 8px; border-radius: var(--r-xs); font-size: 0.9em; color: var(--x-coral); font-family: 'SFMono-Regular', Consolas, monospace; }

/* ╔══════════════════════════════════════ ╗
   ║   Mobile responsive (640px and down)   ║
   ╚══════════════════════════════════════ ╝ */
@media (max-width: 640px) {
    .container { padding: 16px 14px; }

    /* Header: Grid 2 rows */
    .header-inner {
        display: grid !important;
        grid-template-columns: 1fr auto auto !important;
        grid-template-areas:
            "logo cart wa"
            "search search search" !important;
        gap: 10px 8px !important;
        padding: 12px 14px !important;
        align-items: center;
    }
    .logo {
        grid-area: logo !important;
        font-size: 1em !important;
        min-width: 0 !important;
    }
    .logo::before { width: 28px !important; height: 28px !important; font-size: 0.85em; }
    .cart-link {
        grid-area: cart !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 1.05em !important;
    }
    .wa-link {
        grid-area: wa !important;
        padding: 8px 12px !important;
    }
    .header-nav { display: none !important; }
    .search-form {
        grid-area: search !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    .search-form input {
        padding: 10px 14px 10px 44px;
        font-size: 0.92em;
        width: 100% !important;
        min-width: 0 !important;
    }
    .search-form button { width: 32px; height: 32px; font-size: 0.9em; }

    /* Categories bar */
    .cats-inner { padding: 8px 14px; gap: 4px; }
    .cats-inner a { padding: 6px 14px; font-size: 0.85em; }

    /* Promo strip */
    .promo-strip { padding: 9px 0; }
    .marquee-track { font-size: 0.85em; gap: 22px; animation-duration: 30s; }

    /* Hero */
    .hero-pro { padding: 30px 0 20px; }
    .hero-grid { gap: 26px; padding: 14px 0; }
    .hero-tag { padding: 5px 13px; font-size: 0.75em; margin-bottom: 16px; }
    .hero-title { font-size: 2.1em; margin-bottom: 14px; letter-spacing: -1px; }
    .hero-desc { font-size: 0.96em; margin-bottom: 22px; line-height: 1.65; }
    .hero-actions { gap: 10px; }
    .hero-actions .btn.big { padding: 12px 20px; font-size: 0.92em; flex: 1; }

    /* Bento */
    .hero-side { gap: 10px; }
    .bento { padding: 16px; min-height: 100px; }
    .bento-num { font-size: 1.9em; }
    .bento-label { font-size: 0.78em; }
    .bento-feature .bento-icon { font-size: 1.6em; }
    .bento-feature .bento-text { font-size: 0.92em; }
    .bento-rating { padding: 12px; }

    /* Features grid */
    .features-grid { gap: 12px; margin: 24px 0; }
    .feature-tile { padding: 18px 14px; }
    .feature-icon-wrap { width: 50px; height: 50px; font-size: 1.4em; margin-bottom: 10px; }
    .feature-tile h3 { font-size: 0.95em; }
    .feature-tile p { font-size: 0.8em; }

    /* Categories showcase */
    .categories-showcase { gap: 10px; }
    .cat-card { padding: 16px 10px; }
    .cat-emoji { font-size: 1.8em; }
    .cat-name { font-size: 0.82em; }

    /* Section heads */
    .section-head { margin: 30px 0 16px; }
    .section-head h2 { font-size: 1.45em; padding-inline-start: 20px; }
    .see-all { font-size: 0.88em; }

    /* Product cards */
    .product-info { padding: 11px; }
    .product-info h3 { font-size: 0.85em; min-height: 2.4em; margin-bottom: 6px; }
    .price { font-size: 1em; }
    .badge-discount { font-size: 0.72em; padding: 4px 10px; top: 10px; }
    .card-buy-btn { padding: 9px; font-size: 0.85em; }

    /* Product detail */
    .product-page { padding: 16px 14px; }
    .product-detail h1 { font-size: 1.45em; }
    .price-big { font-size: 2em; }

    /* CTA */
    .cta-card { padding: 28px 20px; }
    .cta-text h2 { font-size: 1.3em; }

    /* Auth */
    .auth-card { padding: 28px 22px; box-shadow: 6px 6px 0 var(--x-ink); }
    .auth-title { font-size: 1.5em; }

    /* Tables */
    .data-table th, .data-table td { padding: 9px; font-size: 0.85em; }
    .mini-thumb, .mini-thumb-empty { width: 36px; height: 36px; }
    .stat-card { padding: 16px; }
    .stat-value { font-size: 1.5em; }

    /* Cart */
    .cart-row { grid-template-columns: 60px 1fr auto; gap: 10px; padding: 10px; }
    .cart-img { width: 60px; height: 60px; }
    .cart-qty input { width: 50px; padding: 6px; }
    .cart-line-total { grid-column: 2 / -1; text-align: end; }
    .cart-summary { padding: 18px; }

    .checkout-summary .panel.sticky { position: static; }
}

@media (max-width: 380px) {
    .logo { font-size: 0.92em !important; }
    .wa-link { padding: 7px 9px !important; }
    .hero-title { font-size: 1.8em; }
    .bento { min-height: 90px; padding: 14px; }
}
