/* =================================================================
   HIMALION — Standalone storefront stylesheet
   Warm & homely kitchenware e-commerce front-end
   ================================================================= */

:root {
  --cream:        #FBF7F1;
  --cream-deep:   #F3E9DB;
  --terracotta:   #C0623D;
  --terracotta-dk:#A04E2E;
  --sage:         #7E8B6E;
  --brown:        #3A2E25;
  --brown-soft:   #6B5D52;
  --gold:         #D9A441;
  --white:        #FFFFFF;
  --line:         #E7DBCA;
  --success:      #5B7A52;

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius:   14px;
  --radius-sm:9px;
  --radius-lg:22px;
  --shadow:   0 14px 40px -18px rgba(58, 46, 37, 0.30);
  --shadow-sm:0 6px 20px -12px rgba(58, 46, 37, 0.30);
  --maxw:     1240px;
  --gutter:   clamp(18px, 5vw, 48px);
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--brown);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terracotta); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--terracotta-dk); }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--brown);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.6rem); }
p { margin: 0 0 1.1em; }

.container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 8vw, 92px); }
.section--cream { background: var(--cream-deep); }
.section--brown { background: var(--brown); color: var(--cream); }
.section--brown h1, .section--brown h2, .section--brown h3 { color: var(--cream); }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.72rem;
  font-weight: 800; color: var(--terracotta); margin-bottom: 0.7rem; display: inline-block;
}
.section__head { text-align: center; max-width: 640px; margin: 0 auto clamp(32px, 5vw, 56px); }
.section__head p { color: var(--brown-soft); font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--font-body); font-weight: 800; font-size: 0.95rem; letter-spacing: 0.02em;
  padding: 0.85em 1.8em; border-radius: 999px; border: 2px solid var(--terracotta);
  background: var(--terracotta); color: var(--white); cursor: pointer;
  transition: all var(--transition); line-height: 1; text-align: center;
}
.btn:hover { background: var(--terracotta-dk); border-color: var(--terracotta-dk); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--ghost { background: transparent; color: var(--brown); border-color: var(--brown); }
.btn--ghost:hover { background: var(--brown); color: var(--cream); }
.btn--light { background: var(--cream); color: var(--brown); border-color: var(--cream); }
.btn--gold  { background: var(--gold); border-color: var(--gold); color: var(--brown); }
.btn--gold:hover { background: #c8952f; border-color: #c8952f; color: var(--brown); }
.btn--lg { padding: 1.05em 2.4em; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--brown); color: var(--cream); font-size: 0.82rem;
  letter-spacing: 0.04em; text-align: center; padding: 9px var(--gutter);
}
.topbar strong { color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200; background: rgba(251, 247, 241, 0.92);
  backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line);
  transition: box-shadow var(--transition);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 24px; padding-block: 16px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 1.55rem; color: var(--brown); letter-spacing: -0.02em; line-height: 1; }
.logo-text span { color: var(--terracotta); }
.logo-text small { display: block; font-family: var(--font-body); font-size: 0.56rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--brown-soft); font-weight: 700; margin-top: 3px; }

.main-nav { margin-inline: auto; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav a { color: var(--brown); font-weight: 700; font-size: 0.96rem; padding: 8px 0; position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--terracotta); transition: width var(--transition); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; color: var(--brown); background: transparent; border: none; cursor: pointer;
  transition: background var(--transition), color var(--transition); position: relative; text-decoration: none;
}
.icon-btn:hover { background: var(--cream-deep); color: var(--terracotta); }
.icon-btn svg { width: 22px; height: 22px; }
.badge {
  position: absolute; top: 4px; right: 2px; background: var(--terracotta); color: #fff;
  font-size: 0.66rem; font-weight: 800; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px; display: flex; align-items: center; justify-content: center;
}
.nav-toggle { display: none; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px); background: var(--cream);
    padding: 90px 28px 40px; transform: translateX(100%); transition: transform 0.32s ease;
    box-shadow: var(--shadow); z-index: 300; overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .backdrop { position: fixed; inset: 0; background: rgba(58,46,37,0.45); opacity: 0; visibility: hidden; transition: var(--transition); z-index: 250; }
  .backdrop.is-open { opacity: 1; visibility: visible; }
}

