/* =========================================================
   DESIGN TOKENS
   Palette: warm charcoal ground, cured-amber resin accent,
   sage for the botanical/nature material, gold for fine
   detailing (veining, tags, dividers).
   ========================================================= */
:root{
  --bg:          #17140F;
  --bg-soft:     #1F1B14;
  --surface:     #241F17;
  --surface-2:   #2C251B;
  --amber:       #C98A3E;
  --amber-light: #E8B368;
  --sage:        #7C8B6F;
  --rust:        #A6521F;
  --gold:        #D4AF6A;
  --cream:       #F3ECE0;
  --muted:       #A79A85;
  --line:        rgba(243,236,224,0.12);

  --font-display: 'Fraunces', serif;
  --font-body:    'Sora', sans-serif;

  --radius: 16px;
  --shadow: 0 24px 60px -24px rgba(0,0,0,0.65);
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }

body{
  background:var(--bg);
  color:var(--cream);
  font-family:var(--font-body);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  /* fine paper-grain texture so flat colour fields don't feel flat */
  background-image:
    radial-gradient(rgba(243,236,224,0.025) 1px, transparent 1px);
  background-size:3px 3px;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
.container{ width:100%; max-width:1180px; margin:0 auto; padding:0 24px; }
::selection{ background:var(--amber); color:var(--bg); }

@media (prefers-reduced-motion: reduce){
  *{ animation:none !important; transition:none !important; }
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(23,20,15,0.86);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.site-header .container{
  display:flex; align-items:center; justify-content:space-between;
  height:80px;
}
.logo{
  font-family:var(--font-display);
  font-size:1.55rem;
  font-weight:600;
  letter-spacing:0.3px;
  color:var(--cream);
  display:flex; align-items:baseline; gap:8px;
}
.logo span{ color:var(--amber-light); font-style:italic; font-weight:500; }
.nav-links{ display:flex; gap:34px; font-size:0.85rem; letter-spacing:0.3px; text-transform:uppercase; color:var(--muted); }
.nav-links a{ position:relative; padding-bottom:4px; }
.nav-links a::after{
  content:""; position:absolute; left:0; right:100%; bottom:0; height:1px;
  background:var(--amber-light); transition:right .25s ease;
}
.nav-links a:hover{ color:var(--cream); }
.nav-links a:hover::after{ right:0; }
.header-cta{
  border:1px solid var(--amber);
  color:var(--amber-light);
  padding:10px 22px;
  border-radius:999px;
  font-size:0.8rem;
  letter-spacing:0.4px;
  text-transform:uppercase;
  transition:background .25s ease, color .25s ease;
}
.header-cta:hover{ background:var(--amber); color:var(--bg); }

/* =========================================================
   SIGNATURE MARQUEE STRIP
   A slow, continuous ribbon of material words — the tactile
   vocabulary of resin casting. Sits like a foundry nameplate
   beneath the header.
   ========================================================= */
.marquee{
  border-bottom:1px solid var(--line);
  background:var(--bg-soft);
  overflow:hidden;
  white-space:nowrap;
  padding:12px 0;
}
.marquee-track{
  display:inline-flex;
  animation:marquee 32s linear infinite;
}
.marquee-track span{
  font-family:var(--font-display);
  font-style:italic;
  font-size:0.95rem;
  color:var(--muted);
  padding:0 28px;
  position:relative;
}
.marquee-track span::after{
  content:"·";
  position:absolute; right:-2px; color:var(--gold);
  font-style:normal;
}
@keyframes marquee{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position:relative;
  padding:88px 0 76px;
  border-bottom:1px solid var(--line);
  overflow:hidden;
}
.hero .container{
  position:relative; z-index:2;
  display:grid;
  grid-template-columns:1.05fr 0.95fr;
  gap:56px;
  align-items:center;
}
.hero-eyebrow{
  font-size:0.76rem;
  letter-spacing:3px;
  text-transform:uppercase;
  color:var(--sage);
  margin-bottom:20px;
  display:flex; align-items:center; gap:10px;
}
.hero-eyebrow::before{
  content:""; width:26px; height:1px; background:var(--sage);
}
.hero h1{
  font-family:var(--font-display);
  font-size:clamp(2.5rem, 4vw, 3.6rem);
  font-weight:600;
  line-height:1.1;
  color:var(--cream);
}
.hero h1 em{ color:var(--amber-light); font-style:italic; }
.hero p{
  margin-top:22px;
  color:var(--muted);
  font-size:1.06rem;
  max-width:460px;
}
.hero-actions{ margin-top:36px; display:flex; gap:16px; flex-wrap:wrap; }
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:15px 30px;
  border-radius:999px;
  font-size:0.85rem;
  font-weight:600;
  letter-spacing:0.4px;
  text-transform:uppercase;
  cursor:pointer;
  border:none;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary{ background:var(--amber); color:var(--bg); }
.btn-primary:hover{ background:var(--amber-light); transform:translateY(-2px); box-shadow:var(--shadow); }
.btn-ghost{ background:transparent; border:1px solid var(--line); color:var(--cream); }
.btn-ghost:hover{ border-color:var(--amber); color:var(--amber-light); }

.hero-banner-wrap{
  position:relative;
  border-radius:22px;
  overflow:hidden;
  aspect-ratio:4/5;
  box-shadow:var(--shadow);
  border:1px solid rgba(212,175,106,0.35);
}
.hero-banner-wrap::before{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(23,20,15,0) 45%, rgba(23,20,15,0.75) 100%);
  z-index:1;
}
.hero-banner-wrap img{
  width:100%; height:100%; object-fit:cover;
  transition:transform 1.2s ease;
}
.hero-banner-wrap:hover img{ transform:scale(1.03); }
.hero-banner-tag{
  position:absolute; bottom:20px; left:20px; z-index:2;
  padding:10px 18px;
  border-radius:10px;
  font-size:0.78rem;
  letter-spacing:0.3px;
  color:var(--amber-light);
  background:rgba(23,20,15,0.55);
  border:1px solid rgba(212,175,106,0.3);
  backdrop-filter:blur(4px);
}

/* =========================================================
   SECTION HEADINGS
   ========================================================= */
.section{ padding:88px 0; }
.section-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  margin-bottom:48px; gap:20px; flex-wrap:wrap;
}
.section-head .eyebrow{
  font-size:0.76rem; letter-spacing:3px; text-transform:uppercase;
  color:var(--sage); display:block; margin-bottom:10px;
}
.section-head h2{
  font-family:var(--font-display);
  font-size:clamp(1.9rem, 3vw, 2.5rem);
  font-weight:600;
}
.section-head p{ color:var(--muted); max-width:420px; font-size:0.95rem; }

