/* KazokuKnives - product.css (Kazoku Modern compliant)
   - No red, no gradients, no pure black text
   - Indigo for system/secure actions (checkout / buy)
   - Green reserved for Add to Cart ONLY
   - Copper accent used sparingly (icons, highlights, warning/required, rating)
   - Radius system: use --radius-sm / --radius-sm only
*/

.muted{color:var(--muted); font-weight:500}

/* =========================
   PDP Layout
   ========================= */
.pdp{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:44px;
  align-items:start;
}

.pdp #product {
  display:flex;
  flex-direction:column;
  gap:5px;
}

/* =========================
   Gallery
   ========================= */
.gallery-main{
  width:100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow:hidden;
  background: transparent;
  box-shadow: var(--shadow-2);
  position:relative;
  cursor: zoom-in;
  user-select:none;
  border: 1px solid var(--line);
}

.gallery-main img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  transform: translateZ(0);
  /* keep hover subtle (no flashy animation) */
  transition: transform .22s ease, filter .22s ease, opacity .18s ease;
}

.gallery-main:hover img{
  transform: scale(1.01);
  filter: contrast(1.03) saturate(1.01);
}

.gallery-main:focus-within{
  outline:none;
  box-shadow: var(--shadow-2), var(--focus);
}

/* Thumbs slider */
.thumbs{
  margin-top:12px;
  display:grid;
  grid-template-columns: 44px 1fr 44px;
  gap:10px;
  align-items:center;
}

.thumbs-viewport{
  overflow:hidden;
  border-radius: var(--radius-sm);
}

.thumbs-track{
  display:flex;
  gap:10px;
  overflow-x:auto;
  scroll-behavior:smooth;
  scroll-snap-type:x mandatory;
  padding:0;
  scrollbar-width:none;
}
.thumbs-track::-webkit-scrollbar{display:none}

/* existing thumb look tetap kepake */
.thumbs-track .thumb{
  flex: 0 0 100px;
  scroll-snap-align:start;
  background:transparent;
  border:0;
  opacity:0.78;
}

.thumbs-track .thumb img{
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  max-height: 100px;
}

.thumbs-track .thumb:hover img,
.thumbs-track .thumb.is-active img{
  border-color: var(--line-strong);
}

/* nav */
.thumb-nav{
  height:100%;
  border-radius: var(--radius-sm);
  border:1px solid var(--line);
  background: var(--surface);
  cursor:pointer;
  transition: box-shadow .18s ease, transform .12s ease, opacity .18s ease, border-color .18s ease;
}

.thumb-nav:hover{
  box-shadow: var(--focus);
  border-color: var(--line-strong);
}

.thumb-nav:active{transform: translateY(1px)}

.thumb-nav:disabled{
  opacity:.35;
  cursor:not-allowed;
  box-shadow:none;
}

.chev{
  display:grid;
  place-items:center;
  height:100%;
  font-size:22px;
  color:var(--ink-900);
}

/* =========================
   Info
   ========================= */
.info .category{
  font-size:13px;
  color:var(--muted);
  font-weight:600;
  margin-bottom:6px;
}

.title{
  margin:0;
  font-size:28px;
  line-height:1.15;
  font-weight:800;
  letter-spacing:-.02em;
  color:var(--ink-900);
}

/* =========================
   Price (Regular + Special)
   ========================= */
.price{
  margin-top:10px;
  display:flex;
  align-items:baseline;
  gap:10px;
  flex-wrap:wrap;
}

/* Special price (main) — calm premium (no red) */
.price-new{
  font-size:28px;
  font-weight:900;
  color: var(--ink-900);
  letter-spacing:-.01em;
}

/* Old price */
.price-old{
  font-size:14px;
  font-weight:600;
  color: var(--muted);
  text-decoration: line-through;
  position:relative;
  top:-2px;
}

/* Fallback: single price only */
.price:not(:has(.price-new)){
  font-size:26px;
  font-weight:600;
  color: var(--ink-900);
}

