/* =============================================================
   AVWARTE — Clean Minimal v4
   Complete rebuild
   ============================================================= */

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-font-smoothing:antialiased; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #fff; color: #111; min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ── TOPBAR ── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 40px; position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid #f0f0f0;
}
.topbar-nav { display: flex; gap: 24px; }
.topbar-nav a {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: #888; transition: color 0.15s;
}
.topbar-nav a:hover, .topbar-nav a.active { color: #111; }
.topbar-logo {
  font-size: 20px; font-weight: 800; letter-spacing: -0.03em;
  text-transform: uppercase; color: #111;
}
.topbar-right { display: flex; gap: 16px; }
.cart-link {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: #888;
}
#cartCount {
  display: inline-flex; align-items: center; justify-content: center;
  background: #111; color: #fff; font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 50%; padding: 0 4px;
}

/* ── HERO ── */
.hero {
  text-align: center; padding: 80px 24px 60px; max-width: 700px; margin: 0 auto;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 56px); font-weight: 800; line-height: 1.08;
  letter-spacing: -0.03em; text-transform: uppercase; margin-bottom: 16px;
}
.hero p { font-size: 16px; color: #888; line-height: 1.5; max-width: 400px; margin: 0 auto 28px; }
.btn {
  display: inline-block; padding: 14px 36px; background: #111; color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 4px; transition: background 0.2s; cursor: pointer; border: none;
}
.btn:hover { background: #333; }

/* ── PAGE HEADER ── */
.page-header {
  text-align: center; padding: 48px 24px 32px; max-width: 700px; margin: 0 auto;
}
.page-header h1 {
  font-size: clamp(28px, 4vw, 40px); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em;
}
.page-header p { font-size: 15px; color: #888; margin-top: 8px; line-height: 1.5; }

/* ── PRODUCT GRID ── */
.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 20px;
  padding: 20px 40px 80px; max-width: 1400px; margin: 0 auto;
}
.card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: opacity 0.2s;
}
.card:hover { opacity: 0.85; }
.card-img {
  aspect-ratio: 1/1.05; background: #fafafa; display: flex;
  align-items: center; justify-content: center; padding: 20px;
  margin-bottom: 12px; border-radius: 4px; overflow: hidden;
}
.card-img img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  transition: transform 0.3s;
}
.card:hover .card-img img { transform: scale(1.03); }
.card-name {
  font-size: 12px; font-weight: 600; letter-spacing: 0.03em;
  text-transform: uppercase; margin-bottom: 4px; line-height: 1.3;
}
.card-price { font-size: 13px; font-weight: 700; }
.card-price-old { font-weight: 400; color: #bbb; text-decoration: line-through; margin-left: 8px; font-size: 12px; }
.card-soldout { font-size: 10px; color: #c50924; font-weight: 700; letter-spacing: 0.05em; margin-left: 8px; }
.card.sold-out .card-img img { opacity: 0.5; filter: grayscale(0.5); }

/* ── COLLECTION ── */
.collection-section { padding: 0 40px 40px; max-width: 1400px; margin: 0 auto; }
.collection-title {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding-bottom: 12px; border-bottom: 1px solid #eee; margin-bottom: 24px;
}
.collection-title span { font-weight: 400; color: #999; font-size: 12px; }

/* ── DETAIL ── */
.detail { max-width: 1200px; margin: 0 auto; padding: 32px 40px 80px; }
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.detail-gallery { background: #fafafa; border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; min-height: 500px; }
.detail-gallery img { max-width: 100%; max-height: 550px; object-fit: contain; }
.detail-thumbs { display: flex; gap: 10px; margin-top: 16px; }
.detail-thumbs img { width: 64px; height: 76px; object-fit: contain; background: #fff; padding: 6px; border: 1px solid #eee; border-radius: 4px; cursor: pointer; transition: border-color 0.2s; }
.detail-thumbs img:hover { border-color: #111; }
.detail-info { display: flex; flex-direction: column; gap: 16px; }
.detail-brand { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #c50924; }
.detail-name { font-size: 32px; font-weight: 800; line-height: 1.05; text-transform: uppercase; letter-spacing: -0.02em; }
.detail-sub { font-size: 15px; color: #888; }
.detail-price { font-size: 28px; font-weight: 700; }
.detail-price-old { font-size: 18px; font-weight: 400; color: #bbb; text-decoration: line-through; margin-left: 12px; }
.detail-desc { font-size: 14px; color: #555; line-height: 1.6; }
.detail-label { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #888; margin-top: 8px; }
.size-options { display: flex; gap: 8px; flex-wrap: wrap; }
.size-btn {
  min-width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  border: 1px solid #ddd; background: #fff; font-size: 14px; font-weight: 600;
  cursor: pointer; border-radius: 4px; transition: all 0.15s; font-family: Inter, sans-serif;
}
.size-btn:hover, .size-btn.active { border-color: #111; background: #111; color: #fff; }
.detail-list { font-size: 13px; color: #555; line-height: 1.8; list-style: none; }
.detail-list li { padding-left: 14px; position: relative; }
.detail-list li::before { content: '—'; position: absolute; left: 0; color: #ccc; }
.size-chart { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 8px; }
.size-chart th, .size-chart td { padding: 8px 10px; text-align: left; border-bottom: 1px solid #eee; }
.size-chart th { font-weight: 700; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: #888; }
.size-chart-note { font-size: 11px; color: #bbb; margin-top: 6px; }
.btn-add {
  width: 100%; padding: 16px; background: #111; color: #fff; border: none;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; border-radius: 4px; margin-top: 8px; transition: background 0.2s;
}
.btn-add:hover { background: #333; }
.btn-add:disabled { background: #ddd; color: #999; cursor: default; }
.detail-404 { text-align: center; padding: 80px 24px; font-size: 18px; color: #888; }
.detail-404 a { color: #111; text-decoration: underline; }

/* ── CHECKOUT ── */
.checkout { max-width: 800px; margin: 0 auto; padding: 40px 40px 80px; }
.checkout-title { font-size: 28px; font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; text-align: center; margin-bottom: 32px; }
.checkout-layout { display: grid; gap: 24px; }
.cart-item { display: flex; gap: 16px; padding: 16px; border: 1px solid #eee; border-radius: 4px; align-items: center; }
.cart-item-img { width: 80px; height: 96px; background: #fafafa; display: flex; align-items: center; justify-content: center; padding: 8px; border-radius: 4px; flex-shrink: 0; }
.cart-item-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 13px; font-weight: 600; text-transform: uppercase; }
.cart-item-size { font-size: 12px; color: #888; margin-top: 4px; }
.cart-item-price { font-size: 14px; font-weight: 600; margin-top: 6px; }
.cart-item-remove { background: none; border: none; font-size: 20px; color: #ccc; cursor: pointer; padding: 4px; }
.cart-item-remove:hover { color: #c50924; }
.summary-box { padding: 20px; border: 1px solid #eee; border-radius: 4px; }
.summary-total { font-size: 16px; }
.summary-total strong { font-size: 24px; font-weight: 800; }
.checkout-form { margin-top: 16px; }
.checkout-form h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.checkout-form input, .checkout-form textarea {
  width: 100%; padding: 10px 14px; border: 1px solid #ddd; border-radius: 4px;
  font-family: Inter, sans-serif; font-size: 14px;
}
.checkout-form input:focus, .checkout-form textarea:focus { outline: none; border-color: #111; }
.checkout-form textarea { margin-bottom: 10px; }
.note { font-size: 11px; color: #bbb; margin-top: 10px; text-align: center; }
.empty { text-align: center; padding: 40px; color: #888; font-size: 15px; }
.empty a { color: #111; text-decoration: underline; }

/* ── FOOTER ── */
.footer { border-top: 1px solid #f0f0f0; margin: 0 40px; padding: 50px 0 30px; max-width: 1400px; margin-left: auto; margin-right: auto; padding-left: 0; padding-right: 0; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-logo { font-size: 18px; font-weight: 800; letter-spacing: -0.03em; text-transform: uppercase; margin-bottom: 8px; }
.footer-brand p { font-size: 13px; color: #999; line-height: 1.5; max-width: 260px; }
.footer-socials { display: flex; gap: 10px; margin-top: 14px; }
.footer-socials a {
  width: 34px; height: 34px; border: 1px solid #eee; display: flex;
  align-items: center; justify-content: center; border-radius: 50%;
  font-size: 12px; color: #888; transition: all 0.15s; font-weight: 500;
}
.footer-socials a:hover { border-color: #111; color: #111; }
.footer-links h4 {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #888; margin-bottom: 14px;
}
.footer-links a { display: block; font-size: 13px; color: #555; margin-bottom: 8px; transition: color 0.15s; }
.footer-links a:hover { color: #111; }
.footer-big {
  font-size: clamp(56px, 12vw, 120px); font-weight: 900; color: #f5f5f5;
  line-height: 1; text-align: center; user-select: none; letter-spacing: -0.04em;
}
.footer-bottom {
  border-top: 1px solid #f0f0f0; padding-top: 20px; margin-top: 10px;
  text-align: center; font-size: 12px; color: #bbb;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
  .topbar { padding: 14px 20px; }
  .topbar-nav { gap: 16px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); padding: 16px 16px 60px; gap: 24px 12px; }
  .hero { padding: 60px 20px 40px; }
  .detail { padding: 20px 16px 60px; }
  .detail-layout { grid-template-columns: 1fr; gap: 30px; }
  .detail-gallery { min-height: 300px; padding: 20px; }
  .footer { margin: 0 20px; padding: 40px 0 20px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .checkout { padding: 24px 16px 60px; }
  .collection-section { padding: 0 16px 30px; }
}
@media (max-width: 480px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
