/* Hani Baba Crockery Store — storefront styles */

:root {
  --ink: #20241f;
  --ink-2: #5b6357;
  --muted: #8b9387;
  --line: #e4ece4;
  --line-2: #eef4ee;
  --bg: #ffffff;
  --bg-soft: #f4f9f4;
  --bg-deep: #0d1410;
  --accent: #2ca125;
  --accent-dark: #1c7d1f;
  --accent-soft: #e7f5e9;
  --sale: #e8453c;
  --ok: #1f7a4d;
  --star: #f2a33c;

  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 26px;
  --shadow: 0 2px 10px rgba(24, 48, 28, .06), 0 14px 40px rgba(24, 48, 28, .10);
  --shadow-lg: 0 30px 70px rgba(24, 48, 28, .20);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Playfair Display", serif;
  --sans: ui-rounded, "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Inter", Roboto, Helvetica, Arial, sans-serif;

  --header-h: 68px;
  --wrap: 1320px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.15rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }

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

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border: 1px solid var(--ink); background: var(--ink); color: #fff;
  border-radius: var(--radius); cursor: pointer; font-size: .875rem; font-weight: 500;
  letter-spacing: .02em; transition: background .15s, color .15s, border-color .15s, opacity .15s;
  text-align: center;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--accent { background: var(--accent); border-color: var(--accent); }
.btn--accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--sm { padding: 8px 14px; font-size: .8rem; }
.btn--block { width: 100%; }
.btn--link { border: 0; background: none; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.btn--link:hover { background: none; color: var(--accent); }

/* ------------------------------------------------------------------- forms */

label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }

/* `input:not([type])` matters: an attribute selector tests the attribute, not the
   IDL property, so a plain <input> — which *behaves* as type=text — matches none
   of the list below and would otherwise keep the browser's default narrow box. */
input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=number], input[type=search], input[type=url], input:not([type]),
select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; font: inherit; font-size: .9rem; color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(44, 161, 37, .13);
}
textarea { min-height: 120px; resize: vertical; }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hint { font-size: .8rem; color: var(--muted); margin-top: 6px; }

.alert { padding: 11px 14px; border-radius: var(--radius); font-size: .875rem; margin-bottom: 16px; }
.alert--error { background: #fdeceb; color: #8c1c16; border: 1px solid #f5c9c6; }
.alert--ok { background: #e9f5ee; color: #14603a; border: 1px solid #bfe2cf; }
/* Used where something is owed, or where the shop is explaining a step rather
   than reporting a failure. */
.alert--warn { background: #fdf3df; color: #6f4b05; border: 1px solid #f0dcae; }
.alert--info { background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line); }
.alert strong { font-weight: 700; }

/* --------------------------------------------------------- announcement bar */

.announce {
  background: var(--bg-deep); color: #e7f5e9; text-align: center;
  font-size: .78rem; letter-spacing: .06em; padding: 9px 20px;
}

/* ------------------------------------------------------------------ header */

.header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); }

.header__bar {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 18px;
  height: var(--header-h);
}

.logo { display: flex; align-items: baseline; gap: 9px; }
.logo__mark {
  width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-family: var(--serif); font-size: .95rem; letter-spacing: -.03em;
  flex: none; align-self: center;
}
.logo__text { font-family: var(--serif); font-size: 1.22rem; letter-spacing: -.01em; white-space: nowrap; }

.search { position: relative; max-width: 520px; width: 100%; justify-self: center; }
.search input { padding-left: 38px; background: var(--bg-soft); border-color: transparent; }
.search input:focus { background: #fff; }
.search__icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }

.header__actions { display: flex; align-items: center; gap: 4px; }
.iconbtn {
  display: flex; align-items: center; gap: 7px; padding: 8px 11px; border: 0; background: none;
  border-radius: var(--radius); cursor: pointer; font-size: .82rem; white-space: nowrap;
}
.iconbtn:hover { background: var(--bg-soft); }
.iconbtn__label { display: none; }
@media (min-width: 1080px) { .iconbtn__label { display: inline; } }

.cart-badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent);
  color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center;
}

.burger { display: none; }

/* --------------------------------------------------------------- mega menu */

