/* =====================================================================================================
   Crockery Hub storefront design system (1.0.8)
   Red and white, used with care: brand red for actions, prices on offer and selected states; warm white,
   cream and soft beige surfaces that separate sections; warm charcoal for reading. Serif headlines, a clean
   sans for everything you read or tap. Colour tokens live in theme.css (:root); this file holds the shared
   components and the page compositions that use them. Phones are designed first (360 to 430px).
   ===================================================================================================== */
body { color: var(--ink); background: var(--bg); }
h1, h2, h3 { color: var(--ink); }
::selection { background: rgba(211, 18, 28, .16); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn { height: 46px; padding: 0 22px; border-radius: var(--r-btn); font-size: .9rem; font-weight: 600; letter-spacing: .005em; box-shadow: none; }
.btn--lg { height: 50px; padding: 0 26px; font-size: .92rem; }
.btn--sm { height: 36px; padding: 0 14px; font-size: .84rem; }
.btn--primary { background: linear-gradient(180deg, #DD1C25 0%, #C5101A 100%); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 6px 16px -10px rgba(168, 14, 23, .8); }
.btn--primary:hover { background: var(--red-d); box-shadow: 0 8px 18px -10px rgba(168, 14, 23, .9); }
.btn--outline { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); }
.btn--outline:hover { background: var(--surface); color: var(--red-d); border-color: var(--red); transform: none; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--light { background: var(--surface); color: var(--red-d); border-radius: var(--r-btn); }
.btn--light:hover { background: #fff; color: var(--red); }
.btn--line-light { border-radius: var(--r-btn); border: 1px solid rgba(255, 255, 255, .7); color: #fff; background: transparent; }
.btn--line-light:hover { background: rgba(255, 255, 255, .12); }

/* ---------- section rhythm and headings ---------- */
.sec--tight { padding-block: clamp(28px, 4vw, 52px) 0; }
.sx { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: clamp(16px, 2.4vw, 26px); }
.sx--center { justify-content: center; text-align: center; }
.sx h2, .sh h2 { font-family: var(--f-head); font-weight: 420; font-size: clamp(1.45rem, 2.6vw, 2.15rem); letter-spacing: -.02em; line-height: 1.12; }
.sx p { margin-top: 4px; color: var(--muted); font-size: .9rem; }
.sx .eyebrow, .sh .eyebrow { margin-bottom: 6px; }
.sx--center .eyebrow { justify-content: center; }
.sx__link, .sh__link { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); border-bottom: 1.5px solid var(--red); padding-bottom: 2px; }
.sx__link:hover, .sh__link:hover { color: var(--red); }
.eyebrow { color: var(--red); font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }

/* ---------- announcement bar and header ---------- */
.m-ann { background: var(--grad-red); color: #fff; }
.m-ann__in { height: 32px; font-size: .72rem; letter-spacing: .05em; }
.m-ann__in p span::before { background: rgba(255, 255, 255, .7); }
.hdr, .hdr.is-stuck { background: rgba(255, 254, 252, .97); box-shadow: 0 1px 0 var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; }
.hdr.is-stuck { box-shadow: 0 1px 0 var(--line), 0 10px 24px -20px rgba(40, 36, 32, .5); }
.logo__word { font-size: 1.55rem; letter-spacing: -.025em; color: var(--ink); }
.nav__btn, .nav__link { font-size: .8rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.nav__btn:hover, .nav__link:hover { color: var(--red); }
.search input { border-radius: var(--r-btn); background: var(--cream); border: 1px solid var(--line); color: var(--ink); }
.search input::placeholder { color: var(--muted); }
.search input:focus { background: var(--surface); border-color: var(--line-2); box-shadow: 0 0 0 3px rgba(168, 138, 92, .16); }
.icon-btn { color: var(--ink); }
.icon-btn:hover { color: var(--red); background: var(--red-tint); }
.badge { background: var(--red); color: #fff; box-shadow: 0 0 0 2px var(--surface); }
.mega__in { background: var(--surface); }
.mega__thumb { background: var(--grad-warm); }
@media (max-width: 900px) {
  :root { --hdr-h: 58px; }
  .m-ann__in { height: 28px; font-size: .68rem; }
  .logo__word { font-size: 1.36rem; }
}
@media (min-width: 901px) and (max-width: 1240px) { .nav__btn, .nav__link { font-size: .74rem; letter-spacing: .04em; } }
@media (min-width: 901px) and (max-width: 1040px) {
  .nav__btn, .nav__link { text-transform: none; letter-spacing: 0; font-size: .82rem; padding-inline: 7px; }
  .logo__word { font-size: 1.32rem; }
  .hdr__bar { gap: 10px; }
}
@media (max-width: 380px) { .logo__word { font-size: 1.2rem; } }

/* ---------- hero: three full-width photographs (the shop's own hero, cookware, electronics) ----------
   Swipe or use the numbered tabs; it moves on by itself every 7 seconds until the visitor touches it, and never
   for people who ask their device for less motion. The words sit on a soft shade at the left (at the bottom on
   phones) so the rest of the photograph stays bright. */
.hb { position: relative; isolation: isolate; background: var(--sand); color: #fff; }
.hb__track { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; outline: 0; }
.hb__track::-webkit-scrollbar { display: none; }
.hb__slide { position: relative; isolation: isolate; flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; display: flex; align-items: center; min-height: clamp(540px, 76vh, 700px); overflow: hidden; }
.hb__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 7s linear; }
.hb__slide.is-on .hb__img { transform: scale(1); }
.hb__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(24, 21, 18, .58) 0%, rgba(24, 21, 18, .38) 30%, rgba(24, 21, 18, .08) 54%, rgba(24, 21, 18, 0) 66%), linear-gradient(0deg, rgba(24, 21, 18, .28) 0%, rgba(24, 21, 18, 0) 22%); }
.hb__in { width: 100%; padding-block: 64px 120px; }
.hb__copy { max-width: 560px; }
.hb__kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .9); }
.hb__kicker::before { content: ""; width: 28px; height: 2px; background: var(--red-2); }
.hb__h { margin: 16px 0 14px; max-width: 13ch; font-family: var(--f-head); font-weight: 400; font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: 1.02; letter-spacing: -.03em; color: #fff; text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, .18); }
.hb__h em { font-style: italic; font-weight: 400; color: #fff; }
.hb__lead { max-width: 42ch; font-size: clamp(1rem, 1.35vw, 1.12rem); line-height: 1.6; color: rgba(255, 255, 255, .9); }
.hb__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hb__cta .btn { min-width: 176px; }
.btn--glass { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--glass:hover { background: #fff; color: var(--ink); border-color: #fff; }
/* numbered tabs and arrows, on the photograph */
.hb__nav { position: absolute; left: 0; right: 0; bottom: 26px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; pointer-events: none; }
.hb__tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 170px); gap: 18px; pointer-events: auto; }
.hb__tab { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 10px; padding: 0 0 12px; border: 0; background: none; color: rgba(255, 255, 255, .7); text-align: left; cursor: pointer; position: relative; }
.hb__tab b { font-size: .72rem; font-weight: 700; letter-spacing: .08em; }
.hb__tab span { font-size: .88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb__tab i { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.hb__tab i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hb__tab[aria-selected="true"] { color: #fff; }
.hb__tab[aria-selected="true"] i::after { transform: scaleX(1); }
.hb.is-playing .hb__tab[aria-selected="true"] i::after { animation: hbFill 7s linear both; }
@keyframes hbFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hb__tab:hover { color: #fff; }
.hb__tab:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.hb__arrows { display: flex; gap: 8px; pointer-events: auto; }
.hb__arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .2s, color .2s; }
.hb__arrow:hover { background: #fff; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .hb__img, .hb__slide.is-on .hb__img { transform: none; transition: none; } .hb.is-playing .hb__tab[aria-selected="true"] i::after { animation: none; } }
@media (max-width: 900px) {
  .hb__slide { align-items: flex-end; min-height: 0; height: clamp(520px, calc(100svh - 150px), 620px); }
  .hb__shade { background: linear-gradient(0deg, rgba(24, 21, 18, .78) 0%, rgba(24, 21, 18, .5) 36%, rgba(24, 21, 18, .08) 62%, rgba(24, 21, 18, 0) 74%); }
  .hb__in { padding-block: 0 74px; }
  .hb__h { font-size: clamp(2.2rem, 9.6vw, 3.1rem); margin: 10px 0 10px; }
  .hb__lead { font-size: .95rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .hb__cta { margin-top: 18px; flex-wrap: nowrap; }
  .hb__cta .btn { flex: 1 1 0; min-width: 0; padding: 0 12px; }
  .hb__nav { bottom: 18px; }
  .hb__tabs { grid-auto-columns: minmax(0, 1fr); width: 100%; gap: 10px; }
  .hb__tab { padding-bottom: 9px; }
  .hb__tab b { display: none; }
  .hb__tab span { font-size: .74rem; }
  .hb__arrows { display: none; }
}

/* trust row under the hero */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); background: none; }
.trust li { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 18px 8px; color: var(--ink); }
.trust li + li { border-left: 1px solid var(--line); }
.trust svg { flex: none; width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--red-soft); color: var(--red); }
.trust b { display: block; font-size: .86rem; font-weight: 700; }
.trust span { font-size: .78rem; color: var(--muted); line-height: 1.35; }
.trust-wrap { background: var(--cream); border-block: 1px solid var(--line); }
@media (max-width: 700px) {
  .trust { padding: 0 4px; }
  .trust li { flex-direction: column; gap: 6px; padding: 14px 4px; text-align: center; }
  .trust svg { width: 32px; height: 32px; padding: 7px; }
  .trust b { font-size: .72rem; }
  .trust span { font-size: .66rem; }
}

/* ---------- categories: real photographs, the first one large, names written on the pictures ----------
   Each card is the photo itself, edge to edge, with the name in white at the lower left over a light fade.
   Picture order of preference: a photo uploaded in Admin, Categories; the shop's own photo for the category
   (assets/img/categories); the category's product on a plain light backdrop. */
.cxs { padding-block: clamp(36px, 5vw, 68px); }
.cx { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(8px, 1vw, 14px); }
.cx__tile { position: relative; isolation: isolate; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: var(--sand); color: #fff; }
.cx__tile--lead { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.cx__img { position: absolute; inset: 0; z-index: -2; }
.cx__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.cx__tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(22, 20, 18, .58) 0%, rgba(22, 20, 18, .22) 30%, rgba(22, 20, 18, 0) 52%); }
.cx__name { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; flex-direction: column; font-family: var(--f-body); font-weight: 700; font-size: 1rem; line-height: 1.2; letter-spacing: -.005em; color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
.cx__name small { margin-top: 3px; font-size: .72rem; font-weight: 500; letter-spacing: .02em; color: rgba(255, 255, 255, .82); }
.cx__tile--lead .cx__name { left: 22px; bottom: 20px; font-family: var(--f-head); font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2.2rem); letter-spacing: -.02em; }
.cx__tile--lead .cx__name small { font-family: var(--f-body); font-size: .8rem; }
.cx__tile:hover .cx__img img { transform: scale(1.05); }
.cx__tile:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
/* no photo at all: the product on a plain light backdrop, name in charcoal */
.cx__tile--cut { background: radial-gradient(80% 70% at 50% 40%, #FFFFFF 0%, #F1EEE8 70%, #E7E2D9 100%); color: var(--ink); }
.cx__tile--cut::after { display: none; }
.cx__tile--cut .cx__img img { object-fit: contain; padding: 10% 12% 24%; }
.cx__tile--cut .cx__name { color: var(--ink); text-shadow: none; }
.cx__tile--cut .cx__name small { color: var(--muted); }
.cx__more { display: none; margin-top: 16px; text-align: center; }
@media (min-width: 761px) and (max-width: 1100px) { .cx { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cx__name { font-size: .92rem; left: 12px; bottom: 10px; } }
@media (max-width: 760px) {
  .cxs { padding-block: 30px 34px; }
  .cx { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cx__tile--lead { grid-row: span 1; aspect-ratio: 2 / 1; }
  .cx__name { left: 11px; bottom: 9px; font-size: .95rem; }
  .cx__tile--lead .cx__name { left: 14px; bottom: 12px; font-size: 1.55rem; }
  .cx:not(.is-all) > .cx__tile:nth-child(n+8) { display: none; }
  .cx__more { display: block; }
  .cx__more .btn { width: 100%; }
}

/* ---------- departments: three photographs, name on the picture ---------- */
.dx { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); }
.dx__tile { position: relative; isolation: isolate; display: block; aspect-ratio: 4 / 3.3; overflow: hidden; border-radius: var(--r-tile); background: var(--sand); color: #fff; }
.dx__tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.dx__tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(60, 35, 20, 0) 42%, rgba(60, 35, 20, .62) 100%); }
.dx__txt { position: absolute; left: 20px; bottom: 18px; right: 66px; display: flex; flex-direction: column; }
.dx__txt b { font-family: var(--f-head); font-weight: 420; font-size: clamp(1.35rem, 2.2vw, 1.85rem); letter-spacing: -.02em; line-height: 1.1; text-shadow: 0 1px 12px rgba(40, 20, 10, .3); }
.dx__txt small { margin-top: 3px; font-size: .78rem; color: rgba(255, 255, 255, .88); }
.dx__go { position: absolute; right: 16px; bottom: 16px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; transition: background .2s, transform .2s; }
.dx__go svg { width: 16px; height: 16px; }
.dx__tile:hover img { transform: scale(1.04); }
.dx__tile:hover .dx__go { background: var(--red-d); transform: translateX(2px); }
@media (max-width: 760px) {
  .dx { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dx__tile { aspect-ratio: 1 / 1.05; }
  .dx__tile:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .dx__txt { left: 14px; bottom: 12px; right: 52px; }
  .dx__txt b { font-size: 1.2rem; }
  .dx__tile:first-child .dx__txt b { font-size: 1.5rem; }
  .dx__go { width: 32px; height: 32px; right: 10px; bottom: 10px; }
}

/* ---------- product cards ---------- */
.pcard { gap: 12px; }
.pcard__media { aspect-ratio: 1; border-radius: var(--r-tile); background: radial-gradient(80% 70% at 50% 36%, #FFFEFC 0%, #F4F1EB 58%, #ECE7DE 100%); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s; }
.pcard:hover .pcard__media { transform: none; box-shadow: inset 0 0 0 1px var(--line-2), 0 18px 30px -24px rgba(40, 36, 32, .55); }
.pcard__media::after { display: none; }
.tone-warm, .tone-cool, .tone-slate, .tone-blush, .tone-dark { background: radial-gradient(80% 70% at 50% 36%, #FFFEFC 0%, #F4F1EB 58%, #ECE7DE 100%); }
.pcard__img img { padding: 9%; filter: drop-shadow(0 10px 10px rgba(40, 36, 32, .16)); }
.pcard:hover .pcard__img img { transform: scale(1.04); }
.pcard__tags { left: 10px; top: 10px; }
.pcard__body { padding-inline: 2px; gap: 3px; }
.pcard__cat { font-size: .63rem; letter-spacing: .13em; color: var(--muted); font-weight: 700; }
.pcard__name { font-family: var(--f-body); font-weight: 600; font-size: .95rem; line-height: 1.3; min-height: 2.6em; color: var(--ink); }
.pcard__name a:hover { color: var(--red-d); }
.price__now { font-weight: 700; font-size: .98rem; color: var(--ink); }
.price__was { color: var(--muted); font-size: .82rem; }
/* quick add: one compact square button in the corner of the picture; always visible (phones have no hover) */
.pcard__quick { left: auto; right: 10px; bottom: 10px; width: 40px; height: 40px; min-width: 0; padding: 0; gap: 0; border-radius: 10px; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2), 0 4px 10px -6px rgba(40, 36, 32, .45); opacity: 1; transform: none; transition: background .2s, color .2s, box-shadow .2s; }
.pcard__quick span { display: none; }
.pcard__quick:hover, .pcard__quick:focus-visible { background: var(--red); color: #fff; box-shadow: 0 6px 14px -8px rgba(168, 14, 23, .9); }
.pcard__quick:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.pcard__quick:active { transform: scale(.94); }
@media (hover: hover) {
  .pcard__quick { left: auto; right: 10px; opacity: 1; transform: none; }
  .pcard__quick span { display: none; }
}
.tag { border-radius: 4px; font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 7px; }
.tag--sale { background: var(--red); color: #fff; }
.tag--new { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
@media (max-width: 760px) {
  .rail { gap: 22px 12px; }
  .pcard__name { font-size: .88rem; }
  .pcard__cat { font-size: .6rem; }
  .price__now { font-size: .92rem; }
  .pcard__quick { width: 36px; height: 36px; right: 8px; bottom: 8px; border-radius: 9px; }
  .pcard__quick svg { width: 17px; height: 17px; }
}

/* ---------- home sections below the categories ---------- */
.w-band-light { background: var(--grad-warm); border-block: 1px solid var(--line); }
.seg { border-radius: var(--r-btn); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); padding: 3px; }
.seg button { border-radius: 6px; font-weight: 600; color: var(--ink-2); }
.seg button[aria-selected="true"] { color: #fff; }
.seg__ink { border-radius: 6px; background: var(--red); box-shadow: 0 4px 10px -6px rgba(168, 14, 23, .8); }
.arrows button { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); }
.w-edit { border-radius: var(--r-card); background: var(--grad-cream); box-shadow: inset 0 0 0 1px var(--line); }
.w-edit__stage { border-radius: 0; background: url("../img/scenes/surface-wood.webp") center bottom / 100% 30% no-repeat, linear-gradient(180deg, #F9F2E9 0%, #F0E3D3 69%, #E8D7C2 70%); box-shadow: none; }
.w-edit__rings { display: none; }
.w-layer img { filter: drop-shadow(0 20px 18px rgba(40, 36, 32, .3)); }
.m-band { border-radius: var(--r-card); background: var(--grad-red); box-shadow: none; }
.m-band .eyebrow--light { color: rgba(255, 255, 255, .85); }
.m-band__pay svg { background: rgba(255, 255, 255, .16); }
@media (max-width: 760px) { .sh { margin-bottom: 14px; } .sh__tools .seg { width: 100%; overflow-x: auto; } .w-edit__stage { min-height: 250px; } }

/* ---------- shop and category pages ---------- */
.shop__hero { background: var(--grad-cream); color: var(--ink); border-radius: var(--r-card); min-height: clamp(150px, 15vw, 200px); box-shadow: inset 0 0 0 1px var(--line); }
.shop__hero h1 { color: var(--ink); font-family: var(--f-head); font-weight: 420; }
.shop__hero .shop__blurb, .shop__hero p { color: var(--ink-2); }
.shop__hero-art::before { border-color: rgba(168, 14, 23, .1); box-shadow: 0 0 0 26px rgba(211, 18, 28, .03); }
.sa img { filter: drop-shadow(0 16px 16px rgba(40, 36, 32, .25)); }
.chip, .chip-cat, .cats a { border-radius: var(--r-btn); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.cats a.is-on, .chip.is-on, .chip-cat.is-on { background: var(--red); color: #fff; box-shadow: none; }
.cats a.is-on small, .chip.is-on small { color: rgba(255, 255, 255, .8); }
.toolbar, .toolbar select, .sort select { border-radius: var(--r-btn); }
.crumbs { font-size: .78rem; color: var(--muted); }
@media (max-width: 720px) { .shop__hero { min-height: 120px; border-radius: var(--r-tile); } .shop__hero h1 { font-size: 1.6rem; } }

/* ---------- form fields: one size everywhere (44px), warm white with a visible edge ---------- */
.form { gap: 16px; }
.form__row { gap: 14px; }
.field { gap: 6px; }
.field label, .field legend { font-size: .78rem; font-weight: 700; color: var(--ink-2); letter-spacing: .01em; }
.field__box input, .field__box select, .field__box textarea { min-height: 44px; height: 44px; padding: 0 40px 0 14px; border-radius: var(--r-field); background-color: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); font-size: .94rem; color: var(--ink); }
.field__box textarea { height: auto; min-height: 84px; padding: 11px 14px; }
.field__box input::placeholder, .field__box textarea::placeholder { color: #A09A92; }
.field__box input:focus, .field__box select:focus, .field__box textarea:focus { background-color: #fff; box-shadow: inset 0 0 0 1.5px var(--ink-2), 0 0 0 3px rgba(168, 138, 92, .18); }
.field__box select:disabled, .field__box input:disabled { background-color: var(--cream); color: var(--muted); cursor: not-allowed; }
.field__state { top: 12px; right: 12px; width: 18px; height: 18px; }
.field.is-invalid .field__box input, .field.is-invalid .field__box select, .field.is-invalid .field__box textarea { background-color: #FFF7F6; box-shadow: inset 0 0 0 1.5px var(--red); }
.field__err { font-size: .78rem; color: var(--red-d); }
.field__hint { font-size: .75rem; color: var(--muted); }
.opt-tag { background: var(--cream); color: var(--muted); border-radius: 4px; }
.check__box { background: var(--surface); }

/* ---------- cards on checkout, order, account, contact ---------- */
.contact__card, .co__card, .acct__panel, .acct__card { border-radius: var(--r-card); box-shadow: none; border: 1px solid var(--line); background: var(--surface); }
.card__head h2 { font-family: var(--f-head); font-weight: 450; letter-spacing: -.015em; }
.co__n { border-radius: 50%; background: var(--red); color: #fff; }
.acct__nav { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r-card); }
.acct__nav a { border-radius: var(--r-btn); }
.acct__nav a.is-on, .acct__nav a[aria-current] { background: var(--red-soft); color: var(--red-d); }
.acct__tabs a { border-radius: var(--r-btn); }
.acct__pill { border-radius: 4px; background: var(--cream); }
.acct__stat { border-radius: var(--r-card); }
.acct__addr { border-radius: var(--r-tile); background: var(--surface); }
.ord__hero { border-radius: var(--r-card); background: var(--grad-cream); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.ord__hero h1, .ord__hero b { color: var(--ink); }
.ord__stage { margin-bottom: 10px; color: var(--ink-2); }

/* ---------- checkout ---------- */
body.co-page { background: var(--soft); }
.co__head { margin: 4px 0 18px; }
.co__head h1 { font-size: clamp(1.75rem, 3vw, 2.35rem); }
.co__grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; }
.co__main { gap: 16px; }
.co__card { padding: clamp(18px, 2.2vw, 26px); }
.co__card .card__head { margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.co__card h2, .co__sum h2 { font-size: 1.22rem; gap: 10px; }
.co__n { width: 26px; height: 26px; font-size: .78rem; }
.co__card .form { gap: 14px; }
.co__sum { border-radius: var(--r-card); border: 1px solid var(--line); border-top: 3px solid var(--red); background: var(--surface); box-shadow: 0 18px 40px -34px rgba(40, 36, 32, .6); padding: clamp(18px, 2.2vw, 24px); gap: 14px; }
.co__img { border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.co__img b { background: var(--ink-2); }
.co__totals { border-top-color: var(--line-2); }
.co__total { border-top-color: var(--line-2); }
.co__total dd { color: var(--red); }
.co__addr, .co__payopt { border-radius: var(--r-field); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); padding: 12px 14px; }
.co__addr:has(input:checked), .co__payopt:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--red); background: #FFFEFC; }
.co__payico { background-color: var(--red-soft); border-radius: 8px; }
.co__paynext { background: var(--cream); border-radius: 8px; box-shadow: none; }
.co__pay { gap: 8px; }
.co__proof { border-radius: var(--r-field); background: var(--cream); box-shadow: inset 0 0 0 1px var(--line); padding: 14px; gap: 12px; }
.co__acctlist { background: var(--surface); border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); }
.co__copy { border-radius: 6px; background: var(--red-soft); color: var(--red-d); }
.co__file { border-radius: var(--r-field); background: var(--surface); }
.co__check { font-size: .9rem; }
.co__hint { background: var(--red-soft); }
.co__delnote { margin-top: -6px; }
@media (max-width: 1000px) { .co__grid { grid-template-columns: 1fr; } .co__side { position: static; } }
@media (max-width: 720px) {
  .co__card { padding: 16px 14px; border-radius: var(--r-tile); }
  .co__card .card__head { margin-bottom: 14px; padding-bottom: 12px; }
  .co__sum { padding: 16px 14px; border-radius: var(--r-tile); }
}

/* ---------- Pakistan address: compact country, province and city, with typeable suggestions ---------- */
.pk-addr__grid { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.pk-addr .field[data-field="country"] .field__box select { background-color: var(--cream); }
.pk-addr--js .pk-addr__sel { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; opacity: 0; pointer-events: none; }
.pk-combo { position: relative; }
.pk-combo__in { width: 100%; }
.pk-combo__btn { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
.pk-combo__btn:hover { color: var(--ink); background: var(--cream); }
.pk-combo__btn svg { transition: transform .2s; }
.pk-combo.is-open .pk-combo__btn svg { transform: rotate(180deg); }
.pk-combo__list { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px); max-height: min(280px, 46vh); overflow-y: auto; padding: 4px; border-radius: var(--r-field); background: var(--surface); box-shadow: 0 0 0 1px var(--line-2), 0 18px 34px -16px rgba(40, 36, 32, .45); overscroll-behavior: contain; }
.pk-combo__list li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 6px; font-size: .92rem; color: var(--ink); cursor: pointer; }
.pk-combo__list li small { flex: none; font-size: .72rem; color: var(--muted); }
.pk-combo__list li mark { background: none; color: var(--red-d); font-weight: 700; }
.pk-combo__list li[aria-selected="true"], .pk-combo__list li:hover { background: var(--red-soft); }
.pk-combo__list li.pk-combo__other { margin-top: 2px; border-top: 1px solid var(--line); border-radius: 0 0 6px 6px; color: var(--red-d); font-weight: 600; }
.pk-combo__list li.pk-combo__note { color: var(--muted); cursor: default; font-size: .82rem; }
.pk-combo__list li.pk-combo__note:hover { background: none; }
.pk-addr__typed { margin-top: 2px; }
@media (max-width: 720px) {
  .pk-addr__grid { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
  .pk-addr__grid > .field[data-field="city"] { grid-column: 1 / -1; }
}

/* ---------- product page ---------- */
.gal__stage { border-radius: var(--r-card); box-shadow: inset 0 0 0 1px var(--line); background: radial-gradient(80% 70% at 50% 38%, #FFFEFC 0%, #F4F1EB 58%, #ECE7DE 100%); }
.gal__thumb { border-radius: var(--r-field); background: var(--surface); }
.gal__count { background: rgba(42, 33, 28, .62); }
.pdp__title { font-weight: 420; }
.pdp__price .price__now { color: var(--ink); font-family: var(--f-body); font-weight: 700; font-size: 1.5rem; }
.opt__btn { border-radius: var(--r-btn); height: 42px; }
.assure { border-radius: var(--r-card); box-shadow: none; border: 1px solid var(--line); background: var(--cream); }
.buy__add, .buybar .btn { border-radius: var(--r-btn); }
.qty { border-radius: var(--r-btn); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.buybar { background: rgba(255, 254, 252, .97); box-shadow: 0 -1px 0 var(--line); }

/* ---------- cart drawer and sheets ---------- */
.sheet { border-radius: 0; background: var(--bg); }
.sheet__head { background: var(--surface); border-bottom: 1px solid var(--line); }
.sheet__foot--cart, .filters__foot { background: var(--surface); border-top: 1px solid var(--line); }
.cline__img, .cl__img { border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 760px) { .sheet { border-radius: 14px 14px 0 0; } }

/* ---------- phones: bottom bar docked to the edge ---------- */
@media (max-width: 900px) {
  .bnav { left: 0; right: 0; bottom: 0; height: calc(58px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); border-radius: 0; background: rgba(255, 254, 252, .97); box-shadow: 0 -1px 0 var(--line); }
  .bnav__i { font-size: .64rem; color: var(--ink-2); }
  .bnav__i.is-on { color: var(--red); }
  .bnav__i.is-on::before { display: none; }
}
.toast { background: var(--ink); }

/* ---------- footer: warm sand with the brand red as the accent ---------- */
.ftr { background: var(--sand); color: var(--ink-2); border-radius: 0; border-top: 3px solid var(--red); margin-top: 0; }
.ftr .logo__word, .ftr .logo__word span { color: var(--ink); } .ftr .logo__word b { color: var(--red); }
.ftr .logo__mark circle:first-child { stroke: var(--red); fill: none; } .ftr .logo__mark circle:last-child { fill: var(--red); stroke: var(--red); }
.ftr__wa { background: var(--surface); color: var(--ink); border-radius: var(--r-btn); box-shadow: inset 0 0 0 1px var(--line-2); }
.ftr__wa:hover { color: var(--red-d); }
.ftr__col h2 { color: var(--muted); }
.ftr__col a { color: var(--ink-2); } .ftr__col a:hover { color: var(--red); }
.ftr__base { border-top-color: var(--line-2); color: var(--muted); }
.ftr__base a { color: var(--ink-2); }

/* decorative extras from earlier versions that are no longer used */
.m-marquee { display: none; }
@media (min-width: 721px) { .co__addrrow { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
