
/* =========================================================
   KHAGAN PRODUCTS
   Black / white / warm gray / restrained gold accent
   ========================================================= */

:root{
  --kp-black:#090909;
  --kp-white:#fff;
  --kp-paper:#f5f5f1;
  --kp-line:#d9d9d3;
  --kp-muted:#6d6d69;
  --kp-accent:#f0b400;
  --kp-max:1220px;
}

body{
  background:#fff;
  color:#151515;
}

.products-shell{
  width:min(calc(100% - 40px), var(--kp-max));
  margin:0 auto;
}

/* HEADER */
.products-header{
  background:#000;
  color:#fff;
  position:sticky;
  top:0;
  z-index:1000;
  border-bottom:1px solid rgba(255,255,255,.12);
}

.products-header-inner{
  min-height:86px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
}

.products-brand{
  display:flex;
  align-items:center;
  color:#fff;
  text-decoration:none;
  min-width:160px;
}

.products-brand img{
  display:block;
  height:42px;
  width:auto;
  max-width:190px;
  object-fit:contain;
}

.products-brand-fallback{
  display:none;
  font-size:28px;
  font-weight:800;
  letter-spacing:.04em;
}

.products-nav{
  display:flex;
  align-items:center;
  gap:25px;
}

.products-nav a{
  position:relative;
  color:#fff;
  text-decoration:none;
  font-size:13px;
  letter-spacing:.07em;
  text-transform:uppercase;
  padding:10px 0;
  white-space:nowrap;
}

.products-nav a.active::after,
.products-nav a:hover::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:3px;
  height:2px;
  background:var(--kp-accent);
}

.products-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.products-lang{
  min-height:40px;
  padding:0 10px;
  border:1px solid #555;
  background:#111;
  color:#fff;
}

.products-menu-btn{
  display:none;
  width:44px;
  height:44px;
  border:0;
  background:transparent;
  color:#fff;
  font-size:30px;
  cursor:pointer;
}

/* HERO */
.products-hero{
  background:var(--kp-paper);
  border-bottom:1px solid var(--kp-line);
  padding:72px 0 60px;
}

.products-kicker{
  margin:0 0 18px;
  color:#73736f;
  font-size:12px;
  font-weight:800;
  letter-spacing:.22em;
  text-transform:uppercase;
}

.products-hero h1{
  margin:0;
  max-width:900px;
  font-size:clamp(48px,7vw,92px);
  line-height:.94;
  letter-spacing:-.055em;
  color:#080808;
}

.products-hero p{
  max-width:700px;
  margin:26px 0 0;
  color:#5e5e5a;
  font-size:18px;
  line-height:1.75;
}

/* CATEGORY FEATURE */
.category-strip{
  padding:38px 0 28px;
}

.category-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}

.category-card{
  min-height:145px;
  padding:24px;
  background:#111;
  color:#fff;
  text-decoration:none;
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  border:1px solid #1b1b1b;
}

.category-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 85% 20%,rgba(255,255,255,.14),transparent 30%),
    linear-gradient(135deg,rgba(255,255,255,.04),rgba(255,255,255,0));
  transition:transform .35s ease;
}

.category-card:hover::before{
  transform:scale(1.08);
}

