/*
Theme Name: Khizani Collection
Theme URI: https://thekhizanicollection.com.au
Author: KA Creates
Description: Custom WooCommerce theme for The Khizani Collection. Minimal, modern, earthy palette with a signature "layer line" motif referencing the 3D-printing process. Colours and homepage content are editable in Appearance > Customise.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: khizani
*/

:root{
  --khz-stone:#E4DDCB;
  --khz-surface:#EFEAE0;
  --khz-ink:#2A2620;
  --khz-moss:#5B6B4A;
  --khz-ochre:#A9673D;
  --khz-line: rgba(42,38,32,0.12);
}

*{box-sizing:border-box;}

html{scroll-behavior:smooth;}

body{
  margin:0;
  background:var(--khz-stone);
  color:var(--khz-ink);
  font-family:"Sora", sans-serif;
  -webkit-font-smoothing:antialiased;
  font-size:16px;
  line-height:1.55;
}

a{color:inherit;}

img{max-width:100%; height:auto; display:block;}

.khz-wrap{max-width:1200px; margin:0 auto; padding:0 32px;}

/* ---- layer-line signature motif ---- */
.khz-layers{position:relative; height:64px; overflow:hidden;}
.khz-layers span{position:absolute; left:0; right:0; height:1px; background:var(--khz-ink);}
.khz-layers span:nth-child(1){top:15%; opacity:.08;}
.khz-layers span:nth-child(2){top:35%; opacity:.16;}
.khz-layers span:nth-child(3){top:55%; opacity:.32; height:2px;}
.khz-layers span:nth-child(4){top:78%; opacity:.14;}

.khz-divider{border:none; border-top:1px solid var(--khz-line); margin:0;}

/* ---- typography scale ---- */
h1,h2,h3,h4{
  font-family:"Archivo Expanded", sans-serif;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:-0.01em;
  line-height:1.02;
  margin:0 0 0.5em;
}
h1{font-size:clamp(36px,6vw,64px);}
h2{font-size:clamp(26px,4vw,38px);}
h3{font-size:20px;}

.khz-eyebrow{
  font-family:"IBM Plex Mono", monospace;
  font-size:11px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--khz-moss);
  margin:0 0 14px;
  display:block;
}

.khz-mono{font-family:"IBM Plex Mono", monospace;}

/* ---- header ---- */
.site-header{
  background:var(--khz-stone);
  border-bottom:1px solid var(--khz-line);
  position:sticky;
  top:0;
  z-index:50;
}
.site-header .khz-wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-top:20px;
  padding-bottom:20px;
  gap:24px;
}
.site-branding a{text-decoration:none;}
.site-branding .site-title{
  font-family:"Archivo Expanded", sans-serif;
  font-weight:700;
  font-size:22px;
  text-transform:uppercase;
  margin:0;
  letter-spacing:0;
}
.site-branding .site-title span{color:var(--khz-ochre);}
.site-branding .site-description{
  font-family:"IBM Plex Mono", monospace;
  font-size:11px;
  color:rgba(42,38,32,0.55);
  margin:2px 0 0;
}

.main-navigation ul{list-style:none; display:flex; gap:28px; margin:0; padding:0;}
.main-navigation a{
  font-family:"IBM Plex Mono", monospace;
  font-size:12px;
  letter-spacing:.06em;
  text-transform:uppercase;
  text-decoration:none;
  color:var(--khz-ink);
}
.main-navigation a:hover{color:var(--khz-ochre);}

.header-actions{display:flex; align-items:center; gap:18px;}
.header-actions a{text-decoration:none; font-family:"IBM Plex Mono", monospace; font-size:12px; text-transform:uppercase;}

.menu-toggle{display:none; background:none; border:1px solid var(--khz-ink); border-radius:2px; padding:8px 12px; font-family:"IBM Plex Mono", monospace; font-size:11px; text-transform:uppercase; cursor:pointer;}

