/* ============================================
   SHOPZONE — Design System
   Aesthetic: Clean Market / Bold Editorial
   Fonts: Clash Display + DM Sans
============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700;800&display=swap');

/* ── Variables ── */
:root {
  --bg: #ffffff;
  --bg-card: #ffffff;
  --bg-subtle: #faf8f4;
  --text: #1a1714;
  --text-muted: #6b6560;
  --text-light: #9e9994;
  --accent: #b8860b;
  --accent-hover: #96690a;
  --accent-light: #fbf3e0;
  --gold: #c9a227;
  --gold-deep: #8a6c1f;
  --black: #0d0d0d;
  --border: #e8e2d4;
  --border-strong: #d4cab0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.18);
  --radius: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --font-display: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --nav-h: 76px;
  --transition: 0.2s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font-body); border: none; outline: none; }
input, select, textarea { font-family: var(--font-body); font-size: 15px; outline: none; }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { color: var(--text-muted); }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }

/* ── Navbar ── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}
.announcement-bar {
  background: var(--black);
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  letter-spacing: 0.03em;
  padding: 8px 0;
  display: flex; align-items: center; justify-content: space-between;
}
.announcement-bar a { color: var(--gold); white-space: nowrap; }

@media (max-width: 600px) {
  .announcement-bar {
    font-size: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 16px;
  }
  .announcement-bar > div {
    flex-wrap: nowrap !important;
    white-space: nowrap;
  }
  .announcement-bar span:first-child {
    flex-shrink: 0;
  }
}
.category-bar {
  background: var(--black);
  height: 44px;
  overflow-x: auto;
}
.category-bar-inner {
  display: flex; align-items: center;
  gap: 28px;
  height: 100%;
}
.category-bar a {
  color: rgba(255,255,255,0.75);
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color var(--transition);
}
.category-bar a:hover { color: var(--gold); }
.category-bar a.sale { color: #e0524a; }
.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}
.nav-search { flex: 1; max-width: 420px; display: flex; align-items: center; background: var(--bg-card); border: 1.5px solid var(--border); border-radius: 50px; padding: 0 16px; gap: 8px; transition: border-color var(--transition); }
.nav-search:focus-within { border-color: var(--accent); }
.nav-search input { flex: 1; background: none; border: none; padding: 10px 0; color: var(--text); }
.nav-search input::placeholder { color: var(--text-light); }
.nav-search button { background: none; color: var(--text-muted); display: flex; padding: 0; transition: color var(--transition); }
.nav-search button:hover { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-link { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 50px; font-size: 14px; font-weight: 500; color: var(--text-muted); transition: all var(--transition); }
.nav-link:hover { background: var(--bg-subtle); color: var(--text); }
.cart-btn { display: flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 50px; background: var(--text); color: var(--bg); font-size: 14px; font-weight: 500; transition: all var(--transition); }
.cart-btn:hover { background: var(--accent); }
.cart-count { background: var(--accent); color: white; border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.cart-btn:hover .cart-count { background: white; color: var(--accent); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius); font-size: 15px; font-weight: 500; transition: all var(--transition); white-space: nowrap; }
.btn-primary {
  background: var(--black); color: white;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 13px; font-weight: 700;
}
.btn-primary:hover { background: var(--gold-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--bg-subtle); color: var(--text); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--border-strong); background: var(--bg-card); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--text); }
.btn-lg { padding: 15px 32px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ── Product Card ── */
.product-card { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition); cursor: pointer; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.product-card-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--bg-subtle); transition: transform 0.4s ease; }
.product-card:hover .product-card-img { transform: scale(1.04); }
.product-card-img-wrap { overflow: hidden; position: relative; }
.product-card-badge { position: absolute; top: 12px; left: 12px; background: var(--accent); color: white; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 50px; text-transform: uppercase; letter-spacing: 0.05em; }
.product-card-badge.out { background: var(--text-muted); }
.product-card-body { padding: 16px; }
.product-card-category { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-light); margin-bottom: 4px; }
.product-card-name { font-family: var(--font-display); font-size: 1rem; font-weight: 600; margin-bottom: 8px; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.product-card-price { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--text); }
.product-card-add { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: white; display: flex; align-items: center; justify-content: center; font-size: 20px; transition: all var(--transition); }
.product-card-add:hover { background: var(--accent-hover); transform: scale(1.1); }

/* ── Products Grid ── */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }

