/* shop.html — page-specific styles */


/* ——— NAV ——— */
.nav {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: rgba(245,241,232,0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) { .nav { padding: 14px 48px; } }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 40px; width: auto; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-back {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); transition: color .2s;
}
.nav-back:hover { color: var(--ink); }
.cart-btn {
  position: relative;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  transition: transform .2s var(--ease-spring);
}
.cart-btn:hover { transform: scale(1.08); }
.cart-count {
  position: absolute; top: -4px; right: -4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  display: grid; place-items: center;
  opacity: 0; transform: scale(0);
  transition: opacity .2s, transform .3s var(--ease-spring);
}
.cart-count.visible { opacity: 1; transform: scale(1); }

/* ——— SHOP PAGE HEADER ——— */
.shop-header {
  max-width: 1320px; margin: 0 auto;
  padding: 32px 24px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) { .shop-header { padding: 32px 48px 24px; } }
.shop-header-left { display: flex; flex-direction: column; gap: 4px; }
.shop-header h1 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em;
  color: var(--ink);
}
.shop-header-count {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}

/* ——— PRODUCTS GRID ——— */
.products {
  max-width: 1320px; margin: 0 auto;
  padding: 32px 24px 120px;
  display: grid; grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 700px) { .products { grid-template-columns: 1fr 1fr; padding: 32px 48px 120px; } }
@media (min-width: 1100px) { .products { grid-template-columns: repeat(3, 1fr); } }

/* ——— PRODUCT CARD ——— */
.product-card {
  background: #fff;
  border-radius: var(--radius);
  border: 2px solid var(--line);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .25s;
  position: relative;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 56px -24px rgba(26,20,16,0.22);
  border-color: var(--brand);
}
.product-card.featured { grid-column: span 1; }
@media (min-width: 700px) { .product-card.featured { grid-column: span 2; } }
@media (min-width: 1100px) { .product-card.featured { grid-column: span 1; } }

.product-badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  padding: 6px 12px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(26,20,16,0.06);
}
.product-flag {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  padding: 6px 12px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  background: var(--brand); color: #fff;
}

.product-img {
  position: relative;
  background: var(--bg-2);
  height: clamp(200px, 22vw, 280px);
  display: block;
  overflow: hidden;
}
.product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1) translateY(0);
  transition: transform .5s var(--ease-spring);
}
.product-card:hover .product-img img {
  transform: scale(1.06) translateY(-6px);
}
.product-img-bg {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .3s;
}
.product-card:hover .product-img-bg { opacity: 1; }

