/* ==========================================================================
   Template 27 — "Nakshi" (নকশি): Bangaliana design on template 23's app-like base
   (lal-paar border, kantha stitch, alpana motif, Noto Serif Bengali headings). The Nakshi layer is at the end.
   Plain CSS (no Tailwind rebuild needed). Everything is scoped under .t27 /
   .t27-* so nothing leaks into other templates.
   Tokens: --t27-accent (= vendor's website colour) and --t27-on-accent
   (white or ink, picked by luminance in layouts.blade.php).
   ========================================================================== */

:root {
    --t27-paper: #fbf9f5;
    --t27-surface: #ffffff;
    --t27-soft: #f3efe8;
    --t27-line: #ebe5db;
    --t27-ink: #1c1814;
    --t27-ink-2: #3b352e;
    --t27-muted: #7b7369;
    --t27-sale: #b4432f;
    --t27-ok: #2f7a4f;
    --t27-radius: 18px;
    --t27-radius-sm: 12px;
    --t27-ease: cubic-bezier(.2, .8, .2, 1);
    /* Headings: Manrope (2026-10-20, was the serif Fraunces); the variable keeps its old name so no rule changes */
    --t27-serif: 'Manrope', 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --t27-sans: 'Inter', 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --t27-tabs-h: 64px;
    --t27-bar-h: 58px;
}

/* ---------- Base ---------- */
body.t27 {
    font-family: var(--t27-sans);
    background: var(--t27-paper);
    color: var(--t27-ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-tap-highlight-color: transparent;
}
.t27 main { min-height: 50vh; }
.t27-serif { font-family: var(--t27-serif); font-optical-sizing: auto; letter-spacing: -.012em; }
.t27-kicker { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--t27-muted); }
.t27 ::selection { background: var(--t27-accent); color: var(--t27-on-accent); }
.t27-noscroll::-webkit-scrollbar { display: none; }
.t27-noscroll { scrollbar-width: none; -ms-overflow-style: none; }
.t27-press { transition: transform .16s var(--t27-ease), opacity .16s; }
.t27-press:active { transform: scale(.96); }

/* Buttons */
.t27-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 0; cursor: pointer; transition: transform .16s var(--t27-ease), background .2s, box-shadow .2s; white-space: nowrap; }
.t27-btn:active { transform: scale(.97); }
.t27-btn--accent { background: var(--t27-accent); color: var(--t27-on-accent); box-shadow: 0 10px 22px -14px var(--t27-accent); }
.t27-btn--ghost { background: transparent; color: var(--t27-ink); box-shadow: inset 0 0 0 1.5px var(--t27-ink); }
.t27-btn--ghost:hover { background: var(--t27-ink); color: #fff; }
.t27-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--t27-ink); text-decoration: none; white-space: nowrap; }
.t27-link svg { width: 16px; height: 16px; transition: transform .2s var(--t27-ease); }
.t27-link:hover svg { transform: translateX(3px); }

/* Icon button */
.t27-ico { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 999px; border: 0; background: transparent; color: var(--t27-ink); cursor: pointer; transition: background .2s, transform .16s var(--t27-ease); flex-shrink: 0; }
.t27-ico:hover { background: var(--t27-soft); }
.t27-ico:active { transform: scale(.92); }
.t27-ico svg { width: 22px; height: 22px; }
.t27-badge { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--t27-accent); color: var(--t27-on-accent); font-size: 10px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--t27-paper); }
.t27-badge:empty, .t27-badge[data-zero="1"] { display: none; }

/* ---------- Top strip (desktop) ---------- */
/* Notice bar (announcement): the shop's accent colour, text scrolling right to left, paused on hover */
.t27-notice { position: relative; overflow: hidden; background: var(--t27-accent); color: var(--t27-on-accent, #fff); font-size: 13px; font-weight: 600; line-height: 1; padding: 9px 0; }
.t27-notice__track { display: flex; width: max-content; animation: t27-notice var(--t27-notice-speed, 24s) linear infinite; }
.t27-notice__track span { padding-right: 64px; white-space: nowrap; }
.t27-notice:hover .t27-notice__track { animation-play-state: paused; }
@keyframes t27-notice { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (min-width: 1024px) { .t27-notice { font-size: 13.5px; padding: 10px 0; } }
@media (prefers-reduced-motion: reduce) {
    .t27-notice__track { animation: none; width: auto; justify-content: center; padding: 0 16px; }
    .t27-notice__track span { overflow: hidden; text-overflow: ellipsis; padding: 0; }
    .t27-notice__track span[aria-hidden] { display: none; }
}
.t27-strip { display: none; background: var(--t27-ink); color: rgba(255,255,255,.82); font-size: 12px; letter-spacing: .02em; }
.t27-strip a { color: inherit; text-decoration: none; }
.t27-strip a:hover { color: #fff; }
.t27-strip__in { max-width: 1320px; margin: 0 auto; padding: 8px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
@media (min-width: 1024px) { .t27-strip { display: block; } }

/* ---------- App bar ---------- */
.t27-bar { position: sticky; top: 0; z-index: 60; background: rgba(251,249,245,.86); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.t27-bar.is-scrolled { border-bottom-color: var(--t27-line); box-shadow: 0 8px 24px -22px rgba(28,24,20,.5); }
.t27-bar__row { height: var(--t27-bar-h); display: flex; align-items: center; gap: 4px; padding: 0 6px 0 4px; max-width: 1320px; margin: 0 auto; }
.t27-bar__brand { display: flex; align-items: center; min-width: 0; flex: 1; text-decoration: none; color: var(--t27-ink); padding-left: 2px; }
.t27-bar__brand img { height: 34px; width: auto; max-width: 150px; object-fit: contain; }
.t27-bar__brand span { font-family: var(--t27-serif); font-size: 21px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t27-bar__actions { display: flex; align-items: center; gap: 2px; }
.t27-bar__desk { display: none; }
.t27-search-pill { display: flex; align-items: center; gap: 10px; height: 46px; margin: 2px 12px 12px; padding: 0 16px; border-radius: 999px; background: var(--t27-surface); box-shadow: inset 0 0 0 1px var(--t27-line); color: var(--t27-muted); font-size: 14.5px; cursor: text; width: calc(100% - 24px); border: 0; text-align: left; }
.t27-search-pill svg { width: 19px; height: 19px; flex-shrink: 0; color: var(--t27-ink-2); }
@media (min-width: 1024px) {
    .t27-bar__row { height: 76px; padding: 0 24px; gap: 24px; }
    .t27-bar__menu, .t27-search-pill, .t27-bar__m-only { display: none !important; }
    .t27-bar__brand { flex: 0 0 auto; }
    .t27-bar__brand img { height: 46px; max-width: 220px; }
    .t27-bar__brand span { font-size: 28px; }
    .t27-bar__desk { display: flex; flex: 1; justify-content: center; }
    .t27-bar__desk form { width: 100%; max-width: 520px; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 8px 0 18px; border-radius: 999px; background: var(--t27-surface); box-shadow: inset 0 0 0 1px var(--t27-line); transition: box-shadow .2s; }
    .t27-bar__desk form:focus-within { box-shadow: inset 0 0 0 1.5px var(--t27-ink); }
    .t27-bar__desk input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14.5px; color: var(--t27-ink); box-shadow: none !important; padding: 0; }
    .t27-bar__desk button { width: 34px; height: 34px; border-radius: 999px; border: 0; background: var(--t27-accent); color: var(--t27-on-accent); display: flex; align-items: center; justify-content: center; }
    .t27-bar__desk button svg { width: 17px; height: 17px; }
}
/* Desktop nav row */
.t27-nav { display: none; border-top: 1px solid var(--t27-line); }
.t27-nav__in { max-width: 1320px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: flex-start; gap: 26px; height: 48px; overflow: hidden; } /* links sit close together from the left (2026-10-24; was spread edge to edge) */
.t27-nav__cats { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 26px; overflow: hidden; }
.t27-nav__cats a[hidden] { display: none; }
.t27-nav__in > .t27-nav__pre {
    flex: none; margin-left: auto; padding: 7px 14px; border-radius: 999px; font-weight: 600; color: var(--t27-accent);
    background: color-mix(in srgb, var(--t27-accent) 11%, transparent);
}
.t27-nav__in > .t27-nav__pre::after { display: none; }
.t27-nav__in > .t27-nav__pre:hover, .t27-nav__in > .t27-nav__pre.is-on { background: var(--t27-accent); color: var(--t27-on-accent, #fff); }
.t27-nav a, .t27-nav button { position: relative; font-size: 13.5px; font-weight: 500; color: var(--t27-ink-2); text-decoration: none; white-space: nowrap; background: none; border: 0; cursor: pointer; padding: 14px 0; display: inline-flex; align-items: center; gap: 6px; }
.t27-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 1.5px; background: var(--t27-ink); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--t27-ease); }
.t27-nav a:hover::after, .t27-nav a.is-on::after { transform: scaleX(1); }
.t27-nav a.is-on, .t27-nav a:hover { color: var(--t27-ink); }
.t27-nav svg { width: 16px; height: 16px; }
@media (min-width: 1024px) { .t27-nav { display: block; } }
/* categories that don't fit whole are hidden by t27NavFit (navbar), so the row never wraps or cuts a name */

/* ---------- Search sheet ---------- */
.t27-search { position: fixed; inset: 0; z-index: 1200; display: none; background: var(--t27-paper); }
.t27-search.is-open { display: block; animation: t27Fade .18s ease-out; }
.t27-search__top { display: flex; align-items: center; gap: 6px; padding: 10px 10px 10px 6px; border-bottom: 1px solid var(--t27-line); }
.t27-search__top form { flex: 1; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-radius: 999px; background: var(--t27-surface); box-shadow: inset 0 0 0 1.5px var(--t27-ink); }
.t27-search__top input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--t27-ink); box-shadow: none !important; padding: 0; }
.t27-search__top svg { width: 19px; height: 19px; }
.t27-search__body { padding: 18px 16px 40px; max-width: 760px; margin: 0 auto; }
.t27-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.t27-chip { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--t27-surface); box-shadow: inset 0 0 0 1px var(--t27-line); font-size: 13.5px; color: var(--t27-ink-2); text-decoration: none; }
.t27-chip:active { transform: scale(.96); }
@media (min-width: 1024px) { .t27-search { background: rgba(28,24,20,.4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); } .t27-search__panel { background: var(--t27-paper); max-width: 760px; margin: 80px auto 0; border-radius: 24px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.45); } }

/* ---------- Drawer (menu / categories) ---------- */
.t27-drawer { position: fixed; inset: 0; z-index: 1150; display: none; }
.t27-drawer.is-open { display: block; }
.t27-drawer__scrim { position: absolute; inset: 0; background: rgba(28,24,20,.42); opacity: 0; transition: opacity .28s; }
.t27-drawer.is-in .t27-drawer__scrim { opacity: 1; }
.t27-drawer__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(88vw, 380px); background: var(--t27-paper); display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .32s var(--t27-ease); box-shadow: 20px 0 50px -30px rgba(0,0,0,.5); border-radius: 0 24px 24px 0; }
.t27-drawer.is-in .t27-drawer__panel { transform: none; }
.t27-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 12px 12px 20px; }
.t27-drawer__head h3 { font-family: var(--t27-serif); font-size: 24px; font-weight: 600; margin: 0; }
.t27-drawer__body { flex: 1; overflow-y: auto; padding: 0 12px 24px; }
.t27-drawer__links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
.t27-drawer__links a { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 16px; background: var(--t27-surface); box-shadow: inset 0 0 0 1px var(--t27-line); font-size: 14px; font-weight: 600; color: var(--t27-ink); text-decoration: none; }
.t27-drawer__links svg { width: 19px; height: 19px; color: var(--t27-ink-2); }
/* three shortcut tiles in a row: icon over the label */
.t27-drawer__links a { flex-direction: column; justify-content: center; gap: 6px; padding: 12px 6px; text-align: center; font-size: 12.5px; line-height: 1.2; }
/* Pre-order card in the drawer (2026-10-24): brand colour, a slow shine across, a soft pulse on the icon */
.t27-dpre {
    position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 14px;
    border-radius: 18px; color: var(--t27-on-accent, #fff); text-decoration: none;
    background: linear-gradient(135deg, var(--t27-accent), color-mix(in srgb, var(--t27-accent) 70%, #000));
    box-shadow: 0 12px 24px -14px color-mix(in srgb, var(--t27-accent) 80%, #000);
}
.t27-dpre::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; transform: skewX(-20deg);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .28), rgba(255, 255, 255, 0));
    animation: t27DpreShine 3.2s ease-in-out infinite;
}
.t27-dpre__ico { position: relative; flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: rgba(255, 255, 255, .18); }
.t27-dpre__ico::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(255, 255, 255, .45); animation: t27DprePulse 2.2s ease-out infinite; }
.t27-dpre__ico svg { width: 22px; height: 22px; }
.t27-dpre__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.t27-dpre__txt b { font-size: 15px; font-weight: 700; }
.t27-dpre__txt small { font-size: 12px; opacity: .85; }
.t27-dpre__go { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; background: rgba(255, 255, 255, .2); }
.t27-dpre__go svg { width: 17px; height: 17px; }
.t27-dpre:active { transform: scale(.98); }
@keyframes t27DpreShine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes t27DprePulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .45); } 100% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); } }
@media (prefers-reduced-motion: reduce) { .t27-dpre::before, .t27-dpre__ico::after { animation: none; } }
.t27-drawer .t27-kicker { display: block; padding: 4px 8px 10px; }
.t27-cat { border-radius: 14px; }
.t27-cat__row { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 14px; color: var(--t27-ink); text-decoration: none; font-size: 15px; font-weight: 500; width: 100%; background: none; border: 0; text-align: left; cursor: pointer; }
.t27-cat__row:active { background: var(--t27-soft); }
.t27-cat__img { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; background: var(--t27-soft); flex-shrink: 0; }
.t27-cat__img--l { display: flex; align-items: center; justify-content: center; font-family: var(--t27-serif); font-size: 17px; font-weight: 600; color: var(--t27-ink-2); }
.t27-cat__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t27-cat__chev { width: 18px; height: 18px; color: var(--t27-muted); transition: transform .25s var(--t27-ease); flex-shrink: 0; }
.t27-cat.is-open > .t27-cat__row .t27-cat__chev { transform: rotate(90deg); }
.t27-cat__sub { display: none; padding: 2px 0 8px 60px; }
.t27-cat.is-open > .t27-cat__sub { display: block; }
.t27-cat__sub a { display: block; padding: 9px 8px; font-size: 14px; color: var(--t27-ink-2); text-decoration: none; border-radius: 10px; }
.t27-cat__sub a:active { background: var(--t27-soft); }
.t27-cat__sub .t27-cat__sub { padding-left: 14px; }
.t27-cat__sub .t27-cat__row { font-size: 14px; padding: 9px 8px; color: var(--t27-ink-2); }
.t27-drawer__foot { padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--t27-line); }
.t27-drawer__foot .t27-btn { width: 100%; }