.subtitle{
  margin-top:14px;
  font-weight:800;
  color:var(--ink-900);
  font-size:13px;
  letter-spacing:.01em;
}

#product .meta ul, .bullets{
  margin:10px 0 0;
  padding-left:18px;
  color:var(--ink-900);
}

#product .meta ul li, .bullets li{
  margin:8px 0;
  color:var(--ink-700);
  font-size:13px;
  line-height:1.45;
  list-style:disc;
}

.rating-row{
  margin-top:12px;
  display:flex;
  align-items:center;
  gap:10px;
}

.stars{display:flex; gap:2px}

/* rating off */
.star{
  font-size:16px;
  line-height:1;
  color: rgba(26,35,62,.18);
}

/* rating on — use copper accent (no new accent colors) */
.star.is-on{color: var(--accent)}

.rating-text{
  font-size:13px;
  color:var(--ink-900);
  font-weight:700;
}

/* Stock (no green; keep calm + trustworthy) */
.stock-row{
  margin-top:10px;
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
}

.dot{
  width:9px;
  height:9px;
  border-radius:999px;
  background: var(--checkout);
  box-shadow: 0 0 0 4px rgba(26,35,62,.10);
}

.stock{
  color:var(--ink-900);
  font-weight:700;
}

/* Low stock / warning — copper */
.stock-danger{
  color:var(--accent);
  font-weight:700;
}

.dot-danger{
  background:var(--accent);
  box-shadow: 0 0 0 4px rgba(188,124,86,.14);
}

/* =========================
   Actions
   ========================= */
.actions{
  margin-top:14px;
  display:grid;
  grid-template-columns: 140px auto;
  gap:12px;
  align-items:stretch;
}

.actions .cart-buttons{
  display:flex;
  gap:10px;
  justify-content:space-between;
  width:100%;
}

.actions .cart-buttons .btn-primary{width:60%}
.actions .cart-buttons .btn-buy{width:40%}

.actions .qty{
  display:grid;
  grid-template-columns: 44px 1fr 44px;
  border:1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow:hidden;
  background: var(--surface);
  max-width:140px;
  height:44px;
}

.qty-btn{
  border:0;
  background: var(--surface);
  cursor:pointer;
  font-size:18px;
  color:var(--ink-900);
  transition: background .15s ease, color .15s ease;
}

.qty-btn:hover{
  background: var(--surface-2);
  color: var(--ink-900);
}

.qty-btn:active{background: var(--barik-100)}

.qty-input{
  border:0;
  text-align:center;
  font-weight:700;
  font-size:14px;
  outline:none;
  color:var(--ink-900);
  min-width:50px;
}

/* Base button */
.btn{
  border:1px solid transparent;
  border-radius: var(--radius-sm);
  height:44px;
  cursor:pointer;
  font-weight:800;
  font-size:13px;
  letter-spacing:.01em;
  /* calm hover: no jumpy motion */
  transition: box-shadow .18s ease, background .18s ease, border-color .18s ease, opacity .18s ease;
  user-select:none;
  display:inline-flex;
  text-align:center;
  align-items:center;
  justify-content:center;
}

.btn:focus-visible{outline:none; box-shadow: var(--focus)}
.btn:active{transform: translateY(1px)}

/* Secure/System primary (Indigo) */
.btn-primary{
  background: var(--checkout);
  color: var(--checkout-ink);
  border-color: var(--checkout);
  box-shadow: 0 10px 18px rgba(11,18,36,.10);
}

.btn-primary:hover{
  background: var(--checkout-hover);
  border-color: var(--checkout-hover);
  box-shadow: var(--shadow-2);
  color: var(--checkout-ink);
}

/* Add to cart (Green reserved only for cart action) */
.btn-addtocart,
#button-cart{
  background: var(--action);
  color: var(--action-ink);
  border-color: var(--action);
  box-shadow: 0 10px 18px rgba(30,61,44,.16);
}

#button-cart { width: 100%; }

.btn-addtocart:hover,
#button-cart:hover{
  background: var(--action-hover);
  border-color: var(--action-hover);
  box-shadow: var(--shadow-2);
  color: var(--action-ink);
}

