/* =====================================================================
   MITHAAS – The Taste of Tradition
   Stylesheet
   Palette: saffron · cream · golden yellow · dark brown · white
   ===================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --saffron:      #f28c1b;
  --saffron-deep: #d96f00;
  --gold:         #f6b93b;
  --gold-soft:    #fde3b4;
  --cream:        #fff6e5;
  --cream-deep:   #fbe9c8;
  --brown:        #3b2314;
  --brown-soft:   #5a3a22;
  --white:        #ffffff;
  --text:         #4a3322;
  --muted:        #8a6d55;

  --radius:       20px;
  --radius-sm:    12px;
  --shadow-sm:    0 4px 14px rgba(59, 35, 20, .08);
  --shadow:       0 14px 34px rgba(59, 35, 20, .14);
  --shadow-lg:    0 24px 60px rgba(59, 35, 20, .28);
  --ease:         cubic-bezier(.22, .8, .3, 1);

  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h:  76px;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--brown); line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* Anchor targets sit below the fixed header */
section[id] { scroll-margin-top: calc(var(--header-h) - 6px); }

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.6rem; border-radius: 999px; font-weight: 600; letter-spacing: .2px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
}
.btn--primary {
  background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-deep) 100%);
  color: var(--white); box-shadow: 0 8px 20px rgba(217, 111, 0, .35);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(217, 111, 0, .45); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { border: 2px solid rgba(255, 246, 229, .55); color: var(--cream); }
.btn--ghost:hover { background: var(--cream); color: var(--brown); transform: translateY(-3px); }
.btn--lg { padding: .95rem 2rem; font-size: 1.02rem; }
.btn--sm { padding: .55rem 1.1rem; font-size: .9rem; }
.btn--block { width: 100%; }

.icon-btn { width: 40px; height: 40px; border-radius: 50%; font-size: 1.8rem; line-height: 1; display: grid; place-items: center; transition: background .2s; }
.icon-btn:hover { background: rgba(59, 35, 20, .08); }
.link-btn { display: block; margin: .8rem auto 0; color: var(--muted); font-size: .9rem; text-decoration: underline; }
.link-btn:hover { color: var(--saffron-deep); }

/* ---------- 4. Header & navigation ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(59, 35, 20, .55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background .3s, box-shadow .3s;
}
.site-header.scrolled { background: rgba(59, 35, 20, .96); box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand__mark { width: 44px; height: 44px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-head); font-size: 1.55rem; font-weight: 700; color: var(--gold); letter-spacing: .5px; }
.brand__tag { font-size: .68rem; letter-spacing: 1.6px; text-transform: uppercase; color: var(--cream); opacity: .85; }

.nav { display: flex; align-items: center; gap: .3rem; }
.nav__link {
  position: relative; padding: .5rem .85rem; color: var(--cream); font-weight: 500; font-size: .95rem;
  border-radius: 999px; transition: color .2s, background .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 0; height: 2px; background: var(--gold);
  transform: translateX(-50%); transition: width .3s var(--ease);
}
.nav__link:hover { color: var(--gold); }
.nav__link:hover::after, .nav__link.is-active::after { width: 55%; }
.nav__link.is-active { color: var(--gold); }

.header__actions { display: flex; align-items: center; gap: .5rem; }
.cart-btn {
  position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  color: var(--cream); background: rgba(255, 246, 229, .12); transition: background .2s, transform .2s;
}
.cart-btn:hover { background: var(--saffron); transform: scale(1.06); }
.cart-btn__count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--gold); color: var(--brown); font-size: .72rem; font-weight: 700; display: grid; place-items: center;
}
.cart-btn.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.25); } }

.burger { display: none; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 246, 229, .12); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 20px; height: 2px; background: var(--cream); border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative; color: var(--cream); overflow: hidden;
  padding: calc(var(--header-h) + 64px) 0 150px;
  background:
    radial-gradient(circle at 80% 20%, rgba(246, 185, 59, .22), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(242, 140, 27, .25), transparent 40%),
    linear-gradient(160deg, #2b1709 0%, var(--brown) 55%, #52301a 100%);
}
/* Soft decorative dot pattern */
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: radial-gradient(var(--gold) 1.2px, transparent 1.4px);
  background-size: 28px 28px;
}
.hero__glow {
  position: absolute; width: 520px; height: 520px; right: -140px; top: -120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 185, 59, .35), transparent 65%); filter: blur(10px);
  animation: float 9s ease-in-out infinite;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.eyebrow--dark { color: var(--saffron-deep); }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); color: var(--white); font-weight: 800; margin-bottom: .35em; }
