/* =========================================================
   CH MODEL — Modern storefront theme
   Light, airy, emerald-accented. CSP-safe (external file only).
========================================================= */

:root{
  --brand:       #2b2520;   /* espresso — classy, matches the photo */
  --brand-dark:  #9c7a3e;   /* warm gold accent */
  --brand-soft:  #f3ede2;   /* cream */
  --ink:         #1f2933;
  --muted:       #6b7280;
  --line:        #ececec;
  --bg-soft:     #f7faf9;
  --hero-bg:     #d8f3e7;   /* soft sage hero */
  --radius:      16px;
  --shadow:      0 10px 30px rgba(0,0,0,.08);
  --shadow-sm:   0 4px 14px rgba(0,0,0,.06);
}

*{ margin:0; padding:0; box-sizing:border-box; }
html,body{ height:100%; }
body{
  font-family: "Segoe UI", system-ui, Arial, sans-serif;
  color: var(--ink);
  background:#efe9e2;   /* soft cream base */
  line-height:1.5;
  overflow-x:hidden;          /* guard against accidental horizontal scroll/zoom-out */
}
html{ overflow-x:hidden; }
a{ color:inherit; text-decoration:none; }
img{ display:block; max-width:100%; }

/* ---------- Top promo bar ---------- */
.promoBar{
  background: var(--brand);
  color:#fff;
  font-size:13px;
  text-align:center;
  padding:8px 16px;
}
.promoBar a{ text-decoration:underline; font-weight:700; }

/* ---------- Header ---------- */
.siteHeader{
  display:flex;
  align-items:center;
  gap:24px;
  padding:18px 32px;
  border-bottom:1px solid var(--line);
}
.brand{
  font-size:26px;
  font-weight:900;
  letter-spacing:1px;
  color:var(--ink);
  white-space:nowrap;
}
.brand span{ color:var(--brand); }

.searchWrap{
  flex:1;
  display:flex;
  max-width:560px;
  border:1px solid var(--line);
  border-radius:999px;
  overflow:hidden;
  background:var(--bg-soft);
}
.searchWrap input{
  flex:1;
  border:none;
  background:transparent;
  padding:12px 18px;
  font-size:14px;
  outline:none;
}
.searchWrap button{
  border:none;
  background:var(--brand);
  color:#fff;
  padding:0 22px;
  font-weight:700;
  cursor:pointer;
}
.searchWrap button:hover{ background:var(--brand-dark); }