.nav { border-top: 1px solid var(--line-2); }
.nav__list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link {
  display: block; padding: 13px 14px; font-size: .84rem; font-weight: 500; letter-spacing: .02em;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.nav__item:hover > .nav__link { color: var(--accent); border-bottom-color: var(--accent); }

.mega {
  position: absolute; left: 0; top: 100%; z-index: 70; min-width: 660px;
  background: #fff; border: 1px solid var(--line); border-top: 0; box-shadow: var(--shadow-lg);
  padding: 26px 28px; display: none; border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.nav__item:hover .mega { display: block; }
.nav__item--right .mega { left: auto; right: 0; }

.mega__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 22px 30px; }
.mega__col { min-width: 0; }
.mega__heading {
  font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 10px; padding-bottom: 8px;
  border-bottom: 1px solid var(--line-2);
}
.mega__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.mega__links a { display: block; padding: 4px 0; font-size: .84rem; color: var(--ink-2); }
.mega__links a:hover { color: var(--accent); }

/* Brand menu gets a wider, denser layout. */
.mega--brands { min-width: 420px; }
.mega--brands .mega__grid { grid-template-columns: repeat(2, minmax(150px, 1fr)); }

/* ------------------------------------------------------------ mobile drawer */

.drawer {
  position: fixed; inset: 0 30% 0 0; max-width: 380px; min-width: 300px; background: #fff;
  z-index: 200; transform: translateX(-100%); transition: transform .25s ease;
  overflow-y: auto; box-shadow: var(--shadow-lg);
}
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; }
.drawer__body { padding: 8px 0 60px; }
.scrim { position: fixed; inset: 0; background: rgba(22, 18, 13, .45); z-index: 190; display: none; }
.scrim.is-open { display: block; }

.acc__head {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 13px 20px; border: 0; background: none; cursor: pointer; text-align: left;
  font-size: .92rem; font-weight: 500; border-bottom: 1px solid var(--line-2);
}
.acc__body { display: none; padding: 4px 0 10px; background: var(--bg-soft); }
.acc.is-open > .acc__body { display: block; }
.acc.is-open > .acc__head .acc__chev { transform: rotate(90deg); }
.acc__chev { transition: transform .2s; color: var(--muted); }
.acc__group { padding: 8px 20px 4px; font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); }
.acc__body a { display: block; padding: 7px 20px 7px 32px; font-size: .86rem; color: var(--ink-2); }

/* -------------------------------------------------------------------- hero */

.hero { position: relative; background: var(--bg-soft); overflow: hidden; }
.hero__slides { display: flex; transition: transform .5s cubic-bezier(.4, 0, .2, 1); }
.hero__slide { min-width: 100%; position: relative; }
.hero__media {
  min-height: 460px; display: grid; place-items: center; background: linear-gradient(135deg, #e8f2e8, #d3e5d5);
  background-size: cover; background-position: center;
}
.hero__inner { max-width: var(--wrap); margin: 0 auto; padding: 60px 20px; width: 100%; }
.hero__card { max-width: 560px; }
.hero__eyebrow { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.hero h1 { margin-bottom: 14px; }
.hero p { font-size: 1.02rem; color: var(--ink-2); margin: 0 0 26px; max-width: 46ch; }
.hero__dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.hero__dot { width: 8px; height: 8px; border-radius: 50%; border: 0; background: rgba(22,18,13,.24); cursor: pointer; padding: 0; }
.hero__dot.is-active { background: var(--ink); width: 22px; border-radius: 4px; }
.hero__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px;
  border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.9);
  display: grid; place-items: center; cursor: pointer;
}
.hero__arrow--prev { left: 18px; }
.hero__arrow--next { right: 18px; }

/* --------------------------------------------------------------- sections */