.hero h1 .accent { color: var(--gold); font-style: italic; }
.hero__sub { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 34ch; color: var(--cream-deep); margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.6rem; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 2rem 2.6rem; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-family: var(--font-head); font-size: 1.9rem; color: var(--gold); line-height: 1; }
.hero__stats span { font-size: .82rem; opacity: .8; }

/* Hero collage */
.hero__visual { position: relative; height: 480px; }
.hero__img {
  position: absolute; margin: 0; border-radius: 22px; overflow: hidden; border: 5px solid var(--cream);
  box-shadow: var(--shadow-lg); background: var(--cream-deep);
}
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__img--a { width: 62%; height: 300px; top: 0; right: 0; transform: rotate(3deg); animation: float 7s ease-in-out infinite; }
.hero__img--b { width: 52%; height: 230px; bottom: 0; left: 0; transform: rotate(-4deg); animation: float 8s ease-in-out infinite reverse; }
.hero__img--c { width: 46%; height: 190px; bottom: 30px; right: 4%; transform: rotate(2deg); animation: float 9s ease-in-out infinite; }
.hero__badge {
  position: absolute; left: 6%; top: 8%; width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-items: center; text-align: center; font-family: var(--font-head); font-weight: 700; font-size: .95rem; line-height: 1.15;
  background: var(--gold); color: var(--brown); box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
  border: 3px dashed var(--brown); animation: spin 22s linear infinite;
}
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes spin { to { rotate: 360deg; } }
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.hero__wave svg { width: 100%; height: 80px; }

/* ---------- 6. Sections ---------- */
.section { padding: 88px 0; position: relative; }
.section--tint {
  background:
    radial-gradient(circle at 100% 0%, rgba(246, 185, 59, .18), transparent 40%),
    var(--cream-deep);
}
.section__head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section__head h2, .intro h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.section__lead { color: var(--muted); font-size: 1.05rem; }
.section__head--light h2 { color: var(--white); }

.intro { padding: 72px 0 40px; }
.intro__inner { text-align: center; max-width: 800px; }
.intro__inner p:not(.eyebrow) { font-size: 1.1rem; color: var(--brown-soft); }
.ornament { display: flex; align-items: center; justify-content: center; gap: .8rem; margin-top: 1.6rem; }
.ornament span { width: 90px; height: 2px; background: linear-gradient(90deg, transparent, var(--saffron)); }
.ornament span:last-child { transform: scaleX(-1); }
.ornament i { width: 12px; height: 12px; background: var(--saffron); transform: rotate(45deg); border-radius: 2px; box-shadow: 0 0 0 4px rgba(242, 140, 27, .22); }

