/* ============================================================
   CECraft — static template stylesheet (framework-free)
   Plain compiled CSS. No Tailwind, no build step.
   ------------------------------------------------------------
   CONTENTS
   1.  Design tokens (colours, fonts, spacing)   ← EDIT BRAND HERE
   2.  Reset & base
   3.  Layout helpers (container, section, grid)
   4.  Typography helpers (eyebrow, headings, muted)
   5.  Buttons
   6.  Header / nav
   7.  Footer
   8.  Hero slideshow
   9.  Trust bar
   10. Product cards & category grid (Shop)
   11. Single product
   12. Cart
   13. Checkout
   14. Forms
   15. Legal / prose pages
   16. Feature cards / story / bulk CTA
   17. Responsive
   ============================================================ */

/* ---------- 1. DESIGN TOKENS ------------------------------- */
:root {
  /* surfaces */
  --night:  #FBFAF8;   /* page background (warm off-white) */
  --panel:  #F0EEEA;   /* cards / bands */
  --panel-2:#ECEAE5;   /* raised */
  --line:   #E4E1DC;   /* hairline borders */
  /* text */
  --text:   #1C1815;   /* body text */
  --heading:#14110E;   /* headings + primary button */
  --muted:  #6F6962;   /* secondary text */
  /* accent + leather tones */
  --gold:   #8A4E2B;   /* cognac accent */
  --gold-2: #A6623A;
  --tan:    #C49A68;
  --oxblood:#7A2A20;
  --white:  #FFFFFF;
  --footer-text: #ECE4D6;

  /* type */
  --font-head: 'Archivo', system-ui, -apple-system, sans-serif;
  --font-body: 'Jost', system-ui, -apple-system, sans-serif;

  /* metrics */
  --container: 1408px;
  --radius: 1.25rem;
  --radius-lg: 1.75rem;
  --header-h: 84px;
  --ease: cubic-bezier(.22,1,.36,1);
  --shadow-soft: 0 14px 40px -22px rgba(20,17,14,.18);
  --shadow-lift: 0 30px 70px -34px rgba(20,17,14,.30);
}

/* ---------- 2. RESET & BASE -------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--night);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--heading); }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--heading); color: #fff; padding: .8rem 1.2rem; z-index: 200; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- 3. LAYOUT HELPERS ------------------------------ */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width:640px){ .container { padding-inline: 1.5rem; } }
@media (min-width:1024px){ .container { padding-inline: 2rem; } }
.section { padding-block: 4rem; }
.section--tight { padding-block: 2.5rem; }
.section-head { text-align: center; max-width: 46rem; margin: 0 auto 2.5rem; }
.center { text-align: center; }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}

/* ---------- 4. TYPOGRAPHY ---------------------------------- */
h1,h2,h3,h4 { font-family: var(--font-head); font-weight: 800; letter-spacing: -.01em; color: var(--heading); line-height: 1.1; }
.eyebrow { font-family: var(--font-body); text-transform: uppercase; letter-spacing: .24em; font-size: .72rem; font-weight: 600; color: var(--gold); }
.display { font-weight: 900; text-transform: uppercase; line-height: .95; }
.h-xl { font-size: clamp(2rem, 5.5vw, 4rem); }
.h-lg { font-size: clamp(1.9rem, 4.5vw, 3.2rem); }
.lead { font-size: 1.15rem; color: var(--text); }
.muted { color: var(--muted); }
.accent { color: var(--gold); }