.headerActions{
  display:flex;
  align-items:center;
  gap:22px;
  margin-left:auto;
  font-size:14px;
  font-weight:600;
  white-space:nowrap;
}
.headerActions a{ display:flex; align-items:center; gap:6px; }
.headerActions a:hover{ color:var(--brand); }
.cartPill{
  background:var(--brand);
  color:#fff;
  border-radius:999px;
  padding:8px 16px;
}
.cartPill:hover{ background:var(--brand-dark); color:#fff; }

/* ---------- Main nav ---------- */
.mainNav{
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 32px;
  border-bottom:1px solid var(--line);
}
.mainNav a{
  padding:16px 18px;
  font-weight:700;
  font-size:15px;
  color:var(--ink);
  border-bottom:3px solid transparent;
}
.mainNav a:hover,
.mainNav a.active{
  color:var(--brand-dark);
  border-bottom-color:var(--brand-dark);
}

/* ---------- Hero ---------- */
.hero{
  background:var(--hero-bg);
  border-radius:22px;
  margin:28px 32px;
  padding:56px 48px;
  display:flex;
  align-items:center;
  gap:40px;
  overflow:hidden;
}
.heroText{ flex:1; }
.heroEyebrow{
  text-transform:uppercase;
  letter-spacing:2px;
  font-size:13px;
  font-weight:800;
  color:var(--brand-dark);
  margin-bottom:14px;
}
.heroText h1{
  font-size:46px;
  line-height:1.1;
  font-weight:900;
  margin-bottom:22px;
}
.shopBtn{
  display:inline-block;
  background:var(--brand);
  color:#fff;
  font-weight:800;
  padding:14px 34px;
  border-radius:999px;
  box-shadow:var(--shadow-sm);
}
.shopBtn:hover{ background:var(--brand-dark); }
.heroImg{ flex:1; display:flex; justify-content:flex-end; }
.heroImg img{
  max-height:320px;
  border-radius:18px;
  object-fit:cover;
}

/* ---------- Classic banner hero (photo + overlaid details) ---------- */
.heroClassic{
  position:relative;
  /* full image, shown completely (no crop) and scrolls with the page */
  background: url("/images/welcome_general_classic.png") center top / cover no-repeat;
  aspect-ratio: 1536 / 1024;   /* matches the image exactly → nothing is cut off */
}

/* soft light wash so overlaid text stays readable */
.heroClassic::before{
  content:"";
  position:absolute; left:0; right:0; top:0;
  height:30%;
  background:linear-gradient(rgba(255,255,255,.88), rgba(255,255,255,0));
  z-index:1; pointer-events:none;
}
/* no bottom fade — the photo continues into the rest of the page */

/* title block */
.heroTitle{
  position:absolute; top:7%; left:0; right:0;
  text-align:center; z-index:3;
}
.heroTitle h1{
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 10px;
  font-weight:700;
  color:#2b2b2b;
  font-size: clamp(28px, 5vw, 64px);
}
.heroTitle p{
  letter-spacing: 5px;
  color:#5a5a5a;
  margin-top:10px;
  font-size: clamp(10px, 1.5vw, 16px);
}

/* three equal panels over the photo */
.heroCols{
  position:absolute; inset:0;
  display:flex; z-index:3;
}
.heroCol{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-end;
  padding-bottom: 8%;
  text-align:center;
}
.heroCol h3{
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 6px;
  color:#1e1e1e;
  margin-bottom:8px;
  font-size: clamp(18px, 3vw, 40px);
}
.heroCol small{
  letter-spacing: 3px;
  color:#333;
  margin-bottom: 16px;
  font-size: clamp(8px, 1.1vw, 13px);
}
.heroCol .shopNow{
  background:rgba(255,255,255,.9);
  border:1px solid #1e1e1e;
  color:#1e1e1e;
  font-weight:700;
  letter-spacing:2px;
  padding: clamp(8px, 1vw, 13px) clamp(16px, 2vw, 30px);
  font-size: clamp(10px, 1.1vw, 13px);
  transition:.25s;
}
.heroCol .shopNow:hover{ background:#1e1e1e; color:#fff; }

/* ---------- Section + category cards ---------- */
.section{ padding:24px 32px 8px; }
.sectionHead{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  margin-bottom:20px;
}
.sectionHead h2{
  font-size:26px; font-weight:900;
  text-shadow: 0 1px 6px rgba(255,255,255,.9), 0 0 2px rgba(255,255,255,.9);
}
.sectionHead a{
  color:var(--brand-dark); font-weight:800; font-size:14px;
  text-shadow: 0 1px 6px rgba(255,255,255,.9);
}

.catCards{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
  gap:18px;
}
.catCard{
  position:relative;
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow-sm);
  aspect-ratio:3/4;
}
.catCard img{
  width:100%; height:100%;
  object-fit:cover;
  transition:.4s;
}
.catCard:hover img{ transform:scale(1.07); }
.catCard span{
  position:absolute;
  left:14px; bottom:14px;
  background:rgba(255,255,255,.92);
  color:var(--ink);
  font-weight:900;
  padding:8px 16px;
  border-radius:999px;
}

/* ---------- Featured products ---------- */
.productsGrid{
  display:grid;
  /* smaller cards (~half size): more, narrower columns */
  grid-template-columns:repeat(auto-fill, minmax(200px, 1fr));
  gap:22px;
}

/* Featured products: continuous left→right marquee */
.featuredMarquee{
  overflow:hidden;
  padding:6px 0;
}
.marqueeTrack{
  display:flex;
  gap:22px;
  width:max-content;
  animation: featuredScroll 45s linear infinite;
}
.featuredMarquee:hover .marqueeTrack{ animation-play-state: paused; }
.marqueeTrack .productCard{ flex:0 0 220px; }

/* -50% -> 0 moves the cards to the right; two identical groups make it seamless */
@keyframes featuredScroll{
  from{ transform: translateX(-50%); }
  to{   transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce){
  .marqueeTrack{ animation:none; flex-wrap:wrap; justify-content:center; }
}
.productCard{
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  background:#fff;
  transition:.25s;
}
.productCard:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow);
}
.productImgWrap{ aspect-ratio:1/1; overflow:hidden; background:var(--bg-soft); }
.productImgWrap img{ width:100%; height:100%; object-fit:cover; transition:.35s; }
.productCard:hover .productImgWrap img{ transform:scale(1.08); }
.productBody{ padding:16px; text-align:center; }
.productCat{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:1px;
  color:var(--muted);
  font-weight:700;
}
.productName{ font-weight:800; font-size:16px; margin:6px 0; }
.productPrice{ font-weight:900; color:var(--brand-dark); font-size:18px; margin-bottom:14px; }
.cardBtn{
  display:inline-block;
  border:2px solid var(--brand);
  color:var(--brand-dark);
  font-weight:800;
  padding:9px 22px;
  border-radius:999px;
  transition:.2s;
}
.cardBtn:hover{ background:var(--brand); color:#fff; }
.muted{ color:var(--muted); grid-column:1/-1; text-align:center; padding:30px 0; }

/* ---------- Promo strip (perks) ---------- */
.perks{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
  padding:30px 32px;
  margin:24px 32px;
  background:rgba(243,237,226,0.90);
  backdrop-filter: blur(4px);
  border-radius:var(--radius);
}
.perk{ text-align:center; }
.perk b{ display:block; font-size:15px; margin-bottom:4px; }
.perk small{ color:var(--muted); }

/* ---------- Footer ---------- */
.siteFooter{
  margin-top:50px;
  background:var(--bg-soft);
  border-top:1px solid var(--line);
  padding:36px 32px;
  text-align:center;
  color:var(--muted);
  font-size:14px;
}
.siteFooter .brand{ font-size:22px; margin-bottom:8px; }

/* social icons */
.socials{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:22px;
  margin:14px 0 18px;
}
.socialBtn{
  display:inline-flex;
  line-height:0;
  transition:.2s;
}
.socialBtn svg{ display:block; }
.socialBtn:hover{ transform:translateY(-3px); }

/* ---------- Responsive ---------- */
@media(max-width:1000px){
  .perks{ grid-template-columns:repeat(2,1fr); }
  .heroText h1{ font-size:36px; }
}
@media(max-width:780px){
  .siteHeader{ flex-wrap:wrap; gap:12px; padding:14px 18px; }
  .siteHeader > *{ min-width:0; }
  .brand{ font-size:22px; }
  .headerActions{ gap:14px; }
  /* search takes its own full-width row instead of squishing/overflowing */
  .searchWrap{ order:3; flex:1 0 100%; max-width:none; width:100%; }
  .mainNav{ flex-wrap:wrap; gap:0; padding:0 12px; }
  .mainNav a{ padding:12px 14px; }
  .perks{ grid-template-columns:1fr; }
  /* tighten hero text so wide letter-spacing doesn't overflow narrow screens */
  .heroTitle h1{ letter-spacing:4px; }
  .heroTitle p{ letter-spacing:2px; }
  .heroCol h3{ letter-spacing:3px; }
  .heroCol small{ letter-spacing:1px; }
}
