/* =====================================================================
   Theme: classic (default)
   =====================================================================

   A quiet retail theme built on core.css. Blade and React link this same file.
   Shop-specific colours, radii, fonts and density still come from Skin.
   ===================================================================== */

:root {
    /* Give the classic grid room to breathe on wide screens. */
    --container: 1240px;
    --grid-min: 208px;
    --card-ratio: 1;
    --r-md: 13px;
    --r-lg: 18px;
    --e-1: 0 1px 2px rgb(16 24 40 / 4%);
    --e-2: 0 10px 28px -16px rgb(16 24 40 / 24%);
    --e-3: 0 20px 48px -24px rgb(16 24 40 / 28%);
    --classic-tracking: -0.025em;
    --classic-heading-tracking: -0.035em;
}

/* Connected scripts need their natural spacing, including Bengali conjuncts. */
:root:lang(bn), :root:lang(ar) {
    --classic-tracking: normal;
    --classic-heading-tracking: normal;
}

/*
 * Classic's visual language: calm surfaces, generous breathing room and one
 * deliberate brand accent. These are CSS-only refinements, so Blade and the SPA
 * receive the exact same treatment from the shared theme file.
 */
.site-head {
    border-bottom-color: var(--header-line, color-mix(in srgb, var(--line) 72%, transparent));
    backdrop-filter: saturate(1.15) blur(14px);
}

.site-head.is-scrolled { box-shadow: 0 8px 24px -20px rgb(16 24 40 / 36%); }

.brand { letter-spacing: var(--classic-tracking); }

.nav a { font-weight: 600; }
.nav a.is-active { background: var(--header-hover, var(--brand-soft)); }

.searchbar input {
    min-height: 46px;
    border-radius: var(--r-pill);
    background: var(--search-bg, var(--surface-2));
    border-color: transparent;
}
.searchbar input:focus { background: var(--search-bg, var(--surface)); border-color: var(--brand); }

.btn {
    border-radius: var(--r-sm);
    letter-spacing: var(--classic-tracking);
}
.btn:hover { box-shadow: 0 6px 16px -10px color-mix(in srgb, var(--brand) 65%, transparent); }

.hero:not(.hero--image) {
    border-radius: var(--r-lg);
    border-color: color-mix(in srgb, var(--brand) 12%, var(--line));
    background: color-mix(in srgb, var(--brand-soft) 48%, var(--surface));
    box-shadow: none;
}
.hero:not(.hero--image)::before { display: none; }
.hero h1 { letter-spacing: var(--classic-heading-tracking); text-wrap: balance; }
.hero p { max-width: 54ch; }

.section-head { margin-block: var(--s-9) var(--s-5); }
.section-head h2 { letter-spacing: var(--classic-tracking); }
.section-eyebrow { letter-spacing: 0.08em; }
:root:lang(bn) .section-eyebrow, :root:lang(ar) .section-eyebrow { letter-spacing: normal; }
.section-head__more {
    border-radius: var(--r-pill);
    padding-inline: 12px;
}

.section-title {
    margin-block: var(--s-7) var(--s-4);
    letter-spacing: var(--classic-tracking);
}

.card {
    border-color: color-mix(in srgb, var(--line) 78%, transparent);
    border-radius: var(--r-md);
    box-shadow: var(--e-1);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover {
    border-color: color-mix(in srgb, var(--brand) 28%, var(--line));
    box-shadow: var(--e-2);
    transform: translateY(-3px);
}
.card__media { background: var(--surface-2); }
.card__name { text-underline-offset: 3px; font-weight: 500; line-height: 1.55; }
.card:hover .card__name { text-decoration: none; }
.card__body { padding: var(--s-3) var(--s-3) var(--s-4); }
.card__badge { border-radius: var(--r-pill); }
.card__acts .card__act { box-shadow: var(--e-1); }
.card__add { border-radius: var(--r-sm); }
.card .price { font-weight: 700; }
[data-card='minimal'] .card { box-shadow: none; }

.cat-tile { border-radius: var(--r-md); }
.cat-tile__name { font-weight: 700; }

.empty { border-style: solid; border-color: var(--line); }
.empty__icon .icon { width: 56px; height: 56px; padding: 14px; stroke-width: 1.5; }

.gallery__main {
    border-color: color-mix(in srgb, var(--line) 76%, transparent);
    background: var(--surface);
}
.gallery__thumb { border-radius: var(--r-sm); }

.field input:where(:not([type='checkbox'], [type='radio'], [type='range'], [type='file'], [type='hidden'], [type='color'])),
.field textarea, .field select {
    min-height: 46px;
    border-radius: var(--r-sm);
}
.field textarea { min-height: 112px; }
.field input:where(:not([type='checkbox'], [type='radio'], [type='range'], [type='file'], [type='hidden'], [type='color'])):focus,
.field textarea:focus, .field select:focus {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 13%, transparent);
}

.co-block, .summary {
    border-color: color-mix(in srgb, var(--line) 84%, transparent);
    box-shadow: var(--e-1);
}

.usp { gap: var(--s-3); }
.usp__item { border-radius: var(--r-sm); }

.deal { border-radius: var(--r-lg); }
.nl__inner { border-radius: var(--r-lg); }
.tm__card { border-radius: var(--r-md); }

.site-foot {
    border-top-color: var(--foot-line, var(--line));
    background: var(--foot-bg, var(--surface));
}

@media (min-width: 1200px) {
    .hero-wrap { margin-top: var(--s-5); }
}

@media (max-width: 640px) {
    :root { --grid-min: 156px; }
    .hero:not(.hero--image) { padding: 28px 22px; }
    .section-head { margin-block: var(--s-7) var(--s-4); }
    .card { box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
    .card, .card:hover { transition: none; transform: none; }
}
