/* ============================================================
   6thloom — Kerala handloom marketplace UI
   Brand kit tokens: Loom Red #C61A1A · Weave Brown #561E14 ·
   Kasavu Cream #FEFDF9 · Kasavu Gold #C99B3F · Leaf Green #3E6B57
   Ratio 60 cream / 30 brown / 10 red · radius 12px
   Type: Poppins (display) · Inter (body) · Manjari (Malayalam)
   ============================================================ */
:root {
  --ink: #561E14;              /* weave brown — headings/text */
  --ink-soft: #6f4038;
  --muted: #9A7871;            /* brown-300 */
  --bg: #FEFDF9;               /* kasavu cream */
  --bg-soft: #F3E7D3;          /* sand */
  --line: #EADFCC;
  --line-dark: #DDD2CF;        /* brown-500 */
  --pink: #C61A1A;             /* loom red — CTA (kept var name for compatibility) */
  --pink-deep: #A31414;
  --pink-soft: #F4D1D1;        /* red-500 */
  --green: #3E6B57;            /* leaf green */
  --green-soft: #E2EDE7;
  --amber: #8a6a24;
  --amber-soft: #F0E3C6;       /* gold tint */
  --gold-brand: #C99B3F;       /* kasavu gold */
  --blue: #23608f;
  --blue-soft: #e3eef8;
  --violet: #55418a;
  --violet-soft: #ece7f7;
  --coral: #C61A1A;
  --coral-soft: #F4D1D1;
  --night: #561E14;            /* dark surfaces use weave brown */
  --radius: 12px;
  --shadow: 0 8px 26px rgba(86, 30, 20, 0.12);
  --shadow-sm: 0 2px 10px rgba(86, 30, 20, 0.08);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-display: 'Poppins', Montserrat, var(--font);
  --font-ar: 'Manjari', 'Noto Sans Malayalam', sans-serif;
  --ease: cubic-bezier(.22, .8, .32, 1);
  /* legacy aliases used by older templates */
  --plum: var(--ink);
  --plum-deep: var(--night);
  --gold: var(--pink);
  --gold-soft: var(--amber-soft);
  --saffron: var(--gold-brand);
  --saffron-deep: var(--pink);
  --saffron-soft: var(--amber-soft);
  --rose: var(--pink);
  --red: var(--pink);
  --sea: var(--green);
  --sand: var(--bg-soft);
  --mist: var(--bg-soft);
  --cream: var(--bg);
  --pearl: var(--bg);
  --surface: var(--bg);
  --font-serif: var(--font-display);
  --font-sans: var(--font);
  --font-body: var(--font);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 14.5px; -webkit-font-smoothing: antialiased; }