/* ── Pills ── */
.pill { display: inline-flex; align-items: center; padding: 7px 16px; border-radius: 50px; font-size: 13px; font-weight: 500; border: 1.5px solid var(--border); background: var(--bg-card); color: var(--text-muted); cursor: pointer; transition: all var(--transition); white-space: nowrap; }
.pill:hover, .pill.active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ── Form Elements ── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.form-input { width: 100%; padding: 12px 16px; background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--radius); color: var(--text); transition: border-color var(--transition); }
.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--text-light); }
.form-select { width: 100%; padding: 12px 16px; background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--radius); color: var(--text); appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6560' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; transition: border-color var(--transition); }
.form-select:focus { border-color: var(--accent); }

/* ── Empty State ── */
.empty-state { text-align: center; padding: 80px 24px; color: var(--text-muted); }
.empty-state-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { font-family: var(--font-display); color: var(--text); margin-bottom: 8px; }

/* ── Toast ── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 1000; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--text); color: var(--bg); padding: 14px 20px; border-radius: var(--radius); font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-lg); animation: toastIn 0.3s ease; max-width: 320px; }
.toast.success::before { content: '✓'; color: #4ade80; font-weight: 700; }
.toast.error::before { content: '✕'; color: #f87171; font-weight: 700; }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* ── Footer ── */
.footer { background: var(--text); color: var(--bg); padding: 48px 0 24px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin-bottom: 12px; }
.footer-logo span { color: var(--accent); }
.footer p { color: rgba(247,245,240,0.55); font-size: 14px; }
.footer-heading { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(247,245,240,0.4); margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: rgba(247,245,240,0.7); transition: color var(--transition); }
.footer-links a:hover { color: var(--bg); }
.footer-bottom { border-top: 1px solid rgba(247,245,240,0.1); padding-top: 24px; font-size: 13px; color: rgba(247,245,240,0.35); display: flex; justify-content: space-between; align-items: center; }

/* ── Page Header ── */
.page-header { padding: 48px 0 32px; border-bottom: 1px solid var(--border); margin-bottom: 40px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-light); margin-bottom: 12px; }
.breadcrumb a { transition: color var(--transition); }
.breadcrumb a:hover { color: var(--accent); }

/* ── Skeleton ── */
.skeleton { background: linear-gradient(90deg, var(--bg-subtle) 25%, var(--border) 50%, var(--bg-subtle) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-link { display: none; }
  .nav-search {
    display: flex;
    width: 40px;
    max-width: 40px;
    padding: 0;
    border: none;
    background: none;
    justify-content: center;
  }
  .nav-search input {
    display: none;
  }
  .nav-search button {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--bg-subtle);
    color: var(--text);
    display: flex; align-items: center; justify-content: center;
  }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
.nav-search.mobile-expanded {
  width: 130px;
  max-width: 130px;
  padding: 0 10px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  position: absolute;
  left: 50%;
  transform: translateX(-58%);
  top: 14px;
  z-index: 200;
  gap: 4px;
  box-sizing: border-box;
  overflow: hidden;
}
.nav-search.mobile-expanded input {
  display: block !important;
  font-size: 13px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-search.mobile-expanded button svg {
  width: 12px; height: 12px;
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
}
/* ── Gold Hero Section ── */
.hero-gold {
  position: relative;
  height: 560px;
  overflow: hidden;
}
.hero-gold-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-gold-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    90deg,
    rgba(13,13,13,0.78) 0%,
    rgba(13,13,13,0.55) 35%,
    rgba(13,13,13,0.15) 60%,
    rgba(13,13,13,0.45) 100%
  );
  z-index: 1;
}
.hero-gold-content {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; align-items: center;
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.hero-gold-text { max-width: 480px; }
.hero-gold-text h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 18px;
  font-weight: 700;
}
.hero-gold-text p {
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  margin-bottom: 28px;
  font-family: var(--font-body);
  line-height: 1.6;
}
.hero-gold-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--black);
  padding: 14px 30px;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all var(--transition);
}
.hero-gold-btn:hover {
  background: var(--gold);
  color: #fff;
  transform: translateY(-2px);
}
@media (max-width: 768px) {
  .hero-gold { height: 460px; }
  .hero-gold-content { padding: 0 24px; }
  .hero-gold-overlay {
    background: linear-gradient(180deg, rgba(13,13,13,0.3) 0%, rgba(13,13,13,0.85) 100%);
  }
  .hero-gold-content { align-items: flex-end; padding-bottom: 48px; }
}
