/* comfy.bd theme — loaded after the shared Tailwind build by
   templates/themes/comfy/partials/_theme_head.html, so it only ever reaches
   comfy.bd (SITE_THEME=comfy). Warm off-white + sand, ink-black buttons, and
   the logo red as the single accent — the black/white + one-accent pattern
   sneaker stores use, kept warm for a comfort brand.

   It recolours the shared red accent classes instead of copying templates, so
   checkout, PDP, account pages and every future fix stay shared. Shared
   templates use bg-red-600 for both CTAs and badges: CTAs go ink, and the
   badge/sale/error uses are put back to brand red below. text-red-* is left
   red: it carries sale prices and form errors, and it matches the logo. */
:root {
    --c-red: #B71218;
    --c-action: #1C1917;
    --c-action-hover: #44403C;
    --c-espresso: #1C1917;
    --c-beige: #F2EDE6;
    --c-sand: #E5DED4;
    --c-cream: #FAF8F5;
    --c-line: #E7E1D8;
    --c-ink: #1C1917;
    --c-muted: #6B6560;
    /* Comfort accent (2026-11 redesign): comfort tags, the delivery/trust box
       and quiet confirmations. Red stays for the logo and savings only. */
    --c-sage: #2F4A3B;
    --c-sage-bg: #E3EBE5;
}

/* DM Sans has no Bengali glyphs, so Bangla text falls through to Hind
   Siliguri — a matching geometric face — instead of the phone's system font. */
body { font-family: 'DM Sans', 'Hind Siliguri', ui-sans-serif, system-ui, sans-serif; color: var(--c-ink); }
[lang=bn] { font-family: 'Hind Siliguri', 'DM Sans', ui-sans-serif, system-ui, sans-serif; }
.text-gray-900 { color: var(--c-ink); }
.text-gray-500 { color: var(--c-muted); }