/* ---------- Bottom tab bar (phones/tablets) ---------- */
.t27-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; height: calc(var(--t27-tabs-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(255,255,255,.92); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); border-top: 1px solid var(--t27-line); display: flex; }
.t27-tabs a, .t27-tabs button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none; color: var(--t27-muted); text-decoration: none; font-size: 10.5px; font-weight: 600; letter-spacing: .01em; cursor: pointer; position: relative; }
.t27-tabs__ico { position: relative; width: 56px; height: 30px; border-radius: 999px; display: flex; align-items: center; justify-content: center; transition: background .25s var(--t27-ease); }
.t27-tabs__ico svg { width: 22px; height: 22px; transition: transform .2s var(--t27-ease); }
.t27-tabs .is-on { color: var(--t27-ink); }
.t27-tabs .is-on .t27-tabs__ico { background: var(--t27-soft); }
.t27-tabs a:active .t27-tabs__ico svg, .t27-tabs button:active .t27-tabs__ico svg { transform: scale(.88); }
.t27-tabs .t27-badge { top: -2px; right: 6px; box-shadow: 0 0 0 2px #fff; }
.t27 .t27-tabs-space { height: calc(var(--t27-tabs-h) + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { .t27-tabs, .t27 .t27-tabs-space { display: none; } }
/* Chat bubble / scroll-to-top sit above the tab bar */
@media (max-width: 1023px) { .t27 .fix-chat-pos { bottom: calc(var(--t27-tabs-h) + 16px + env(safe-area-inset-bottom)) !important; } }

/* ---------- Sections ---------- */
.t27-wrap { max-width: 1320px; margin: 0 auto; }
.t27-sec { padding: 22px 0 6px; }
.t27-sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 16px 14px; }
.t27-sec__title { font-family: var(--t27-serif); font-optical-sizing: auto; font-size: 23px; line-height: 1.12; font-weight: 600; letter-spacing: -.015em; margin: 0; color: var(--t27-ink); }
.t27-sec__title small { display: block; font-family: var(--t27-sans); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--t27-muted); margin-bottom: 6px; }
@media (min-width: 768px) {
    .t27-sec { padding: 48px 0 12px; }
    .t27-sec__head { padding: 0 24px 22px; }
    .t27-sec__title { font-size: 34px; }
}

/* Swipe rows on phones, grid on desktop */
.t27-row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 2px 12px 8px; scroll-padding-left: 12px; scrollbar-width: none; }
.t27-row::-webkit-scrollbar { display: none; }
.t27-row > * { flex: 0 0 calc(45% - 5px); scroll-snap-align: start; min-width: 0; }
@media (min-width: 640px) { .t27-row > * { flex-basis: calc(31% - 7px); } }
@media (min-width: 1024px) {
    .t27-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; overflow: visible; padding: 0 24px; }
    .t27-row > *:nth-child(n+6) { display: none; }
}
.t27-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; padding: 0 8px; }
@media (min-width: 640px) { .t27-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .t27-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 20px; padding: 0 24px; } }