/* =========================================================
   PRODUCT GRID
   ========================================================= */
.product-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(270px, 1fr));
  gap:30px;
}
.product-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  display:flex; flex-direction:column;
  transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.product-card:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow);
  border-color:rgba(201,138,62,0.45);
}
.product-media{
  position:relative;
  aspect-ratio:1/1;
  background:var(--bg-soft);
  overflow:hidden;
  cursor:pointer;
}
.product-media img{ width:100%; height:100%; object-fit:cover; transition:transform .6s ease; }
.product-card:hover .product-media img{ transform:scale(1.07); }
.product-media .dots{
  position:absolute; bottom:12px; left:0; right:0;
  display:flex; justify-content:center; gap:6px; z-index:2;
}
.product-media .dots span{
  width:6px; height:6px; border-radius:50%;
  background:rgba(243,236,224,0.4);
  cursor:pointer;
}
.product-media .dots span.active{ background:var(--amber-light); }
.product-body{ padding:22px; display:flex; flex-direction:column; gap:10px; flex:1; }
.product-cat{
  font-size:0.7rem; letter-spacing:2px; text-transform:uppercase; color:var(--sage);
}
.product-body h3{
  font-family:var(--font-display);
  font-size:1.18rem; font-weight:600; color:var(--cream);
  cursor:pointer;
}
.product-desc{ color:var(--muted); font-size:0.88rem; flex:1; }
.product-footer{
  display:flex; align-items:center; justify-content:space-between;
  margin-top:8px; gap:10px;
}
/* signature hanging price tag, styled after a handwritten craft tag */
.price-tag{
  position:relative;
  font-family:var(--font-display);
  font-size:1.05rem;
  font-weight:600;
  color:var(--amber-light);
  padding:6px 14px 6px 22px;
  background:var(--surface-2);
  border-radius:4px 10px 10px 4px;
  border:1px dashed rgba(212,175,106,0.5);
  white-space:nowrap;
}
.price-tag::before{
  content:"";
  position:absolute; left:9px; top:50%;
  width:5px; height:5px; border-radius:50%;
  background:var(--bg);
  transform:translateY(-50%);
  box-shadow:0 0 0 1px rgba(212,175,106,0.5);
}
.buy-btn{
  background:var(--amber);
  color:var(--bg);
  border:none;
  padding:11px 18px;
  border-radius:999px;
  font-size:0.76rem;
  font-weight:700;
  letter-spacing:0.3px;
  text-transform:uppercase;
  cursor:pointer;
  display:inline-flex; align-items:center; gap:6px;
  transition:background .2s ease, transform .2s ease;
  white-space:nowrap;
}
.buy-btn:hover{ background:var(--amber-light); transform:translateY(-2px); }