/* Buy button (goes to checkout) */
.btn-buy{
  background: var(--checkout);
  color: var(--checkout-ink);
  border-color: var(--checkout);
}

.btn-buy:hover{
  background: var(--checkout-hover);
  border-color: var(--checkout-hover);
  box-shadow: var(--shadow-2);
  color: #fff;
}

/* Legacy alias if used */
.btn-dark{
  background: var(--checkout);
  color: var(--checkout-ink);
}
.btn-dark:hover{
  background: var(--checkout-hover);
  color: var(--checkout-ink);
}

.mini-actions{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
  clear:both;
}

#button-cart.notify-button{margin-top:5px}

.link-btn{
  border:0;
  background:transparent;
  padding:6px 0;
  font-size:12px;
  color:var(--ink-900);
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:8px;
  transition: color .15s ease;
}

.link-btn:hover{color: var(--accent)}
.link-btn:active{transform: translateY(1px)}

.heart{
  font-size:16px;
  line-height:1;
  color: var(--accent);
}

#wishlistBtn.is-on .heart{color: var(--accent)}

/* =========================
   Share + Perks
   ========================= */
.share{
  margin-top:10px;
  display:flex;
  align-items:center;
  gap:10px;
}

.share-label{
  font-size:12px;
  color:var(--ink-900);
  font-weight:700;
}

.share-icons{display:flex; gap:8px}

.share-ico{
  width:26px;
  height:26px;
  display:grid;
  place-items:center;
  border-radius:999px;
  border:1px solid var(--line);
  color:var(--ink-900);
  text-decoration:none;
  font-size:12px;
  transition: box-shadow .18s ease, border-color .18s ease, color .18s ease, background .18s ease;
}

.share-ico:hover{
  border-color: var(--line-strong);
  box-shadow: var(--focus);
  color: var(--ink-900);
  background: var(--surface-2);
}

.perks{
  margin-top:14px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.perk{
  flex: 1 1 210px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size:12px;
  color:var(--ink-900);
  box-shadow: 0 10px 22px rgba(11,18,36,.06);
}

.perk-ico{opacity:.85}

/* =========================
   Accordion
   ========================= */
.accordion{margin-top:26px}

.acc-item{border-bottom:1px solid var(--line)}

.acc-head{
  width:100%;
  border:0;
  background: var(--surface);
  padding:18px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  cursor:pointer;
  font-weight:800;
}

.acc-head:focus-visible{
  outline:none;
  box-shadow: var(--focus);
  border-radius: var(--radius-sm);
}

.acc-title{font-size:16px}

.collapsed .acc-title{
  color: var(--ink-900);
  font-weight:600;
}

.accordion .panel-title a.collapsed:after{color: var(--ink-900)}

.acc-icon{
  color: var(--accent);
  font-size:18px;
  line-height:1;
  transform: translateY(-1px);
}

/* Bootstrap 3 panel overrides */
.accordion .panel{
  border-color: var(--line);
  border-radius: 0;
  box-shadow:none;
}

.accordion .panel-heading{
  background: var(--surface);
  border-color: var(--line);
  padding:0;
}

.accordion .panel-title a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  text-decoration:none;
  font-weight:800;
  color: var(--ink-900);
  padding:16px;
}

/* icon +/− */
.accordion .panel-title a:after{
  content:"+";
  font-size:18px;
  line-height:1;
  color: var(--accent);
}

.accordion .panel-group .panel-heading+.panel-collapse>.panel-body{
  border:none;
  padding:0 16px 16px 16px;
}

.panel-body > h2:first-child{
  margin-top:0;
  padding-top:0;
}

.accordion .panel-title a[aria-expanded="true"]:after{content:"−"}

.accordion .panel-body{padding:0 0 18px 0}

.acc-h3{
  margin:0 0 8px;
  font-size:13px;
  font-weight:800;
  color:var(--ink-900);
}

.acc-p{
  margin:0 0 10px;
  color:var(--ink-700);
  font-size:13px;
  line-height:1.65;
  max-width:680px;
}