/* ---------- 7. Product cards & grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.8rem; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(242, 140, 27, .12);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-deep); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card__media img { transform: scale(1.08); }
.chip, .badge {
  position: absolute; top: 12px; padding: .25rem .75rem; border-radius: 999px; font-size: .72rem; font-weight: 600; letter-spacing: .4px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.chip { left: 12px; background: rgba(59, 35, 20, .72); color: var(--cream); }
.badge { right: 12px; background: linear-gradient(135deg, var(--gold), var(--saffron)); color: var(--brown); }
.card__body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { font-size: 1.28rem; margin-bottom: .3rem; }
.card__desc { color: var(--muted); font-size: .92rem; margin-bottom: 1.1rem; flex: 1; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.price { display: flex; flex-direction: column; line-height: 1.15; }
.price strong { font-family: var(--font-head); font-size: 1.55rem; color: var(--saffron-deep); }
.price small { color: var(--muted); font-size: .78rem; }

.price-note { text-align: center; color: var(--muted); font-size: .85rem; margin: 2rem auto 0; max-width: 62ch; }

/* ---------- 8. Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.6rem; }
.cat-card {
  position: relative; overflow: hidden; text-align: left; padding: 2rem 1.7rem 1.8rem; border-radius: var(--radius);
  color: var(--cream); min-height: 230px; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(150deg, var(--brown-soft), var(--brown));
  box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.cat-card::before {
  content: ""; position: absolute; width: 220px; height: 220px; right: -70px; top: -70px; border-radius: 50%;
  background: radial-gradient(circle, var(--tint, var(--saffron)), transparent 70%); opacity: .85; transition: transform .5s var(--ease);
}
.cat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.cat-card:hover::before { transform: scale(1.35); }
.cat-card__emoji { position: absolute; top: 1.2rem; right: 1.4rem; font-size: 2.8rem; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .35)); }
.cat-card h3 { position: relative; color: var(--white); font-size: 1.4rem; margin-bottom: .2rem; }
.cat-card p { position: relative; font-size: .9rem; opacity: .85; margin-bottom: .8rem; }
.cat-card__link { position: relative; font-weight: 600; color: var(--gold); font-size: .9rem; }

/* ---------- 9. Filters ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-bottom: 1rem; }
.filter-btn {
  padding: .6rem 1.3rem; border-radius: 999px; font-weight: 500; font-size: .93rem; color: var(--brown);
  background: var(--white); border: 2px solid rgba(242, 140, 27, .35); transition: all .25s var(--ease);
}
.filter-btn:hover { border-color: var(--saffron); transform: translateY(-2px); }
.filter-btn.is-active { background: linear-gradient(135deg, var(--saffron), var(--saffron-deep)); color: var(--white); border-color: transparent; box-shadow: 0 8px 18px rgba(217, 111, 0, .32); }
.filters__count { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 2rem; }
.card.is-filtered-in { animation: pop .5s var(--ease) backwards; }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- 10. About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about__media { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3.4; box-shadow: var(--shadow); border: 6px solid var(--white); background: var(--cream-deep); }
.about__media img, .about__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about__tag {
  position: absolute; left: 0; bottom: 22px; padding: .7rem 1.4rem .7rem 1.2rem; border-radius: 0 999px 999px 0;
  background: var(--brown); color: var(--gold); font-family: var(--font-head); font-weight: 700; line-height: 1.25;
  box-shadow: var(--shadow);
}
.about__copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.about__points { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.2rem; margin-top: 1.4rem; }
.about__points li { position: relative; padding-left: 1.7rem; font-weight: 500; color: var(--brown); }
.about__points li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--saffron); color: var(--white); font-size: .72rem; display: grid; place-items: center;
}

/* ---------- 11. Why choose us ---------- */
.why {
  color: var(--cream);
  background:
    radial-gradient(circle at 15% 20%, rgba(242, 140, 27, .25), transparent 40%),
    linear-gradient(160deg, var(--brown), #2b1709);
}
.why .eyebrow { color: var(--gold); }
.why__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.6rem; }
.why__card {
  text-align: center; padding: 2.2rem 1.6rem; border-radius: var(--radius);
  background: rgba(255, 246, 229, .07); border: 1px solid rgba(246, 185, 59, .25);
  transition: transform .35s var(--ease), background .35s, border-color .35s;
}
.why__card:hover { transform: translateY(-8px); background: rgba(255, 246, 229, .13); border-color: var(--gold); }
.why__card h3 { color: var(--gold); font-size: 1.2rem; }
.why__card p { font-size: .93rem; color: var(--cream-deep); margin: 0; opacity: .9; }
.why__icon {
  width: 68px; height: 68px; margin: 0 auto 1.1rem; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--saffron), var(--gold)); color: var(--brown); box-shadow: 0 10px 22px rgba(0, 0, 0, .3);
  transition: transform .5s var(--ease);
}
.why__card:hover .why__icon { transform: rotate(-8deg) scale(1.1); }