/* ---- Accent: red -> ink ------------------------------------------------- */
.bg-red-500, .bg-red-600, .focus\:bg-red-600:focus,
.peer:checked ~ .peer-checked\:bg-red-600 { background-color: var(--c-action); }
.hover\:bg-red-600:hover, .hover\:bg-red-700:hover,
.enabled\:hover\:bg-red-700:hover:enabled { background-color: var(--c-action-hover); }
.bg-red-50, .bg-red-100, .hover\:bg-red-50:hover, .hover\:bg-red-100:hover { background-color: var(--c-beige); }
.hover\:text-red-600:hover, .group:hover .group-hover\:text-red-600,
.group:hover .group-hover\:text-red-500 { color: var(--c-action); }
.border-red-500, .border-red-600, .hover\:border-red-600:hover,
.focus\:border-red-600:focus, .peer:checked ~ .peer-checked\:border-red-600 { border-color: var(--c-action); }
.focus\:ring-red-100:focus { --tw-ring-color: var(--c-sand); }
.accent-red-600 { accent-color: var(--c-action); }
/* Checkout's selected payment / delivery cards */
.has-\[\:checked\]\:border-red-600:has(:checked) { border-color: var(--c-action); }
.has-\[\:checked\]\:bg-red-50\/50:has(:checked),
.has-\[\:checked\]\:bg-red-50\/60:has(:checked) { background-color: var(--c-cream); }
/* Free-shipping nudge in the cart and drawer */
.bg-red-50\/60 { background-color: var(--c-beige); }
.border-red-100 { border-color: var(--c-line); }
.shadow-red-600\/25, .shadow-red-600\/30 { --tw-shadow-color: rgb(28 25 23 / .25); }
.from-red-500 { --tw-gradient-from: var(--c-action) var(--tw-gradient-from-position); --tw-gradient-to: rgb(28 25 23 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-red-600 { --tw-gradient-to: var(--c-action-hover) var(--tw-gradient-to-position); }

/* Badges, the sale bar and error toasts stay brand red, not ink. */
.bg-red-600.text-xs, .bg-red-600.text-\[10px\], #flashSaleBar,
div[role=status] > .bg-red-600 { background-color: var(--c-red); }

/* ---- Neutrals: cool grey -> warm --------------------------------------- */
.bg-gray-900 { background-color: var(--c-espresso); }
.bg-gray-50, .hover\:bg-gray-50:hover { background-color: var(--c-cream); }
.bg-gray-100 { background-color: var(--c-beige); }
.border-gray-200, .border-gray-100 { border-color: var(--c-line); }
.border-gray-300 { border-color: var(--c-sand); }
.border-gray-900 { border-color: var(--c-espresso); }

/* ---- Softer shapes ------------------------------------------------------ */
.rounded-lg { border-radius: 14px; }
.rounded-xl { border-radius: 20px; }
input[type=text], input[type=search], input[type=tel], input[type=email],
input[type=password], input[type=number], select, textarea { border-radius: 12px; }
header.bg-white { border-color: var(--c-line); }
.comfy-logo { height: 26px; }
footer .comfy-logo { height: 30px; }

/* ---- Product cards (shared _product_card.html + JS-rendered rails) ------ */
.card-cq {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: 20px;
    padding: 10px 10px 14px;
    transition: box-shadow .25s ease, transform .25s ease;
}
.card-cq:hover { box-shadow: 0 10px 30px -12px rgb(28 25 23 / .18); transform: translateY(-2px); }
.card-cq .aspect-square { border-radius: 14px; background-color: var(--c-beige); }
/* Product shots are on white; multiply melts that white into the beige tile. */
.card-cq .aspect-square img { mix-blend-mode: multiply; }
.card-cq h3 { font-weight: 500; color: var(--c-ink); }
.card-cq .card-sizes { padding: 0 2px; }

/* Size chips: warm outline instead of grey */
.card-size { border-color: var(--c-sand); border-radius: 8px; color: var(--c-ink); }
a.card-size:hover { background: var(--c-espresso); border-color: var(--c-espresso); color: #fff; }
a.card-size:focus-visible { outline-color: var(--c-action); }
.card-size--out { border-color: var(--c-line); background: var(--c-cream); color: #A8A29E; }


/* ==== 2026-11 redesign: "soft everyday" ================================ */

/* ---- Product cards ------------------------------------------------------ */
.card-discount { display: none; }            /* replaced by .comfy-save */
.comfy-save {
    background: #fff; color: var(--c-red);
    font-size: 11px; font-weight: 600; line-height: 1;
    padding: 6px 9px; border-radius: 999px;
}
.comfy-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 6px; }
.comfy-tags span {
    background: var(--c-sage-bg); color: var(--c-sage);
    font-size: 11px; line-height: 1; padding: 5px 8px; border-radius: 999px;
}
.card-cq .text-red-600.font-bold { color: var(--c-ink); }   /* price ink; the save pill carries the red */
.card-cq .font-bold { font-weight: 600; font-size: 15px; }

/* ---- Product page ------------------------------------------------------- */
/* One primary action. The shared page stacks a red "BUY IT NOW", a green
   WhatsApp button and a red countdown; on comfy the order button is the only
   solid one, WhatsApp is an outline and the countdown is gone (it pressures,
   and a calm comfort brand should not). */
#buyNowBtn, #stickyAddBtn {
    border-radius: 999px; text-transform: none; letter-spacing: 0;
    box-shadow: none; font-weight: 600; font-size: 15px;
}
#addForm button[type=submit]:not(#buyNowBtn) { border-radius: 999px; }
#whatsappOrderBtn {
    background: #fff; color: #1F7A3E; border: 1px solid #BFD9C6;
    border-radius: 999px; text-transform: none; letter-spacing: 0;
    box-shadow: none; font-weight: 600;
}
#whatsappOrderBtn:hover { background: #F1F8F3; }
.pdp-countdown { display: none !important; }
/* The dated delivery promise is the trust box: sage, right under the price. */
[data-delivery-estimate] { background: var(--c-sage-bg); border-color: transparent; border-radius: 16px; }
[data-delivery-estimate] .text-green-700 { color: var(--c-sage); }
[data-delivery-estimate] .border-gray-200 { border-color: rgb(47 74 59 / .15); }
.comfy-trust { display: flex; flex-wrap: wrap; gap: 6px; }
.comfy-trust span {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--c-cream); border: 1px solid var(--c-line);
    color: var(--c-ink); font-size: 12px; padding: 6px 10px; border-radius: 999px;
}
.size-btn { border-radius: 12px; }