.spec-grid{
  display:grid;
/*  grid-template-columns: repeat(2, minmax(0, 1fr));*/
  grid-template-columns: auto;
  gap:10px 18px;
  width:100%;
}

.spec{
  border:1px solid var(--line);
  background: var(--surface);
  border-radius: 0;
  padding:10px 12px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  box-shadow: 0 10px 22px rgba(11,18,36,.06);
}

.spec span{color:var(--muted); font-size:12px; font-weight:600}
.spec strong{font-size:12px; color:var(--ink-900)}

/* =========================
   Reviews
   ========================= */
.reviews{
  margin-top:28px;
  padding-top:18px;
  border-top:1px solid var(--line);
}

.reviews-grid{
  display:grid;
  grid-template-columns:auto;
  gap:36px;
  align-items:start;
}

.section-title{
  margin:0 0 14px;
  font-size:22px;
  letter-spacing:-.02em;
  color:var(--ink-900);
}

.review-card{
  border:1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding:16px 16px 14px;
  box-shadow: var(--shadow-1);
  margin-bottom:14px;
  transition: box-shadow .18s ease, border-color .18s ease;
}

.review-card:hover{
  box-shadow: var(--shadow-2);
  border-color: var(--line-strong);
}

.review-top{
  display:grid;
  grid-template-columns: 44px 1fr auto;
  gap:12px;
  align-items:center;
}

.reviews-grid .form-col.is-open{
  display:block;
}

.avatar{
  width:44px;
  height:44px;
  border-radius:999px;
  display:grid;
  place-items:center;
  font-weight:900;
  font-size:12px;
  color: var(--ink-900);
  border: 1px solid rgba(26,35,62,.18);
  background: var(--surface-2);
}

.review-name{font-weight:900; font-size:13px}
.review-sub{color:var(--muted); font-size:12px; margin-top:2px}
.review-date{color:var(--muted); font-size:12px}

.review-stars{margin:12px 0 10px; display:flex; gap:2px}
.review-text{
  margin:0;
  font-size:13px;
  line-height:1.65;
  color:var(--ink-700);
}

/* =========================
   Add Review Form
   ========================= */
.helper{
  margin:-6px 0 14px;
  color:var(--muted);
  font-size:12px;
}

.req{
  color: var(--accent);
  font-weight:900;
}

.review-form{
  border:1px solid var(--line);
  border-radius: var(--radius-sm);
  padding:16px;
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

.form-row{margin-bottom:12px}

.label{
  display:block;
  font-size:12px;
  font-weight:900;
  margin-bottom:6px;
  color:var(--ink-900);
}

.input,.textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius: var(--radius-sm);
  padding:10px 12px;
  outline:none;
  font-size:13px;
  transition: box-shadow .18s ease, border-color .18s ease, background .18s ease;
  background: var(--surface);
}

.input:focus,.textarea:focus{
  border-color: var(--line-strong);
  box-shadow: var(--focus);
  background: var(--surface-2);
}

.rating-input{display:flex; gap:6px}

.rate-star{
  width:34px;
  height:34px;
  border-radius: var(--radius-sm);
  border:1px solid var(--line);
  background: var(--surface);
  cursor:pointer;
  font-size:18px;
  color: rgba(26,35,62,.20);
  transition: box-shadow .18s ease, border-color .18s ease, color .18s ease, background .18s ease;
}

.rate-star:hover{
  border-color: var(--line-strong);
  box-shadow: var(--focus);
  background: var(--surface-2);
}

.rate-star.is-on{color: var(--accent)}

.check{
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-size:12px;
  color:var(--ink-700);
  margin:4px 0 14px;
}

.check input{margin-top:3px}

.btn-submit{width:160px}

.reviews-grid .form-col{display:none}

.review-title{
  display:flex;
  gap:15px;
  align-items:baseline;
}

.btn-add-review{padding:0 10px}