.product-body {
  padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.product-label {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.product-name {
  font-family: var(--font-display); font-weight: 900; font-style: italic;
  font-size: clamp(22px, 2.4vw, 32px); line-height: 1; letter-spacing: -0.02em;
  color: var(--ink);
}
.product-desc {
  color: var(--muted); font-size: 14px; line-height: 1.5; flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.product-footer {
  display: flex; flex-direction: column; align-items: stretch;
  margin-top: 12px; gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.product-footer .product-actions { justify-content: space-between; }
.product-price {
  font-family: var(--font-display); font-weight: 900; font-style: italic;
  font-size: 28px; letter-spacing: -0.03em; color: var(--ink);
}

/* Qty + Add to cart */
.product-actions { display: flex; align-items: center; gap: 10px; }
.qty-wrap {
  display: flex; align-items: center; gap: 0;
  border: 2px solid var(--line); border-radius: 999px;
  overflow: hidden;
}
.qty-btn {
  width: 34px; height: 34px;
  background: none; border: 0;
  font-size: 18px; font-weight: 700; color: var(--ink);
  display: grid; place-items: center;
  transition: background .15s;
}
.qty-btn:hover { background: var(--bg-2); }
.qty-val {
  min-width: 28px; text-align: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
}
.add-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  background: var(--ink); color: #fff;
  border-radius: 999px;
  font-weight: 800; font-size: 13px;
  box-shadow: 0 4px 0 rgba(26,20,16,0.3);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.add-btn:hover { background: var(--brand); box-shadow: 0 4px 0 var(--brand-deep); transform: translateY(-2px); }
.add-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(26,20,16,0.3); }
.add-btn.added { background: #22a06b; box-shadow: 0 4px 0 #176e4b; }

/* ——— CART DRAWER ——— */
.cart-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(26,20,16,0.5);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 201;
  width: min(420px, 100vw);
  background: var(--bg);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .4s var(--ease-spring);
  box-shadow: -24px 0 60px rgba(26,20,16,0.18);
}
.cart-drawer.open { transform: translateX(0); }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px; border-bottom: 2px solid var(--line);
}
.cart-head h3 { font-size: 22px; }
.cart-close-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--line); display: grid; place-items: center;
  transition: background .2s;
}
.cart-close-btn:hover { background: var(--line); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.cart-empty {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: var(--muted); font-size: 14px;
}
.cart-empty svg { opacity: .3; }
.cart-item {
  display: flex; gap: 14px; align-items: center;
  padding: 14px; border-radius: 16px;
  background: #fff; border: 1.5px solid var(--line);
}
.cart-item-img { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 800; font-size: 14px; }
.cart-item-price { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: 2px; }
.cart-item-remove {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--line); display: grid; place-items: center;
  color: var(--muted); font-size: 16px; flex-shrink: 0;
  transition: background .2s, color .2s;
}
.cart-item-remove:hover { background: #fee; color: #c00; border-color: #fcc; }
.cart-foot {
  padding: 20px 24px 32px;
  border-top: 2px solid var(--line);
  display: flex; flex-direction: column; gap: 16px;
}
.cart-total {
  display: flex; justify-content: space-between; align-items: baseline;
  font-weight: 800; font-size: 16px;
}
.cart-total-price {
  font-family: var(--font-display); font-weight: 900; font-style: italic;
  font-size: 28px; letter-spacing: -0.02em;
}
.checkout-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 24px;
  background: var(--ink); color: #fff;
  border-radius: 999px; font-weight: 800; font-size: 15px;
  box-shadow: 0 6px 0 rgba(26,20,16,0.25), 0 16px 32px -16px rgba(26,20,16,0.5);
  transition: transform .15s, box-shadow .15s, background .2s;
}
.checkout-btn:hover { background: var(--brand); box-shadow: 0 6px 0 var(--brand-deep), 0 16px 32px -16px rgba(79,179,232,0.5); transform: translateY(-2px); }
.checkout-note {
  text-align: center; font-size: 12px; color: var(--muted);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}

.cart-line-total {
  display: flex; justify-content: space-between; align-items: baseline;
  font-weight: 800; font-size: 16px;
}
.cart-line-vat {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px; color: var(--muted); font-weight: 600;
  margin-top: 2px;
}
.cart-line-vat span:last-child { font-family: var(--font-mono); font-weight: 700; }
.checkout-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ——— TRUST STRIP ——— */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  background: var(--bg-2);
}
.trust-strip .inner {
  max-width: 1320px; margin: 0 auto; padding: 0 24px;
  display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: center;
}
@media (min-width: 900px) { .trust-strip .inner { padding: 0 48px; justify-content: space-between; } }
.trust-item {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.trust-item svg { color: var(--brand); flex-shrink: 0; }
@media (max-width: 540px) {
  .trust-strip .inner { gap: 14px; flex-direction: column; align-items: flex-start; padding-left: 24px; }
  .trust-item { font-size: 10px; }
}

/* ——— FOOTER ——— */
.shop-footer {
  background: var(--ink); color: rgba(255,255,255,0.4);
  padding: 28px clamp(24px, 4vw, 64px);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
}
.shop-footer a { color: rgba(255,255,255,0.4); transition: color .2s; }
.shop-footer a:hover { color: #fff; }
