:root {
  --dark: #0d0b0a;
  --dark-2: #1c1512;
  --card: #171310;
  --card-2: #1f1a16;
  --border: #322722;
  --red: #e2342a;
  --red-dark: #a4172a;
  --orange: #ff8a3d;
  --gold: #f2b544;
  --gold-light: #ffd98a;
  --cream: #0d0b0a;
  --cream-2: #1c1512;
  --ink: #f2e9da;
  --ink-soft: #b3a89a;
  --danger: #ff4d4d;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  --glow: 0 0 24px rgba(226, 52, 42, 0.25);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--dark);
  color: var(--ink);
}

h1, h2, h3, h4 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--gold-light);
  margin: 0 0 0.5em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Header ---- */
.site-header {
  background: #0a0908;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: bold;
  color: var(--ink);
  letter-spacing: 1px;
  white-space: nowrap;
}
.logo span { color: var(--red); text-shadow: 0 0 14px rgba(226,52,42,0.5); }
.logo img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 16px rgba(226, 52, 42, 0.45);
}

.main-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--gold-light);
  border-bottom-color: var(--red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  box-shadow: 0 0 14px rgba(226,52,42,0.35);
}
.cart-count {
  background: var(--gold);
  color: #1a1310;
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  padding: 0 5px;
}

.nav-toggle { display: none; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; box-shadow: 0 0 14px rgba(226,52,42,0.3); }
.btn-primary:hover { box-shadow: 0 0 22px rgba(226,52,42,0.55); transform: translateY(-1px); }
.btn-gold { background: linear-gradient(135deg, var(--gold), #c9861f); color: #1a1310; }
.btn-gold:hover { box-shadow: 0 0 20px rgba(242,181,68,0.45); }
.btn-outline { background: transparent; border: 1.5px solid var(--gold); color: var(--gold-light); }
.btn-outline:hover { background: var(--gold); color: #1a1310; }
.btn-block { width: 100%; text-align: center; }
.btn-small { padding: 8px 16px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---- Hero ---- */
.hero {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(226,52,42,0.25), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(242,181,68,0.12), transparent 50%),
    linear-gradient(160deg, #100c0a, #050403);
  color: #fff;
  padding: 70px 0;
  border-bottom: 1px solid var(--border);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero-eyebrow {
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  font-weight: 700;
}
.hero h1 {
  color: #fdf6ea;
  font-size: 44px;
  line-height: 1.15;
  margin: 14px 0 18px;
  text-shadow: 0 0 30px rgba(226,52,42,0.25);
}
.hero p {
  font-size: 16px;
  color: #cfc4b6;
  max-width: 480px;
  line-height: 1.6;
  margin-bottom: 26px;
}
.hero-actions { display: flex; gap: 14px; }
.hero-art {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  box-shadow: var(--glow);
}
.hero-art .badge-large {
  font-family: Georgia, serif;
  font-size: 20px;
  color: var(--gold-light);
}

/* ---- Sections ---- */
.section { padding: 60px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 30px;
  gap: 20px;
  flex-wrap: wrap;
}
.section-head p { color: var(--ink-soft); margin: 6px 0 0; }
.section-alt { background: var(--cream-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.category-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform .15s ease, border-color .15s ease;
}
.category-card:hover { transform: translateY(-4px); border-color: var(--red); }
.category-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--card-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: inset 0 0 0 1px var(--border);
}
.category-card h3 { font-size: 16px; margin-bottom: 6px; color: var(--ink); }
.category-card p { font-size: 13px; color: var(--ink-soft); margin: 0; }

/* ---- Product grid & card ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.product-card:hover { transform: translateY(-4px); border-color: var(--red); box-shadow: var(--glow); }
.product-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--card-2);
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.badge-sale {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .5px;
  box-shadow: 0 0 10px rgba(226,52,42,0.5);
}
.badge-featured {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, var(--gold), #c9861f);
  color: #1a1310;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.product-info { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-cat { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); font-weight: 700; }
.product-info h3 { font-size: 16px; margin: 0; line-height: 1.3; color: var(--ink); }
.product-info p.desc { font-size: 13px; color: var(--ink-soft); margin: 0; flex: 1; }
.price-row { display: flex; align-items: baseline; gap: 8px; }
.price-now { font-size: 18px; font-weight: 700; color: var(--gold-light); }
.price-was { font-size: 13px; color: var(--ink-soft); text-decoration: line-through; }

/* ---- Filters ---- */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 30px; }
.filters-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; height: fit-content; }
.filters-box h4 { font-size: 14px; margin-bottom: 12px; color: var(--ink); }
.filter-option { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 14px; cursor: pointer; color: var(--ink-soft); }
.filter-option input { accent-color: var(--red); }
.search-box { display: flex; gap: 8px; margin-bottom: 24px; }
.search-box input {
  flex: 1; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--border); font-size: 14px;
  background: var(--card); color: var(--ink);
}
.search-box input::placeholder { color: var(--ink-soft); }

/* ---- Forms ---- */
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: var(--card);
  color: var(--ink);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--ink-soft); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(226,52,42,0.15);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---- Product detail ---- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; padding: 50px 0; }