/* ---------- 12. Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.gallery__item {
  position: relative; margin: 0; padding: 0; overflow: hidden; border-radius: 16px; aspect-ratio: 1 / 1;
  background: var(--cream-deep); box-shadow: var(--shadow-sm); cursor: zoom-in; display: block; width: 100%;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery__item:hover img { transform: scale(1.12); }
.gallery__item figcaption, .gallery__cap {
  position: absolute; inset: auto 0 0 0; padding: 2.2rem .9rem .8rem; color: var(--white); font-weight: 600; text-align: left; font-size: .95rem;
  background: linear-gradient(to top, rgba(43, 23, 9, .88), transparent);
  transform: translateY(35%); opacity: 0; transition: transform .4s var(--ease), opacity .4s;
}
.gallery__item:hover .gallery__cap, .gallery__item:focus-visible .gallery__cap { transform: none; opacity: 1; }

/* ---------- 13. Contact ---------- */
.contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem; }
.contact__card {
  background: var(--white); padding: 1.9rem 1.5rem; border-radius: var(--radius); text-align: center;
  box-shadow: var(--shadow-sm); border-bottom: 4px solid var(--saffron); transition: transform .3s var(--ease), box-shadow .3s;
}
.contact__card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.contact__card--wide { grid-column: 1 / -1; }
.contact__icon { font-size: 2rem; margin-bottom: .4rem; }
.contact__card h3 { font-size: 1.1rem; }
.contact__card p { margin: 0; color: var(--brown-soft); }
.contact__card a:hover { color: var(--saffron-deep); text-decoration: underline; }

/* ---------- 14. Footer ---------- */
.footer { background: #2b1709; color: var(--cream-deep); padding-top: 64px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 3rem; padding-bottom: 3rem; }
.footer__brand p { margin: 1rem 0 1.2rem; max-width: 36ch; opacity: .85; }
.footer h4 { color: var(--gold); font-size: 1.15rem; margin-bottom: 1rem; }
.footer__links li { margin-bottom: .55rem; opacity: .9; }
.footer__links a { transition: color .2s, padding .2s; }
.footer__links a:hover { color: var(--gold); padding-left: 4px; }
.social { display: flex; gap: .7rem; }
.social a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--cream);
  background: rgba(255, 246, 229, .1); transition: background .25s, transform .25s, color .25s;
}
.social a:hover { background: var(--saffron); color: var(--white); transform: translateY(-4px); }
.footer__bottom { border-top: 1px solid rgba(255, 246, 229, .12); padding: 1.3rem 0; font-size: .88rem; }
.footer__bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1.5rem; }
.footer__bottom p { margin: 0; opacity: .8; }

/* ---------- 15. Cart drawer ---------- */
.overlay { position: fixed; inset: 0; z-index: 140; background: rgba(43, 23, 9, .6); backdrop-filter: blur(3px); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 150; width: min(420px, 100%);
  background: var(--cream); display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
  transform: translateX(105%); transition: transform .4s var(--ease); visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.4rem; background: var(--brown); }
.drawer__head h3 { color: var(--gold); margin: 0; }
.drawer__head .icon-btn { color: var(--cream); }
.drawer__head .icon-btn:hover { background: rgba(255, 246, 229, .15); }
.drawer__body { flex: 1; overflow-y: auto; padding: 1rem 1.2rem; }
.cart-empty { text-align: center; color: var(--muted); padding: 3rem 1rem; }
.cart-empty span { display: block; font-size: 3rem; margin-bottom: .5rem; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: .9rem; align-items: center; padding: .8rem 0; border-bottom: 1px dashed rgba(59, 35, 20, .18); }
.cart-line img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--cream-deep); }
.cart-line h4 { font-family: var(--font-body); font-size: .95rem; font-weight: 600; margin: 0; }
.cart-line small { color: var(--muted); display: block; }
.qty { display: inline-flex; align-items: center; gap: .5rem; margin-top: .3rem; }
.qty button { width: 26px; height: 26px; border-radius: 50%; background: var(--white); border: 1px solid rgba(242, 140, 27, .5); font-weight: 700; line-height: 1; transition: background .2s, color .2s; }
.qty button:hover { background: var(--saffron); color: var(--white); }
.qty span { min-width: 1.2rem; text-align: center; font-weight: 600; }
.cart-line__price { text-align: right; font-weight: 600; color: var(--saffron-deep); }
.cart-line__remove { display: block; margin-top: .3rem; font-size: .78rem; color: var(--muted); text-decoration: underline; }
.cart-line__remove:hover { color: #b3261e; }
.drawer__foot { padding: 1.2rem 1.4rem 1.4rem; background: var(--white); border-top: 1px solid rgba(59, 35, 20, .1); }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; font-weight: 500; }
.drawer__total strong { font-family: var(--font-head); font-size: 1.7rem; color: var(--saffron-deep); }

