/* KazokuKnives - related.css (Kazoku Modern compliant)
   Extra rules (saved for all future refactors):
   1) Replace ALL var(--radius-md) usage with var(--radius-sm)
   2) Carousel nav style: Zwilling-light
      - white background + light border
      - clear enabled vs disabled states
   3) Paging/dots: minimal; state indicated mainly by background variation

   Global guidelines:
   - No red, no gradients, no pure-black styling (use tokens)
   - Indigo for system/secure actions
   - Green reserved ONLY for Add to Cart
   - Copper accent used sparingly
   - Radius system: use --radius-sm only (per extra rule)
*/

/* =========================
   Related Section
   ========================= */
.related{
  padding: 18px 0 8px;
  margin-top: 60px;
}
.related-title{
  margin: 0 0 12px;
  font-size: 25px;
  line-height: 1.25;
  font-weight: 700;
  text-align: center;
  color: var(--ink-900);
}

/* Owl stage padding for edge breathing */
.related-carousel .owl-stage-outer{
  padding: 6px 0 18px;
}


/* wishlist mini (calm; copper on active) */
.wish-mini{
  position:absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  color: var(--ink-900);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .18s ease, color .16s ease;
  z-index: 9;
}
.wish-mini:hover{
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: var(--surface);
  box-shadow: var(--focus);
}
.wish-mini:active{ transform: translateY(0); }
.wish-mini.is-active{
  color: var(--accent);
  border-color: rgba(188,124,86,.45);
  background: rgba(188,124,86,.08);
}


/* ---------- Product card ---------- */
.kz-card {
  position: relative;
  background: transparent;
  border-radius: var(--radius-sm);
}

/* Media shell is NOT an <a> anymore */
.kz-card__media {
  position: relative; /* anchor absolute actions */
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: transparent;
  /*  border:1px solid var(--line);*/
}
.kz-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11, 18, 36, 0) 55%,
    rgba(11, 18, 36, 0.06)
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

/* Link wraps exactly image block */
.kz-card__link {
  display: block;
  position: relative;
}

/* Images */
.kz-card__img {
  width: 100%;
  object-fit: contain;
  transform: translateZ(0) scale(1);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.kz-card__img--alt {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateZ(0) scale(1.02);
  pointer-events: none;
}

/* Hover interactions (triggered by card hover, not anchor) */
.kz-card:hover .kz-card__img {
  transform: scale(1.02);
}
.kz-card:hover .kz-card__img--alt {
  opacity: 1;
}
.kz-card:hover .kz-card__media::after {
  opacity: 1;
}

/* ---------- Floating actions (ICON only) ---------- */
#product-product .kz-actions {
  position: absolute;
  right: 10px;
  bottom: 10px;

  display: flex;
  gap: 8px;
  align-items: center;

  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;

  z-index: 3;
  pointer-events: none;
}
#product-product .kz-card:hover .kz-actions {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#product-product .kz-action {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--action);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  display: grid;
  place-items: center;
  color: #fff;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
#product-product .kz-action:hover {
  border-color: rgba(26, 35, 62, 0.28);
  box-shadow: var(--btn-shadow-sm);
  transform: translateY(-2px);
}
#product-product .kz-action:active {
  transform: translateY(0);
  box-shadow: var(--btn-shadow-active);
}
#product-product .kz-action:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
#product-product .kz-action .kz-ico {
  width: 18px;
  height: 18px;
}
#product-product .kz-action--cart {
  border-color: rgba(45, 90, 66, 0.26);
}
#product-product .kz-action--cart:hover {
  border-color: rgba(45, 90, 66, 0.4);
  box-shadow: var(--btn-cart-shadow);
}

/* Mobile: always visible actions */
@media (max-width: 768px) {
  #product-product .kz-actions {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

/* ---------- Card body ---------- */
.kz-card__body {
  padding: 12px 2px 0;
}
.kz-card__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14.5px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: 0.1px;
  margin: 0 0 6px;
}
.kz-card__meta {
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--muted);
  margin: 0 0 10px;
}
.kz-card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
}
.kz-card__price strong {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-900);
}
.kz-card__price s {
  font-size: 12.5px;
  color: var(--ink-400);
}

/* Optional chip (subtle) */
.kz-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid rgba(188, 124, 86, 0.22);
  padding: 6px 10px;
  border-radius: 999px;
  margin-top: 10px;
}

/* =========================
   Owl nav + dots (Zwilling-light)
   ========================= */
.related-carousel{
  position: relative;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

/* NAV */
.related-carousel .owl-nav{
  position: absolute;
  top: -56px;
  right: 0;
  display:flex;
  gap: 12px;
}

.related-carousel .owl-nav button{
  width: 44px;
  height: 44px;
  border-radius: 999px; /* matches reference: round control */
  border: 1px solid rgba(26,35,62,.22) !important;
  background: var(--surface) !important;
  color: var(--ink-900) !important;
  box-shadow: none;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .12s ease, opacity .18s ease;
}

/* Enabled (can navigate) */
.related-carousel .owl-nav button:not(.disabled):hover{
  background: var(--surface-2) !important;
  border-color: rgba(26,35,62,.32) !important;
  box-shadow: var(--focus);
  transform: translateY(-1px);
}

.related-carousel .owl-nav button:not(.disabled):active{
  transform: translateY(0);
  box-shadow: none;
}

/* Disabled state (cannot navigate) */
.related-carousel .owl-nav button.disabled,
.related-carousel .owl-nav button:disabled{
  opacity: .35;
  cursor: not-allowed;
  box-shadow: none;
  background: var(--surface) !important;
  border-color: rgba(26,35,62,.16) !important;
}

.related-carousel .owl-nav button span{
  font-size: 26px;
  line-height: 1;
  display:block;
  transform: translateY(-1px);
}

/* DOTS (paging) */
.related-carousel .owl-dots{
  display:flex;
  justify-content:center;
  gap: 10px;
  margin-top: 10px;
}

.related-carousel .owl-dot span{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display:block;
  background: rgba(26,35,62,.18);
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

/* Active: darker fill (indigo) */
.related-carousel .owl-dot.active span{
  background: var(--ink-900);
}

/* Hover: subtle */
.related-carousel .owl-dot:hover span{
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px rgba(26,35,62,.10);
}

/* keep each item full height (if you want equal heights) */
.related-carousel .owl-item{
  display:flex;
}
.related-carousel .owl-item .prod-card{
  width: 100%;
}

.related-carousel .owl-stage{
  display: flex;
}

.related-carousel .owl-item{
  touch-action: pan-y;
}

/* RESPONSIVE */
@media (max-width: 520px){
  .related-title { font-size: 20px; text-align: left; margin-bottom: 21px;}
  .prod-name { font-size: 14px; }
  .related-carousel .owl-nav{ top: -52px; }
  .related-carousel .owl-nav button{ width: 42px; height: 42px; }
}

/* ===== Product Rating ===== */
.kz-prod__rating{
  display:flex;
  align-items:center;
  gap:8px;
  margin:8px 0 10px;
  font-size:13px;
  line-height:1;
}

.kz-prod__rating .star{
  color:#d1d5db; /* muted gray */
  font-size:14px;
  letter-spacing:1px;
}

.kz-prod__rating .star.is-on{
  color:#f59e0b; /* gold */
}

.kz-prod__rating .prod-score{
  font-weight:600;
  color:#111827;
  white-space:nowrap;
}

.kz-prod__rating .muted{
  color:#6b7280;
  font-weight:400;
  margin-left:2px;
}