/* ---------- Product card ---------- */
.t27-card { position: relative; display: flex; flex-direction: column; min-width: 0; height: 100%; }
.t27-card__mw { position: relative; }
.t27-card__media { position: relative; display: block; overflow: hidden; border-radius: var(--t27-radius); background: var(--t27-soft); isolation: isolate; }
.t27-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--t27-ease); }
@media (hover: hover) { .t27-card:hover .t27-card__media img { transform: scale(1.045); } }
.t27-card__tag { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 4px 9px; border-radius: 999px; background: var(--t27-surface); color: var(--t27-sale); font-size: 11px; font-weight: 700; letter-spacing: .02em; box-shadow: 0 4px 12px -6px rgba(0,0,0,.25); }
.t27-card__ship { position: absolute; left: 10px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; background: rgba(28,24,20,.72); color: #fff; font-size: 10px; font-weight: 600; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.t27-card__ship svg { width: 12px; height: 12px; }
.t27-card__add { position: absolute; right: 8px; bottom: 8px; z-index: 3; width: 38px; height: 38px; border-radius: 999px; border: 0; display: flex; align-items: center; justify-content: center; background: var(--t27-surface); color: var(--t27-ink); box-shadow: 0 8px 18px -10px rgba(0,0,0,.45); cursor: pointer; transition: transform .16s var(--t27-ease), background .2s, color .2s; }
.t27-card__add svg { width: 19px; height: 19px; }
.t27-card__add:active { transform: scale(.88); }
.t27-card__add:hover { background: var(--t27-accent); color: var(--t27-on-accent); }
.t27-card__add[disabled] { opacity: .45; cursor: not-allowed; }
.t27-card__body { padding: 10px 4px 2px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.t27-card__cat { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--t27-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t27-card__name { font-size: 13.5px; line-height: 1.35; font-weight: 500; color: var(--t27-ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.t27-card__price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 2px; }
.t27-card__now { font-size: 15.5px; font-weight: 700; color: var(--t27-ink); letter-spacing: -.01em; }
.t27-card__was { font-size: 12px; color: var(--t27-muted); text-decoration: line-through; }
.t27-card--out .t27-card__media img { opacity: .55; filter: grayscale(.3); }
.t27-card__out { position: absolute; inset: auto 10px 10px auto; z-index: 2; padding: 4px 9px; border-radius: 999px; background: rgba(28,24,20,.78); color: #fff; font-size: 10.5px; font-weight: 600; }
@media (min-width: 1024px) { .t27-card__name { font-size: 14.5px; } .t27-card__now { font-size: 17px; } .t27-card__body { padding-top: 14px; } }

/* ---------- Hero ---------- */
.t27-hero { position: relative; }
.t27-hero__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.t27-hero__track::-webkit-scrollbar { display: none; }
.t27-hero__slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 1600 / 800; /* Nakshi slider size 1600×800 */ background: var(--t27-soft); }
.t27-hero__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.t27-hero__dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.t27-hero__dots span { width: 6px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.55); transition: width .3s var(--t27-ease), background .3s; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.t27-hero__dots span.is-on { width: 20px; background: #fff; }
.t27-hero__nav { display: none; }
@media (min-width: 1024px) {
    .t27-hero { max-width: 1320px; margin: 20px auto 0; padding: 0 24px; }
    .t27-hero__track { border-radius: 28px; }
    .t27-hero__nav { display: flex; position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 999px; border: 0; background: rgba(255,255,255,.9); color: var(--t27-ink); align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 10px 24px -12px rgba(0,0,0,.4); opacity: 0; transition: opacity .25s; }
    .t27-hero:hover .t27-hero__nav { opacity: 1; }
    .t27-hero__nav--prev { left: 44px; } .t27-hero__nav--next { right: 44px; }
    .t27-hero__nav svg { width: 20px; height: 20px; }
    .t27-hero__dots { bottom: 18px; }
}

/* ---------- Category circles ---------- */
.t27-cats { display: flex; gap: 14px; overflow-x: auto; padding: 18px 16px 4px; scroll-padding: 0 16px; scrollbar-width: none; scroll-snap-type: x proximity; }
.t27-cats::-webkit-scrollbar { display: none; }
.t27-cats a { flex: 0 0 auto; width: 70px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--t27-ink-2); scroll-snap-align: start; }
.t27-cats__img { width: 66px; height: 66px; border-radius: 999px; padding: 3px; background: var(--t27-surface); box-shadow: inset 0 0 0 1.5px var(--t27-line); transition: box-shadow .2s, transform .16s var(--t27-ease); }
.t27-cats__img img { width: 100%; height: 100%; border-radius: 999px; object-fit: cover; background: var(--t27-soft); }
.t27-cats a:active .t27-cats__img { transform: scale(.94); }
.t27-cats a:hover .t27-cats__img { box-shadow: inset 0 0 0 1.5px var(--t27-ink); }
.t27-cats span { font-size: 11.5px; font-weight: 500; line-height: 1.25; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 1024px) {
    .t27-cats { max-width: 1320px; margin: 0 auto; padding: 36px 24px 8px; gap: 28px; justify-content: safe center; }
    .t27-cats a { width: 104px; }
    .t27-cats__img { width: 100px; height: 100px; }
    .t27-cats span { font-size: 13.5px; }
}

/* ---------- Banners (three small ones per row, under the hero; never cropped) ---------- */
.t27-banners { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 8px; padding: 10px 10px 2px; align-items: start; }
.t27-banners a { display: block; border-radius: 12px; overflow: hidden; background: var(--t27-soft); box-shadow: 0 6px 16px -12px rgba(28,24,20,.45); transition: transform .16s var(--t27-ease); -webkit-tap-highlight-color: transparent; }
.t27-banners a:active { transform: scale(.97); }
.t27-banners img { display: block; width: 100%; height: auto; object-fit: contain; }
@media (min-width: 768px) {
    .t27-banners { max-width: 1320px; margin: 0 auto; padding: 20px 24px 4px; gap: 20px; }
    .t27-banners a { border-radius: 18px; }
    .t27-banners a:hover img { transform: scale(1.02); }
    .t27-banners img { transition: transform .6s var(--t27-ease); }
}

/* ---------- Flash sale ---------- */
.t27-flash { margin: 18px 0 0; padding: 18px 0 8px; background: var(--t27-ink); color: #fff; }
.t27-flash .t27-sec__head { padding-bottom: 14px; }
.t27-flash .t27-sec__title { color: #fff; }
.t27-flash .t27-sec__title small { color: rgba(255,255,255,.6); }
.t27-flash .t27-link { color: #fff; }
.t27-flash .t27-card__name, .t27-flash .t27-card__now { color: #fff; }
.t27-flash .t27-card__cat, .t27-flash .t27-card__was { color: rgba(255,255,255,.55); }
.t27-flash .t27-card__media { background: rgba(255,255,255,.08); }
.t27-timer { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.t27-timer b { min-width: 30px; height: 28px; padding: 0 6px; border-radius: 8px; background: rgba(255,255,255,.12); display: inline-flex; align-items: center; justify-content: center; font-size: 13.5px; font-weight: 700; }
.t27-timer i { font-style: normal; opacity: .5; }
@media (min-width: 768px) { .t27-flash { margin: 48px 24px 0; border-radius: 28px; padding: 36px 0 20px; } .t27-flash-wrap { max-width: 1320px; margin: 0 auto; } }

/* ---------- Footer ---------- */
/* Promise strip (light, just above the dark footer) */
.t27-promise { margin-top: 36px; border-top: 1px solid var(--t27-line); background: var(--t27-paper); }
.t27-promise__in { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; }
.t27-promise__in > div { display: flex; align-items: center; gap: 10px; padding: 16px 16px; font-size: 13px; font-weight: 600; color: var(--t27-ink); line-height: 1.25; border-bottom: 1px solid var(--t27-line); }
.t27-promise__in > div:nth-child(odd) { border-right: 1px solid var(--t27-line); }
.t27-promise__in svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--t27-ink-2); stroke-width: 1.6; }
@media (min-width: 1024px) {
    .t27-promise { margin-top: 80px; }
    .t27-promise__in { grid-template-columns: repeat(4, 1fr); padding: 0 24px; }
    .t27-promise__in > div { justify-content: center; padding: 26px 16px; font-size: 14px; border-bottom: 0; border-right: 1px solid var(--t27-line); }
    .t27-promise__in > div:last-child { border-right: 0; }
    .t27-promise__in svg { width: 26px; height: 26px; }
}

/* The footer itself: dark ink, serif brand, editorial wordmark */
.t27-ft { position: relative; overflow: hidden; background: var(--t27-ink); color: rgba(255,255,255,.72); }
.t27-ft a { color: inherit; text-decoration: none; }
.t27-ft__in { position: relative; z-index: 1; max-width: 1320px; margin: 0 auto; padding: 36px 20px 18px; }
.t27-ft__kicker { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 12px; }
.t27-ft__brand { display: inline-flex; align-items: center; gap: 12px; }
.t27-ft__logo { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 6px 12px; border-radius: 14px; background: #fff; }
.t27-ft__logo img { height: 36px; width: auto; max-width: 140px; object-fit: contain; }
.t27-ft__name { font-family: var(--t27-serif); font-optical-sizing: auto; font-size: 26px; font-weight: 600; line-height: 1.1; letter-spacing: -.015em; color: #fff; }
.t27-ft__about { margin: 14px 0 0; font-size: 14.5px; line-height: 1.65; color: rgba(255,255,255,.62); max-width: 440px; }
.t27-ft__help { margin-top: 24px; padding: 18px; border-radius: 20px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.t27-ft__help-row { display: flex; flex-wrap: wrap; gap: 10px; }
.t27-ft__pill { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: #fff !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); transition: background .2s, transform .16s var(--t27-ease); }
.t27-ft__pill:active { transform: scale(.97); }
.t27-ft__pill:hover { background: rgba(255,255,255,.08); }
.t27-ft__pill svg { width: 17px; height: 17px; }
.t27-ft__pill--solid { background: #fff; color: var(--t27-ink) !important; box-shadow: none; }
.t27-ft__pill--solid:hover { background: #f1ece3; }

.t27-ft__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 16px; margin-top: 32px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1); }
.t27-ft__col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.t27-ft__col h4 { margin: 0 0 10px; font-family: var(--t27-serif); font-size: 17px; font-weight: 600; color: #fff; letter-spacing: -.005em; }
.t27-ft__col a { padding: 6px 0; font-size: 14px; color: rgba(255,255,255,.66); transition: color .2s; }
.t27-ft__col a:hover { color: #fff; }
.t27-ft__col:last-child { grid-column: 1 / -1; }

.t27-ft__meta { display: flex; flex-direction: column; gap: 22px; margin-top: 30px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); }
.t27-ft__social > div { display: flex; flex-wrap: wrap; gap: 8px; }
.t27-ft__social a { width: 42px; height: 42px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); transition: background .2s, color .2s; }
.t27-ft__social a:hover { background: #fff; color: var(--t27-ink); }
.t27-ft__social svg { width: 17px; height: 17px; }
.t27-ft__pay-img { display: inline-block; padding: 8px 12px; border-radius: 14px; background: #fff; }
.t27-ft__pay-img img { display: block; width: 100%; max-width: 360px; height: auto; }

.t27-ft__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12.5px; color: rgba(255,255,255,.5); }
.t27-ft__top { flex-shrink: 0; width: 40px; height: 40px; border-radius: 999px; border: 0; background: rgba(255,255,255,.08); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s; }
.t27-ft__top:hover { background: rgba(255,255,255,.16); }
.t27-ft__top svg { width: 18px; height: 18px; }

.t27-ft__mark { position: relative; z-index: 0; padding: 0 12px; margin-top: -4px; overflow: hidden; line-height: .8; pointer-events: none; user-select: none; }
.t27-ft__mark span { display: block; font-family: var(--t27-serif); font-optical-sizing: auto; font-weight: 600; font-size: min(240px, calc(172vw / var(--len, 10))); letter-spacing: -.04em; white-space: nowrap; text-align: center; overflow: hidden; text-overflow: clip; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.12); transform: translateY(18%); }

@media (min-width: 1024px) {
    .t27-ft__in { padding: 72px 24px 24px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.6fr); column-gap: 80px; }
    .t27-ft__name { font-size: 36px; }
    .t27-ft__cols { grid-template-columns: repeat(3, 1fr); margin-top: 0; padding-top: 0; border-top: 0; gap: 32px; align-content: start; }
    .t27-ft__col:last-child { grid-column: auto; }
    .t27-ft__col h4 { font-size: 19px; margin-bottom: 16px; }
    .t27-ft__meta { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: flex-end; margin-top: 48px; }
    .t27-ft__bottom { grid-column: 1 / -1; }
}

/* ---------- Misc ---------- */
.t27-more { display: flex; justify-content: center; padding: 20px 16px 8px; }
.t27-more .t27-btn { min-width: 220px; }
.t27-empty { padding: 40px 16px; text-align: center; color: var(--t27-muted); font-size: 14px; }
@keyframes t27Fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes t27Up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .t27 *, .t27 *::before, .t27 *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- Pages inherited from the shared markup (product, shop, cart, checkout) ---------- */
.t27 .t6pd-ov__back { display: none !important; } /* the app bar already has Back */
.t27 .t6pd-title { font-family: var(--t27-serif); font-optical-sizing: auto; font-weight: 600 !important; letter-spacing: -.015em; }
.t27 .t6pd-actions #order-now, .t27 .t6pd-actions #add_to_cart, .t27 .t6pd-actions #easy-checkout-btn { border-radius: 999px !important; white-space: nowrap; min-width: 0; padding-left: 16px !important; padding-right: 16px !important; font-size: 15px !important; gap: 8px !important; }
.t27 .t6pd-actions svg { width: 20px !important; height: 20px !important; flex-shrink: 0; }
.t27 .t6pd-actions #order-now > span, .t27 .t6pd-actions #add_to_cart > span, .t27 .t6pd-actions #easy-checkout-btn > span { white-space: nowrap; }
.t27 .whatsapp-shine-btn, .t27 .fb-shine-btn { border-radius: 999px !important; }
.t27 .t6pd-bar button { border-radius: 999px !important; }
.t27 .t6pd .size-box, .t27 .t6pd .color-option > div:first-of-type { transition: box-shadow .2s, background .2s; }

/* Text on the vendor colour is always the computed contrast colour (a pale brand colour gets ink, not white). */
.t27 .t6pd-bar__buy { color: var(--t27-on-accent) !important; }
.t27 .t6pd-bar__cart { color: var(--t27-ink) !important; background: var(--t27-surface) !important; box-shadow: inset 0 0 0 1.5px var(--t27-ink) !important; }
.t27 .bg-primary.text-white, .t27 .bg-primary .text-white,
.t27 .bg-\[var\(--primary-color\)\].text-white, .t27 .bg-\[var\(--primary-color\)\] .text-white,
.t27 .bg-\[var\(--primary-color\)\] > svg { color: var(--t27-on-accent) !important; }

/* ---------- Cart drawer ---------- */
.t27 .cart-sidebar.t27-cd { width: 100%; max-width: 420px; right: 0; transform: translateX(105%); transition: transform .34s var(--t27-ease); background: var(--t27-paper); box-shadow: -24px 0 60px -30px rgba(28,24,20,.45); border-radius: 24px 0 0 24px; overflow: hidden; }
.t27 .cart-sidebar.t27-cd.active { right: 0; transform: none; }
@media (max-width: 640px) { .t27 .cart-sidebar.t27-cd { max-width: 100%; border-radius: 0; } }
.t27-cd__scrim { position: fixed; inset: 0; z-index: 1000; background: rgba(28,24,20,.4); opacity: 0; pointer-events: none; transition: opacity .3s; }
.t27-cd__scrim.active { opacity: 1; pointer-events: auto; }
.t27-cd__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 12px 14px 20px; border-bottom: 1px solid var(--t27-line); }
.t27-cd__title { margin: 0; font-family: var(--t27-serif); font-size: 26px; font-weight: 600; letter-spacing: -.015em; color: var(--t27-ink); }
.t27-cd__sub { margin: 2px 0 0; font-size: 12.5px; color: var(--t27-muted); }
.t27-cd__body { flex: 1; overflow-y: auto; padding: 8px 16px; overscroll-behavior: contain; }
.t27-ci { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--t27-line); animation: t27Fade .2s ease-out; }
.t27-ci:last-child { border-bottom: 0; }
.t27-ci__img { flex-shrink: 0; width: 84px; height: 84px; border-radius: 16px; overflow: hidden; background: var(--t27-surface); box-shadow: inset 0 0 0 1px var(--t27-line); }
.t27-ci__img img { width: 100%; height: 100%; object-fit: cover; }
.t27-ci__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.t27-ci__top { display: flex; align-items: flex-start; gap: 8px; }
.t27-ci__name { flex: 1; min-width: 0; margin: 0; font-size: 14px; line-height: 1.35; font-weight: 600; color: var(--t27-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.t27-ci__rm { flex-shrink: 0; width: 32px; height: 32px; margin: -4px -6px 0 0; border: 0; border-radius: 999px; background: transparent; color: var(--t27-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, color .2s; }
.t27-ci__rm:hover { background: #fbeae6; color: var(--t27-sale); }
.t27-ci__rm svg { width: 17px; height: 17px; }
.t27-ci__opts { display: flex; flex-wrap: wrap; gap: 6px; }
.t27-ci__opts span { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--t27-soft); font-size: 11.5px; font-weight: 600; color: var(--t27-ink-2); }
.t27-ci__opts i { width: 11px; height: 11px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.t27-ci__bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.t27-ci__price { font-size: 16px; font-weight: 700; color: var(--t27-ink); white-space: nowrap; letter-spacing: -.01em; }
.t27-qty { display: inline-flex; align-items: center; height: 36px; padding: 3px; border-radius: 999px; background: var(--t27-surface); box-shadow: inset 0 0 0 1px var(--t27-line); }
.t27-qty button { width: 30px; height: 30px; border: 0; border-radius: 999px; background: transparent; color: var(--t27-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s, transform .12s; }
.t27-qty button:hover { background: var(--t27-soft); }
.t27-qty button:active { transform: scale(.88); }
.t27-qty button svg { width: 15px; height: 15px; }
.t27-qty span { min-width: 26px; text-align: center; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.t27-cd__empty { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.t27-cd__empty > span { width: 84px; height: 84px; border-radius: 999px; background: var(--t27-soft); display: flex; align-items: center; justify-content: center; color: var(--t27-ink-2); margin-bottom: 18px; }
.t27-cd__empty > span svg { width: 36px; height: 36px; }
.t27-cd__empty h4 { margin: 0 0 6px; font-family: var(--t27-serif); font-size: 22px; font-weight: 600; color: var(--t27-ink); }
.t27-cd__empty p { margin: 0 0 20px; font-size: 14px; color: var(--t27-muted); max-width: 260px; }
.t27-cd__foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--t27-line); background: var(--t27-surface); }
.t27-cd__total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.t27-cd__total span { font-size: 14px; font-weight: 600; color: var(--t27-ink-2); }
.t27-cd__total strong { font-size: 22px; font-weight: 700; color: var(--t27-ink); letter-spacing: -.01em; }
.t27-cd__note { margin: 4px 0 14px; font-size: 12px; color: var(--t27-muted); }
.t27-cd__actions { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; }
.t27-cd__actions .t27-btn { width: 100%; padding: 0 14px; }
.t27-cd--empty .t27-cd__foot { display: none; }

/* ---------- Card order row ---------- */
.t27-card__cta { display: flex; gap: 6px; padding: 8px 2px 0; }
.t27-card__buy { flex: 1; min-width: 0; height: 40px; padding: 0 10px; border: 0; border-radius: 999px; background: var(--t27-accent); color: var(--t27-on-accent); font-size: 13.5px; font-weight: 700; letter-spacing: .01em; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; transition: transform .14s var(--t27-ease), opacity .2s, box-shadow .2s; }
.t27-card__buy:active { transform: scale(.96); }
.t27-card__buy[disabled] { background: var(--t27-soft); color: var(--t27-muted); cursor: not-allowed; }
.t27-card__bag { flex: 0 0 40px; height: 40px; border: 0; border-radius: 999px; background: var(--t27-surface); color: var(--t27-ink); box-shadow: inset 0 0 0 1.5px var(--t27-line); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .14s var(--t27-ease), box-shadow .2s, background .2s; }
.t27-card__bag svg { width: 18px; height: 18px; }
.t27-card__bag:active { transform: scale(.9); }
.t27-card__bag:hover { box-shadow: inset 0 0 0 1.5px var(--t27-ink); }
.t27-card__bag.is-done { background: var(--t27-ok); color: #fff; box-shadow: none; }
.t27-card__buy.is-busy, .t27-card__bag.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.t27-card__buy.is-busy::after, .t27-card__bag.is-busy::after { content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 999px; border: 2px solid currentColor; border-color: var(--t27-on-accent) transparent var(--t27-on-accent) transparent; animation: t27Spin .7s linear infinite; }
.t27-card__bag.is-busy::after { border-color: var(--t27-ink) transparent var(--t27-ink) transparent; }
.t27-card__bag.is-busy svg { opacity: 0; }
@keyframes t27Spin { to { transform: rotate(360deg); } }
@media (min-width: 1024px) { .t27-card__cta { padding-top: 12px; gap: 8px; } .t27-card__buy { height: 44px; font-size: 14px; } .t27-card__bag { flex-basis: 44px; height: 44px; } }
.t27-flash .t27-card__bag { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3); }

/* Quick-buy sheet: common/quick_buy.blade.php (shared, reads the --t27-* tokens). */

/* ---------- 1-click order button (product page) ---------- */
.t27 #easy-checkout-btn.t27-oneclick { flex: 1; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 8px 16px 8px 8px !important; border: 0; border-radius: 999px !important; background: var(--t27-ink); color: #fff; text-align: left; cursor: pointer; box-shadow: 0 14px 28px -18px rgba(28,24,20,.7) !important; transition: transform .14s var(--t27-ease), box-shadow .2s; }
.t27 #easy-checkout-btn.t27-oneclick:active { transform: scale(.98); }
.t27 #easy-checkout-btn.t27-oneclick:hover { box-shadow: 0 18px 34px -18px rgba(28,24,20,.85) !important; }
.t27-oneclick__ico { flex-shrink: 0; width: 42px; height: 42px; border-radius: 999px; background: var(--t27-accent); color: var(--t27-on-accent); display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 2px rgba(255,255,255,.14); }
.t27-oneclick__ico svg { width: 20px !important; height: 20px !important; }
.t27-oneclick__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.t27-oneclick__txt b { font-size: 16px; font-weight: 700; letter-spacing: -.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t27-oneclick__txt small { margin-top: 2px; font-size: 11.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t27 .t27-oneclick__go { flex-shrink: 0; width: 20px !important; height: 20px !important; color: rgba(255,255,255,.7); transition: transform .2s var(--t27-ease); }
.t27 #easy-checkout-btn.t27-oneclick:hover .t27-oneclick__go { transform: translateX(3px); }

/* 1-click order sheet: styled for every template in common/easy_checkout.blade.php (uses the --t27-* tokens here). */

/* ==========================================================================
   NAKSHI LAYER (template 27, 2026-11-14) — overrides the base above.
   Motifs: lal-paar saree border (red / turmeric / red stripe), nakshi-kantha running
   stitch (dashed lines), alpana flourish under section titles, khadi-paper background.
   Fixed heritage colours (--t27-alta, --t27-holud) only decorate (lal-paar, alpana, flash panel); every button,
   hover, focus ring, price and active state uses the vendor's colour (--t27-accent / --t27-on-accent). The vendor's colour
   (--t27-accent) still drives buttons, so every shop keeps its own brand.
   ========================================================================== */
:root {
    --t27-paper: #ffffff;   /* white page (owner, 2026-11-14) */
    --t27-surface: #ffffff;
    --t27-soft: #f7f1e6;
    --t27-line: #ead8b6;
    --t27-ink: #2b1610;
    --t27-ink-2: #4a2c20;
    --t27-muted: #8a6a52;
    --t27-sale: #b3201a;
    --t27-alta: #b3201a;
    --t27-holud: #d99a1b;
    --t27-shaluk: #1f5c46;
    --t27-radius: 20px;
    --t27-serif: 'Noto Serif Bengali', 'Hind Siliguri', Georgia, serif;
    --t27-sans: 'Hind Siliguri', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --t27-laalpaar: linear-gradient(to bottom, var(--t27-alta) 0 3px, var(--t27-holud) 3px 5px, var(--t27-alta) 5px 7px);
    --t27-alpana: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 18'%3E%3Cg fill='none' stroke='%23b3201a' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M2 9h38M92 9h38' stroke-dasharray='3 4'/%3E%3Cpath d='M66 9c-6-7-14-7-19 0c5 7 13 7 19 0zM66 9c6-7 14-7 19 0c-5 7-13 7-19 0z'/%3E%3C/g%3E%3Cpath d='M66 1.5c4.5 3.5 4.5 11.5 0 15c-4.5-3.5-4.5-11.5 0-15z' fill='%23d99a1b'/%3E%3Cg fill='%23b3201a'%3E%3Ccircle cx='44' cy='9' r='1.6'/%3E%3Ccircle cx='88' cy='9' r='1.6'/%3E%3C/g%3E%3C/svg%3E");
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Plain white page (the khadi dot pattern was dropped on the owner's request) */
body.t27 {
    background: #fff;
    line-height: 1.55;
}

/* Lal-paar under the app bar */
.t27-bar { background: rgba(255,255,255,.92); }
.t27-bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 7px; background: var(--t27-laalpaar); pointer-events: none; }
.t27-bar.is-scrolled { box-shadow: 0 14px 28px -24px rgba(43,22,16,.6); }
.t27-bar__brand span, .t27-ft__name { font-weight: 700; letter-spacing: 0; }
.t27-nav { margin-top: 0; }
.t27-strip { background: var(--t27-ink); }

/* Section titles: Bangla serif + alpana flourish */
.t27-sec__title { font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.t27-sec__title small { font-family: var(--t27-sans); letter-spacing: .08em; text-transform: none; font-size: 12.5px; color: var(--t27-accent); }
.t27-sec__title::after { content: ""; display: block; width: 132px; height: 18px; margin-top: 8px; background: var(--t27-alpana) no-repeat left center / contain; }
@media (min-width: 768px) { .t27-sec__title { font-size: 32px; } .t27-sec__title::after { width: 160px; height: 22px; margin-top: 10px; } }

/* Product card: kantha running stitch inside the photo frame */
.t27-card__media { border-radius: var(--t27-radius); box-shadow: 0 10px 24px -20px rgba(43,22,16,.55); }
.t27-card__media::after { content: ""; position: absolute; inset: 7px; border: 1.5px dashed rgba(255,250,241,.85); border-radius: calc(var(--t27-radius) - 6px); pointer-events: none; z-index: 1; opacity: 0; transition: opacity .35s var(--t27-ease), inset .35s var(--t27-ease); }
@media (hover: hover) { .t27-card:hover .t27-card__media::after { opacity: 1; inset: 9px; } }
.t27-card__tag { background: var(--t27-accent); color: var(--t27-on-accent); box-shadow: 0 6px 14px -8px var(--t27-accent); }
.t27-card__cat { color: var(--t27-holud); letter-spacing: .06em; text-transform: none; font-size: 11.5px; }
.t27-card__name { font-size: 14px; }
.t27-card__now { color: var(--t27-accent); }
.t27-card__add { background: var(--t27-surface); box-shadow: 0 0 0 1.5px var(--t27-line), 0 8px 18px -10px rgba(43,22,16,.5); }

/* Category circles: alpana ring that turns slowly on hover */
.t27-cats__img { position: relative; box-shadow: none; background: transparent; padding: 5px; }
.t27-cats__img::before { content: ""; position: absolute; inset: 0; border-radius: 999px; border: 2px dashed var(--t27-holud); transition: transform .9s var(--t27-ease), border-color .3s; }
.t27-cats a:hover .t27-cats__img::before { transform: rotate(60deg); border-color: var(--t27-accent); }
.t27-cats a:hover .t27-cats__img { box-shadow: none; }
.t27-cats span { font-weight: 600; color: var(--t27-ink-2); }

/* Hero + banners: soft frame, lal-paar foot on desktop */
@media (min-width: 1024px) {
    .t27-hero__track { border-radius: 28px; box-shadow: 0 24px 48px -36px rgba(43,22,16,.7); }
}
.t27-hero__dots span.is-on { background: var(--t27-holud); }
.t27-banners a { box-shadow: 0 0 0 1px var(--t27-line), 0 10px 22px -18px rgba(43,22,16,.6); }

/* Flash sale: alta red panel with a stitched inner border and turmeric timer */
.t27-flash { position: relative; background: radial-gradient(rgba(255,231,180,.09) 1.2px, transparent 1.4px) 0 0 / 18px 18px, linear-gradient(135deg, #8e1712, var(--t27-alta)); }
.t27-flash::before { content: ""; position: absolute; inset: 8px; border: 1.5px dashed rgba(255,226,170,.45); border-radius: inherit; pointer-events: none; }
.t27-flash .t27-sec__title::after { filter: brightness(0) invert(1) sepia(.6) saturate(3) hue-rotate(5deg); opacity: .85; }
.t27-flash .t27-sec__title small { color: #ffe2aa; }
.t27-flash .t27-card__now { color: #ffe2aa; }
.t27-timer b { background: var(--t27-holud); color: var(--t27-ink); }

/* Buttons */
.t27-btn--accent { box-shadow: 0 12px 24px -14px var(--t27-accent); }
.t27-btn--ghost { box-shadow: inset 0 0 0 1.5px var(--t27-accent); color: var(--t27-accent); }
.t27-btn--ghost:hover { background: var(--t27-accent); color: var(--t27-on-accent); }
.t27-more .t27-btn--ghost { border: 1.5px dashed transparent; }

/* Tab bar + promise strip */
.t27-tabs { background: rgba(255,255,255,.95); }
.t27-tabs .is-on { color: var(--t27-accent); }
.t27-tabs .is-on .t27-tabs__ico { background: color-mix(in srgb, var(--t27-accent) 10%, transparent); }
.t27-promise { background: var(--t27-surface); border-top: 0; position: relative; }
.t27-promise__in svg { color: var(--t27-accent); }

/* Footer: deep brown, lal-paar top, kantha-stitch dividers */
.t27-ft { background: #2b1610; }
.t27-ft::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px; background: var(--t27-laalpaar); z-index: 2; }
.t27-ft__cols, .t27-ft__meta, .t27-ft__bottom { border-top: 1.5px dashed rgba(255,226,170,.22); }
.t27-ft__kicker { color: #e9b95a; letter-spacing: .1em; text-transform: none; font-size: 12px; }
.t27-ft__col h4 { color: #ffe2aa; }
.t27-ft__mark span { color: rgba(255,226,170,.06); }

/* Smooth reveal (main.js adds .t27-rv, then .is-in when on screen) */
.t27-rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--t27-ease), transform .7s var(--t27-ease); }
.t27-rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .t27-rv { opacity: 1; transform: none; } }

/* Hero + featured panel (Nakshi): slider left, the shop's featured products right on desktop;
   on phones the panel becomes a swipe row under the slider. */
.t27-feat { margin: 14px 12px 0; padding: 14px 14px 10px; background: var(--t27-surface); border-radius: var(--t27-radius); box-shadow: 0 0 0 1px var(--t27-line), 0 16px 32px -28px rgba(43,22,16,.6); position: relative; }
.t27-feat::before { content: ""; position: absolute; inset: 6px; border: 1.5px dashed var(--t27-line); border-radius: calc(var(--t27-radius) - 5px); pointer-events: none; }
.t27-feat__head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px 10px; }
.t27-feat__head h2 { margin: 0; font-family: var(--t27-serif); font-size: 18px; font-weight: 700; color: var(--t27-ink); display: flex; align-items: center; gap: 8px; }
.t27-feat__head h2::before { content: ""; width: 26px; height: 18px; background: var(--t27-alpana) no-repeat center / 132px 18px; }
.t27-feat__head .t27-link { color: var(--t27-accent); font-size: 12.5px; }
.t27-feat__list { position: relative; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.t27-feat__list::-webkit-scrollbar { display: none; }
.t27-feat__item { flex: 0 0 82%; scroll-snap-align: start; display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; text-decoration: none; color: var(--t27-ink); background: #fbf6ee; transition: background .25s var(--t27-ease), transform .2s var(--t27-ease); }
.t27-feat__item:hover { background: var(--t27-soft); }
.t27-feat__item:active { transform: scale(.98); }
.t27-feat__img { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--t27-line); }
.t27-feat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--t27-ease); }
.t27-feat__item:hover .t27-feat__img img { transform: scale(1.07); }
.t27-feat__txt { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.t27-feat__txt small { font-size: 11px; color: var(--t27-holud); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t27-feat__txt b { font-size: 13.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.t27-feat__price { font-size: 14px; font-weight: 700; color: var(--t27-accent); }
.t27-feat__price s { font-size: 11.5px; font-weight: 500; color: var(--t27-muted); margin-left: 4px; }
.t27-feat__go { flex: 0 0 auto; width: 18px; height: 18px; color: var(--t27-muted); transition: transform .2s var(--t27-ease), color .2s; }
.t27-feat__item:hover .t27-feat__go { transform: translateX(3px); color: var(--t27-accent); }
@media (min-width: 1024px) {
    .t27-herox { max-width: 1320px; margin: 20px auto 0; padding: 0 24px; }
    .t27-herox .t27-hero { max-width: none; margin: 0; padding: 0; }
    /* the slide keeps its 1900×620 shape (vendors upload that size, nothing gets cut); the panel takes the slide's height */
    .t27-herox.has-feat { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
    .t27-herox.has-feat > .t27-feat { align-self: stretch; overflow: hidden; height: 0; min-height: 100%; } /* never taller than the slide */
    .t27-herox.has-feat .t27-hero__nav--prev { left: 20px; } .t27-herox.has-feat .t27-hero__nav--next { right: 20px; }
    .t27-feat { margin: 0; display: flex; flex-direction: column; padding: 12px 14px 12px; }
    .t27-feat__head { padding-bottom: 6px; }
    /* up to 6: three fit the slide's height, the rest scroll (snap per item, thin scrollbar, fade at the bottom) */
    .t27-feat__list { flex-direction: column; flex: 1; gap: 6px; min-height: 0; overflow-x: hidden; overflow-y: auto; scroll-snap-type: y proximity; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--t27-line) transparent; padding-right: 2px; -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 22px), transparent); }
    .t27-feat__list::-webkit-scrollbar { display: block; width: 4px; }
    .t27-feat__list::-webkit-scrollbar-thumb { background: var(--t27-line); border-radius: 4px; }
    .t27-feat__list.is-end { -webkit-mask-image: none; mask-image: none; }
    .t27-feat__item { flex: 0 0 auto; height: 72px; padding: 4px 8px; gap: 10px; scroll-snap-align: start; }
    .t27-feat__img { width: 52px; height: 52px; }
    .t27-feat__txt b { -webkit-line-clamp: 1; }
}

/* Header actions with text on desktop (Nakshi): soft pills "👤 Account ⌄" and "🛍 Cart (n)"; phones keep icons only */
.t27-act__lbl, .t27-act__chev { display: none; }
@media (min-width: 1024px) {
    .t27-bar__actions { gap: 10px; }
    .t27-act { width: auto; height: 44px; padding: 0 16px 0 13px; gap: 8px; border-radius: 999px; font-size: 14.5px; font-weight: 600; text-decoration: none; transition: background .2s, box-shadow .2s, color .2s, transform .16s var(--t27-ease); }
    .t27-act svg { width: 20px; height: 20px; }
    .t27-act .t27-act__lbl { display: inline; white-space: nowrap; }
    .t27-act .t27-act__chev { display: inline; width: 16px; height: 16px; color: var(--t27-muted); transition: transform .2s var(--t27-ease); }
    .t27-act--acc { color: var(--t27-ink-2); }
    .t27-act--acc:hover { background: var(--t27-soft); }
    .t27-act--acc:hover .t27-act__chev { transform: translateY(2px); }
    .t27-act--cart { color: var(--t27-accent); background: color-mix(in srgb, var(--t27-accent) 8%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t27-accent) 22%, transparent); }
    .t27-act--cart:hover { background: var(--t27-accent); color: var(--t27-on-accent); box-shadow: none; }
    /* the count sits inline as a round chip after the word */
    .t27-act--cart .t27-badge { position: static; display: inline-block; min-width: 22px; height: 22px; line-height: 22px; font-size: 11.5px; padding: 0 6px; background: var(--t27-accent); color: var(--t27-on-accent); box-shadow: none; }
    .t27-act--cart .t27-badge[data-zero="1"] { display: inline-block; }
    .t27-act--cart:hover .t27-badge { background: var(--t27-on-accent); color: var(--t27-accent); }
}

/* Classic desktop search (Nakshi, 2026-11-14): one framed field — icon, input, clear (×), joined button.
   Calm 1.5px frame, warm focus ring in the heritage red; replaces the base rounded pill. */
@media (min-width: 1024px) {
    .t27-bar__desk form.t27-sf { position: relative; width: 100%; max-width: 600px; height: 48px; padding: 0; gap: 0; display: flex; align-items: stretch; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px #e3d6c3; transition: box-shadow .2s var(--t27-ease); overflow: hidden; }
    .t27-bar__desk form.t27-sf:hover { box-shadow: inset 0 0 0 1.5px #cdb999; }
    .t27-bar__desk form.t27-sf:focus-within { box-shadow: inset 0 0 0 1.5px var(--t27-accent), 0 0 0 4px color-mix(in srgb, var(--t27-accent) 14%, transparent); }
    .t27-sf__ico { flex: 0 0 auto; align-self: center; width: 19px; height: 19px; margin: 0 10px 0 16px; color: var(--t27-muted); transition: color .2s; }
    .t27-sf:focus-within .t27-sf__ico { color: var(--t27-accent); }
    .t27-bar__desk .t27-sf input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 15px; color: var(--t27-ink); padding: 0 6px 0 0; }
    .t27-sf input::placeholder { color: #a8957f; }
    .t27-sf input::-webkit-search-cancel-button { display: none; }
    .t27-bar__desk .t27-sf__clear { display: none; flex: 0 0 auto; align-self: center; width: 28px; height: 28px; margin-right: 6px; border-radius: 999px; border: 0; background: var(--t27-soft); color: var(--t27-ink-2); align-items: center; justify-content: center; cursor: pointer; }
    .t27-bar__desk .t27-sf__clear svg { width: 14px; height: 14px; }
    .t27-sf.has-q .t27-sf__clear { display: flex; }
    .t27-bar__desk .t27-sf__go { flex: 0 0 auto; width: auto; height: auto; margin: 5px; padding: 0 22px; border-radius: 8px; border: 0; background: var(--t27-accent); color: var(--t27-on-accent); font-size: 14.5px; font-weight: 600; letter-spacing: .01em; cursor: pointer; transition: background .2s, transform .12s var(--t27-ease); }
    .t27-bar__desk .t27-sf__go:hover { filter: brightness(.9); }
    .t27-bar__desk .t27-sf__go:active { transform: scale(.97); }
}
/* Phone search field (opens the search sheet): same classic frame */
.t27-search-pill { border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px #e3d6c3; color: #a8957f; height: 46px; }
.t27-search-pill svg { color: var(--t27-accent); }

/* Desktop menu row (Nakshi, 2026-11-14) — a quiet classic row of its own:
   solid "Categories" key on the left in the shop colour, links in a calm weight with a tiny turmeric
   diamond between them (an alpana dot), and an underline that grows from the centre on hover.
   The active page keeps the line and takes the shop colour. Separators are absolute, so t27NavFit's width maths is unchanged. */
@media (min-width: 1024px) {
    .t27-nav { background: #fff; border-top: 1px solid #f1e8da; }
    .t27-nav__in { height: 54px; gap: 30px; }
    .t27-nav__cats { gap: 30px; }
    .t27-nav a, .t27-nav button { font-size: 14px; font-weight: 600; color: var(--t27-ink-2); padding: 16px 0; letter-spacing: .005em; transition: color .25s var(--t27-ease); }
    .t27-nav a::after { left: 50%; right: auto; width: 100%; bottom: 10px; height: 2px; border-radius: 2px; background: var(--t27-accent); transform: translateX(-50%) scaleX(0); transform-origin: center; transition: transform .35s var(--t27-ease); }
    .t27-nav a:hover::after, .t27-nav a.is-on::after { transform: translateX(-50%) scaleX(1); }
    .t27-nav a:hover, .t27-nav a.is-on { color: var(--t27-accent); }
    /* alpana dot between links */
    .t27-nav__in > a:not(.t27-nav__pre) + a::before, .t27-nav__cats a + a::before, .t27-nav__in > a:not(.t27-nav__pre) + .t27-nav__cats > a:first-child::before {
        content: ""; position: absolute; left: -17px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; background: var(--t27-holud); transform: rotate(45deg); opacity: .7; pointer-events: none;
    }
    /* "Categories" key */
    .t27-nav .t27-nav__all { flex: none; height: 38px; padding: 0 14px 0 12px; margin-right: 4px; border-radius: 10px; background: var(--t27-accent); color: var(--t27-on-accent); gap: 8px; box-shadow: 0 8px 18px -12px var(--t27-accent); transition: filter .2s, transform .16s var(--t27-ease); }
    .t27-nav .t27-nav__all:hover { filter: brightness(.92); color: var(--t27-on-accent); }
    .t27-nav .t27-nav__all:active { transform: scale(.97); }
    .t27-nav .t27-nav__all svg { width: 17px; height: 17px; }
    .t27-nav .t27-nav__all .t27-nav__chev { width: 15px; height: 15px; opacity: .8; transition: transform .25s var(--t27-ease); }
    .t27-nav .t27-nav__all:hover .t27-nav__chev { transform: translateY(2px); }
    /* Preorder stays a soft pill at the end, in the shop colour */
    .t27-nav__in > .t27-nav__pre { padding: 8px 15px; font-size: 13.5px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t27-accent) 22%, transparent); }
}
@media (min-width: 1024px) {
    /* room for the diamond before the first category: the row clips overflow, the padding stays visible */
    .t27-nav__cats { margin-left: -17px; padding-left: 17px; }
}

/* ---------- Categories: jharokha arches (Nakshi) ----------
   Each tile is an arched window (like the terracotta temples of Bishnupur) on a soft heritage tint;
   six tints cycle. Hover: the tile lifts, the photo grows, and a kantha stitch in the shop colour
   runs round the arch. Phones: a two-row swipe strip; desktop: one row with arrows. */
.t27-cx { padding: 24px 0 4px; }
.t27-cx__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 16px 14px; }
.t27-cx__tools { display: flex; align-items: center; gap: 8px; }
.t27-cx__tools .t27-link { color: var(--t27-accent); }
.t27-cx__arrow { display: none; width: 40px; height: 40px; border-radius: 999px; border: 0; background: #fff; color: var(--t27-ink); box-shadow: inset 0 0 0 1.5px var(--t27-line); align-items: center; justify-content: center; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s, opacity .2s; }
.t27-cx__arrow svg { width: 18px; height: 18px; }
.t27-cx__arrow:hover:not([disabled]) { background: var(--t27-accent); color: var(--t27-on-accent); box-shadow: none; }
.t27-cx__arrow[disabled] { opacity: .35; cursor: default; }

.t27-cx__track { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 86px; gap: 14px 12px; overflow-x: auto; padding: 4px 16px 8px; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.t27-cx__track::-webkit-scrollbar { display: none; }
.t27-cx__item { --tint: #fbe7e4; --deep: #b3201a; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--t27-ink); -webkit-tap-highlight-color: transparent; }
.t27-cx--1 { --tint: #fdf1d6; --deep: #c98a0e; }
.t27-cx--2 { --tint: #e6f1e3; --deep: #2f6b3a; }
.t27-cx--3 { --tint: #e5ebf6; --deep: #2b4a8b; }
.t27-cx--4 { --tint: #f8e4d8; --deep: #a64b24; }
.t27-cx--5 { --tint: #f9e3ec; --deep: #a8326a; }
.t27-cx__arch { position: relative; width: 100%; aspect-ratio: 4 / 5; border-radius: 999px 999px 18px 18px; background: var(--tint); padding: 7px 7px 0; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; isolation: isolate; transition: transform .35s var(--t27-ease), box-shadow .35s var(--t27-ease); }
/* the stitch that runs round the arch on hover */
.t27-cx__arch::after { content: ""; position: absolute; inset: 4px; border: 1.5px dashed var(--t27-accent); border-radius: 999px 999px 14px 14px; opacity: 0; transform: scale(.96); transition: opacity .3s, transform .35s var(--t27-ease); pointer-events: none; z-index: 2; }
.t27-cx__arch img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px 12px 12px; transition: transform .6s var(--t27-ease); }
.t27-cx__letter { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; border-radius: 999px 999px 12px 12px; font-family: var(--t27-serif); font-size: 30px; font-weight: 700; color: var(--deep); background: radial-gradient(circle at 50% 38%, rgba(255,255,255,.75) 0 28%, transparent 29%), radial-gradient(color-mix(in srgb, var(--deep) 18%, transparent) 1.2px, transparent 1.5px) 0 0 / 10px 10px; }
.t27-cx__name { width: 100%; font-size: 12.5px; font-weight: 600; line-height: 1.3; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.t27-cx__item:active .t27-cx__arch { transform: scale(.96); }
@media (hover: hover) {
    .t27-cx__item:hover .t27-cx__arch { transform: translateY(-4px); box-shadow: 0 16px 26px -18px color-mix(in srgb, var(--deep) 70%, transparent); }
    .t27-cx__item:hover .t27-cx__arch::after { opacity: 1; transform: none; }
    .t27-cx__item:hover .t27-cx__arch img { transform: scale(1.06); }
    .t27-cx__item:hover .t27-cx__name { color: var(--t27-accent); }
}
@media (min-width: 768px) {
    .t27-cx { max-width: 1320px; margin: 0 auto; padding: 44px 0 8px; }
    .t27-cx__head { padding: 0 24px 22px; }
    .t27-cx__arrow { display: inline-flex; }
    .t27-cx__track { grid-template-rows: auto; grid-auto-columns: calc((100% - 48px - 7 * 22px) / 8); gap: 22px; padding: 6px 24px 10px; scroll-padding: 0 24px; }
    .t27-cx__name { font-size: 14px; }
    .t27-cx__letter { font-size: 40px; }
}
@media (min-width: 768px) and (max-width: 1023px) { .t27-cx__track { grid-auto-columns: calc((100% - 48px - 5 * 18px) / 6); gap: 18px; } }

/* Phone app bar: search and cart icons sit in round outlined buttons (owner, 2026-11-14) */
@media (max-width: 1023px) {
    .t27-bar__actions { gap: 8px; padding-right: 6px; }
    .t27-bar__actions .t27-ico { width: 40px; height: 40px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--t27-line); color: var(--t27-ink); transition: box-shadow .2s, color .2s, transform .16s var(--t27-ease); }
    .t27-bar__actions .t27-ico svg { width: 19px; height: 19px; }
    .t27-bar__actions .t27-ico:active { transform: scale(.92); box-shadow: inset 0 0 0 1.5px var(--t27-accent); color: var(--t27-accent); }
    .t27-bar__actions .t27-badge { top: -3px; right: -3px; box-shadow: 0 0 0 2px #fff; }
}

/* Categories v2 (owner, 2026-11-14): the arch cropped category photos/icons. Now a soft square tile whose
   image is shown WHOLE (contain, with breathing room), so an icon or a product photo always reads.
   Tints, hover lift, the kantha stitch in the shop colour and the letter fallback stay. */
.t27-cx__arch { aspect-ratio: 1 / 1; border-radius: 22px; padding: 14%; align-items: center; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--deep) 10%, transparent); }
.t27-cx__arch::after { inset: 5px; border-radius: 18px; }
.t27-cx__arch img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; filter: drop-shadow(0 6px 8px rgba(43,22,16,.12)); }
.t27-cx__letter { border-radius: 14px; background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.8) 0 34%, transparent 35%), radial-gradient(color-mix(in srgb, var(--deep) 18%, transparent) 1.2px, transparent 1.5px) 0 0 / 10px 10px; }
@media (hover: hover) { .t27-cx__item:hover .t27-cx__arch img { transform: scale(1.08) translateY(-2px); } }
/* Categories without a heading: small gap under the slider, arrows float on the row's edges (desktop) */
.t27-cx { position: relative; padding-top: 16px; }
@media (min-width: 768px) {
    .t27-cx { padding-top: 26px; }
    .t27-cx__arrow { position: absolute; z-index: 3; top: calc(26px + (100% - 26px - 8px) * .36); transform: translateY(-50%); box-shadow: inset 0 0 0 1.5px var(--t27-line), 0 8px 18px -10px rgba(43,22,16,.35); }
    .t27-cx__arrow--prev { left: 8px; } .t27-cx__arrow--next { right: 8px; }
    .t27-cx__arrow[disabled] { opacity: 0; pointer-events: none; }
}
/* Same width as the slider + featured row: the category row is clipped at the content edge (24px in),
   so no tile peeks out past the featured panel. */
@media (min-width: 768px) {
    .t27-cx { padding-left: 24px; padding-right: 24px; }
    .t27-cx__track { padding: 6px 0 10px; scroll-padding: 0; grid-auto-columns: calc((100% - 7 * 22px) / 8); }
    .t27-cx__arrow--prev { left: 6px; } .t27-cx__arrow--next { right: 6px; }
}
@media (min-width: 768px) and (max-width: 1023px) { .t27-cx__track { grid-auto-columns: calc((100% - 5 * 18px) / 6); } }

/* ---------- Product card v2 (Nakshi, 2026-11-14) ----------
   Material-style card: every card is its own white surface (1px warm hairline, 16px corners), equal height
   in its row, the action pinned to the bottom so buttons line up across a row. Even gutters on every device:
   12px phones, 16px tablets, 20px desktop. Hover (mouse only): lifts 3px with a soft shadow, frame takes
   the shop colour, photo zooms gently, button arrow nudges. */
.t27-card { background: #fff; border-radius: 16px; padding: 6px; box-shadow: 0 0 0 1px #efe6d8; transition: box-shadow .3s var(--t27-ease), transform .3s var(--t27-ease); }
.t27-card__media { border-radius: 12px; box-shadow: none; background: #f8f4ee; }
.t27-card__media::after { display: none; }
.t27-card__body { padding: 10px 6px 6px; gap: 5px; }
.t27-card__cat { color: var(--t27-muted); font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.t27-card__name { font-size: 14px; font-weight: 600; line-height: 1.38; color: var(--t27-ink); min-height: 2.76em; transition: color .2s; }
.t27-card__price { margin-top: 2px; gap: 6px; align-items: baseline; }
.t27-card__now { font-size: 16.5px; font-weight: 700; color: var(--t27-ink); letter-spacing: -.01em; }
.t27-card__was { font-size: 12.5px; }
.t27-card__tag { top: 8px; left: 8px; padding: 4px 8px; border-radius: 8px; font-size: 11.5px; background: var(--t27-accent); color: var(--t27-on-accent); box-shadow: none; }
.t27-card__ship { left: 8px; bottom: 8px; border-radius: 8px; background: rgba(255,255,255,.92); color: #1f5c46; font-weight: 700; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 2px 8px -4px rgba(0,0,0,.25); }
.t27-card__out { right: 8px; bottom: 8px; border-radius: 8px; }
.t27-card__go { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border-radius: 10px; background: var(--t27-accent); color: var(--t27-on-accent); font-size: 14px; font-weight: 600; text-decoration: none; transition: filter .2s, transform .12s var(--t27-ease); }
.t27-card__price { margin-bottom: 10px; }
.t27-card__go svg { width: 16px; height: 16px; transition: transform .25s var(--t27-ease); }
.t27-card__go:active { transform: scale(.97); }
.t27-card__go.is-off { background: #eee8df; color: var(--t27-muted); cursor: not-allowed; }
.t27-card__cta, .t27-card__add, .t27-card__bag { display: none !important; }
@media (hover: hover) {
    .t27-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--t27-accent) 35%, #efe6d8), 0 18px 34px -22px rgba(43,22,16,.35); }
    .t27-card:hover .t27-card__media img { transform: scale(1.05); }
    .t27-card:hover .t27-card__name { color: var(--t27-accent); }
    .t27-card__go:hover { filter: brightness(.93); }
    .t27-card:hover .t27-card__go svg { transform: translateX(3px); }
}
@media (min-width: 1024px) {
    .t27-card { padding: 8px; }
    .t27-card__body { padding: 12px 6px 6px; }
    .t27-card__name { font-size: 14.5px; }
    .t27-card__now { font-size: 18px; }
    .t27-card__go { height: 42px; font-size: 14.5px; }
}
/* even gutters */
.t27-grid { gap: 12px; padding: 0 12px; }
.t27-row { gap: 12px; padding: 4px 12px 14px; scroll-padding-left: 12px; }
.t27-row > * { flex-basis: calc(46% - 6px); }
@media (min-width: 640px) { .t27-grid { gap: 16px; padding: 0 16px; } .t27-row { gap: 16px; padding: 4px 16px 14px; } .t27-row > * { flex-basis: calc(31% - 8px); } }
@media (min-width: 1024px) { .t27-grid { gap: 20px; padding: 0 24px; } .t27-row { gap: 20px; padding: 4px 24px 14px; } }

/* ---------- Product card v3 "haat tag" (Nakshi, 2026-11-14) — replaces v2 above ----------
   Photo flush to the top of a white card; the price is a stitched tag (dashed inner line, like a cloth
   price label at a haat) hanging half over the photo; discount = a hanging ribbon with a notched tail;
   a thin outlined Order button. Phones: 8px gutters, no inner padding, so the photos stay big. */
.t27-card { padding: 0; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px #f0e8dc; }
.t27-card__media { border-radius: 0; background: #f7f2eb; }
.t27-card__body { position: relative; padding: 22px 10px 10px; gap: 4px; }
.t27-card__cat { display: none; }
/* price tag */
.t27-card__price { position: absolute; top: 0; left: 10px; transform: translateY(-55%); z-index: 3; margin: 0; padding: 5px 11px; gap: 6px; background: #fff; border-radius: 9px; box-shadow: 0 6px 14px -8px rgba(43,22,16,.45), 0 0 0 1px #eadfcd; flex-wrap: nowrap; max-width: calc(100% - 20px); }
.t27-card__price::before { content: ""; position: absolute; inset: 2.5px; border: 1px dashed color-mix(in srgb, var(--t27-accent) 55%, transparent); border-radius: 7px; pointer-events: none; }
.t27-card__price::after { content: ""; position: absolute; left: -4px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 999px; background: var(--t27-holud); box-shadow: 0 0 0 2px #fff; }
.t27-card__now { font-size: 15px; font-weight: 800; color: var(--t27-ink); white-space: nowrap; }
.t27-card__was { font-size: 11.5px; white-space: nowrap; }
.t27-card__name { font-size: 13.5px; font-weight: 600; line-height: 1.35; min-height: 2.7em; margin-top: 2px; }
/* hanging ribbon */
.t27-card__tag { top: 0; left: auto; right: 10px; padding: 7px 6px 11px; min-width: 34px; text-align: center; border-radius: 0 0 2px 2px; font-size: 11px; font-weight: 800; line-height: 1.1; background: var(--t27-accent); color: var(--t27-on-accent); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%); box-shadow: none; }
/* thin outlined button */
.t27-card__go { margin-top: 8px; height: 34px; border-radius: 8px; background: transparent; color: var(--t27-accent); box-shadow: inset 0 0 0 1.25px color-mix(in srgb, var(--t27-accent) 70%, transparent); font-size: 13px; font-weight: 700; letter-spacing: .01em; transition: background .2s, color .2s, box-shadow .2s, transform .12s var(--t27-ease); }
.t27-card__go svg { width: 15px; height: 15px; }
.t27-card__go:active { background: var(--t27-accent); color: var(--t27-on-accent); }
.t27-card__go.is-off { box-shadow: inset 0 0 0 1.25px #e5ddd0; background: transparent; }
.t27-card__ship { left: 8px; bottom: auto; top: 8px; }
.t27-card__out { bottom: auto; top: 8px; right: auto; left: 8px; }
@media (hover: hover) {
    .t27-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--t27-accent) 30%, #f0e8dc), 0 16px 30px -22px rgba(43,22,16,.4); }
    .t27-card__go:hover { background: var(--t27-accent); color: var(--t27-on-accent); box-shadow: none; filter: none; }
}
@media (min-width: 1024px) {
    .t27-card { padding: 0; }
    .t27-card__body { padding: 24px 12px 12px; }
    .t27-card__now { font-size: 16.5px; }
    .t27-card__name { font-size: 14.5px; }
    .t27-card__go { height: 36px; font-size: 13.5px; }
}
/* tighter gutters on phones */
.t27-grid { gap: 8px; padding: 0 8px; }
.t27-row { gap: 8px; padding: 4px 8px 12px; scroll-padding-left: 8px; }
.t27-row > * { flex-basis: calc(47% - 4px); }
@media (min-width: 640px) { .t27-grid { gap: 14px; padding: 0 14px; } .t27-row { gap: 14px; padding: 4px 14px 14px; } }
@media (min-width: 1024px) { .t27-grid { gap: 20px; padding: 0 24px; } .t27-row { gap: 20px; padding: 4px 24px 14px; } }

/* Owner, 2026-11-14: the card button is a thin, full-width, filled button in the shop colour,
   and the line under the app bar is a hairline in the shop colour (was the 7px lal-paar stripe). */
.t27-card__go { width: 100%; height: 32px; background: var(--t27-accent); color: var(--t27-on-accent); box-shadow: none; }
.t27-card__go:active { filter: brightness(.9); }
.t27-card__go.is-off { background: #eee8df; color: var(--t27-muted); box-shadow: none; }
@media (hover: hover) { .t27-card__go:hover { background: var(--t27-accent); color: var(--t27-on-accent); filter: brightness(.92); } }
@media (min-width: 1024px) { .t27-card__go { height: 34px; } }
.t27-bar::after { bottom: -1.5px; height: 1.5px; background: var(--t27-accent); }

/* ---------- Footer v2 (Nakshi, 2026-11-14) — light, replaces the dark .t27-ft ---------- */
.t27-fx { margin-top: 40px; background: #faf7f2; border-top: 1.5px solid var(--t27-accent); color: var(--t27-ink-2); }
.t27-fx a { text-decoration: none; }
.t27-fx__in { max-width: 1320px; margin: 0 auto; padding: 22px 14px 14px; }
/* help card */
.t27-fx__help { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 18px; background: var(--t27-accent); color: var(--t27-on-accent); }
.t27-fx__help::after { content: ""; position: absolute; right: -40px; top: 50%; width: 190px; height: 190px; transform: translateY(-50%); border-radius: 999px; border: 2px dashed currentColor; opacity: .18; box-shadow: inset 0 0 0 26px transparent, 0 0 0 18px color-mix(in srgb, currentColor 6%, transparent); pointer-events: none; }
.t27-fx__help-txt span { display: block; font-size: 12.5px; font-weight: 600; opacity: .8; }
.t27-fx__help-txt b { display: block; margin-top: 2px; font-family: var(--t27-serif); font-size: 20px; font-weight: 700; line-height: 1.3; }
.t27-fx__help-act { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; }
.t27-fx__btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; font-size: 14px; font-weight: 700; color: inherit !important; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 45%, transparent); transition: background .2s, transform .12s var(--t27-ease); }
.t27-fx__btn svg { width: 17px; height: 17px; }
.t27-fx__btn:active { transform: scale(.97); }
.t27-fx__btn:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.t27-fx__btn--solid { background: var(--t27-on-accent); color: var(--t27-accent) !important; box-shadow: none; }
.t27-fx__btn--solid:hover { background: var(--t27-on-accent); filter: brightness(.95); }
/* columns */
.t27-fx__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 16px; padding: 26px 4px 6px; }
.t27-fx__brand { grid-column: 1 / -1; }
.t27-fx__name { font-family: var(--t27-serif); font-size: 22px; font-weight: 700; color: var(--t27-ink); }
.t27-fx__brand p { margin: 8px 0 0; font-size: 14px; line-height: 1.65; color: var(--t27-muted); max-width: 420px; }
.t27-fx__social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.t27-fx__social a { width: 38px; height: 38px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--t27-ink-2); box-shadow: inset 0 0 0 1px #eadfcd; transition: background .2s, color .2s, transform .2s var(--t27-ease); }
.t27-fx__social a:hover { background: var(--t27-accent); color: var(--t27-on-accent); box-shadow: none; transform: translateY(-2px); }
.t27-fx__social svg { width: 16px; height: 16px; }
.t27-fx__col { display: flex; flex-direction: column; min-width: 0; }
.t27-fx__col h4 { position: relative; margin: 0 0 10px; padding-bottom: 8px; font-family: var(--t27-serif); font-size: 15.5px; font-weight: 700; color: var(--t27-ink); }
.t27-fx__col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; border-radius: 2px; background: var(--t27-accent); }
.t27-fx__col a { position: relative; padding: 5px 0; font-size: 14px; color: var(--t27-muted); transition: color .2s, padding .25s var(--t27-ease); }
.t27-fx__col a:hover { color: var(--t27-accent); padding-left: 6px; }
.t27-fx__col:last-child { grid-column: auto; }
/* promises */
.t27-fx__promise { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px dashed #e6dac7; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.t27-fx__promise li { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px #efe5d6; font-size: 12.5px; font-weight: 600; color: var(--t27-ink-2); line-height: 1.25; }
.t27-fx__promise svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--t27-accent); }
/* bottom bar: back-to-top on the left */
.t27-fx__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed #e6dac7; font-size: 12.5px; color: var(--t27-muted); }
.t27-fx__top { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 5px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px #eadfcd; color: var(--t27-ink); font-size: 13px; font-weight: 700; cursor: pointer; transition: box-shadow .2s, color .2s; }
.t27-fx__top-ic { width: 26px; height: 26px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: var(--t27-accent); color: var(--t27-on-accent); transition: transform .25s var(--t27-ease); }
.t27-fx__top-ic svg { width: 15px; height: 15px; }
.t27-fx__top:hover { box-shadow: inset 0 0 0 1px var(--t27-accent); color: var(--t27-accent); }
.t27-fx__top:hover .t27-fx__top-ic { transform: translateY(-2px); }
.t27-fx__copy { flex: 1 1 200px; }
.t27-fx__pay img { display: block; height: 26px; width: auto; max-width: 100%; }
@media (min-width: 768px) {
    .t27-fx__in { padding: 36px 24px 18px; }
    .t27-fx__help { flex-direction: row; align-items: center; justify-content: space-between; padding: 22px 28px; border-radius: 22px; }
    .t27-fx__help-txt b { font-size: 24px; }
    .t27-fx__promise { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
    .t27-fx { margin-top: 64px; }
    .t27-fx__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding: 40px 4px 10px; }
    .t27-fx__brand { grid-column: auto; }
    .t27-fx__promise li { justify-content: center; padding: 12px; font-size: 13.5px; }
}
/* the old promise strip / dark footer are no longer rendered */
.t27-promise, .t27-ft { display: none; }

/* Top strip ("Call us …"): a deep shade of the shop colour (owner, 2026-11-14) instead of fixed brown.
   42% shop colour + 58% near-black brown in OKLab keeps it dark for any colour (yellow → deep gold-brown,
   not mud), so the white text always reads. Fallback (no color-mix) = the old brown. */
.t27-strip { background: #2b1610; background: color-mix(in oklab, var(--t27-accent) 42%, #120a06); color: rgba(255,255,255,.86); }
.t27-strip a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
/* Card chips don't collide (owner, 2026-11-14): Preorder top-left (shared .sspo-tag), discount ribbon top-right,
   Free shipping / Out of stock bottom-right of the photo (the price tag hangs at bottom-left). */
.t27-card__ship { top: auto; left: auto; right: 8px; bottom: 8px; z-index: 4; }
.t27-card__out { top: auto; left: auto; right: 8px; bottom: 8px; z-index: 4; }
.t27-card .sspo-tag { top: 8px; left: 8px; border-radius: 8px; padding: 3px 8px; font-size: 11px; }
/* Preorder badge in Nakshi (overrides the shared .sspo-tag only inside t27 cards): a white label with a
   hairline frame, a small clock icon in the shop colour and a stitched inner line — matches the price tag. */
.t27-card .sspo-tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px 4px 7px; border-radius: 8px; background: rgba(255,255,255,.95); color: var(--t27-ink); font-size: 11px; font-weight: 700; letter-spacing: .01em; box-shadow: 0 0 0 1px #eadfcd, 0 4px 10px -6px rgba(43,22,16,.4); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.t27-card .sspo-tag::before { content: ""; width: 13px; height: 13px; flex: 0 0 auto; background: var(--t27-accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat; }
.t27-card .sspo-tag::after { content: ""; position: absolute; inset: 2px; border: 1px dashed color-mix(in srgb, var(--t27-accent) 45%, transparent); border-radius: 6px; pointer-events: none; }
/* Category sections: phones show a 2×2 grid of four (owner, 2026-11-14); tablets 3 + swipe off; desktop the row of five */
@media (max-width: 1023px) {
    .t27-row--quad { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; scroll-snap-type: none; }
    .t27-row--quad > * { flex: none; }
    .t27-row--quad > *:nth-child(n+5) { display: none; }
}
@media (min-width: 640px) and (max-width: 1023px) {
    .t27-row--quad { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .t27-row--quad > *:nth-child(n+4) { display: none; }
}