.section { padding: 62px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section__head h2 { margin: 0; }
.section__head p { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }
.section__link { font-size: .85rem; border-bottom: 1px solid var(--accent); color: var(--accent); padding-bottom: 2px; white-space: nowrap; }

/* ----------------------------------------------------------- product cards */

.grid-products {
  display: grid; gap: 26px 20px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.card { position: relative; display: flex; flex-direction: column; }
.card__media {
  position: relative; aspect-ratio: 1; background: var(--bg-soft); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 12px;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card:hover .card__media img { transform: scale(1.045); }
.card__ph { width: 100%; height: 100%; display: grid; place-items: center; color: #bfd0c0; }

.card__badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.badge {
  font-size: .66rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 3px; background: var(--ink); color: #fff;
}
.badge--sale { background: var(--sale); }
.badge--out { background: var(--muted); }
.badge--new { background: var(--ok); }

.card__quick {
  position: absolute; left: 10px; right: 10px; bottom: 10px; opacity: 0;
  transform: translateY(6px); transition: opacity .2s, transform .2s; z-index: 2;
}
.card:hover .card__quick { opacity: 1; transform: none; }
@media (hover: none) { .card__quick { opacity: 1; transform: none; } }

.card__brand { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.card__title {
  font-family: var(--sans); font-size: .875rem; font-weight: 500; line-height: 1.4; margin: 0 0 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price { font-weight: 600; font-size: .95rem; }
.price--was { color: var(--muted); text-decoration: line-through; font-weight: 400; font-size: .82rem; }
.price--off { color: var(--sale); font-size: .75rem; font-weight: 700; }

.stars { display: inline-flex; gap: 1px; color: var(--star); font-size: .8rem; line-height: 1; }
.card__rating { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: .75rem; color: var(--muted); }

/* ------------------------------------------------------- category tiles */

.grid-tiles { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.tile { text-align: center; }
.tile__media {
  aspect-ratio: 1; border-radius: 50%; background: var(--bg-soft); overflow: hidden; margin-bottom: 12px;
  display: grid; place-items: center; border: 1px solid var(--line-2); transition: border-color .2s;
}
.tile:hover .tile__media { border-color: var(--accent); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; }
.tile__title { font-size: .88rem; font-weight: 500; }
.tile__count { font-size: .76rem; color: var(--muted); }

/* --------------------------------------------------------------- features */

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 26px; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature__icon { color: var(--accent); flex: none; }
.feature h3 { font-family: var(--sans); font-size: .92rem; font-weight: 600; margin: 0 0 3px; }
.feature p { margin: 0; font-size: .85rem; color: var(--muted); }

/* --------------------------------------------------- collection highlights */

.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.highlight {
  position: relative; min-height: 300px; border-radius: var(--radius-lg); overflow: hidden;
  display: flex; align-items: flex-end; padding: 26px; color: #fff;
  background: linear-gradient(180deg, rgba(22,18,13,.05), rgba(22,18,13,.78)), var(--bg-deep);
  background-size: cover; background-position: center;
}
.highlight h3 { font-size: 1.5rem; color: #fff; margin: 0 0 6px; }
.highlight p { margin: 0 0 14px; font-size: .88rem; color: rgba(255,255,255,.85); }
.highlight__cta { font-size: .82rem; border-bottom: 1px solid rgba(255,255,255,.6); padding-bottom: 2px; }

/* ----------------------------------------------------------------- brands */

.brand-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; }
.brand-chip {
  display: grid; place-items: center; min-height: 88px; padding: 14px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--serif);
  font-size: 1rem; color: var(--ink-2); transition: border-color .2s, color .2s;
}
.brand-chip:hover { border-color: var(--accent); color: var(--accent); }
.brand-chip img { max-height: 46px; width: auto; object-fit: contain; }

/* ---------------------------------------------------------------- reviews */

.review-rail { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.review-rail::-webkit-scrollbar { height: 6px; }
.review-rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.review {
  flex: 0 0 310px; scroll-snap-align: start; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 20px;
}
.review__name { font-size: .82rem; font-weight: 600; margin-top: 10px; }
.review__meta { font-size: .74rem; color: var(--muted); }
.review h4 { font-family: var(--sans); font-size: .9rem; margin: 8px 0 4px; }
.review p { font-size: .86rem; color: var(--ink-2); margin: 0; }
.verified { display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; color: var(--ok); font-weight: 600; }

/* ------------------------------------------------------------------- blog */

.grid-posts { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.post__media { aspect-ratio: 16/10; background: var(--bg-soft); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; }
.post__media img { width: 100%; height: 100%; object-fit: cover; }
.post__date { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.post h3 { margin: 6px 0 8px; font-size: 1.12rem; }
.post p { margin: 0; font-size: .88rem; color: var(--ink-2); }

.article { font-size: 1.02rem; line-height: 1.75; }
.article h3 { font-size: 1.25rem; margin: 1.8em 0 .5em; }
.article p { margin: 0 0 1.1em; }
.article ul, .article ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.article li { margin-bottom: .4em; }

/* ------------------------------------------------------------- newsletter */

.newsletter { background: var(--bg-deep); color: #e7f0e6; padding: 64px 0; }
.newsletter h2 { color: #fff; }
.newsletter p { color: rgba(243, 236, 225, .74); margin: 0 0 24px; }
.newsletter__form { display: flex; gap: 10px; max-width: 460px; flex-wrap: wrap; }
.newsletter__form input { flex: 1 1 240px; background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.2); color: #fff; }
.newsletter__form input::placeholder { color: rgba(243,236,225,.5); }
.newsletter__form .btn { background: var(--accent); border-color: var(--accent); }

/* ----------------------------------------------------------------- footer */

.footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 54px 0 0; font-size: .875rem; }
.footer__grid { display: grid; gap: 32px; grid-template-columns: 1.6fr repeat(3, 1fr); }
.footer h4 { font-family: var(--sans); font-size: .74rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink); margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: var(--ink-2); }
.footer a:hover { color: var(--accent); }
.footer__about p { color: var(--ink-2); margin: 0 0 16px; max-width: 42ch; }
.footer__contact { display: grid; gap: 7px; color: var(--ink-2); }
.footer__contact strong { color: var(--ink); font-weight: 600; }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; background: #fff; }
.social a:hover { border-color: var(--accent); color: var(--accent); }
.footer__bottom {
  margin-top: 44px; padding: 18px 0; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .8rem; color: var(--muted);
}
.pay { display: flex; gap: 7px; flex-wrap: wrap; }
.pay span { padding: 3px 8px; border: 1px solid var(--line); border-radius: 3px; background: #fff; font-size: .68rem; letter-spacing: .04em; }

/* ------------------------------------------------------------- breadcrumb */

.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); padding: 16px 0; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { color: var(--line); }

/* ------------------------------------------------------- collection layout */

.collection-head { padding: 10px 0 26px; }
.collection-head h1 { margin-bottom: 6px; }
.collection-head p { color: var(--muted); margin: 0; max-width: 62ch; }

.shop { display: grid; grid-template-columns: 250px 1fr; gap: 34px; align-items: start; padding-bottom: 70px; }

.filters { position: sticky; top: calc(var(--header-h) + 60px); }
.filters__group { border-bottom: 1px solid var(--line-2); padding: 0 0 4px; }
.filters__toggle {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  padding: 14px 0; border: 0; background: none; cursor: pointer;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.filters__body { padding-bottom: 14px; display: grid; gap: 8px; max-height: 250px; overflow-y: auto; }
.filters__group.is-closed .filters__body { display: none; }
.check { display: flex; align-items: center; gap: 9px; font-size: .85rem; cursor: pointer; color: var(--ink-2); }
.check input { width: 15px; height: 15px; accent-color: var(--accent); flex: none; }
.check span.count { margin-left: auto; color: var(--muted); font-size: .75rem; }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range input { padding: 8px 10px; font-size: .82rem; }

.shop__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-bottom: 20px; border-bottom: 1px solid var(--line-2); margin-bottom: 26px; flex-wrap: wrap;
}
.shop__count { font-size: .85rem; color: var(--muted); }
.shop__sort { display: flex; align-items: center; gap: 10px; }
.shop__sort select { width: auto; padding: 8px 32px 8px 12px; font-size: .84rem; }
.filter-toggle { display: none; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-soft); font-size: .78rem; cursor: pointer;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }

.pager { display: flex; justify-content: center; gap: 6px; margin-top: 48px; flex-wrap: wrap; }
.pager button {
  min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--line); background: #fff;
  border-radius: var(--radius); cursor: pointer; font-size: .85rem;
}
.pager button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.pager button.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager button:disabled { opacity: .35; cursor: not-allowed; }

.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty svg { color: var(--line); margin-bottom: 16px; }
.empty h3 { color: var(--ink); }

/* --------------------------------------------------------- product detail */

.pd { display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; padding-bottom: 60px; align-items: start; }
.pd__gallery { display: grid; gap: 12px; position: sticky; top: calc(var(--header-h) + 20px); }
.pd__main { aspect-ratio: 1; background: var(--bg-soft); border-radius: var(--radius-lg); overflow: hidden; }
.pd__main img { width: 100%; height: 100%; object-fit: cover; }
.pd__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; }
.pd__thumb { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--bg-soft); cursor: pointer; padding: 0; }
.pd__thumb.is-active { border-color: var(--accent); border-width: 2px; }
.pd__thumb img { width: 100%; height: 100%; object-fit: cover; }

.pd__brand { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.pd h1 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 12px; }
.pd__rating { display: flex; align-items: center; gap: 9px; font-size: .84rem; color: var(--muted); margin-bottom: 18px; }
.pd__price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.pd__price .price { font-size: 1.7rem; }
.pd__tax { font-size: .8rem; color: var(--muted); margin-bottom: 22px; }
.pd__stock { font-size: .85rem; font-weight: 600; margin-bottom: 20px; }
.pd__stock.in { color: var(--ok); }
.pd__stock.out { color: var(--sale); }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); }
.qty button { width: 40px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 1.1rem; }
.qty button:hover { background: var(--bg-soft); }
.qty input { width: 52px; height: 44px; border: 0; text-align: center; padding: 0; font-weight: 600; }
.qty input:focus { box-shadow: none; }

.pd__buy { display: flex; gap: 12px; margin: 22px 0; flex-wrap: wrap; }
.pd__buy .btn { flex: 1 1 180px; padding: 14px 22px; }

.pd__meta { display: grid; gap: 8px; padding: 20px 0; border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2); font-size: .85rem; margin: 26px 0; }
.pd__meta div { display: flex; gap: 10px; }
.pd__meta dt { color: var(--muted); min-width: 92px; }

.pd__desc { font-size: .95rem; line-height: 1.75; color: var(--ink-2); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 26px; flex-wrap: wrap; }
.tab {
  padding: 12px 18px; border: 0; background: none; cursor: pointer; font-size: .88rem;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab.is-active { border-bottom-color: var(--ink); font-weight: 600; }
.tabpane { display: none; }
.tabpane.is-active { display: block; }

.review-item { padding: 20px 0; border-bottom: 1px solid var(--line-2); }
.review-item:last-child { border-bottom: 0; }
.review-item__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.review-item__name { font-weight: 600; font-size: .9rem; }
.review-item__date { font-size: .76rem; color: var(--muted); margin-left: auto; }

.rating-input { display: flex; gap: 4px; }
.rating-input button { border: 0; background: none; cursor: pointer; font-size: 1.5rem; color: var(--line); padding: 0; line-height: 1; }
.rating-input button.is-on { color: var(--star); }

/* ------------------------------------------------------------------- cart */

.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; padding-bottom: 70px; }

.cart-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line-2); align-items: start; }
.cart-row__media { aspect-ratio: 1; background: var(--bg-soft); border-radius: var(--radius); overflow: hidden; }
.cart-row__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-row__title { font-size: .92rem; font-weight: 500; margin: 0 0 4px; }
.cart-row__meta { font-size: .8rem; color: var(--muted); margin-bottom: 12px; }
.cart-row__right { text-align: right; display: grid; gap: 10px; justify-items: end; }
.cart-row__remove { border: 0; background: none; cursor: pointer; font-size: .78rem; color: var(--muted); text-decoration: underline; padding: 0; }
.cart-row__remove:hover { color: var(--sale); }