/* ---- Homepage (templates/themes/comfy/catalog/home.html) ------------------ */
.comfy-chip {
    flex: none; display: inline-block;
    background: #fff; border: 1px solid var(--c-line); color: var(--c-ink);
    font-size: 14px; font-weight: 500; padding: 9px 16px; border-radius: 999px;
    transition: background-color .15s, color .15s, border-color .15s;
}
.comfy-chip:hover { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.comfy-need {
    display: flex; flex-direction: column; justify-content: space-between; gap: 6px;
    min-height: 64px; padding: 11px 14px; border-radius: 16px;
    background: var(--c-sage-bg); color: var(--c-sage);
    transition: background-color .15s, color .15s;
}
.comfy-need span { font-weight: 600; font-size: 15px; line-height: 1.25; }
.comfy-need small { font-size: 12px; opacity: .8; }
.comfy-need:hover { background: var(--c-sage); color: #fff; }
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* ---- Hero banner carousel --------------------------------------------- */
/* Image sizes match the admin's hints: 800×600 on phones, 1700×700 above. */
.comfy-hero { border-radius: 20px; overflow: hidden; background: var(--c-beige); }
.comfy-hero-track {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    aspect-ratio: 4 / 3;
}
@media (min-width: 768px) { .comfy-hero-track { aspect-ratio: 17 / 7; } }
/* A banner with no mobile image keeps its own wide ratio on phones, so
   nothing on it is cut off (catalog.views.home sets hero_mobile_ready). */
.comfy-hero--wide .comfy-hero-track { aspect-ratio: 17 / 7; }
/* Built-in slides are text + a product photo: a fixed height reads better
   than a ratio on the narrowest phones. */
.comfy-hero--built-in .comfy-hero-track { aspect-ratio: auto; height: 230px; }
@media (min-width: 768px) { .comfy-hero--built-in .comfy-hero-track { height: 400px; } }
.comfy-slide {
    position: relative; display: flex; align-items: center; overflow: hidden;
    padding: 20px 20px 34px; color: var(--c-ink);
}
@media (min-width: 768px) { .comfy-slide { padding: 48px 64px; } }
.comfy-slide-text { position: relative; z-index: 1; max-width: 52%; }
@media (min-width: 768px) { .comfy-slide-text { max-width: 50%; } }
.comfy-slide-kicker { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.comfy-slide-title { font-family: 'Hind Siliguri', 'DM Sans', sans-serif; font-size: 22px; line-height: 1.2; font-weight: 600; margin-top: 4px; }
@media (min-width: 768px) { .comfy-slide-title { font-size: 46px; } .comfy-slide-kicker { font-size: 12px; } }
.comfy-slide-sub { font-size: 13px; margin-top: 4px; opacity: .8; }
@media (min-width: 768px) { .comfy-slide-sub { font-size: 17px; margin-top: 10px; } }
.comfy-slide-cta {
    display: inline-block; margin-top: 12px; padding: 8px 16px; border-radius: 999px;
    background: var(--c-ink); color: #fff; font-size: 13px; font-weight: 600;
}
@media (min-width: 768px) { .comfy-slide-cta { margin-top: 24px; padding: 12px 24px; font-size: 14px; } }
/* Comfy's product photos are real photos (a floor, a backdrop), not
   cut-outs, so they sit as a straight rounded picture in the right-hand part
   of the slide, clear of the headline — never blended or tilted over it. */
.comfy-slide-img {
    position: absolute; top: 14px; right: 14px;
    width: 38%; height: calc(100% - 44px); object-fit: cover;
    border-radius: 14px; background: #fff;
}
@media (min-width: 768px) { .comfy-slide-img { top: 32px; right: 40px; width: 42%; height: calc(100% - 64px); border-radius: 20px; } }
.comfy-slide--dark { color: #FAF7F2; }
.comfy-slide--dark .comfy-slide-cta { background: #FAF7F2; color: var(--c-ink); }

.comfy-hero-slide { flex: 0 0 100%; scroll-snap-align: start; }
.comfy-hero-dots {
    position: absolute; left: 0; right: 0; bottom: 10px;
    display: flex; justify-content: center; gap: 6px;
}
.comfy-hero-dots button {
    width: 7px; height: 7px; border-radius: 999px; padding: 0;
    background: rgb(255 255 255 / .6); transition: width .2s, background-color .2s;
}
.comfy-hero-dots button[aria-current] { width: 20px; background: #fff; }
.comfy-hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; border-radius: 999px;
    background: rgb(255 255 255 / .9); color: var(--c-ink);
    font-size: 24px; line-height: 1; display: none;
}
@media (min-width: 768px) { .comfy-hero-arrow { display: flex; align-items: center; justify-content: center; } }

/* ---- Header + menu: shared static/css/site-header.css, recoloured here --- */
:root {
    --hdr-ink: var(--c-ink);
    --hdr-muted: var(--c-muted);
    --hdr-line: var(--c-line);
    --hdr-soft: var(--c-cream);
    --hdr-hover: var(--c-beige);
    --hdr-accent: var(--c-sage);
    --hdr-accent-bg: var(--c-sage-bg);
    --hdr-badge: var(--c-red);
    --hdr-panel: var(--c-cream);
}
.site-header .comfy-logo { height: 24px; }
@media (min-width: 768px) { .site-header .comfy-logo { height: 26px; } }