[dir="rtl"] body, html[lang="ml"] body { font-family: var(--font-ar), var(--font); font-size: 1.02em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--pink-soft); }
.container { width: 100%; max-width: none; margin: 0 auto; padding: 0 clamp(16px, 2.5vw, 48px); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
.serif { font-family: var(--font); font-weight: 700; }
.kicker, .eyebrow { text-transform: uppercase; letter-spacing: 2.5px; font-size: 11px; font-weight: 700; }

/* ---------- Utility topbar ---------- */
.announce { background: var(--night); color: #cbd4dc; font-size: 12px; padding: 7px 20px; display: flex; justify-content: flex-end; gap: 22px; align-items: center; }
.announce a { color: #fff; }
.announce a:hover { color: var(--pink); }
.announce .grow { margin-right: auto; color: #8b98a5; }
[dir="rtl"] .announce .grow { margin-right: 0; margin-left: auto; }

/* ---------- Header: logo · tabs · search · account/wishlist/cart ---------- */
.sticky-header-wrapper { position: sticky; top: 0; z-index: 50; background: var(--bg); }
header.site { background: var(--bg); border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.nav-row { display: flex; align-items: center; gap: 30px; padding-block: 0; min-height: 68px; }
.logo { font-size: 24px; font-weight: 800; font-style: italic; letter-spacing: 0.5px; color: var(--pink); white-space: nowrap; }
.logo span { color: var(--ink); font-style: normal; font-weight: 700; }
.burger-menu-btn { display: none; }
/* primary tabs */
.tabs { display: flex; gap: 4px; align-self: stretch; }
.tabs a { display: flex; align-items: center; padding: 0 14px; font-size: 15px; font-weight: 600; color: var(--ink); border-bottom: 3px solid transparent; border-top: 3px solid transparent; transition: color .15s; position: relative; }
.tabs a:hover { color: var(--pink); }
.tabs a.on { color: var(--pink); border-bottom-color: var(--pink); }
/* search */
.search-form { flex: 1; max-width: 460px; margin-left: auto; position: relative; }
[dir="rtl"] .search-form { margin-left: 0; margin-right: auto; }
.search-form input[type=text] { width: 100%; border: 1px solid var(--line-dark); background: var(--bg); border-radius: var(--radius); padding: 11px 44px 11px 40px; font-size: 13.5px; outline: none; font-family: inherit; transition: border-color .2s, box-shadow .2s; }
[dir="rtl"] .search-form input[type=text] { padding: 11px 40px 11px 44px; }
.search-form input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft); }
.search-form .s-ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-form .cam { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); background: none; border: none; cursor: pointer; font-size: 16px; }
[dir="rtl"] .search-form .s-ico { left: auto; right: 13px; }
[dir="rtl"] .search-form .cam { right: auto; left: 12px; }
/* icon actions */
.nav-actions { display: flex; align-items: stretch; gap: 6px; }
.icon-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 8px 14px; font-size: 12px; font-weight: 600; color: var(--ink); border-radius: 8px; position: relative; transition: color .15s; }
.icon-link svg { width: 21px; height: 21px; stroke: currentColor; }
.icon-link:hover { color: var(--pink); }
.cart-count { position: absolute; top: 4px; right: 8px; background: var(--pink); color: #fff; font-size: 10px; border-radius: 999px; padding: 0 5px; min-width: 16px; height: 16px; line-height: 16px; text-align: center; font-weight: 700; }
.nav-actions .pill { align-self: center; border: 1px solid var(--line); padding: 4px 11px; border-radius: 999px; font-size: 11.5px; color: var(--ink-soft); background: var(--bg); }
.nav-actions a.pill:hover { border-color: var(--pink); color: var(--pink); }

/* ---------- Category mega-nav row ---------- */
.catnav { background: var(--bg); border-bottom: 1px solid var(--line); position: relative; }
.catnav-inner { display: flex; gap: 2px; flex-wrap: wrap; padding: 0 clamp(16px, 2.5vw, 48px); max-width: none; margin: 0 auto; justify-content: center; }
@media (max-width: 1400px) { .catnav-inner { justify-content: flex-start; } }
.catnav-inner::-webkit-scrollbar { display: none; }
.catnav-item { position: relative; flex-shrink: 0; }
.catnav-item > a { display: flex; align-items: center; gap: 5px; padding: 12px 15px; font-size: 13.5px; font-weight: 500; color: var(--ink); white-space: nowrap; transition: color .15s; }
.catnav-item > a:hover { color: var(--pink); }
.catnav-item > a.hot { color: var(--pink); font-weight: 700; }
.catnav-item .chev { font-size: 10px; color: var(--muted); transition: transform .2s; }
.catnav-item:hover .chev { transform: rotate(180deg); color: var(--pink); }
/* dropdown */
.dropdown { position: absolute; top: 100%; left: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 0 0 10px 10px; box-shadow: var(--shadow); min-width: 230px; padding: 10px 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s; z-index: 60; }
[dir="rtl"] .dropdown { left: auto; right: 0; }
.catnav-item:hover .dropdown, .catnav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 8px 18px; font-size: 13px; color: var(--ink-soft); }
.dropdown a:hover { background: var(--pink-soft); color: var(--pink); }
.dropdown .dd-head { padding: 8px 18px 4px; font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); font-weight: 700; }
.dropdown hr { border: none; border-top: 1px solid var(--line); margin: 8px 0; }
.catnav-arrow { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-dark); background: var(--bg); cursor: pointer; box-shadow: var(--shadow-sm); font-size: 13px; color: var(--ink-soft); z-index: 5; }
.catnav-arrow:hover { color: var(--pink); border-color: var(--pink); }
[dir="rtl"] .catnav-arrow { right: auto; left: 8px; }