/* ---------- Image placeholders (swap for real photos later) ---------- */
.ph { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--cream-deep); }
.ph svg { width: 38%; height: 38%; opacity: 0.5; color: var(--brown); }
.ph--terra { background: linear-gradient(135deg, #e9a47f, #c0623d); }
.ph--sage  { background: linear-gradient(135deg, #aebb9d, #7e8b6e); }
.ph--gold  { background: linear-gradient(135deg, #ecca8a, #d9a441); }
.ph--brown { background: linear-gradient(135deg, #8a7565, #54453a); }
.ph--cream { background: linear-gradient(135deg, #fbf7f1, #ecdfca); }
.ph--terra svg, .ph--sage svg, .ph--gold svg, .ph--brown svg { color: #fff; opacity: 0.85; }

/* Real images filling their containers */
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.cat-card:hover img { transform: scale(1.06); }
.product-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo__media img, .gallery__main img, .cart-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.gallery__thumbs .ph { padding: 0; overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: clamp(480px, 74vh, 720px); display: flex; align-items: center;
  color: var(--cream); overflow: hidden;
  background: linear-gradient(115deg, #4a3528 0%, #6e4a35 45%, #a4633f 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 78% 30%, rgba(217,164,65,0.35), transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(126,139,110,0.30), transparent 40%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero__inner { max-width: 600px; padding-block: 60px; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: #fff; margin-bottom: 0.4em; text-shadow: 0 2px 24px rgba(0,0,0,0.25); }
.hero p { font-size: 1.18rem; color: rgba(255,255,255,0.92); max-width: 46ch; margin-bottom: 1.8em; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Trust ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; background: var(--white); border-bottom: 1px solid var(--line); }
.trust__item { display: flex; align-items: center; gap: 14px; justify-content: center; padding: 26px 18px; }
.trust__item svg { width: 32px; height: 32px; color: var(--terracotta); flex: 0 0 auto; }
.trust__item strong { display: block; font-family: var(--font-head); font-size: 1.02rem; }
.trust__item span { font-size: 0.85rem; color: var(--brown-soft); }
@media (max-width: 760px) { .trust { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-sm); display: block; }
.cat-card .ph { width: 100%; height: 100%; transition: transform 0.5s ease; }
.cat-card:hover .ph { transform: scale(1.06); }
.cat-card__label { position: absolute; inset: auto 0 0 0; padding: 22px; background: linear-gradient(to top, rgba(58,46,37,0.85), rgba(58,46,37,0)); display: flex; align-items: flex-end; justify-content: space-between; }
.cat-card__label h3 { color: #fff; margin: 0; font-size: 1.3rem; }
.cat-card__label span { color: var(--gold); font-weight: 800; font-size: 0.82rem; }
@media (max-width: 860px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cat-grid { grid-template-columns: 1fr; } }

/* ---------- Product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.product-grid--3 { grid-template-columns: repeat(3, 1fr); }
.product-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-card__media { aspect-ratio: 1 / 1; position: relative; }
.product-card__media .ph { width: 100%; height: 100%; }
.product-card__tag { position: absolute; top: 12px; left: 12px; background: var(--terracotta); color: #fff; padding: 5px 12px; border-radius: 999px; font-weight: 800; font-size: 0.72rem; z-index: 2; }
.product-card__tag--new { background: var(--sage); }
.product-card__wish { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.9); display: flex; align-items: center; justify-content: center; z-index: 2; color: var(--brown); border: none; cursor: pointer; }
.product-card__wish:hover { color: var(--terracotta); }
.product-card__wish svg { width: 18px; height: 18px; }
.product-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.product-card__cat { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--brown-soft); font-weight: 700; }
.product-card__title { font-family: var(--font-head); font-size: 1.08rem; font-weight: 600; margin: 4px 0 6px; }
.product-card__title a { color: var(--brown); }
.stars { color: var(--gold); font-size: 0.82rem; letter-spacing: 1px; }
.stars small { color: var(--brown-soft); margin-left: 5px; }
.product-card__price { margin: 10px 0 14px; font-weight: 800; color: var(--terracotta); font-size: 1.12rem; }
.product-card__price del { color: var(--brown-soft); font-weight: 500; font-size: 0.92rem; margin-left: 6px; opacity: 0.7; }
.product-card .btn { margin-top: auto; }
@media (max-width: 1024px) { .product-grid, .product-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .product-grid, .product-grid--3 { grid-template-columns: repeat(2, 1fr); gap: 16px; } }

/* ---------- Promo ---------- */
.promo { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(28px,5vw,64px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.promo__media { aspect-ratio: 5/4; }
.promo__media .ph { width: 100%; height: 100%; }
.promo__body { padding: clamp(28px,5vw,56px); }
@media (max-width: 820px) { .promo { grid-template-columns: 1fr; } .promo__media { aspect-ratio: 16/10; } }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.testi .stars { font-size: 1rem; margin-bottom: 12px; display: block; }
.testi p { font-style: italic; }
.testi__who { font-weight: 800; margin-top: 14px; }
.testi__who span { display: block; font-weight: 500; color: var(--brown-soft); font-size: 0.85rem; }
@media (max-width: 860px) { .testi-grid { grid-template-columns: 1fr; } }

/* ---------- Newsletter ---------- */
.newsletter { text-align: center; }
.newsletter form { display: flex; gap: 10px; max-width: 520px; margin: 24px auto 0; flex-wrap: wrap; justify-content: center; }
.newsletter input { flex: 1; min-width: 240px; padding: 15px 20px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.08); color: var(--cream); font-size: 1rem; font-family: var(--font-body); }
.newsletter input::placeholder { color: rgba(255,255,255,0.6); }

/* ---------- Page header ---------- */
.page-head { background: var(--cream-deep); text-align: center; padding-block: clamp(40px, 7vw, 76px); }
.breadcrumb { font-size: 0.85rem; color: var(--brown-soft); margin-bottom: 10px; }
.breadcrumb a { color: var(--brown-soft); }

/* ---------- Shop layout ---------- */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 40px; }
.shop-filters .widget { margin-bottom: 30px; }
.shop-filters h4 { font-size: 1.05rem; border-bottom: 2px solid var(--line); padding-bottom: 10px; margin-bottom: 14px; }
.shop-filters label { display: flex; align-items: center; gap: 8px; padding: 5px 0; color: var(--brown-soft); cursor: pointer; font-size: 0.95rem; }
.shop-filters input[type="checkbox"] { accent-color: var(--terracotta); width: 16px; height: 16px; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.shop-toolbar select { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-family: var(--font-body); }
.chip { display: inline-block; background: var(--cream-deep); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 0.85rem; font-weight: 700; color: var(--brown); }
.chip.active { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }
@media (max-width: 900px) { .shop-layout { grid-template-columns: 1fr; } .shop-filters { display: none; } }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 44px; }
.pagination a { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--brown); font-weight: 700; }
.pagination a.active { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }

/* ---------- Single product ---------- */
.product-single { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.gallery__main { aspect-ratio: 1/1; border-radius: var(--radius-lg); overflow: hidden; }
.gallery__main .ph { width: 100%; height: 100%; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.gallery__thumbs .ph { aspect-ratio: 1/1; border-radius: var(--radius-sm); cursor: pointer; border: 2px solid transparent; }
.gallery__thumbs .ph.active { border-color: var(--terracotta); }
.product-single__cat { color: var(--brown-soft); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 700; }
.product-single h1 { margin: 6px 0 12px; font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.product-single__price { font-size: 1.9rem; font-weight: 800; color: var(--terracotta); margin: 16px 0; }
.product-single__price del { color: var(--brown-soft); font-weight: 500; font-size: 1.1rem; margin-left: 10px; opacity: 0.7; }
.product-single__desc { color: var(--brown-soft); }
.swatches { display: flex; gap: 10px; margin: 18px 0; }
.swatch { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; }
.swatch.active { border-color: var(--brown); box-shadow: 0 0 0 2px #fff inset; }
.qty-row { display: flex; gap: 12px; align-items: center; margin: 22px 0; flex-wrap: wrap; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 44px; height: 48px; border: none; background: #fff; font-size: 1.2rem; cursor: pointer; color: var(--brown); }
.qty input { width: 48px; height: 48px; border: none; text-align: center; font-family: var(--font-body); font-weight: 700; font-size: 1rem; }
.product-meta { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--brown-soft); }
.product-meta div { padding: 4px 0; }
.product-perks { display: grid; gap: 12px; margin-top: 20px; }
.product-perks div { display: flex; gap: 10px; align-items: center; font-size: 0.92rem; }
.product-perks svg { width: 22px; height: 22px; color: var(--sage); flex: 0 0 auto; }
@media (max-width: 820px) { .product-single { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--brown); color: rgba(251,247,241,0.78); }
.footer-top { padding-block: clamp(48px, 7vw, 76px); }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-cols h4 { color: var(--cream); font-size: 1.1rem; margin-bottom: 16px; }
.footer-cols a { color: rgba(251,247,241,0.78); }
.footer-cols a:hover { color: var(--gold); }
.footer-cols li { padding: 5px 0; }
.footer-brand .logo-text { color: var(--cream); }
.footer-brand p { font-size: 0.95rem; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: var(--cream); }
.footer-social a:hover { background: var(--terracotta); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-block: 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 0.85rem; }
.payment-icons { display: flex; gap: 8px; align-items: center; }
.payment-icons span { background: rgba(255,255,255,0.1); border-radius: 6px; padding: 4px 9px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em; }
@media (max-width: 860px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-cols { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; } }

/* ---------- Cart drawer ---------- */
.cart-drawer { position: fixed; inset: 0 0 0 auto; width: min(92vw, 410px); background: var(--cream); z-index: 400; transform: translateX(100%); transition: transform 0.32s ease; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 22px; border-bottom: 1px solid var(--line); }
.cart-drawer__head h3 { margin: 0; }
.cart-drawer__items { flex: 1; overflow-y: auto; padding: 22px; }
.cart-item { display: flex; gap: 14px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.cart-item .ph { width: 70px; height: 70px; border-radius: var(--radius-sm); flex: 0 0 auto; }
.cart-item strong { font-family: var(--font-head); font-weight: 600; }
.cart-item small { color: var(--brown-soft); }
.cart-drawer__foot { padding: 22px; border-top: 1px solid var(--line); background: #fff; }
.cart-drawer__total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.1rem; margin-bottom: 14px; }
.close-btn { background: none; border: none; cursor: pointer; color: var(--brown); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.close-btn:hover { background: var(--cream-deep); }
.close-btn svg { width: 22px; height: 22px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Misc content ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; }
.feature-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 30px; }
.feature-row .card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; }
.feature-row .card svg { width: 40px; height: 40px; color: var(--terracotta); margin-bottom: 12px; }
@media (max-width: 760px) { .feature-row { grid-template-columns: 1fr; } }