.panel-body ul li{
  list-style:disc;
  line-height:2em;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 1020px){
  .pdp{grid-template-columns: 1fr; gap:20px}
  .actions{grid-template-columns: 140px 1fr;}
  .actions .btn-dark{grid-column: 2 / -1}
  .reviews-grid{grid-template-columns: 1fr}
}

@media (max-width: 520px){
  .actions{grid-template-columns: unset;}
  .thumbs{grid-template-columns: 25px 1fr 25px;}
  .thumb-nav{width:25px;}
  .kz-lb-nav{background: rgba(0,0,0,0.5);}
  .spec-grid{grid-template-columns: 1fr;}
}

/* Keep compare calm (no green) */
.compare{color: var(--ink-900);}

/* Small fixes */
#product h1{
  padding:0;
  margin-top:0;
}

.actions .cart-buttons .btn-primary:focus{color: var(--checkout-ink);}

/* =========================
   Lightbox
   ========================= */
.kz-lightbox{
  position:fixed; inset:0;
  background:rgba(0,0,0,.78);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
  padding:24px;
}

.kz-lightbox.is-open{display:flex !important;}

.kz-lb-figure{
  margin:0;
  max-width:min(980px, 92vw);
  max-height:88vh;
  display:flex;
  align-items:center;
  justify-content:center;
}

.kz-lb-img{
  max-width:100%;
  max-height:88vh;
  display:block;
  border-radius: var(--radius-sm);

  /* animation base */
  opacity:1;
  transform:translateX(0) scale(1);
  transition: opacity .18s ease, transform .18s ease;
  will-change: opacity, transform;
}

/* when changing (fade out + slide slightly) */
.kz-lightbox.is-changing .kz-lb-img{
  opacity:0;
  transform:translateX(var(--kz-shift, 0px)) scale(.99);
}

/* optional: little pop-in after loaded */
.kz-lightbox.is-loaded .kz-lb-img{
  opacity:1;
  transform:translateX(0) scale(1);
}

.kz-lb-close{
  position:absolute; top:14px; right:14px;
  width:44px; height:44px;
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  color:#fff;
  font-size:28px;
  line-height:1;
  cursor:pointer;
}

.kz-lb-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:52px; height:52px;
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  color:#fff;
  font-size:34px;
  cursor:pointer;
}

.kz-lb-prev{left:14px;}
.kz-lb-next{right:14px;}

@media (max-width: 640px){
  .kz-lb-nav{width:44px; height:44px; font-size:30px;}
}


/* Special Attributes*/

/* Attribute tables (Kazoku-style neutral, clean, responsive) */
.kz-attr-stack,
.kz-attr-duo{
  margin-top: 14px;
}

.kz-attr-card{
  border: 1px solid rgba(11,18,36,.10);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: 0 10px 22px rgba(11,18,36,.06);
  overflow: hidden;
}

.kz-attr-stack .kz-attr-card{
  margin-bottom: 12px;
}

.kz-attr-table{
  width: 100%;
  border-collapse: collapse;
}

.kz-attr-table thead th{
  text-align: left;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #1a233e;
  background: rgba(11,18,36,.04);
  padding: 12px 14px;
  border-bottom: 1px solid rgba(11,18,36,.10);
}

.kz-attr-table tbody td{
  padding: 11px 14px;
  border-bottom: 1px solid rgba(11,18,36,.08);
  vertical-align: top;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(11,18,36,.88);
}

.kz-attr-table tbody tr:last-child td{
  border-bottom: 0;
}

.kz-attr-key{
  width: 42%;
  font-weight: 800;
  color: rgba(11,18,36,.92);
}

.kz-attr-val{
  width: 58%;
  color: rgba(11,18,36,.78);
}

/* Duo layout: Handle + Steel side-by-side */
.kz-attr-duo{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

/* Mobile: stack */
@media (max-width: 768px){
  .kz-attr-duo{
    grid-template-columns: 1fr;
  }
  .kz-attr-key,
  .kz-attr-val{
    width: auto;
  }
}

/* Optional: better density on very small screens */
@media (max-width: 420px){
  .kz-attr-table tbody td{
    padding: 10px 12px;
    font-size: 13px;
  }
}