/* ---- buttons ---- */
.khz-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-family:"IBM Plex Mono", monospace;
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  padding:14px 28px;
  border-radius:2px;
  border:1px solid var(--khz-ink);
  cursor:pointer;
  text-decoration:none;
  transition:background .15s ease, color .15s ease;
}
.khz-btn-primary{background:var(--khz-ink); color:var(--khz-stone);}
.khz-btn-primary:hover{background:var(--khz-ochre); border-color:var(--khz-ochre); color:#fff;}
.khz-btn-secondary{background:transparent; color:var(--khz-ink);}
.khz-btn-secondary:hover{background:var(--khz-ink); color:var(--khz-stone);}

.khz-badge{
  display:inline-flex; align-items:center; gap:6px;
  font-family:"IBM Plex Mono", monospace;
  font-size:11px; letter-spacing:.06em; text-transform:uppercase;
  background:rgba(91,107,74,0.14); color:var(--khz-moss);
  padding:6px 12px; border-radius:2px;
}
.khz-badge::before{content:""; width:6px; height:6px; background:var(--khz-moss); border-radius:50%;}

/* ---- hero ---- */
.khz-hero{padding:80px 0 64px;}
.khz-hero p.khz-tagline{max-width:460px; color:rgba(42,38,32,0.7); font-size:16px; margin:0 0 32px;}
.khz-hero .khz-actions{display:flex; gap:14px; flex-wrap:wrap;}

/* ---- product grid ---- */
.khz-section{padding:56px 0;}
.khz-section-head{display:flex; align-items:baseline; justify-content:space-between; margin-bottom:32px; border-bottom:1px solid var(--khz-line); padding-bottom:16px;}
.khz-section-head a{font-family:"IBM Plex Mono", monospace; font-size:12px; text-transform:uppercase; text-decoration:none; color:var(--khz-moss);}

ul.products{
  display:grid !important;
  grid-template-columns:repeat(4, 1fr);
  gap:24px;
  list-style:none !important;
  margin:0 !important;
  padding:0 !important;
}
ul.products li.product{
  background:var(--khz-surface);
  border:1px solid var(--khz-line);
  border-radius:2px;
  overflow:hidden;
  list-style:none;
}
ul.products li.product a{text-decoration:none; color:var(--khz-ink); display:block;}
ul.products li.product img{aspect-ratio:1/1; object-fit:cover;}
ul.products li.product .khz-card-info{padding:16px;}
ul.products li.product h2.woocommerce-loop-product__title{
  font-family:"Archivo Expanded", sans-serif;
  font-weight:700;
  font-size:15px;
  text-transform:uppercase;
  margin:0 0 8px;
}
ul.products li.product .price{
  font-family:"IBM Plex Mono", monospace;
  font-size:14px;
  color:var(--khz-ink);
}
ul.products li.product .price del{opacity:.4; font-size:12px;}
ul.products li.product .price ins{text-decoration:none;}

/* client discount badge on product cards */
.khz-client-price-note{
  font-family:"IBM Plex Mono", monospace;
  font-size:10px;
  color:var(--khz-moss);
  margin-top:4px;
  text-transform:uppercase;
  letter-spacing:.04em;
}

/* ---- about section (one-page site) ---- */
.khz-about{background:var(--khz-surface);}
.khz-about-inner{max-width:720px;}
.khz-about-inner p{color:rgba(42,38,32,0.75); font-size:16px; margin:0;}

/* ---- footer ---- */
.site-footer{background:var(--khz-surface); border-top:1px solid var(--khz-line); margin-top:80px;}
.site-footer .khz-wrap{padding-top:48px; padding-bottom:32px;}
.footer-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:32px; margin-bottom:32px;}
.footer-grid h4{font-size:12px; letter-spacing:.1em;}
.footer-grid ul{list-style:none; margin:0; padding:0;}
.footer-grid li{margin-bottom:8px;}
.footer-grid a{text-decoration:none; font-size:13px; color:rgba(42,38,32,0.75);}
.site-footer .khz-bottom{
  font-family:"IBM Plex Mono", monospace;
  font-size:11px;
  color:rgba(42,38,32,0.45);
  border-top:1px solid var(--khz-line);
  padding-top:20px;
}

/* ---- responsive ---- */
@media (max-width: 900px){
  ul.products{grid-template-columns:repeat(2, 1fr);}
  .footer-grid{grid-template-columns:1fr 1fr;}
}
@media (max-width: 680px){
  .main-navigation{display:none;}
  .menu-toggle{display:inline-block;}
  ul.products{grid-template-columns:1fr 1fr;}
  .footer-grid{grid-template-columns:1fr;}
}