.category-card small{
  position:relative;
  z-index:1;
  color:#9c9c9c;
  font-size:10px;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.category-card strong{
  position:relative;
  z-index:1;
  margin-top:7px;
  font-size:25px;
  letter-spacing:-.025em;
}

.category-card.active{
  background:#f0b400;
  color:#111;
  border-color:#f0b400;
}

.category-card.active small{
  color:#5f4a00;
}

/* TOOLBAR */
.products-section{
  padding:22px 0 80px;
}

.products-toolbar{
  display:grid;
  grid-template-columns:1fr auto;
  gap:24px;
  align-items:end;
  padding:24px 0;
  border-top:1px solid var(--kp-line);
  border-bottom:1px solid var(--kp-line);
}

.toolbar-left{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}

.filter-btn{
  border:1px solid var(--kp-line);
  background:#fff;
  color:#222;
  border-radius:999px;
  padding:10px 15px;
  font:inherit;
  font-size:12px;
  cursor:pointer;
}

.filter-btn:hover,
.filter-btn.active{
  background:#111;
  color:#fff;
  border-color:#111;
}

.toolbar-right{
  display:flex;
  align-items:center;
  gap:10px;
}

.product-count{
  color:#777;
  font-size:12px;
  white-space:nowrap;
}

.sort-select{
  min-height:40px;
  border:1px solid var(--kp-line);
  background:#fff;
  padding:0 34px 0 12px;
  color:#222;
}

/* PRODUCT GRID */
.products-grid-main{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:42px 18px;
  padding-top:34px;
}

.product-item[hidden]{
  display:none;
}

.product-thumb{
  position:relative;
  display:block;
  height:0;
  padding-bottom:128%;
  background:#ecebe6;
  overflow:hidden;
  text-decoration:none;
}

.product-thumb::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(160deg,rgba(0,0,0,.02),rgba(0,0,0,.08)),
    radial-gradient(circle at 50% 34%,#f5f4ef 0,#dbd9d1 42%,#c5c4be 100%);
}

.product-item:nth-child(2n) .product-thumb::before{
  background:
    linear-gradient(160deg,rgba(0,0,0,.03),rgba(0,0,0,.10)),
    radial-gradient(circle at 52% 36%,#ece9e1 0,#ccc8bd 45%,#b2b1ac 100%);
}

.product-item:nth-child(3n) .product-thumb::before{
  background:
    linear-gradient(160deg,rgba(0,0,0,.03),rgba(0,0,0,.12)),
    radial-gradient(circle at 52% 36%,#e7e8e6 0,#c7cac8 45%,#a8aaa7 100%);
}

.product-thumb::after{
  content:attr(data-placeholder);
  position:absolute;
  left:16px;
  bottom:14px;
  color:#797974;
  font-size:10px;
  font-weight:800;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.product-badge{
  position:absolute;
  top:14px;
  left:14px;
  z-index:2;
  background:#111;
  color:#fff;
  padding:7px 9px;
  font-size:10px;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
}

.product-badge.gold{
  background:var(--kp-accent);
  color:#111;
}

.product-info{
  padding-top:15px;
}

.product-category{
  color:#868681;
  font-size:10px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.product-title{
  margin:7px 0 5px;
  font-size:18px;
  line-height:1.25;
}

.product-title a{
  color:#111;
  text-decoration:none;
}

.product-title a:hover{
  text-decoration:underline;
  text-underline-offset:3px;
}

.product-sub{
  color:#787873;
  font-size:12px;
  line-height:1.5;
  min-height:36px;
}

.product-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-top:11px;
}

.product-price{
  font-size:15px;
  font-weight:800;
}

.product-arrow{
  width:34px;
  height:34px;
  border:1px solid var(--kp-line);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#111;
  text-decoration:none;
  transition:.2s ease;
}

.product-arrow:hover{
  background:#111;
  color:#fff;
  border-color:#111;
}

/* EMPTY */
.empty-state{
  display:none;
  text-align:center;
  padding:90px 20px;
  border-bottom:1px solid var(--kp-line);
}

.empty-state.show{
  display:block;
}

.empty-state h3{
  margin:0 0 8px;
  font-size:26px;
}

.empty-state p{
  margin:0;
  color:#777;
}

/* PROMO */
.products-promo{
  background:#0a0a0a;
  color:#fff;
  padding:66px 0;
}

.products-promo-inner{
  display:grid;
  grid-template-columns:.7fr 1.3fr;
  gap:50px;
  align-items:end;
}

.products-promo small{
  color:#8a8a8a;
  font-size:11px;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.products-promo h2{
  margin:0;
  font-size:clamp(36px,5vw,62px);
  line-height:1;
  letter-spacing:-.04em;
}

.products-promo p{
  color:#aaa;
  max-width:580px;
  line-height:1.7;
}

/* FOOTER */
.products-footer{
  background:#111;
  color:#ddd;
  padding:50px 0 20px;
}

.products-footer-grid{
  display:grid;
  grid-template-columns:1.15fr .8fr .8fr;
  gap:48px;
}

.products-footer-brand{
  color:#fff;
  font-size:28px;
  font-weight:800;
  letter-spacing:.04em;
}

.products-footer p{
  color:#999;
  max-width:440px;
  font-size:13px;
  line-height:1.7;
}

.products-footer h4{
  color:#fff;
  margin:0 0 14px;
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.products-footer ul{
  list-style:none;
  margin:0;
  padding:0;
}

.products-footer li{
  margin:8px 0;
}

.products-footer a{
  color:#bbb;
  text-decoration:none;
}

.products-footer a:hover{
  color:#fff;
}

.products-footer-bottom{
  border-top:1px solid #282828;
  margin-top:40px;
  padding-top:18px;
  display:flex;
  justify-content:space-between;
  gap:20px;
  color:#777;
  font-size:11px;
}

/* Scroll */
#scrollTopBtn{
  position:fixed;
  right:18px;
  bottom:20px;
  width:46px;
  height:46px;
  padding:0;
  border:0;
  border-radius:50%;
  background:#000;
  color:#fff;
  display:none;
  align-items:center;
  justify-content:center;
  font-size:20px;
  line-height:1;
  z-index:9999;
  cursor:pointer;
  box-shadow:0 4px 14px rgba(0,0,0,.18);
}

/* RESPONSIVE */
@media(max-width:1050px){
  .products-grid-main{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .category-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:980px){
  .products-nav{
    position:fixed;
    top:86px;
    left:0;
    right:0;
    display:none;
    flex-direction:column;
    align-items:flex-start;
    gap:5px;
    padding:22px;
    background:#000;
    border-top:1px solid #252525;
  }

  .products-nav.show{
    display:flex;
  }

  .products-menu-btn{
    display:block;
  }
}

@media(max-width:760px){
  .products-toolbar{
    grid-template-columns:1fr;
    align-items:start;
  }

  .toolbar-right{
    justify-content:space-between;
  }

  .products-grid-main{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:34px 12px;
  }

  .products-promo-inner{
    grid-template-columns:1fr;
    gap:18px;
  }

  .products-footer-grid{
    grid-template-columns:1fr;
    gap:30px;
  }

  .products-footer-bottom{
    flex-direction:column;
  }
}

@media(max-width:560px){
  .products-shell{
    width:min(calc(100% - 28px), var(--kp-max));
  }

  .products-header-inner{
    min-height:76px;
  }

  .products-nav{
    top:76px;
  }

  .products-brand img{
    height:34px;
    max-width:160px;
  }

  .products-lang{
    min-height:38px;
  }

  .products-hero{
    padding:50px 0 42px;
  }

  .products-hero h1{
    font-size:50px;
  }

  .products-hero p{
    font-size:16px;
  }

  .category-grid{
    grid-template-columns:1fr 1fr;
    gap:8px;
  }

  .category-card{
    min-height:118px;
    padding:17px;
  }

  .category-card strong{
    font-size:20px;
  }

  .toolbar-left{
    flex-wrap:nowrap;
    overflow-x:auto;
    padding-bottom:5px;
  }

  .filter-btn{
    white-space:nowrap;
  }

  .toolbar-right{
    align-items:center;
  }

  .sort-select{
    max-width:170px;
  }

  .products-grid-main{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:30px 10px;
  }

  .product-info{
    padding-top:12px;
  }

  .product-title{
    font-size:15px;
  }

  .product-sub{
    display:none;
  }

  .product-bottom{
    margin-top:7px;
  }

  .product-price{
    font-size:13px;
  }

  .product-arrow{
    width:30px;
    height:30px;
  }

  #scrollTopBtn{
    width:44px;
    height:44px;
    right:14px;
    bottom:18px;
  }
}