.summary { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; position: sticky; top: calc(var(--header-h) + 20px); }
.summary h3 { margin-top: 0; }
.summary__line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: .9rem; }
.summary__line--total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px;
  font-size: 1.1rem; font-weight: 700; font-family: var(--serif); }
.summary__note { font-size: .78rem; color: var(--muted); margin-top: 12px; }

/* --------------------------------------------------------------- checkout */

.checkout { display: grid; grid-template-columns: 1fr 380px; gap: 44px; align-items: start; padding-bottom: 70px; }
.checkout__section { margin-bottom: 34px; }
.checkout__section h3 { font-family: var(--sans); font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }

.payopt { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line);
  border-radius: var(--radius); cursor: pointer; margin-bottom: 10px; }
.payopt:has(input:checked) { border-color: var(--accent); background: rgba(154,107,63,.04); }
.payopt input { margin-top: 3px; accent-color: var(--accent); }
.payopt strong { display: block; font-size: .9rem; }
.payopt small { color: var(--muted); font-size: .8rem; }

.mini-line { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; font-size: .85rem; }
.mini-line__media { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: #fff; position: relative; }
.mini-line__media img { width: 100%; height: 100%; object-fit: cover; }
.mini-line__qty { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: .68rem; display: grid; place-items: center; }

/* ------------------------------------------------------- auth + account */

.auth { max-width: 420px; margin: 0 auto; padding: 56px 20px 80px; }
.auth h1 { text-align: center; margin-bottom: 8px; }
.auth__sub { text-align: center; color: var(--muted); margin: 0 0 28px; font-size: .9rem; }
.auth__alt { text-align: center; margin-top: 20px; font-size: .88rem; color: var(--muted); }
.auth__alt a { color: var(--accent); border-bottom: 1px solid currentColor; }

.account { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; padding-bottom: 70px; }
.account__nav { display: grid; gap: 2px; position: sticky; top: calc(var(--header-h) + 20px); }
.account__nav button {
  text-align: left; padding: 11px 14px; border: 0; background: none; border-radius: var(--radius);
  cursor: pointer; font-size: .88rem;
}
.account__nav button:hover { background: var(--bg-soft); }
.account__nav button.is-active { background: var(--ink); color: #fff; }

.order-card { border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 18px; overflow: hidden; }
.order-card__head { display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px;
  background: var(--bg-soft); border-bottom: 1px solid var(--line); flex-wrap: wrap; font-size: .85rem; }
.order-card__body { padding: 8px 20px 16px; }

.status {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .72rem;
  font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.status--pending { background: #fdf2dc; color: #8a5d0b; }
.status--confirmed { background: #e2edfd; color: #1a4f97; }
.status--packed { background: #ede4fb; color: #5a32a3; }
.status--shipped { background: #dff1f6; color: #0f5f75; }
.status--delivered { background: #e2f3e9; color: #14603a; }
.status--cancelled { background: #fbe4e2; color: #8c1c16; }

/* ---------------------------------------------------------------- generic */

.panel { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 26px; }

.toast-host { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: grid; gap: 10px; }
.toast {
  background: var(--ink); color: #fff; padding: 13px 18px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); font-size: .875rem; max-width: 330px;
  animation: toast-in .2s ease; display: flex; gap: 10px; align-items: center;
}
.toast--error { background: var(--sale); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

.skeleton { background: linear-gradient(90deg, #eef5ee 25%, #dfeade 37%, #eef5ee 63%);
  background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: var(--radius); }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.sk-card { aspect-ratio: 1; margin-bottom: 12px; }
.sk-line { height: 11px; margin-bottom: 7px; }
.sk-line.short { width: 55%; }

/* --------------------------------------------------------------- responsive */

@media (max-width: 1100px) {
  .shop { grid-template-columns: 1fr; }
  .filters {
    position: fixed; inset: 0 auto 0 0; width: 320px; max-width: 88vw; background: #fff; z-index: 200;
    padding: 20px; overflow-y: auto; transform: translateX(-100%); transition: transform .25s;
    box-shadow: var(--shadow-lg);
  }
  .filters.is-open { transform: none; }
  .filter-toggle { display: inline-flex; }
  .checkout, .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .pd { grid-template-columns: 1fr; gap: 32px; }
  .pd__gallery { position: static; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: flex; }
  .header__bar { grid-template-columns: auto auto 1fr auto; gap: 12px; }
  .search { order: 4; grid-column: 1 / -1; max-width: none; padding-bottom: 12px; }
  .header__bar { height: auto; padding: 12px 0 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .account { grid-template-columns: 1fr; }
  .account__nav { grid-auto-flow: column; overflow-x: auto; position: static; }
  .hero__media { min-height: 380px; }
}

@media (max-width: 620px) {
  .grid-products { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .grid-tiles { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .footer__grid { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .field-row { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 72px 1fr; }
  .cart-row__right { grid-column: 1 / -1; justify-items: start; }
  .drawer { inset: 0; max-width: none; min-width: 0; }
}

/* ===========================================================================
   Quick page nav, and the floating WhatsApp button
   ---------------------------------------------------------------------------
   The pages a customer asks for by name sit beside the search box: Home, Shop,
   Reviews, Blogs, Contact us, and the package builder as a filled pill because
   it is the one thing that is otherwise hard to find. Below a tablet the strip
   drops to its own scrolling row under the search rather than disappearing — a
   phone is where someone is most likely to be hunting for "contact us".
   ======================================================================== */

.quicknav { display: flex; align-items: center; gap: 2px; min-width: 0; }

.quicknav__link {
  padding: 8px 11px;
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink);
  transition: background-color .18s var(--ease, ease), color .18s var(--ease, ease);
}
.quicknav__link:hover { background: var(--bg-soft); color: var(--accent-ink, var(--accent)); }
.quicknav__link.is-here {
  color: var(--accent-ink, var(--accent));
  background: var(--accent-soft, var(--bg-soft));
  font-weight: 600;
}

.quicknav__pkg {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 18px -10px rgba(20, 24, 18, .7);
  transition: background-color .2s ease, transform .16s ease, box-shadow .2s ease;
}
.quicknav__pkg:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 22px -10px rgba(20, 24, 18, .75);
}
.quicknav__pkg svg { flex: none; }

/* Tighter rather than wordless: "Make your package" has to keep its words, or
   the one control a customer would not think to look for becomes a mystery
   icon. The search box gives up the room. */
@media (max-width: 1320px) {
  .quicknav { gap: 0; }
  .quicknav__link { padding: 8px 7px; font-size: .79rem; }
  .quicknav__pkg { padding: 8px 12px; margin-left: 5px; font-size: .78rem; gap: 5px; }
  .search { max-width: 340px; }
}

/* Its own row: the strip scrolls sideways instead of squeezing the search box. */
@media (max-width: 1100px) {
  .header__bar { grid-template-columns: auto 1fr auto; }
  .quicknav {
    order: 5;
    grid-column: 1 / -1;
    overflow-x: auto;
    gap: 4px;
    padding: 7px 14px 9px 0;
    border-top: 1px solid var(--line-2);
    scrollbar-width: none;
  }
  .quicknav::-webkit-scrollbar { display: none; }
  .quicknav__link { padding: 7px 12px; font-size: .83rem; background: var(--bg-soft); }
  .quicknav__pkg { margin-left: auto; padding: 8px 14px; }
  .quicknav__pkg span { display: inline; }
}

@media (max-width: 900px) {
  .header__bar { padding-bottom: 0; }
  .quicknav { border-top: 1px solid var(--line-2); }
}

/* --------------------------------------------------------- WhatsApp button */

/* Sits under the package counter (.pkgfab, bottom: 78px) so the two stack
   rather than overlap. WhatsApp green on purpose: it is the one colour a
   customer reads as "this opens WhatsApp" without being told. */
.wafab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 72;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px 11px 14px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-size: .84rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 14px 30px -10px rgba(16, 122, 62, .6), 0 2px 6px rgba(16, 122, 62, .25);
  transition: background-color .2s ease, transform .22s var(--ease-out, ease), box-shadow .22s ease;
}
.wafab:hover {
  background: #1eb257;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -10px rgba(16, 122, 62, .66);
}
.wafab:active { transform: translateY(0); }
.wafab__glyph { display: flex; flex: none; }
.wafab__label { white-space: nowrap; }

/* One quiet ring when the page settles, so the button is noticed once and then
   stops asking for attention. */
.wafab::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 2px solid #25d366;
  opacity: 0;
  animation: wapulse 2.4s ease-out 1.2s 2;
  pointer-events: none;
}
@keyframes wapulse {
  0% { transform: scale(.94); opacity: .55; }
  100% { transform: scale(1.18); opacity: 0; }
}

/* On a phone it becomes a round button: the label would crowd the thumb zone. */
@media (max-width: 620px) {
  .wafab { right: 14px; bottom: 16px; padding: 13px; gap: 0; }
  .wafab__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wafab, .quicknav__pkg { transition: none; }
  .wafab::before { animation: none; }
}