.detail-gallery img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 1/1; object-fit: cover; border: 1px solid var(--border); }
.detail-info .product-cat { margin-bottom: 8px; }
.detail-info h1 { font-size: 30px; }
.detail-price { display: flex; align-items: baseline; gap: 12px; margin: 16px 0; }
.detail-price .price-now { font-size: 30px; }
.stock-line { font-size: 13px; color: #7fce9a; font-weight: 600; margin-bottom: 20px; }
.qty-row { display: flex; align-items: center; gap: 14px; margin: 22px 0; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.qty-control button { background: var(--card-2); color: var(--ink); border: none; width: 36px; height: 36px; cursor: pointer; font-size: 16px; }
.qty-control span { width: 40px; text-align: center; font-weight: 600; color: var(--ink); }
.deal-banner { background: var(--card-2); border-left: 4px solid var(--red); padding: 12px 16px; border-radius: 6px; font-size: 13px; margin-bottom: 16px; color: var(--ink-soft); }
.detail-info p { color: var(--ink-soft); line-height: 1.6; }

/* ---- Cart ---- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: 12px; text-transform: uppercase; color: var(--ink-soft); border-bottom: 2px solid var(--border); padding: 10px 8px; }
.cart-table td { padding: 14px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--ink); }
.cart-item-row { display: flex; align-items: center; gap: 14px; }
.cart-item-row img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.cart-summary { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.summary-line { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: var(--ink-soft); }
.summary-line.total { font-weight: 700; font-size: 18px; color: var(--gold-light); border-top: 2px solid var(--border); margin-top: 8px; padding-top: 14px; }
.remove-link { color: var(--danger); font-size: 13px; cursor: pointer; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-soft); }

/* ---- Footer ---- */
.site-footer { background: #0a0908; color: #b3a89a; padding: 50px 0 20px; margin-top: 40px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 30px; margin-bottom: 30px; }
.footer-grid h4 { color: var(--gold-light); font-size: 14px; margin-bottom: 14px; }
.footer-grid p, .footer-grid a { font-size: 13px; color: #9c9186; line-height: 2; display: block; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 18px; font-size: 12px; text-align: center; color: #7a7167; }
.footer-bottom a { color: var(--gold); font-weight: 600; }

.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px;
  background: #fff; width: 56px; height: 56px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5); z-index: 60;
  padding: 10px;
}
.whatsapp-float img { width: 100%; height: 100%; object-fit: contain; }

.toast {
  position: fixed; top: 20px; right: 20px; background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff;
  padding: 14px 20px; border-radius: 8px; box-shadow: 0 0 20px rgba(226,52,42,0.4); z-index: 100;
  opacity: 0; transform: translateY(-10px); transition: all .25s ease; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }

.breadcrumb { font-size: 13px; color: var(--ink-soft); padding: 18px 0; }
.breadcrumb a { color: var(--gold); font-weight: 600; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-layout { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
}
