/* ============ SHOP (Products page + cart) ============ */
.nav-links a.active { color: var(--acc2); background: rgba(255,255,255,.12); }

/* cart button in nav */
.cart-btn {
  position: relative; background: rgba(255,255,255,.06); border: 1px solid var(--line);
  border-radius: 999px; width: 44px; height: 44px; display: grid; place-items: center;
  cursor: pointer; color: var(--white); transition: border-color .2s, color .2s; flex: none;
}
.cart-btn:hover { border-color: var(--acc1); color: var(--acc2); }
.cart-btn svg { width: 21px; height: 21px; }
.cart-count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--grad); color: #1a0e04; font-size: .72rem; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}
.cart-count.zero { display: none; }

/* shop hero */
.shop-hero { padding: 150px 0 30px; }
.shop-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; margin-bottom: 10px; }
.shop-hero p { color: var(--muted); max-width: 640px; }
.shop-hero .crumb { color: var(--muted); font-size: .88rem; margin-bottom: 14px; }
.shop-hero .crumb a { color: var(--acc2); }

/* product grid */
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-bottom: 40px; }
.product-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; transition: transform .3s, border-color .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); border-color: rgba(255,107,53,.5); box-shadow: var(--shadow); }
.product-img { position: relative; aspect-ratio: 1; overflow: hidden; background: #f3e9d8; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .product-img img { transform: scale(1.06); }
.product-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2; font-size: .74rem; font-weight: 700;
  letter-spacing: .4px; padding: 6px 12px; border-radius: 999px; color: #1a0e04; background: var(--grad);
}
.product-badge.save { background: #22c55e; color: #04150a; }
.product-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-name { font-family: var(--font-d); font-size: 1.05rem; font-weight: 700; line-height: 1.35; }
.product-desc { color: var(--muted); font-size: .9rem; line-height: 1.55; flex: 1; }
.product-price { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 6px; }
.price-now { font-family: var(--font-d); font-size: 1.35rem; font-weight: 800; color: var(--acc2); }
.price-old { color: var(--muted); text-decoration: line-through; font-size: .95rem; }
.add-cart { width: 100%; text-align: center; }
.add-cart.added { background: #22c55e; color: #04150a; box-shadow: none; }

/* how it works strip */
.shop-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 0 0 96px; }
.shop-step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px; text-align: center;
}
.shop-step .step-n {
  width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 50%; background: var(--grad);
  display: grid; place-items: center; font-family: var(--font-d); font-weight: 800; color: #1a0e04;
}
.shop-step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.shop-step p { color: var(--muted); font-size: .9rem; }

/* cart drawer */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 190;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(400px, 92vw);
  background: var(--bg2); border-left: 1px solid var(--line); z-index: 200;
  transform: translateX(105%); transition: transform .35s ease;
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px; border-bottom: 1px solid var(--line);
}
.cart-head h3 { font-size: 1.2rem; }
.cart-close {
  background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--white);
  width: 36px; height: 36px; border-radius: 50%; font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.cart-items { flex: 1; overflow-y: auto; padding: 8px 22px; }
.cart-empty { color: var(--muted); text-align: center; padding: 48px 0; }
.cart-item {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.cart-item-name { font-weight: 600; font-size: .92rem; line-height: 1.35; }
.cart-item-price { color: var(--acc2); font-weight: 700; font-size: .92rem; margin-top: 2px; }
.cart-qty { display: flex; align-items: center; gap: 8px; }
.cart-qty button {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,255,255,.06); color: var(--white); cursor: pointer; font-size: 1rem; line-height: 1;
}
.cart-qty span { min-width: 18px; text-align: center; font-weight: 600; }
.cart-remove {
  background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .82rem;
  text-decoration: underline; padding: 0; margin-top: 4px;
}
.cart-foot { border-top: 1px solid var(--line); padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.05rem; }
.cart-total strong { font-family: var(--font-d); color: var(--acc2); font-size: 1.25rem; }
.cart-order, .cart-clear { width: 100%; text-align: center; }
.cart-note { color: var(--muted); font-size: .82rem; text-align: center; }

@media (max-width: 960px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .shop-grid { grid-template-columns: 1fr; }
  .shop-hero { padding-top: 130px; }
}