/* ---------- 5. BUTTONS ------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; letter-spacing: .03em;
  padding: .85em 1.9em; border-radius: 999px; border: 1px solid transparent;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--heading); color: #fff; border-color: var(--heading); }
.btn--primary:hover { background: var(--gold); border-color: var(--gold); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -16px rgba(20,17,14,.45); }
.btn--ghost { background: transparent; color: var(--heading); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--heading); color: var(--heading); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--heading); border-color: #fff; }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -16px rgba(0,0,0,.4); color: var(--heading); }
.btn--block { width: 100%; }

/* ---------- 6. HEADER / NAV -------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251,250,248,.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); position: relative; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 46px; width: auto; }
.main-nav { display: flex; align-items: center; }
.nav-list { display: flex; gap: 1.75rem; align-items: center; }
.nav-list a { color: var(--text); font-weight: 500; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--gold); }
/* nav centred on desktop */
@media (min-width:900px){
  .main-nav { position: absolute; left: 50%; transform: translateX(-50%); }
}
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.cart-link { color: var(--text); font-weight: 500; display: inline-flex; align-items: center; gap: .4rem; }
.cart-link:hover { color: var(--gold); }
.cart-link .cart-count { background: var(--heading); color: #fff; font-size: .72rem; font-weight: 600; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; color: var(--heading); }

/* ---------- 7. FOOTER -------------------------------------- */
.site-footer { background: var(--heading); color: var(--footer-text); margin-top: 2rem; }
.footer-grid { display: grid; gap: 2.5rem; padding-block: 4rem 2rem; }
@media (min-width:768px){ .footer-grid { grid-template-columns: 2fr 1fr 1.4fr; } }
.site-footer a { color: var(--footer-text); }
.site-footer a:hover { color: #fff; }
.footer-logo { height: 40px; margin-bottom: 1.2rem; }
.footer-col h4 { color: var(--tan); font-family: var(--font-body); font-weight: 600; text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; margin-bottom: 1.2rem; }
.footer-col li { margin-bottom: .65rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.5rem; display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; font-size: .85rem; color: rgba(236,228,214,.6); }
.footer-bottom .legal-links { display: flex; gap: 1.25rem; }

/* ---------- 8. HERO SLIDESHOW ------------------------------ */
.hero-section { padding-top: 1.25rem; }
.hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--panel); }
.hero-slides { display: grid; min-height: 540px; }
@media (min-width:640px){ .hero-slides { min-height: 560px; } }
@media (min-width:1024px){ .hero-slides { min-height: 640px; } }
.hero-slide {
  grid-area: 1 / 1; position: relative; overflow: hidden; border-radius: inherit;
  display: flex; flex-direction: column; justify-content: flex-end;   /* caption defines height → never clips */
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .8s var(--ease), transform .8s var(--ease); pointer-events: none;
}
.hero-slide.is-active { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.hero-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform 1.4s var(--ease); }
.hero:hover .hero-slide.is-active > img { transform: scale(1.05); }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10,8,5,.82) 0%, rgba(10,8,5,.48) 42%, rgba(10,8,5,.06) 76%),
    linear-gradient(to top, rgba(10,8,5,.6), rgba(10,8,5,0) 52%);
}
.hero-cap { position: relative; z-index: 2; max-width: 36rem; color: #fff; padding: 1.5rem; padding-bottom: 5rem; }
@media (min-width:640px){ .hero-cap { padding: 2.5rem; padding-bottom: 5rem; } }
@media (min-width:1024px){ .hero-cap { padding: 3.5rem; padding-bottom: 6rem; } }
.hero-cap .eyebrow { color: var(--tan); }
.hero-cap h2 { color: #fff; font-size: clamp(2rem, 5.2vw, 4rem); margin-top: .6rem; }
.hero-cap p { color: rgba(255,255,255,.85); margin-top: .9rem; max-width: 28rem; }
.hero-cap .hero-actions { margin-top: 1.6rem; }
.hero-controls { position: absolute; left: 0; right: 0; bottom: 1.25rem; z-index: 5; display: flex; align-items: center; justify-content: center; gap: 1rem; }
.hero-arrow { width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255,255,255,.55); background: rgba(255,255,255,.12); color: #fff; display: inline-flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); transition: all .25s var(--ease); }
.hero-arrow:hover { background: #fff; color: var(--heading); }
.hero-dots { display: flex; gap: .5rem; }
.hero-dot { width: 30px; height: 4px; border: 0; padding: 0; border-radius: 999px; background: rgba(255,255,255,.45); cursor: pointer; transition: background .3s var(--ease); }
.hero-dot.is-active { background: #fff; }

/* ---------- 9. TRUST BAR ----------------------------------- */
.trust-bar { border-block: 1px solid var(--line); margin-top: 1.5rem; }
.trust-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.25rem; padding-block: 1.5rem; }
@media (min-width:1024px){ .trust-grid { grid-template-columns: repeat(4,1fr); } }
.trust-item { display: flex; align-items: center; justify-content: center; gap: .7rem; }
.trust-item svg { color: var(--gold); flex: none; }
.trust-item span { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }

/* ---------- 10. PRODUCT CARDS & CATEGORY GRID -------------- */
/* Repeatable, category-agnostic. Reuse .category-block per category. */
.category-block { margin-bottom: 3.5rem; }
.category-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width:640px){ .product-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
@media (min-width:1024px){ .product-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card {
  display: block; background: var(--panel); border: 1px solid transparent; border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.5rem; text-align: center; color: inherit;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .4s var(--ease), border-color .4s var(--ease);
}
.product-card:hover { transform: translateY(-6px); background: #fff; border-color: var(--line); box-shadow: var(--shadow-lift); color: inherit; }
.product-card__media { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: .85rem; margin-bottom: 1rem; overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card__cat { font-size: .68rem; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); }
.product-card__title { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: 1rem; margin-top: .35rem; color: var(--heading); }
.product-card__price { color: var(--gold); font-weight: 600; margin-top: .4rem; }

/* ---------- 11. SINGLE PRODUCT ----------------------------- */
.product { display: grid; gap: 2.5rem; }
@media (min-width:900px){ .product { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; } }
.gallery-main { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; padding: 2rem; overflow: hidden; }
.gallery-main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin-top: .9rem; }
.gallery-thumb { background: var(--panel); border: 1px solid var(--line); border-radius: .65rem; aspect-ratio: 1/1; padding: .5rem; cursor: pointer; transition: border-color .3s var(--ease), transform .3s var(--ease); }
.gallery-thumb:hover { transform: translateY(-3px); }
.gallery-thumb.is-active { border-color: var(--heading); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-summary .price { color: var(--gold); font-weight: 600; font-size: 1.6rem; }
.field-label { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; margin-bottom: .5rem; }
.size-options { display: flex; flex-wrap: wrap; gap: .6rem; }
.size-btn { min-width: 3.25rem; height: 3rem; padding: 0 .75rem; border: 1px solid var(--line); background: #fff; border-radius: .5rem; transition: all .2s var(--ease); }
.size-btn:hover { border-color: var(--gold); }
.size-btn.is-active { background: var(--heading); color: #fff; border-color: var(--heading); }
.product-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.5rem; color: var(--muted); font-size: .9rem; }

/* ---------- 12. CART -------------------------------------- */
.cart-layout { display: grid; gap: 2.5rem; }
@media (min-width:1024px){ .cart-layout { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.cart-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cart-table th { background: var(--panel); text-align: left; font-weight: 600; padding: 1rem; font-size: .85rem; }
.cart-table td { padding: 1rem; border-top: 1px solid var(--line); vertical-align: middle; }
.cart-item { display: flex; align-items: center; gap: 1rem; }
.cart-item img { width: 70px; height: 56px; object-fit: contain; background: var(--panel); border-radius: .5rem; padding: .25rem; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty-stepper button { width: 2rem; height: 2rem; background: none; border: 0; font-size: 1.1rem; line-height: 1; }
.qty-stepper span { width: 2rem; text-align: center; }

/* ---------- 13. CHECKOUT ----------------------------------- */
.checkout-layout { display: grid; gap: 2.5rem; }
@media (min-width:1024px){ .checkout-layout { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.summary-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
@media (min-width:1024px){ .summary-card { position: sticky; top: calc(var(--header-h) + 1rem); } }
.summary-line { display: flex; justify-content: space-between; padding: .4rem 0; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin-top: .75rem; padding-top: .9rem; }
.summary-total .amount { font-family: var(--font-head); font-weight: 800; font-size: 1.8rem; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 1.25rem 0; }

/* ---------- 14. FORMS -------------------------------------- */
.field { display: block; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: .5rem; padding: .72em .9em; color: var(--text); font: inherit; }
.field::placeholder { color: #ada69c; }
.field:focus { outline: none; border-color: var(--heading); box-shadow: 0 0 0 3px rgba(20,17,14,.08); }
.form-grid { display: grid; gap: 1.25rem; }
@media (min-width:640px){ .form-grid--2 { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: 1 / -1; } }

/* ---------- 15. LEGAL / PROSE ------------------------------ */
.page-banner { background: var(--panel); border-radius: var(--radius-lg); padding: 4rem 1.5rem; }
@media (min-width:640px){ .page-banner { padding: 5rem 3rem; } }
.prose { max-width: 48rem; margin-inline: auto; }
.prose .lead { color: var(--text); font-size: 1.15rem; line-height: 1.75; }
.prose h2 { font-size: 1.2rem; text-transform: uppercase; margin-top: 2.6rem; }
.prose p { color: var(--muted); margin-top: .85rem; line-height: 1.8; }
.prose ul { list-style: disc; padding-left: 1.25rem; margin-top: .9rem; color: var(--muted); }
.prose li { margin-top: .5rem; line-height: 1.75; }
.prose strong { color: var(--text); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 16. FEATURE CARDS / STORY / BULK CTA ---------- */
.feature-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width:640px){ .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width:1024px){ .feature-grid { grid-template-columns: repeat(4,1fr); } }
.feature-card { background: var(--panel); border-radius: var(--radius); padding: 1.75rem; }
.feature-card .ic { width: 3rem; height: 3rem; border-radius: 999px; background: var(--night); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--gold); }
.feature-card h3 { font-size: 1.15rem; margin-top: 1.25rem; }
.feature-card p { color: var(--muted); margin-top: .5rem; }

.panel { background: var(--panel); border-radius: var(--radius-lg); padding: 3rem 1.5rem; }
@media (min-width:1024px){ .panel { padding: 4rem; } }

.cta-dark { background: var(--heading); color: #fff; border-radius: var(--radius-lg); overflow: hidden; }
.cta-dark .cta-inner { display: grid; gap: 1.5rem; align-items: center; padding: 2.5rem 1.5rem; }
@media (min-width:1024px){ .cta-dark .cta-inner { grid-template-columns: 1.4fr 1fr; padding: 3.5rem; } }
.cta-dark h2 { color: #fff; }
.cta-dark p { color: rgba(255,255,255,.72); margin-top: 1rem; max-width: 30rem; }
.cta-dark .eyebrow { color: var(--tan); }
.cta-actions-right { display: flex; }
@media (min-width:1024px){ .cta-actions-right { justify-content: flex-end; } }

/* hero image figure used on About/Bulk two-col heros */
.split { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width:1024px){ .split { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.split .media { aspect-ratio: 5/4; display: flex; align-items: center; justify-content: center; }
.split .media img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(20,17,14,.25)); }

/* ---------- 17. RESPONSIVE / NAV ---------- */
@media (max-width: 899px){
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .header-actions { margin-left: 0; }
  .main-nav { position: static; transform: none; }
  .nav-list {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--night); border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1rem; display: none;
  }
  .nav-list.is-open { display: flex; }
  .nav-list li { width: 100%; }
  .nav-list a { display: block; padding: .8rem 0; border-top: 1px solid var(--line); width: 100%; }
}
@media (max-width: 768px){
  .brand-logo { height: 40px; }
  .section { padding-block: 3rem; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .hero-slide { opacity: 1 !important; }
}