.empty-state{
  grid-column:1/-1;
  text-align:center;
  padding:64px 20px;
  color:var(--muted);
  border:1px dashed var(--line);
  border-radius:var(--radius);
}

/* =========================================================
   INFO STRIP
   ========================================================= */
.strip{
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:var(--bg-soft);
}
.strip .container{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:32px;
  padding:50px 24px;
}
.strip-item{ text-align:center; }
.strip-item .num{
  font-family:var(--font-display);
  font-size:1.7rem;
  font-style:italic;
  color:var(--amber-light);
  display:block;
  margin-bottom:8px;
}
.strip-item p{ color:var(--muted); font-size:0.88rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{ padding:70px 0 32px; }
.footer-top{
  display:flex; justify-content:space-between; align-items:flex-start;
  flex-wrap:wrap; gap:24px; padding-bottom:36px;
  border-bottom:1px solid var(--line);
}
.footer-top h3{
  font-family:var(--font-display); font-size:1.7rem; margin-bottom:10px; font-weight:600;
}
.footer-top p{ color:var(--muted); max-width:360px; }
.footer-bottom{
  padding-top:24px; display:flex; justify-content:space-between;
  color:var(--muted); font-size:0.82rem; flex-wrap:wrap; gap:10px;
}
.wa-float{
  position:fixed; bottom:26px; right:26px; z-index:60;
  width:58px; height:58px; border-radius:50%;
  background:#25D366;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 12px 32px -8px rgba(0,0,0,0.65);
  transition:transform .2s ease;
}
.wa-float:hover{ transform:scale(1.08); }
.wa-float svg{ width:28px; height:28px; }

/* =========================================================
   MODAL (product quick view)
   ========================================================= */
.modal-overlay{
  position:fixed; inset:0; background:rgba(10,9,6,0.78);
  backdrop-filter:blur(5px);
  display:none; align-items:center; justify-content:center;
  z-index:100; padding:20px;
}
.modal-overlay.open{ display:flex; }
.modal-box{
  background:var(--surface); border:1px solid var(--line);
  border-radius:var(--radius); max-width:780px; width:100%;
  display:grid; grid-template-columns:1fr 1fr; overflow:hidden;
  max-height:88vh;
}
.modal-media{ background:var(--bg-soft); position:relative; }
.modal-media img{ width:100%; height:100%; object-fit:cover; }
.modal-info{ padding:34px; overflow-y:auto; }
.modal-info h3{ font-family:var(--font-display); font-size:1.55rem; margin-bottom:10px; font-weight:600; }
.modal-info .price-tag{ margin:14px 0 20px; display:inline-block; }
.modal-close{
  position:absolute; top:14px; right:14px;
  width:36px; height:36px; border-radius:50%;
  background:rgba(23,20,15,0.7); color:var(--cream);
  border:1px solid var(--line);
  cursor:pointer; font-size:1.2rem;
  display:flex; align-items:center; justify-content:center;
  z-index:5;
}
@media (max-width:640px){
  .modal-box{ grid-template-columns:1fr; }
  .modal-media{ aspect-ratio:1/1; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width:900px){
  .hero .container{ grid-template-columns:1fr; }
  .hero-banner-wrap{ aspect-ratio:16/10; }
  .nav-links{ display:none; }
  .strip .container{ grid-template-columns:1fr; }
}

/* =========================================================
   ADMIN PANEL
   ========================================================= */
.admin-body{ background:var(--bg); min-height:100vh; }
.admin-shell{ display:none; }
.admin-shell.open{ display:block; }
.admin-header{ border-bottom:1px solid var(--line); padding:22px 0; }
.admin-header .container{ display:flex; justify-content:space-between; align-items:center; }
.admin-wrap{ max-width:980px; margin:0 auto; padding:44px 24px 100px; }
.admin-card{
  background:var(--surface); border:1px solid var(--line);
  border-radius:var(--radius); padding:30px; margin-bottom:32px;
}
.admin-card h2{ font-family:var(--font-display); font-size:1.35rem; margin-bottom:6px; font-weight:600; }
.admin-card .sub{ color:var(--muted); font-size:0.85rem; margin-bottom:24px; }
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.form-grid .full{ grid-column:1/-1; }
label{ display:block; font-size:0.78rem; letter-spacing:0.3px; text-transform:uppercase; color:var(--muted); margin-bottom:7px; }
input[type="text"], input[type="number"], input[type="password"], textarea, select{
  width:100%; background:var(--bg-soft); border:1px solid var(--line);
  color:var(--cream); padding:12px 14px; border-radius:10px; font-family:var(--font-body);
  font-size:0.92rem;
}
textarea{ resize:vertical; min-height:90px; }
input:focus, textarea:focus, select:focus{ outline:2px solid var(--amber); outline-offset:1px; }
.img-upload-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.img-slot{
  aspect-ratio:1/1; border:1px dashed var(--line); border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  position:relative; overflow:hidden; cursor:pointer; background:var(--bg-soft);
  font-size:0.72rem; color:var(--muted); text-align:center; padding:6px;
}
.img-slot img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.img-slot input{ position:absolute; inset:0; opacity:0; cursor:pointer; }
.admin-actions{ margin-top:24px; display:flex; gap:12px; }
.product-row{
  display:flex; gap:16px; align-items:center; padding:14px 0;
  border-bottom:1px solid var(--line);
}
.product-row img{ width:56px; height:56px; border-radius:8px; object-fit:cover; }
.product-row .info{ flex:1; }
.product-row .info h4{ font-size:0.95rem; font-family:var(--font-display); font-weight:600; }
.product-row .info span{ color:var(--muted); font-size:0.8rem; }
.icon-btn{
  background:transparent; border:1px solid var(--line); color:var(--muted);
  padding:9px 16px; border-radius:8px; cursor:pointer; font-size:0.76rem;
  letter-spacing:0.3px; text-transform:uppercase;
}
.icon-btn:hover{ border-color:var(--amber); color:var(--amber-light); }
.icon-btn.danger:hover{ border-color:#c65b4a; color:#e08472; }
.login-shell{ min-height:100vh; display:flex; align-items:center; justify-content:center; padding:20px; }
.login-box{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  padding:42px; width:100%; max-width:380px;
}
.login-box h1{ font-family:var(--font-display); font-size:1.7rem; margin-bottom:8px; font-weight:600; }
.login-box p{ color:var(--muted); font-size:0.88rem; margin-bottom:26px; }
.toast{
  position:fixed; bottom:26px; left:50%; transform:translateX(-50%) translateY(20px);
  background:var(--amber); color:var(--bg); padding:14px 26px; border-radius:999px;
  font-size:0.86rem; font-weight:600; opacity:0; pointer-events:none;
  transition:opacity .25s ease, transform .25s ease; z-index:200;
}
.toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }
.banner-preview{
  width:100%; aspect-ratio:16/9; border-radius:12px; overflow:hidden;
  border:1px solid var(--line); background:var(--bg-soft); margin-bottom:16px;
}
.banner-preview img{ width:100%; height:100%; object-fit:cover; }
.error-msg{ color:#e08472; font-size:0.82rem; margin-top:10px; min-height:18px; }