/* ---------- 16. Lightbox & toast ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20, 10, 4, .92); display: grid; place-items: center; padding: 1.5rem; animation: fade .25s; }
.lightbox figure { margin: 0; max-width: min(960px, 100%); text-align: center; }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 16px; box-shadow: var(--shadow-lg); }
.lightbox figcaption { color: var(--cream); margin-top: .9rem; font-family: var(--font-head); font-size: 1.2rem; }
.lightbox__close { position: absolute; top: 1rem; right: 1.2rem; color: var(--cream); font-size: 2.2rem; }
.lightbox__close:hover { background: rgba(255, 246, 229, .15); }

.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 300; max-width: calc(100% - 32px);
  transform: translate(-50%, 140%); opacity: 0; pointer-events: none;
  background: var(--brown); color: var(--cream); padding: .85rem 1.5rem; border-radius: 999px; font-weight: 500;
  border: 1px solid var(--gold); box-shadow: var(--shadow-lg); transition: transform .4s var(--ease), opacity .3s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- 17. Scroll-reveal (only when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- 18. Responsive ---------- */
@media (max-width: 1020px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__copy { text-align: center; }
  .hero__sub { margin-inline: auto; }
  .hero__cta, .hero__stats { justify-content: center; }
  .hero__visual { height: 420px; max-width: 560px; margin-inline: auto; width: 100%; }
  .about { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .burger { display: flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: .8rem 20px 1.4rem; background: rgba(43, 23, 9, .98);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .3s var(--ease), opacity .3s, visibility .3s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__link { padding: .9rem 1rem; border-radius: 12px; font-size: 1.05rem; }
  .nav__link::after { display: none; }
  .nav__link.is-active { background: rgba(246, 185, 59, .14); }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .section { padding: 64px 0; }
  .brand__tag { display: none; }
  .brand__name { font-size: 1.4rem; }
  .hero { padding-bottom: 120px; }
  .hero__visual { height: 340px; }
  .hero__img--a { height: 210px; }
  .hero__img--b { height: 170px; }
  .hero__img--c { height: 140px; bottom: 16px; }
  .hero__badge { width: 84px; height: 84px; font-size: .78rem; }
  .btn--lg { width: 100%; }
  .grid { grid-template-columns: 1fr; }
  .about__points { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .gallery__cap { opacity: 1; transform: none; font-size: .78rem; padding: 1.6rem .6rem .5rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom .container { flex-direction: column; text-align: center; }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Disabled state (e.g. checkout with an empty cart) */
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* Text coming from the JSON may contain line breaks ("\n"); show them as real line breaks */
.hero__badge, .about__tag, .contact__card p, .cart-empty { white-space: pre-line; }

/* Shown only when data.json cannot be loaded */
.load-error {
  position: fixed; left: 50%; top: calc(var(--header-h) + 14px); z-index: 400; transform: translateX(-50%);
  width: min(720px, calc(100% - 32px)); padding: 1rem 1.3rem; border-radius: var(--radius-sm);
  background: #fff3cd; color: #5a3a00; border: 2px solid var(--gold); box-shadow: var(--shadow-lg); font-size: .95rem;
}
.load-error code { background: rgba(59, 35, 20, .1); padding: .1rem .4rem; border-radius: 6px; font-size: .88rem; }
.hero__badge { padding: 6px; text-wrap: balance; }

/* Cart note (no checkout – frontend only) */
.drawer__note { margin: 0 0 .4rem; font-size: .85rem; color: var(--muted); text-align: center; }
