:root{
  --bg:#faf7f2;
  --panel:#ffffff;
  --text:#2b2b2b;
  --muted:#6a6a6a;
  --line:rgba(0,0,0,.08);
  --accent:#6f7f6a;
  --shadow:0 10px 30px rgba(0,0,0,.06);
  --radius:16px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:radial-gradient(1200px 600px at 20% 0%, #fff 0%, var(--bg) 60%);
  line-height:1.5;
}

a{color:inherit;text-decoration:none}
a:hover{opacity:.85}

.container{
  width:min(1100px,92vw);
  margin:0 auto;
}

/* =========================
   Header banner
   ========================= */
.site-header{
  position: static;
  background: var(--accent);
  border-bottom: 1px solid rgba(255,255,255,.18);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 12px 0;
}

/* Brand */
.brand{
  display:inline-flex;
  align-items:center;
  gap: 12px;
}

.logo{
  width:auto;
  height:48px;
  display:block;
}

.brand-text{
  font-weight:750;
  letter-spacing:.2px;
  color: rgba(255,255,255,.96);
}

/* Nav */
.nav{
  display:flex;
  gap: 10px;
}

.nav__link{
  color: rgba(255,255,255,.92);
  font-size: 14px;
  font-weight: 650;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
}

.nav__link:hover{
  opacity: 1;
  background: rgba(255,255,255,.16);
}

/* Desktop banner height stays neat */
@media (min-width: 901px){
  .site-header{
    height: 66px;
    display:flex;
    align-items:center;
  }
  .header-inner{
    height: 100%;
    padding: 0;
    align-items:center;
  }
  .logo{ height: 52px; }
}
.nav__link--cart{
  position: relative;
  padding-right: 14px;
}

.cart-badge{
  margin-left: 8px;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 750;
  background: rgba(255,255,255,.92);
  color: var(--accent);
  border: 1px solid rgba(255,255,255,.35);
}

/* Mobile: no logo, nav only */
@media (max-width: 600px){
  .brand{ display:none; }
  .header-inner{
    justify-content:center;
    padding: 12px 0;
  }
  .nav{
    justify-content:center;
    flex-wrap:wrap;
    gap:10px;
  }
  .nav__link{
    padding: 9px 10px;
    font-size: 13px;
  }
}

/* =========================
   Home carousel (ABOVE hero)
   ========================= */
.home-carousel{
  padding: 32px 0;
  background: var(--bg);
}

.carousel{
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.6);
}

/* Maintain height responsively */
.carousel::before{
  content:"";
  display:block;
  padding-top: 47.4%;
}

/* Layer images so they never stack vertically */
.carousel-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transition: opacity .5s ease;
  pointer-events:none;
}

.carousel-img.is-active{
  opacity:1;
  pointer-events:auto;
}

@media (max-width:600px){
  .carousel::before{ padding-top: 56%; }
}

/* =========================
   Hero (background image + text)
   ========================= */
.hero-photo{
  background-image: url("/img/hero.png");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}

.hero-photo__overlay{
  background: rgba(250,247,242,.55);
  padding: 84px 0 64px;
}

.hero-photo__content{
  text-align: center;
}

.hero-photo h1{
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: -.6px;
}

.lead{
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 60ch;
}

/* Mobile hero */
@media (max-width: 600px){
  .hero-photo{ background-position: center bottom; }
  .hero-photo__overlay{
    padding: 36px 0 32px;
    background: rgba(250,247,242,.65);
  }
}

/* =========================
   Buttons / CTA
   ========================= */
.cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:14px;
  justify-content:center;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius:999px;
  border:1px solid var(--line);
  background:var(--panel);
  box-shadow:var(--shadow);
  font-weight:600;
  font-size:14px;
}

.btn--primary{
  background:var(--accent);
  color:#fff;
  border-color:transparent;
}

.btn--ghost{
  background:transparent;
  box-shadow:none;
}

/* =========================
   Content blocks
   ========================= */
.section{padding:28px 0 56px}

.cards{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  margin-top:18px;
}

.card{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:rgba(255,255,255,.75);
  padding:16px;
  box-shadow:var(--shadow);
}
.card h3{margin:0 0 6px}
.card p{margin:0;color:var(--muted);font-size:14px}

@media (min-width:900px){
  .cards{ grid-template-columns:repeat(3,1fr); }
}

/* =========================
   Footer
   ========================= */
.site-footer{
  border-top:1px solid var(--line);
  padding:22px 0;
  color:var(--muted);
  font-size:14px;
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
/* =========================
   Contact page
   ========================= */
.page-title{
  margin: 0 0 10px;
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -.5px;
}

.muted{ color: var(--muted); }

.contact-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
}

.panel{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.8);
  padding: 16px;
  box-shadow: var(--shadow);
}

.copy-box{
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,.6);
  overflow-x: auto;
}

.contact-form{
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.field label{
  display:block;
  font-weight: 650;
  margin-bottom: 6px;
}

.field input,
.field textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.9);
  font: inherit;
}

@media (min-width: 900px){
  .contact-grid{
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
/* =========================
   Shop / Products
   ========================= */
.page-title{
  margin: 0 0 10px;
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -.5px;
}

.section-title{
  margin: 0 0 10px;
  font-size: clamp(20px, 2.2vw, 28px);
}

.muted{ color: var(--muted); }

.breadcrumb{
  display:flex;
  gap:8px;
  align-items:center;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 10px;
}
.breadcrumb span{ opacity:.6; }

.product-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
}

.product-card{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.85);
  padding: 16px;
  box-shadow: var(--shadow);
}

.product-img{
  height: 220px;
  border-radius: 14px;
  background: rgba(0,0,0,.04);
  border: 1px solid var(--line);
  margin-bottom: 12px;
}

.price{
  font-weight: 750;
  margin: 10px 0 0;
}

.product-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 12px;
}

@media (min-width: 900px){
  .product-grid{
    grid-template-columns: repeat(3, 1fr);
  }
}
.product-card{
  display:grid;
  gap:16px;
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
  background:rgba(255,255,255,.8);
}

.product-image img{
  width:100%;
  border-radius:12px;
}

.product-info{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.price{
  font-weight:700;
}

select{
  padding:10px;
  border-radius:8px;
  border:1px solid var(--line);
}
/* ===== Checkout modal ===== */
.checkout-modal{
  width: min(560px, calc(100% - 2rem));
  border: 0;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.checkout-modal::backdrop{
  background: rgba(0,0,0,.55);
}

.checkout-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
  margin-bottom: .5rem;
}

.checkout-close{
  border:0;
  background: transparent;
  font-size: 1.25rem;
  cursor: pointer;
}

.checkout-summary{
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 14px;
}

.checkout-form label{
  display:block;
  margin: .75rem 0 .25rem;
  font-weight: 650;
}

.checkout-form input,
.checkout-form select{
  width:100%;
  padding:12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.95);
  font: inherit;
}

.checkout-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 520px){
  .checkout-grid{ grid-template-columns: 1fr; }
}
.product-info label{
  font-weight: 650;
  font-size: 14px;
}

.product-info select{
  width: 100%;
}
.product-info button{
  margin-top: 6px;
}
.img-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,0.75);
  z-index: 9999;
}

.img-modal.is-open {
  display: flex;
}

.img-modal__img {
  max-width: min(1100px, 95vw);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  background: #fff;
}

.img-modal__close {
  position: absolute;
  top: 14px;
  right: 18px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
}

.product-image img {
  cursor: zoom-in;
}