/* ============================================================
   VELA — E-commerce Storefront Template
   Pure CSS. No framework. No build step.
   ------------------------------------------------------------
   CUSTOMIZE COLORS HERE — change the variables below and the
   whole store follows. No other file needs editing for colors.
   ============================================================ */
:root {
  --bg: #faf6f1;              /* warm cream page background */
  --bg-soft: #f3ece3;         /* soft cream sections */
  --card: #ffffff;
  --card-border: #e8ddd0;
  --text: #2b2118;            /* warm near-black */
  --text-muted: #8a7a6a;
  --accent: #c96f4a;          /* terracotta — change to your brand color */
  --accent-dark: #a85436;
  --accent-soft: rgba(201, 111, 74, 0.12);
  --gold: #d9a441;            /* secondary accent (stars, sale badges) */
  --sale: #b3402e;            /* sale badge red */
  --radius: 14px;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

.accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(201, 111, 74, .3);
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost {
  background: transparent;
  border-color: var(--card-border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-block { display: block; width: 100%; margin-top: 14px; }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--text);
  color: #f7efe6;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  padding: 9px 16px;
}

/* ---------- Sticky nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 241, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 66px;
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 22px; letter-spacing: .14em; }
.logo-mark { color: var(--accent); font-size: 20px; line-height: 1; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: 15px; transition: color .15s; }
.nav-links a:hover { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.search-box {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-soft);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 7px 13px;
  color: var(--text-muted);
}
.search-box input {
  border: none;
  background: none;
  outline: none;
  font-size: 14px;
  color: var(--text);
  width: 140px;
}
.search-box input::placeholder { color: var(--text-muted); }
.cart-btn {
  position: relative;
  background: var(--text);
  color: #f7efe6;
  border: none;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 16px;
  line-height: 1;
  transition: background .15s;
}
.cart-btn:hover { background: var(--accent); }
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 10px;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--text); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 80px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.4vw, 64px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero-sub {
  max-width: 480px;
  margin: 20px 0 0;
  color: var(--text-muted);
  font-size: 17px;
}
.hero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.badge {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-soft);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 7px 14px;
}

/* Hero featured product card */
.hero-feature { position: relative; }
.feature-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(43, 33, 24, .12);
  transform: rotate(1.5deg);
  transition: transform .3s ease;
}
.feature-card:hover { transform: rotate(0deg) translateY(-4px); }
.feature-visual {
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.feature-visual .mono {
  font-family: var(--font-display);
  font-size: 150px;
  font-weight: 700;
  color: rgba(255, 255, 255, .85);
  line-height: 1;
  text-shadow: 0 4px 30px rgba(43, 33, 24, .18);
}
.feature-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, .92);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 6px 12px;
}
.feature-body { padding: 22px 24px 24px; }
.feature-body h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
}
.feature-body .feature-cat {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.feature-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.feature-price { font-size: 22px; font-weight: 800; }
.feature-price .was {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 8px;
}

/* ---------- Sections shared ---------- */
section { scroll-margin-top: 84px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
}
.section-title.left { text-align: left; }
.section-sub { text-align: center; color: var(--text-muted); margin: 10px auto 0; max-width: 560px; }
.section-sub.left { text-align: left; margin-left: 0; }

/* ---------- Category tiles ---------- */
.categories { padding: 32px 0 72px; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.cat-tile {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  text-align: left;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--card-border);
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
}
.cat-tile:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(43, 33, 24, .12); }
.cat-visual {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.cat-visual .mono {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  color: rgba(255, 255, 255, .9);
  line-height: 1;
}
.cat-body { padding: 16px 18px 18px; }
.cat-body h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.cat-body p { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.cat-body .cat-link { font-size: 13px; font-weight: 700; color: var(--accent); margin-top: 8px; display: inline-block; }

/* ---------- Shop / product grid ---------- */
.shop { padding: 24px 0 80px; }
.shop-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
  background: var(--bg-soft);
  border: 1px solid var(--card-border);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  padding: 8px 16px;
  transition: background .15s, color .15s, border-color .15s;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--text); border-color: var(--text); color: #f7efe6; }
.no-results { margin-top: 32px; color: var(--text-muted); text-align: center; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(43, 33, 24, .13); }
.product-visual {
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-visual .mono {
  font-family: var(--font-display);
  font-size: 84px;
  font-weight: 700;
  color: rgba(255, 255, 255, .88);
  line-height: 1;
  transition: transform .25s ease;
}
.product-card:hover .product-visual .mono { transform: scale(1.12); }
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, .94);
  color: var(--text);
}
.product-badge.sale { background: var(--sale); color: #fff; }
.product-badge.bestseller { background: var(--gold); color: #fff; }
.product-quick {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
}
.product-card:hover .product-quick { opacity: 1; transform: translateY(0); }
.product-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.product-name { font-size: 16px; font-weight: 700; }
.product-price { font-size: 16px; font-weight: 800; margin-top: auto; padding-top: 6px; }
.product-price .was {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 7px;
}
.product-add {
  margin-top: 12px;
  width: 100%;
  background: var(--text);
  color: #f7efe6;
  border: none;
  border-radius: 999px;
  padding: 11px;
  font-size: 14px;
  font-weight: 700;
  transition: background .15s;
}
.product-add:hover { background: var(--accent); }

/* ---------- Feature strip ---------- */
.features { padding: 16px 0 80px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.feature {
  background: var(--bg-soft);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
}
.feature-icon { font-size: 30px; display: block; margin-bottom: 10px; }
.feature h3 { font-family: var(--font-display); font-size: 19px; }
.feature p { font-size: 14px; color: var(--text-muted); margin-top: 6px; }

/* ---------- Testimonials ---------- */
.reviews { padding: 16px 0 80px; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.review {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.review-stars { color: var(--gold); letter-spacing: .1em; font-size: 15px; }
.review-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  line-height: 1.55;
  margin-top: 12px;
}
.review footer { margin-top: 16px; font-size: 14px; font-weight: 600; }
.review footer span { color: var(--text-muted); font-weight: 400; }

/* ---------- Newsletter ---------- */
.newsletter { padding: 16px 0 90px; }
.newsletter-inner {
  background: var(--text);
  color: #f7efe6;
  border-radius: calc(var(--radius) + 6px);
  padding: 56px 32px;
  text-align: center;
}
.newsletter-inner .section-title { color: #f7efe6; }
.newsletter-inner .section-sub { color: #cbbba9; }
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 520px;
  margin: 28px auto 0;
}
.newsletter-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(247, 239, 230, .3);
  background: rgba(247, 239, 230, .1);
  color: #f7efe6;
  border-radius: 999px;
  padding: 13px 20px;
  font-size: 15px;
  outline: none;
}
.newsletter-form input::placeholder { color: #cbbba9; }
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-msg { min-height: 22px; margin-top: 12px; font-size: 14px; color: #f0c9a8; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--card-border); background: var(--bg-soft); padding: 48px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 10px; max-width: 280px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-size: 14px; }
.footer-links a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--card-border);
  border-radius: 50%;
  font-size: 16px;
  transition: border-color .15s, color .15s;
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--card-border);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-muted);
}

/* ---------- Cart drawer ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 33, 24, .45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 200;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 92vw);
  background: var(--bg);
  z-index: 201;
  transform: translateX(105%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -16px 0 48px rgba(43, 33, 24, .2);
}
.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(--card-border);
}
.cart-head h2 { font-family: var(--font-display); font-size: 22px; }
.cart-close {
  background: var(--bg-soft);
  border: 1px solid var(--card-border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 15px;
  color: var(--text);
}
.cart-close:hover { border-color: var(--accent); color: var(--accent); }
.ship-progress { padding: 16px 22px; border-bottom: 1px solid var(--card-border); }
.ship-progress p { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.ship-progress p strong { color: var(--accent); }
.ship-track {
  height: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  overflow: hidden;
}
.ship-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  border-radius: 999px;
  transition: width .4s ease;
}
.cart-items { flex: 1; overflow-y: auto; padding: 8px 22px; }
.cart-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--card-border);
}
.cart-item:last-child { border-bottom: none; }
.cart-thumb {
  width: 64px;
  height: 76px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: rgba(255, 255, 255, .9);
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h4 { font-size: 15px; font-weight: 700; }
.cart-item-info .cart-item-price { font-size: 14px; color: var(--text-muted); margin-top: 2px; }
.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 10px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  overflow: hidden;
}
.cart-qty button {
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.cart-qty button:hover { color: var(--accent); }
.cart-qty span { min-width: 24px; text-align: center; font-size: 14px; font-weight: 700; }
.cart-item-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.cart-item-total { font-size: 15px; font-weight: 800; }
.cart-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: underline;
  padding: 0;
}
.cart-remove:hover { color: var(--sale); }
.cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 40px 22px; text-align: center; }
.cart-empty-icon { font-size: 44px; }
.cart-empty p { color: var(--text-muted); }
.cart-empty .btn { margin-top: 10px; }
.cart-foot { padding: 18px 22px 22px; border-top: 1px solid var(--card-border); }
.cart-subtotal { display: flex; justify-content: space-between; font-size: 16px; }
.cart-subtotal strong { font-size: 18px; }
.cart-note { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.checkout-msg { min-height: 20px; margin-top: 10px; font-size: 13px; color: var(--accent); text-align: center; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 80px);
  background: var(--text);
  color: #f7efe6;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  padding: 12px 22px;
  z-index: 300;
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
  pointer-events: none;
  box-shadow: 0 12px 32px rgba(43, 33, 24, .3);
  max-width: 92vw;
  text-align: center;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 66px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--card-border);
    padding: 8px 4%;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-top: 1px solid var(--card-border); }
  .nav-links a:first-child { border-top: none; }
  .menu-toggle { display: flex; }
  .search-box input { width: 100px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 52px 0 64px; }
  .feature-card { transform: none; max-width: 520px; margin: 0 auto; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .search-box { display: none; }
  .cat-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn { width: 100%; }
  .footer-inner { flex-direction: column; }
  .product-quick { display: none; } /* mobile uses the Add to Cart button in the card body */
}
