/*
Theme Name: NiaClay
Theme URI: https://example.com
Author: Your Studio
Author URI: https://example.com
Description: Earthy clay-cookware storefront theme with a terracotta palette, artisanal type pairing, and a hand-thrown pottery signature.
Version: 1.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: niaclay
*/

:root{
  --bisque: #EFE2CC;      /* unglazed clay body */
  --ivory: #FAF4E8;       /* whitewash */
  --terracotta: #B5563C;  /* fired clay red */
  --terracotta-dark: #8C3F2B;
  --char: #2B221B;        /* kiln soot */
  --ochre: #C08A34;       /* turmeric/spice accent */
  --sage: #6E7A55;        /* leaf accent */
  --line: rgba(43,34,27,0.14);
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--bisque);
  color:var(--char);
  font-family:'Work Sans', sans-serif;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3{
  font-family:'Fraunces', serif;
  font-weight:600;
  margin:0;
  letter-spacing:-0.01em;
}
.eyebrow{
  font-family:'Space Mono', monospace;
  font-size:0.72rem;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--terracotta-dark);
}
a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
ul{margin:0;}
.wrap{max-width:1180px; margin:0 auto; padding:0 28px;}

/* announcement */
.announce{
  background:var(--char);
  color:var(--ivory);
  text-align:center;
  font-family:'Space Mono', monospace;
  font-size:0.75rem;
  letter-spacing:0.05em;
  padding:9px 12px;
}

/* header */
header#site-header{
  background:var(--ivory);
  border-bottom:1px solid var(--line);
  position:sticky; top:0; z-index:50;
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 28px;
  max-width:1180px; margin:0 auto;
}
.logo{
  font-family:'Fraunces', serif;
  font-size:1.5rem; font-weight:700;
  display:flex; align-items:center; gap:8px;
}
.logo svg{width:30px;height:30px;}
.logo img.custom-logo{width:34px; height:34px; object-fit:contain; border-radius:50%;}
.nav-links{display:flex; gap:34px; font-size:0.92rem; font-weight:500; list-style:none; padding:0; margin:0;}
.nav-links a{position:relative; padding:4px 0;}
.nav-links a:hover{color:var(--terracotta-dark);}
.nav-cta{display:flex; gap:16px; align-items:center;}
.btn{
  display:inline-block;
  background:var(--terracotta);
  color:var(--ivory);
  padding:11px 24px;
  border-radius:2px;
  font-weight:600;
  font-size:0.9rem;
  border:1px solid var(--terracotta);
  cursor:pointer;
  transition:background 0.2s, color 0.2s;
}
.btn:hover{background:var(--terracotta-dark); border-color:var(--terracotta-dark); color:var(--ivory);}
.btn-outline{background:transparent; color:var(--char); border:1px solid var(--char);}
.btn-outline:hover{background:var(--char); color:var(--ivory);}