@media (max-width: 1120px) {
  .nav-row { flex-wrap: wrap; gap: 8px 16px; padding-block: 10px; }
  .tabs { order: 3; flex-basis: 100%; align-self: auto; }
  .tabs a { padding: 8px 12px; border-bottom-width: 2px; }
  .search-form { order: 4; flex-basis: 100%; max-width: none; }
  .nav-actions { margin-left: auto; }
  [dir="rtl"] .nav-actions { margin-left: 0; margin-right: auto; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-block; background: var(--pink); color: #fff; border: none; padding: 12px 26px; border-radius: var(--radius); font-size: 13.5px; font-weight: 700; letter-spacing: .3px; cursor: pointer; text-align: center; font-family: inherit; transition: background .2s, transform .12s var(--ease), box-shadow .2s; }
.btn:hover { background: var(--pink-deep); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: none; }
.btn.gold { background: var(--ink); } .btn.gold:hover { background: #10263c; }
.btn.ghost { background: transparent; color: var(--pink); border: 1.5px solid var(--pink); }
.btn.ghost:hover { background: var(--pink); color: #fff; box-shadow: none; }
.btn.sm { padding: 7px 14px; font-size: 12px; }
.btn.danger { background: var(--coral); } .btn.danger:hover { background: #a53d2e; }
.btn.wide { width: 100%; }

/* ---------- Hero carousel ---------- */
.hero-carousel { position: relative; margin: 0 auto; max-width: none; padding: 0; }
.hero-viewport { border-radius: 0; }
.hero-slide { border-radius: 0; }
.hero-slide, .hero-slide .hs-img { min-height: 420px; }
.hero-slide .hs-text { padding-left: clamp(28px, 5vw, 90px); }
[dir="rtl"] .hero-slide .hs-text { padding-left: 44px; padding-right: clamp(28px, 5vw, 90px); }
.hero-arrow.prev { left: 22px; } .hero-arrow.next { right: 22px; }
.hero-viewport { overflow: hidden; border-radius: 12px; }
.hero-track { display: flex; transition: transform .5s var(--ease); }
.hero-slide { flex: 0 0 100%; min-height: 330px; border-radius: 12px; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; overflow: hidden; color: #fff; position: relative; }
.hero-slide .hs-text { padding: 44px 56px; position: relative; z-index: 2; }
.hero-slide .hs-kicker { text-transform: uppercase; letter-spacing: 3px; font-size: 12px; font-weight: 700; opacity: .85; margin-bottom: 10px; }
.hero-slide h2 { font-size: clamp(26px, 3.2vw, 42px); line-height: 1.08; font-weight: 800; margin-bottom: 14px; }
.hero-slide h2 .mega { font-size: clamp(40px, 5.2vw, 72px); display: block; line-height: 1.05; }
.hero-slide p { font-size: 15px; opacity: .9; margin: 0 0 22px; max-width: 420px; }
.hero-slide .hs-img { height: 100%; min-height: 330px; }
.hero-slide .hs-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide.s1 { background: linear-gradient(110deg, #3a140d 0%, var(--night) 55%, #C61A1A 145%); }
.hero-slide.s2 { background: linear-gradient(110deg, #24443a 0%, #3E6B57 65%, #C99B3F 145%); }
.hero-slide.s3 { background: linear-gradient(110deg, #A31414 0%, #C61A1A 60%, #C99B3F 145%); }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.92); border: none; cursor: pointer; font-size: 16px; color: var(--ink); box-shadow: var(--shadow-sm); z-index: 5; transition: background .2s; display: flex; align-items: center; justify-content: center; }
.hero-arrow:hover { background: var(--bg); color: var(--pink); }
.hero-arrow.prev { left: 44px; } .hero-arrow.next { right: 44px; }
.hero-dots { display: flex; gap: 7px; justify-content: center; margin-top: 12px; }
.hero-dots button { width: 8px; height: 8px; border-radius: 999px; border: none; background: var(--line-dark); cursor: pointer; transition: width .25s var(--ease), background .25s; padding: 0; }
.hero-dots button.on { width: 22px; background: var(--pink); }
@media (max-width: 860px) { .hero-slide { grid-template-columns: 1fr; min-height: 260px; } .hero-slide .hs-img { display: none; } .hero-slide .hs-text { padding: 34px 30px; } .hero-arrow.prev { left: 36px; } .hero-arrow.next { right: 36px; } }

/* ---------- Sections ---------- */
section.block { padding: 40px 0; }
section.block.alt { background: var(--bg-soft); }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; gap: 16px; flex-wrap: wrap; }
.section-head h2 { font-size: 24px; color: var(--ink); font-weight: 700; }
.section-head a.more { font-size: 13px; color: var(--pink); font-weight: 700; }
.section-head a.more:hover { text-decoration: underline; }

/* ---------- Category tile strip ---------- */
.tile-strip { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.tile-strip { justify-content: space-between; }
.tile { flex: 1 0 150px; max-width: 210px; text-align: center; }
.tile .tile-img { width: 100%; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--bg-soft); border: 1px solid var(--line); }
.tile .tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.tile:hover .tile-img img { transform: scale(1.06); }
.tile .tile-label { margin-top: 10px; font-size: 15px; font-weight: 600; color: var(--ink); }
.tile:hover .tile-label { color: var(--pink); }

/* ---------- Grids & product cards ---------- */
.grid { display: grid; gap: 18px; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-6 { grid-template-columns: repeat(6, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid.cols-4, .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .grid.cols-6 { grid-template-columns: repeat(3, 1fr); } .grid.cols-2 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid.cols-4, .grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid.cols-6 { grid-template-columns: repeat(2, 1fr); } }

.product-card { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s var(--ease), transform .2s var(--ease); position: relative; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-card .imgzone { position: relative; }
.product-card .imgwrap { aspect-ratio: 4/5; background: var(--bg-soft); overflow: hidden; position: relative; display: block; }
.product-card .imgwrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.product-card:hover .imgwrap img { transform: scale(1.04); }
.product-card .body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.product-card .brand { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.product-card .pname { font-size: 12.5px; color: var(--muted); line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.product-card .price { margin-top: auto; padding-top: 7px; font-weight: 700; color: var(--ink); font-size: 14px; }
.price .was { color: var(--muted); text-decoration: line-through; font-weight: 400; font-size: 12px; margin: 0 5px; }
.price .off { color: var(--pink); font-weight: 700; font-size: 12px; }
/* wishlist heart */
.wish-heart { position: absolute; top: 10px; right: 10px; z-index: 3; }
[dir="rtl"] .wish-heart { right: auto; left: 10px; }
.wish-heart button { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.94); border: 1px solid var(--line); cursor: pointer; font-size: 15px; color: var(--ink-soft); box-shadow: var(--shadow-sm); transition: color .15s, transform .15s; }
.wish-heart button:hover { color: var(--pink); transform: scale(1.08); }
/* quick add */
.product-card .quick-add { position: absolute; left: 10px; right: 10px; bottom: 10px; opacity: 0; transform: translateY(8px); transition: opacity .22s var(--ease), transform .22s var(--ease); z-index: 2; }
.product-card:hover .quick-add, .product-card:focus-within .quick-add { opacity: 1; transform: none; }
.quick-add button { width: 100%; background: var(--bg); color: var(--pink); border: 1px solid var(--pink); padding: 10px; border-radius: var(--radius); font-size: 12.5px; font-weight: 700; cursor: pointer; font-family: inherit; transition: background .15s, color .15s; }
.quick-add button:hover { background: var(--pink); color: #fff; }
@media (hover: none) { .product-card .quick-add { opacity: 1; transform: none; position: static; padding: 12px; } }

.badge { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 3px 10px; border-radius: 4px; letter-spacing: .6px; text-transform: uppercase; }
.badge.sale { background: var(--pink); color: #fff; position: absolute; top: 10px; left: 10px; z-index: 2; }
[dir="rtl"] .badge.sale { left: auto; right: 10px; }
.badge.founder { background: var(--amber-soft); color: var(--amber); }
.badge.st-pending { background: var(--amber-soft); color: var(--amber); }
.badge.st-confirmed { background: var(--blue-soft); color: var(--blue); }
.badge.st-processing { background: var(--violet-soft); color: var(--violet); }
.badge.st-shipped { background: var(--green-soft); color: var(--green); }
.badge.st-delivered { background: var(--green); color: #fff; }
.badge.st-cancelled, .badge.st-rejected { background: var(--coral-soft); color: var(--coral); }
.badge.st-approved, .badge.st-paid, .badge.st-active, .badge.st-handled { background: var(--green-soft); color: var(--green); }
.badge.st-open, .badge.st-draft, .badge.st-paused { background: var(--amber-soft); color: var(--amber); }

/* offer banners (3-up strip) */
.offer-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .offer-strip { grid-template-columns: 1fr; } }
.offer-card { border-radius: 12px; padding: 26px 28px; color: #fff; display: flex; flex-direction: column; gap: 6px; min-height: 140px; justify-content: center; transition: transform .2s var(--ease), box-shadow .2s; }
.offer-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.offer-card .oc-k { text-transform: uppercase; letter-spacing: 2px; font-size: 10.5px; font-weight: 700; opacity: .85; }
.offer-card .oc-t { font-size: 20px; font-weight: 800; line-height: 1.2; }
.offer-card .oc-s { font-size: 13px; opacity: .9; }
.offer-card.o1 { background: linear-gradient(120deg, var(--pink-deep), var(--pink)); }
.offer-card.o2 { background: linear-gradient(120deg, #0d3a5c, #17618f); }
.offer-card.o3 { background: linear-gradient(120deg, #3c1053, #7b4397); }

/* brand spotlight (portrait cards, offer line below) */
.spot-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px 18px; }
@media (max-width: 1100px) { .spot-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .spot-grid { grid-template-columns: repeat(2, 1fr); } }
.spot-card { display: block; }
.spot-card .spot-img { aspect-ratio: 3/4; border-radius: 8px; overflow: hidden; position: relative; background: var(--bg-soft); }
.spot-card .spot-img > img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.spot-card:hover .spot-img > img { transform: scale(1.05); }
.spot-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 46px 12px 14px; background: linear-gradient(180deg, rgba(0,19,37,0) 0%, rgba(0,19,37,.78) 78%); color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 15px; letter-spacing: 1px; text-transform: uppercase; text-align: center; }
.spot-logo { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); flex-shrink: 0; }
.spot-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--pink-soft), var(--bg-soft)); }
.spot-fallback img { width: 45%; border-radius: 50%; box-shadow: var(--shadow); }
.spot-off { margin-top: 10px; font-weight: 800; font-size: 15px; color: var(--ink); }
.spot-card:hover .spot-off { color: var(--pink); }
.spot-sub { color: var(--muted); font-size: 13px; margin-top: 1px; }

.brand-card { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 24px 18px; text-align: center; transition: box-shadow .2s, transform .2s var(--ease); }
.brand-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.brand-card img.logo-img { width: 82px; height: 82px; border-radius: 50%; margin: 0 auto 12px; border: 1px solid var(--line); }
.brand-card h3 { color: var(--ink); font-size: 16.5px; font-weight: 700; }
.brand-card .tag { color: var(--muted); font-size: 12.5px; margin: 3px 0 8px; }

.cat-card { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 22px 12px; text-align: center; transition: box-shadow .2s, transform .2s var(--ease); }
.cat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-card .emoji { font-size: 30px; margin-bottom: 6px; }
.cat-card .name { font-weight: 600; color: var(--ink); font-size: 14px; }

/* ---------- Page shells ---------- */
.page-head { background: var(--bg-soft); color: var(--ink); padding: 34px 0; text-align: center; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: 28px; font-weight: 800; }
.page-head p { color: var(--muted); max-width: 640px; margin: 8px auto 0; font-size: 14px; }
.narrow { max-width: 760px; margin: 0 auto; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 26px; }
.prose h2 { color: var(--ink); margin: 24px 0 8px; font-size: 20px; }
.prose h3 { color: var(--ink); margin: 16px 0 6px; font-size: 16px; }
.prose p, .prose li { color: var(--ink-soft); font-size: 14.5px; }
.prose ul { padding-left: 22px; margin: 8px 0; }
.prose a { color: var(--pink); }

/* ---------- Forms ---------- */
form .field { margin-bottom: 15px; }
label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 5px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], select, textarea {
  width: 100%; border: 1px solid var(--line-dark); background: var(--bg); border-radius: var(--radius); padding: 11px 13px; font-size: 14px; font-family: inherit; outline: none; transition: border-color .2s, box-shadow .2s; color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft); }
textarea { min-height: 110px; resize: vertical; }
.checkline { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 10px; font-weight: 400; }
.checkline input { margin-top: 4px; accent-color: var(--pink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 700px) { .form-row { grid-template-columns: 1fr; } }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.hint a { color: var(--pink); }

/* ---------- Toasts & notices ---------- */
.flash { position: fixed; top: 16px; right: 16px; z-index: 200; max-width: 380px; padding: 13px 18px; border-radius: 10px; font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow); animation: toast-in .3s var(--ease); }
[dir="rtl"] .flash { right: auto; left: 16px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px); } }
.flash.success { background: var(--green); color: #fff; }
.flash.error { background: var(--coral); color: #fff; }
.flash a { color: inherit; text-decoration: underline; }
.notice { padding: 13px 17px; border-radius: var(--radius); font-size: 13.5px; margin-bottom: 18px; background: var(--bg-soft); color: var(--ink-soft); border: 1px solid var(--line); }
.notice.gold { background: var(--amber-soft); color: var(--amber); border-color: #eddfb5; }
.notice.sea { background: var(--green-soft); color: var(--green); border-color: #bfe4cf; }
.notice.coral { background: var(--coral-soft); color: var(--coral); border-color: #eccbc4; }
.notice a { color: inherit; font-weight: 700; }

/* ---------- Tables ---------- */
table.list { width: 100%; border-collapse: collapse; background: var(--bg); border-radius: 10px; overflow: hidden; border: 1px solid var(--line); font-size: 13px; }
table.list th { background: var(--bg-soft); text-align: left; padding: 11px 14px; font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--ink-soft); font-weight: 700; }
[dir="rtl"] table.list th { text-align: right; }
table.list td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
table.list tr:hover td { background: #fafafa; }
.thumb { width: 44px; height: 54px; object-fit: cover; border-radius: 6px; }

/* ---------- Footer ---------- */
footer.site { background: var(--bg-soft); color: var(--ink-soft); margin-top: 60px; padding: 52px 0 26px; font-size: 13.5px; border-top: 1px solid var(--line); }
footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
@media (max-width: 1000px) { footer .cols { grid-template-columns: 1fr 1fr 1fr 1fr; } }
@media (max-width: 800px) { 
  footer .cols { grid-template-columns: 1fr 1fr; gap: 24px; } 
  footer .cols > .brand-col { grid-column: 1 / -1; margin-bottom: 8px; display: flex; flex-direction: column; align-items: center; text-align: center; }
}
footer h4 small { display: block; font-size: 10px; letter-spacing: 1px; text-transform: none; color: #6d7b8c; margin-top: 10px; font-weight: 600; }
footer h4 { color: var(--ink); font-size: 12px; text-transform: uppercase; letter-spacing: 1.8px; margin-bottom: 14px; font-weight: 700; }
footer a { display: block; padding: 3.5px 0; color: var(--ink-soft); transition: color .15s; } footer a:hover { color: var(--pink); }
footer .fine { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: var(--muted); text-align: center; }
footer .logo { color: var(--pink); }
footer .logo span { color: var(--ink); }

/* ---------- Panel (Studio / Admin) ---------- */
.panel-top { display: flex; align-items: center; gap: 14px; padding: 12px clamp(16px, 2.5vw, 48px); background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.panel-top .logo { font-size: 21px; }
.panel-chip { background: var(--pink-soft); color: var(--pink); font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.panel-user { margin-left: auto; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
[dir="rtl"] .panel-user { margin-left: 0; margin-right: auto; }
.panel-user a { color: var(--ink); font-weight: 600; }
.panel-user a:hover { color: var(--pink); }
.panel-user .sep { color: var(--line-dark); }
.panel { display: grid; grid-template-columns: 248px 1fr; min-height: calc(100vh - 58px); }
.side { background: var(--bg); color: var(--ink-soft); padding: 22px 0; border-right: 1px solid var(--line); }
[dir="rtl"] .side { border-right: none; border-left: 1px solid var(--line); }
.side .brand-mini { padding: 0 22px 16px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.side .brand-mini .nm { color: var(--ink); font-weight: 800; font-size: 16px; }
.side .brand-mini .rl { font-size: 10px; color: var(--pink); letter-spacing: 2px; text-transform: uppercase; font-weight: 700; margin-top: 2px; }
.side a.item { display: block; padding: 11px 22px; font-size: 13.5px; color: var(--ink-soft); border-left: 3px solid transparent; font-weight: 500; transition: background .15s, color .15s; }
[dir="rtl"] .side a.item { border-left: none; border-right: 3px solid transparent; }
.side a.item:hover { background: var(--bg-soft); color: var(--ink); }
.side a.item.on { background: var(--pink-soft); color: var(--pink); border-color: var(--pink); font-weight: 700; }
.main-pane { padding: 32px 36px; background: var(--bg-soft); }
.main-pane h1 { color: var(--ink); font-size: 25px; margin-bottom: 22px; font-weight: 800; }
.main-pane h2 { font-size: 18px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; border-top: 3px solid var(--pink); }
.stat .v { font-size: 22px; font-weight: 800; color: var(--ink); line-height: 1.2; word-break: break-word; }
.stat .l { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.4px; font-weight: 700; margin-top: 4px; }
@media (max-width: 860px) { .panel { grid-template-columns: 1fr; } .side { display: flex; align-items: center; overflow-x: auto; padding: 0; border-right: none; border-bottom: 1px solid var(--line); } .side .brand-mini { display: none; } .side a.item { white-space: nowrap; border-left: none !important; border-right: none !important; border-bottom: 3px solid transparent; padding: 13px 16px; } .side a.item.on { border-color: var(--pink); background: var(--pink-soft); } .main-pane { padding: 22px 16px; } .panel-user { display: none; } }

/* ---------- Charts ---------- */
.chart { display: flex; align-items: flex-end; gap: 6px; height: 150px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 18px 18px 22px; }
.chart .bar { flex: 1; background: linear-gradient(180deg, var(--pink), #6d1140); border-radius: 4px 4px 0 0; min-height: 3px; position: relative; transition: filter .2s; }
.chart .bar:hover { filter: brightness(1.15); }
.chart .bar span { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 9.5px; color: var(--muted); white-space: nowrap; }
.chart-wrap { padding-bottom: 26px; }

/* ---------- Misc ---------- */
.accordion details { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; transition: border-color .2s; }
.accordion details[open] { border-color: var(--pink); }
.accordion summary { cursor: pointer; font-weight: 600; padding: 15px 20px; color: var(--ink); list-style: none; font-size: 14.5px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; float: right; color: var(--pink); font-size: 18px; line-height: 1; }
[dir="rtl"] .accordion summary::after { float: left; }
.accordion details[open] summary::after { content: '–'; }
.accordion .ans { padding: 0 20px 16px; color: var(--ink-soft); font-size: 13.5px; }
.accordion .ans a { color: var(--pink); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 26px 24px; text-align: center; }
.step .num { width: 42px; height: 42px; border-radius: 50%; background: var(--pink-soft); color: var(--pink); font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-size: 17px; }
.step h3 { color: var(--ink); margin-bottom: 5px; font-size: 16.5px; }
.step p { color: var(--ink-soft); font-size: 13.5px; }

.qty-input { width: 64px !important; text-align: center; }
.progress-track { display: flex; gap: 5px; margin: 18px 0 8px; }
.progress-track .seg { flex: 1; height: 7px; border-radius: 4px; background: var(--line); }
.progress-track .seg.done { background: var(--green); }
.muted { color: var(--muted); font-size: 12.5px; }
.right { text-align: right; } [dir="rtl"] .right { text-align: left; }
.mt { margin-top: 20px; } .mb { margin-bottom: 20px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.score-pill { font-size: 11.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.score-hi { background: var(--green-soft); color: var(--green); }
.score-mid { background: var(--amber-soft); color: var(--amber); }
.score-lo { background: var(--coral-soft); color: var(--coral); }

.gallery-main { aspect-ratio: 4/5; border-radius: 10px; overflow: hidden; background: var(--bg-soft); border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs img { width: 66px; height: 82px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; transition: border-color .2s; }
.gallery-thumbs img.on, .gallery-thumbs img:hover { border-color: var(--pink); }

.brand-hero { position: relative; }
.brand-hero img.banner-img { width: 100%; height: 260px; object-fit: cover; }
.brand-hero .overlay { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 22px 28px; display: flex; gap: 20px; align-items: center; max-width: 780px; margin: -58px auto 0; position: relative; box-shadow: var(--shadow); }
.brand-hero .overlay img.logo-img { width: 88px; height: 88px; border-radius: 50%; border: 1px solid var(--line); }
.brand-hero .overlay a { color: var(--pink); }

.summary-box { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 22px 24px; }
.summary-box .row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; color: var(--ink-soft); }
.summary-box .row.total { border-top: 1px solid var(--line); margin-top: 9px; padding-top: 12px; font-weight: 800; font-size: 16px; color: var(--ink); }
.summary-box .hint a { color: var(--pink); }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .big { font-size: 40px; margin-bottom: 10px; }
.empty a { color: var(--pink); font-weight: 700; }

/* marketplace filter bar */
.filter-toggle { padding: 0; overflow: hidden; }
.filter-toggle summary { display: none; cursor: pointer; list-style: none; padding: 14px 16px; font-weight: 700; font-size: 13.5px; color: var(--ink); }
.filter-toggle summary::-webkit-details-marker { display: none; }
.filter-toggle summary::after { content: '▾'; float: right; color: var(--pink); transition: transform .2s; }
[dir="rtl"] .filter-toggle summary::after { float: left; }
.filter-toggle[open] summary::after { transform: rotate(180deg); }
@media (max-width: 860px) {
  .filter-toggle summary { display: block; }
  .filter-toggle:not([open]) { padding: 0; }
  .filter-toggle[open] summary { border-bottom: 1px solid var(--line); }
}
.filter-bar { display: grid; grid-template-columns: 2fr 1fr 1fr .7fr .7fr 1fr auto; gap: 12px; align-items: end; padding: 18px; }
@media (max-width: 1000px) { .filter-bar { grid-template-columns: repeat(3, 1fr); } .filter-bar > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 600px) { .filter-bar { grid-template-columns: 1fr 1fr; } }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* edit / occasion cards on homepage */
.edit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .edit-grid { grid-template-columns: repeat(2, 1fr); } }
.edit-card { border-radius: 10px; padding: 26px 22px; min-height: 130px; display: flex; flex-direction: column; justify-content: center; gap: 4px; color: #fff; transition: transform .2s var(--ease), box-shadow .2s; }
.edit-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.edit-card .ec-emoji { font-size: 22px; margin-bottom: 4px; }
.edit-card .ec-t { font-size: 18px; font-weight: 800; }
.edit-card .ec-s { font-size: 12.5px; opacity: .85; }
.edit-card.e1 { background: linear-gradient(120deg, var(--pink-deep), var(--pink)); }
.edit-card.e2 { background: linear-gradient(120deg, #24443a, #3E6B57); }
.edit-card.e3 { background: linear-gradient(120deg, #A31414, #C61A1A); }
.edit-card.e4 { background: linear-gradient(120deg, #1f2a44, #3d5a8a); }

/* guide teaser cards */
.guide-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px; transition: box-shadow .2s, transform .2s var(--ease); }
.guide-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.guide-card h3 { font-size: 15.5px; margin-bottom: 6px; color: var(--ink); }
.guide-card p { font-size: 13px; color: var(--muted); }
.guide-card .gc-k { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--pink); font-weight: 700; margin-bottom: 6px; }

/* trust strip */
.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 800px) { .trust-strip { grid-template-columns: 1fr; } }
.trust-item { text-align: center; padding: 8px; }
.trust-item .ti-ico { font-size: 26px; margin-bottom: 8px; }
.trust-item h3 { font-size: 16px; color: var(--ink); margin-bottom: 4px; }
.trust-item p { font-size: 13px; color: var(--muted); }

/* breadcrumbs */
.crumbs { font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--ink-soft); } .crumbs a:hover { color: var(--pink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .hero-track { transition: none; }
}

/* 6thloom: tabular prices */
.price, .stat .v, .summary-box .row span:last-child { font-variant-numeric: tabular-nums; }

/* ============================================================
   Mobile & tablet — app-like experience
   ============================================================ */
html { -webkit-tap-highlight-color: transparent; }
body { overscroll-behavior-y: none; }
.bottom-nav { display: none; }
.buy-row { display: flex; gap: 12px; align-items: center; }

/* Touch devices: no hover-dependent UI */
@media (hover: none) {
  .hero-arrow { display: none; }
  .btn.sm { padding: 10px 16px; }
  .wish-heart button { width: 38px; height: 38px; font-size: 17px; }
}

/* --- Mobile + small tablet: app chrome --- */
@media (max-width: 860px) {
  .catnav-item .chev { display: none !important; }
  .catnav-item .dropdown { display: none !important; }

  body:has(.bottom-nav) { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .container { padding: 0 14px; }

  /* compact header: logo + wishlist, search on its own row */
  .announce { display: none; }
  .nav-row { flex-wrap: wrap; justify-content: space-between; position: relative; gap: 8px 10px; padding-block: 10px; min-height: 0; }
  .burger-menu-btn { display: flex; align-items: center; justify-content: center; background: none; border: none; padding: 5px; color: var(--ink); cursor: pointer; }
  .nav-row .logo { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); }
  [dir="rtl"] .nav-row .logo { right: 50%; transform: translateX(50%); left: auto; }
  .nav-row .logo img { height: 30px !important; }
  .tabs { display: none; }
  .nav-actions { margin: 0; gap: 2px; }
  [dir="rtl"] .nav-actions { margin: 0; }
  .nav-actions .pill { display: none; }
  .nav-actions .icon-link { font-size: 0; gap: 0; padding: 9px; }
  .nav-actions .icon-link svg { width: 23px; height: 23px; }
  .nav-actions .icon-link:not([href="/account/wishlist"]) { display: none; }
  .search-form { order: 5; flex-basis: 100%; max-width: none; margin-left: 0; }
  [dir="rtl"] .search-form { margin-right: 0; }
  .search-form input[type=text] { font-size: 16px; padding-block: 10px; }

  /* category strip: swipeable chips */
  .catnav-inner { padding: 0 10px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
  .catnav-item > a { padding: 12px 11px; font-size: 13px; }

  /* hero */
  .hero-arrow { display: none; }
  .hero-slide, .hero-slide .hs-img { min-height: 230px; }
  .hero-slide .hs-text { padding: 26px 20px !important; }
  .hero-slide p { font-size: 13.5px; margin-bottom: 16px; }

  /* rhythm & type */
  section.block { padding: 26px 0; }
  .section-head { margin-bottom: 14px; }
  .section-head h2 { font-size: 19px; }
  .page-head { padding: 22px 0; }
  .page-head h1 { font-size: 22px; }
  .page-head p { font-size: 13px; padding: 0 16px; }
  .grid { gap: 12px; }
  .crumbs { margin-bottom: 12px; }

  /* category tiles: horizontal swipe rail */
  .tile-strip { gap: 12px; justify-content: flex-start; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
  .tile { flex: 0 0 108px; scroll-snap-align: start; }
  .tile .tile-label { font-size: 12.5px; margin-top: 7px; }

  /* product cards */
  .product-card .body { padding: 10px 11px 12px; }
  .product-card .brand { font-size: 12.5px; }
  .product-card .price { font-size: 13.5px; }

  /* forms: 16px inputs prevent iOS focus zoom */
  input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], select, textarea { font-size: 16px; }
  .btn { padding: 13px 22px; }
  .card { padding: 18px 16px; }

  /* collapse inline multi-column layouts (cart, checkout, account, contact…) */
  .grid[style*="grid-template-columns"], .steps[style*="grid-template-columns"] { grid-template-columns: 1fr !important; gap: 20px !important; }
  .grid.cols-2[style] { gap: 24px !important; }

  /* tables scroll instead of overflowing the page */
  table.list { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* cart: rows become cards */
  .cart-table tr:first-child { display: none; }
  table.cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr { padding: 14px 14px 12px; border-top: 1px solid var(--line); position: relative; }
  .cart-table tr:first-of-type { border-top: none; }
  .cart-table td { padding: 4px 0 !important; border: none !important; }
  .cart-table td[data-label] { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
  .cart-table td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; }
  .cart-table td.cart-remove { position: absolute; top: 10px; right: 10px; width: auto; padding: 0 !important; }
  [dir="rtl"] .cart-table td.cart-remove { right: auto; left: 10px; }
  .cart-table td:first-child { padding-right: 44px !important; }

  /* product page */
  .gallery-thumbs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .gallery-thumbs img { flex-shrink: 0; }
  .buy-row { flex-wrap: wrap; }
  .buy-row .btn { flex: 1 1 auto; padding: 14px 18px; }

  /* filter bar */
  .filter-bar { padding: 14px; gap: 10px; }
  .filter-bar .btn { grid-column: 1 / -1; padding: 12px; }

  /* brand page hero */
  .brand-hero img.banner-img { height: 170px; }
  .brand-hero .overlay { flex-direction: column; text-align: center; margin: -44px 14px 0; padding: 18px 16px; gap: 10px; }
  .brand-hero .overlay img.logo-img { width: 72px; height: 72px; }

  /* toasts sit above the bottom nav */
  .flash { top: auto; bottom: calc(80px + env(safe-area-inset-bottom)); left: 12px; right: 12px; max-width: none; text-align: center; }

  footer.site { margin-top: 34px; padding: 36px 0 20px; }
  footer .cols { gap: 22px; margin-bottom: 24px; }

  /* --- bottom app nav --- */
  .bottom-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 120; justify-content: space-around; background: rgba(254, 253, 249, .96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 7px 4px calc(7px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(86, 30, 20, .07); }
  .bottom-nav a { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; font-weight: 600; color: var(--ink-soft); position: relative; padding: 2px 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
  .bottom-nav a svg { width: 22px; height: 22px; stroke: currentColor; fill: none; flex-shrink: 0; }
  .bottom-nav a.on { color: var(--pink); }
  .bottom-nav .bn-count { position: absolute; top: -2px; left: calc(50% + 4px); background: var(--pink); color: #fff; font-size: 9.5px; font-weight: 700; border-radius: 999px; min-width: 15px; height: 15px; line-height: 15px; padding: 0 4px; text-align: center; }
}

/* --- Small phones --- */
@media (max-width: 480px) {
  .hero-slide h2 { font-size: 22px; }
  .hero-slide h2 .mega { font-size: 34px; }
  .offer-card { padding: 20px 18px; min-height: 110px; }
  .edit-grid { gap: 12px; }
  .edit-card { padding: 18px 16px; min-height: 104px; }
  .main-pane { padding: 18px 12px; }
}

/* ---------- Flat icon system (replaces emoji glyphs) ---------- */
.ico { flex-shrink: 0; vertical-align: -4px; }
.i { vertical-align: -3px; margin-right: 6px; }
.i-r { vertical-align: -3px; margin-left: 6px; }
.trust-item .ti-ico { color: var(--pink); display: flex; justify-content: center; }
.step .num .ico, .edit-card .ec-emoji .ico { vertical-align: -1px; }
.empty .big { display: flex; align-items: center; justify-content: center; }
.side a.item .ico, .icon-link .ico { vertical-align: -3px; margin-right: 8px; }
[dir="rtl"] .side a.item .ico, [dir="rtl"] .icon-link .ico { margin-right: 0; margin-left: 8px; }
.wish-heart button, .catnav-arrow, .search-form .cam, .wish-heart button svg { display: flex; align-items: center; justify-content: center; }
.badge .ico { margin-right: 3px; }
.notice .ico, .hint .ico { vertical-align: -3px; margin-right: 5px; }
.step .num { color: var(--pink); }
.filter-toggle summary::after { content: none; }
.filter-toggle summary .toggle-chev { float: right; color: var(--pink); transition: transform .2s; }
[dir="rtl"] .filter-toggle summary .toggle-chev { float: left; }
.filter-toggle[open] summary .toggle-chev { transform: rotate(180deg); }
.catnav-item .chev.ico { transition: transform .2s; color: var(--muted); }
.catnav-item:hover .chev.ico { transform: rotate(180deg); color: var(--pink); }

/* --- Mobile Drawer --- */
.mobile-drawer-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.5); z-index: 100; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.mobile-drawer-overlay.drawer-open { opacity: 1; visibility: visible; }
.mobile-drawer { position: fixed; top: 0; left: -300px; width: 300px; max-width: 85vw; height: 100%; height: 100dvh; background: var(--bg); z-index: 101; transition: transform .3s ease; display: flex; flex-direction: column; box-shadow: 2px 0 10px rgba(0,0,0,0.1); }
.mobile-drawer.drawer-open { transform: translateX(300px); }
[dir="rtl"] .mobile-drawer { left: auto; right: -300px; box-shadow: -2px 0 10px rgba(0,0,0,0.1); }
[dir="rtl"] .mobile-drawer.drawer-open { transform: translateX(-300px); }

.drawer-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-title { font-weight: 700; font-size: 16px; color: var(--ink); }
.drawer-close { background: none; border: none; font-size: 0; padding: 5px; margin: -5px; cursor: pointer; color: var(--ink); }

.drawer-content { flex: 1; overflow-y: auto; padding: 20px 20px 80px 20px; -webkit-overflow-scrolling: touch; }

/* Category Grid like reference UI */
.drawer-cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px 10px; margin-bottom: 25px; }
.drawer-cat-card { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.drawer-cat-card .dcc-img { width: 100%; aspect-ratio: 1; border-radius: 6px; background-size: cover; background-position: top center; background-color: var(--bg-soft); box-shadow: 0 2px 5px rgba(0,0,0,0.06); }
.drawer-cat-card span { font-size: 12px; font-weight: 600; text-align: center; line-height: 1.2; }

.drawer-links { display: flex; flex-direction: column; gap: 15px; }
.drawer-links a { font-size: 14.5px; font-weight: 500; color: var(--ink); text-decoration: none; }
.drawer-links hr { border: none; border-top: 1px solid var(--line); margin: 5px 0; }

.drawer-utility-row { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; margin-bottom: 10px; }
.drawer-utility-row a { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; color: var(--ink); text-align: center; }
.drawer-utility-row a svg { width: 20px; height: 20px; color: var(--muted); }