/* hero */
.hero{
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  gap:40px;
  padding:70px 28px 90px;
  max-width:1180px;
  margin:0 auto;
}
.hero h1{
  font-size:clamp(2.4rem, 4.2vw, 3.6rem);
  line-height:1.06;
  margin:14px 0 20px;
}
.hero h1 em{font-style:italic; color:var(--terracotta);}
.hero p{font-size:1.05rem; max-width:440px; color:#463A2E; margin-bottom:28px;}
.hero-cta{display:flex; gap:14px; flex-wrap:wrap;}
.hero-art{display:flex; align-items:center; justify-content:center; position:relative;}
.wheel-ring{
  position:absolute; width:420px; height:420px; border-radius:50%;
  border:1px dashed var(--ochre); opacity:0.5;
  animation:spin 40s linear infinite;
}
.wheel-ring.r2{
  width:340px; height:340px; border-color:var(--sage);
  animation-duration:55s; animation-direction:reverse;
}
@keyframes spin{ from{transform:rotate(0deg);} to{transform:rotate(360deg);} }
@media (prefers-reduced-motion: reduce){ .wheel-ring{animation:none;} }
.pot-svg{position:relative; z-index:2; width:260px;}

/* section titles */
.section-head{text-align:center; max-width:560px; margin:0 auto 44px;}
.section-head h2{font-size:2rem; margin-top:10px;}
.section-head p{color:#5A4C3C; margin-top:12px; font-size:0.98rem;}

section{padding:80px 0;}
.band{background:var(--ivory);}

/* why clay */
.why-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:28px;}
.why-card{background:var(--ivory); border:1px solid var(--line); padding:32px 26px; border-radius:2px;}
.why-card svg{width:38px; height:38px; color:var(--terracotta); margin-bottom:16px;}
.why-card h3{font-size:1.15rem; margin-bottom:8px;}
.why-card p{font-size:0.92rem; color:#5A4C3C; line-height:1.5;}

/* categories */
.cat-grid{display:grid; grid-template-columns:repeat(5,1fr); gap:18px;}
.cat-card{
  background:var(--bisque); border:1px solid var(--line);
  padding:26px 16px 20px; text-align:center; border-radius:2px;
  transition:transform 0.2s, box-shadow 0.2s;
}
.cat-card:hover{transform:translateY(-4px); box-shadow:0 10px 24px rgba(43,34,27,0.1);}
.cat-card svg{width:44px;height:44px; margin:0 auto 14px; color:var(--terracotta-dark);}
.cat-card span{font-size:0.85rem; font-weight:600;}

/* process strip */
.process{display:flex; justify-content:space-between; gap:12px; position:relative;}
.process::before{content:""; position:absolute; top:22px; left:5%; right:5%; height:1px; background:var(--line);}
.p-step{flex:1; text-align:center; position:relative;}
.p-num{
  width:44px; height:44px; border-radius:50%;
  background:var(--terracotta); color:var(--ivory);
  display:flex; align-items:center; justify-content:center;
  font-family:'Space Mono', monospace; font-size:0.85rem;
  margin:0 auto 14px; position:relative; z-index:2;
}
.p-step h3{font-size:1rem; margin-bottom:6px;}
.p-step p{font-size:0.82rem; color:#5A4C3C;}

/* products */
.prod-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:22px;}
.prod-card{background:var(--ivory); border:1px solid var(--line); border-radius:2px; overflow:hidden; display:flex; flex-direction:column;}
.prod-img{background:var(--bisque); aspect-ratio:1/1; display:flex; align-items:center; justify-content:center; position:relative;}
.prod-img svg{width:52%;}
.tag{
  position:absolute; top:10px; left:10px;
  background:var(--sage); color:var(--ivory);
  font-family:'Space Mono',monospace; font-size:0.68rem;
  padding:3px 8px; border-radius:2px;
}
.prod-info{padding:16px 16px 18px;}
.prod-info h3{font-size:0.98rem; margin-bottom:6px;}
.stars{color:var(--ochre); font-size:0.8rem; margin-bottom:8px;}
.price{font-family:'Space Mono',monospace; font-size:0.9rem;}
.price .old{color:#948873; text-decoration:line-through; margin-left:8px; font-size:0.8rem;}
.prod-info .btn{width:100%; margin-top:12px; text-align:center; font-size:0.82rem; padding:9px;}

/* testimonials */
.testi-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px;}
.testi-card{background:var(--bisque); border:1px solid var(--line); padding:28px 24px; border-radius:2px;}
.testi-card p.quote{font-size:0.98rem; line-height:1.6; margin-bottom:18px; font-style:italic;}
.testi-name{font-weight:600; font-size:0.9rem;}
.testi-role{font-size:0.78rem; color:#5A4C3C; font-family:'Space Mono',monospace;}

/* newsletter */
.news{background:var(--char); color:var(--ivory); text-align:center; padding:70px 28px; border-radius:2px;}
.news h2{color:var(--ivory); font-size:1.9rem; margin-bottom:14px;}
.news p{color:#D8CBB8; max-width:460px; margin:0 auto 26px;}
.news-form{display:flex; justify-content:center; gap:10px; max-width:420px; margin:0 auto; flex-wrap:wrap;}
.news-form input{
  flex:1; min-width:200px; padding:12px 14px;
  border:1px solid #58493A; background:#3A2F26; color:var(--ivory);
  border-radius:2px; font-family:'Work Sans',sans-serif;
}
.news-form input::placeholder{color:#9C8B75;}
.news-form .subscribed-msg{color:var(--sage); font-family:'Space Mono',monospace; font-size:0.85rem; margin-top:10px;}

/* footer */
footer#site-footer{background:var(--ivory); border-top:1px solid var(--line); padding:56px 0 24px;}
.foot-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:30px; margin-bottom:40px;}
.foot-grid h4{font-size:0.9rem; margin-bottom:14px; font-family:'Space Mono',monospace; letter-spacing:0.05em;}
.foot-grid ul{list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:9px;}
.foot-grid ul li a{font-size:0.88rem; color:#5A4C3C;}
.foot-grid ul li a:hover{color:var(--terracotta-dark);}
.foot-bottom{
  border-top:1px solid var(--line); padding-top:20px;
  display:flex; justify-content:space-between; align-items:center;
  font-size:0.8rem; color:#8A7A64; flex-wrap:wrap; gap:10px;
}

/* trust badges strip */
.trust-strip{
  background:var(--ivory);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:26px 0;
}
.trust-grid{
  display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap;
}
.trust-item{
  display:flex; align-items:center; gap:12px; flex:1; min-width:200px;
}
.trust-item svg{width:30px; height:30px; color:var(--terracotta); flex-shrink:0;}
.trust-item h4{font-size:0.9rem; margin:0 0 2px; font-family:'Work Sans',sans-serif; font-weight:600;}
.trust-item p{font-size:0.78rem; color:#5A4C3C; margin:0;}

/* promo banner */
.promo-banner{
  background:linear-gradient(120deg, var(--terracotta) 0%, var(--terracotta-dark) 100%);
  color:var(--ivory);
  border-radius:2px;
  padding:40px 36px;
  display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
}
.promo-banner h3{color:var(--ivory); font-size:1.5rem; margin-bottom:6px;}
.promo-banner p{color:#F0DCCF; font-size:0.92rem; margin:0;}
.promo-banner .btn{background:var(--ivory); color:var(--terracotta-dark); border-color:var(--ivory);}
.promo-banner .btn:hover{background:var(--bisque); border-color:var(--bisque);}

/* whatsapp float button */
.whatsapp-float{
  position:fixed; bottom:24px; right:24px; z-index:100;
  width:56px; height:56px; border-radius:50%;
  background:#3F9C50;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 18px rgba(43,34,27,0.25);
  transition:transform 0.2s;
}
.whatsapp-float:hover{transform:scale(1.08);}
.whatsapp-float svg{width:28px; height:28px; color:#fff;}

/* recent purchase popup */
.recent-popup{
  position:fixed; bottom:24px; left:24px; z-index:100;
  background:var(--ivory); border:1px solid var(--line);
  border-radius:2px; padding:14px 18px;
  box-shadow:0 10px 30px rgba(43,34,27,0.14);
  display:flex; align-items:center; gap:12px;
  max-width:290px;
  opacity:0; transform:translateY(12px);
  transition:opacity 0.4s, transform 0.4s;
  pointer-events:none;
}
.recent-popup.show{opacity:1; transform:translateY(0); pointer-events:auto;}
.recent-popup .dot{
  width:34px; height:34px; border-radius:50%;
  background:var(--sage); flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  color:var(--ivory); font-family:'Space Mono',monospace; font-size:0.75rem;
}
.recent-popup strong{font-size:0.85rem; display:block;}
.recent-popup span{font-size:0.76rem; color:#5A4C3C;}
.recent-popup .close-x{
  position:absolute; top:4px; right:6px; cursor:pointer;
  font-size:0.7rem; color:#948873; background:none; border:none;
}

@media (max-width:900px){
  .hero{grid-template-columns:1fr; text-align:center;}
  .hero p{margin-left:auto; margin-right:auto;}
  .hero-cta{justify-content:center;}
  .why-grid, .cat-grid{grid-template-columns:repeat(2,1fr);}
  .prod-grid{grid-template-columns:repeat(2,1fr);}
  .testi-grid{grid-template-columns:1fr;}
  .foot-grid{grid-template-columns:1fr 1fr;}
  .process{flex-direction:column; gap:26px;}
  .process::before{display:none;}
  .nav-links{display:none;}
  .trust-grid{flex-direction:column;}
  .promo-banner{flex-direction:column; text-align:center;}
  .recent-popup{left:12px; right:12px; max-width:none;}
  .cart-drawer{width:100%;}
  .checkout-grid{grid-template-columns:1fr !important;}
}

/* ---------- scroll reveal ---------- */
[data-reveal]{
  opacity:0;
  transform:translateY(24px);
  transition:opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].revealed{
  opacity:1;
  transform:translateY(0);
}
@media (prefers-reduced-motion: reduce){
  [data-reveal]{opacity:1; transform:none; transition:none;}
}

/* ---------- 3D tilt cards ---------- */
.tilt-card{
  transition:transform 0.15s ease-out, box-shadow 0.25s ease;
  transform-style:preserve-3d;
  will-change:transform;
}
.tilt-card:hover{
  box-shadow:0 20px 40px rgba(43,34,27,0.14);
}

/* ---------- hero pot 3D wrapper ---------- */
.pot-3d-wrap{
  transition:transform 0.2s ease-out;
  transform-style:preserve-3d;
  will-change:transform;
}

/* ---------- cart toggle button ---------- */
.cart-toggle-btn{cursor:pointer;}

/* ---------- cart drawer ---------- */
.cart-overlay{
  position:fixed; inset:0; background:rgba(43,34,27,0.45);
  z-index:150; opacity:0; pointer-events:none; transition:opacity 0.3s ease;
}
.cart-overlay.open{opacity:1; pointer-events:auto;}

.cart-drawer{
  position:fixed; top:0; right:0; bottom:0; width:400px; max-width:92vw;
  background:var(--ivory); z-index:200;
  transform:translateX(100%); transition:transform 0.35s ease;
  display:flex; flex-direction:column;
  box-shadow:-10px 0 30px rgba(43,34,27,0.2);
}
.cart-drawer.open{transform:translateX(0);}
.cart-drawer-head{
  display:flex; justify-content:space-between; align-items:center;
  padding:20px 22px; border-bottom:1px solid var(--line);
}
.cart-drawer-head h3{font-size:1.2rem;}
.cart-drawer-head button{background:none; border:none; font-size:1rem; cursor:pointer; color:var(--char);}
.cart-drawer-items{flex:1; overflow-y:auto; padding:16px 22px;}
.cart-drawer-foot{padding:18px 22px; border-top:1px solid var(--line);}
.cart-subtotal-row{display:flex; justify-content:space-between; margin-bottom:14px; font-size:1rem;}

.cart-empty-msg{color:#8A7A64; font-size:0.9rem;}

.cart-line{
  display:flex; gap:12px; padding:14px 0; border-bottom:1px solid var(--line);
}
.cart-line-thumb{
  width:56px; height:56px; background:var(--bisque); border-radius:2px; flex-shrink:0; overflow:hidden;
}
.cart-line-thumb img{width:100%; height:100%; object-fit:cover;}
.cart-line-info{flex:1;}
.cart-line-name{font-size:0.9rem; font-weight:600; margin-bottom:2px;}
.cart-line-price{font-size:0.82rem; color:#5A4C3C; font-family:'Space Mono',monospace; margin-bottom:8px;}
.cart-line-qty{display:flex; align-items:center; gap:8px;}
.qty-btn{
  width:24px; height:24px; border:1px solid var(--line); background:var(--ivory);
  border-radius:2px; cursor:pointer; font-size:0.9rem; line-height:1;
}
.cart-line-qty span{font-family:'Space Mono',monospace; font-size:0.85rem; min-width:16px; text-align:center;}
.cart-remove{
  margin-left:auto; background:none; border:none; color:#B5563C;
  font-size:0.78rem; cursor:pointer; text-decoration:underline;
}

/* ---------- cart / checkout pages ---------- */
.cart-line-page{align-items:center;}
.summary-line{
  display:flex; justify-content:space-between; font-size:0.88rem;
  padding:6px 0; color:#463A2E;
}

