@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300&display=swap');

:root {
  --cream: #FDF6ED;
  --cream-dark: #F5E9D6;
  --amber: #E8A030;
  --amber-dark: #C4841A;
  --amber-light: #FBF0D9;
  --coral: #E8604A;
  --coral-light: #FAEAE7;
  --charcoal: #1E1A16;
  --charcoal-mid: #3D3529;
  --muted: #8C7B6A;
  --muted-light: #B5A898;
  --white: #FFFFFF;
  --border: rgba(30,26,22,0.12);
  --border-strong: rgba(30,26,22,0.22);
  --shadow-soft: 0 4px 24px rgba(30,26,22,0.08);
  --shadow-card: 0 2px 12px rgba(30,26,22,0.10);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 100px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── NAV ─────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253,246,237,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--charcoal);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--amber); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--charcoal); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  position: relative;
  text-decoration: none;
}
.nav-icon-btn:hover { background: var(--cream-dark); }

.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--coral);
  color: white;
  font-size: 10px;
  font-weight: 600;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
}
.cart-badge.visible { display: flex; }

/* ─── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--amber);
  color: var(--charcoal);
}
.btn-primary:hover {
  background: var(--amber-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232,160,48,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--border-strong);
}
.btn-outline:hover {
  background: var(--cream-dark);
  border-color: var(--charcoal);
}
.btn-coral { background: var(--coral); color: white; }
.btn-coral:hover {
  background: #cc4e38;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232,96,74,0.35);
}
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.82rem; }
.btn-full { width: 100%; }

/* ─── CARDS ───────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all var(--transition);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

/* ─── PRODUCT CARD ────────────────────────────────────── */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(30,26,22,0.13);
}

.product-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }

.product-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted-light);
  font-size: 0.75rem;
  text-align: center;
  border: 2px dashed var(--muted-light);
  border-radius: 8px;
  margin: 16px;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  padding: 1rem;
}
.product-img-placeholder .ph-icon { font-size: 2rem; }
.product-img-placeholder .ph-label { font-weight: 500; font-size: 0.8rem; color: var(--muted); }
.product-img-placeholder .ph-hint { font-size: 0.7rem; color: var(--muted-light); }

.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--amber);
  color: var(--charcoal);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.product-tag.coral { background: var(--coral); color: white; }
.product-tag.charcoal { background: var(--charcoal); color: white; }

.product-info { padding: 1rem 1.1rem 1.2rem; }

.product-category {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.product-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.3;
  margin-bottom: 6px;
}
.product-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--amber-dark);
  margin-bottom: 12px;
}

/* ─── PRODUCT ACTIONS — stacked vertically ─────────────── */
.product-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-actions .btn {
  width: 100%;
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  justify-content: center;
  text-align: center;
}

/* ─── SECTION LAYOUTS ─────────────────────────────────── */
.section {
  padding: 4rem 2rem;
  max-width: 1180px;
  margin: 0 auto;
}
.section-header { margin-bottom: 2.5rem; }
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.5rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ─── BADGE ───────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-amber { background: var(--amber-light); color: var(--amber-dark); }
.badge-coral { background: var(--coral-light); color: var(--coral); }

/* ─── TOAST ───────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--charcoal);
  color: var(--cream);
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 9999;
  transform: translateY(120%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-soft);
}
.toast.show { transform: translateY(0); }

/* ─── FOOTER ──────────────────────────────────────────── */
/* ─── FOOTER WAVE TRANSITION ─────────────────────── */
.footer-wave {
  display: block;
  line-height: 0;
  margin-bottom: -2px;
  background: #FDF6ED; /* matches whatever section is above */
}
.footer-wave svg {
  width: 100%;
  height: 80px;
  display: block;
}

/* ─── FOOTER ──────────────────────────────────────── */
footer {
  background: linear-gradient(160deg, #1a1108 0%, #2b1d0e 50%, #1a1108 100%);
  color: var(--muted-light);
  padding: 3.5rem 2rem 2rem;
  position: relative;
  overflow: hidden;
}

/* amber glow bottom-right */
footer::before {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(232,160,48,0.1) 0%, transparent 65%);
  pointer-events: none;
}

/* top amber shimmer line */
footer::after {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,160,48,0.35), transparent);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(232,160,48,0.1);
  position: relative;
  z-index: 1;
}

.footer-brand {}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}
.footer-logo span { color: var(--amber); }

.footer-desc {
  font-size: 0.84rem;
  line-height: 1.72;
  max-width: 260px;
  color: rgba(253,246,237,0.42);
}

.footer-tagline {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(232,160,48,0.6);
  letter-spacing: 0.03em;
}

.footer-col h4 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.1rem;
  opacity: 0.8;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
  text-decoration: none;
  color: rgba(253,246,237,0.42);
  font-size: 0.875rem;
  transition: color var(--transition);
  position: relative;
}
.footer-col ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--amber);
  transition: width 0.28s ease;
}
.footer-col ul li a:hover { color: var(--amber); }
.footer-col ul li a:hover::after { width: 100%; }

.footer-bottom {
  max-width: 1180px;
  margin: 1.75rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(253,246,237,0.28);
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .footer-wave svg { height: 50px; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ─── PAGE WRAPPER ────────────────────────────────────── */
.page-wrap { min-height: calc(100vh - 64px); }

/* ─── QUANTITY CONTROL ────────────────────────────────── */
.qty-control {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-btn {
  width: 32px;
  height: 32px;
  background: var(--cream);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--charcoal);
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover { background: var(--cream-dark); }
.qty-num {
  width: 36px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  background: var(--white);
  color: var(--charcoal);
  height: 32px;
  outline: none;
}

/* ─── EMPTY STATE ─────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--muted);
}
.empty-state .empty-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}
.empty-state p { margin-bottom: 1.5rem; font-size: 0.9rem; }

/* ─── ANIMATIONS ──────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0);    }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0);   }
  50%       { transform: translateY(-8px); }
}
.animate-in {
  animation: fadeInUp 0.5s cubic-bezier(0.4,0,0.2,1) forwards;
}

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 0 1rem; }
  .nav-links { display: none; }
  .section { padding: 2.5rem 1rem; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .section-title { font-size: 1.6rem; }
  .btn { font-size: 0.85rem; padding: 0.7rem 1.4rem; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .product-info { padding: 0.75rem 0.85rem 1rem; }
  .product-name { font-size: 0.875rem; }
  .product-price { font-size: 0.95rem; margin-bottom: 10px; }
  .product-actions { gap: 6px; }
  .product-actions .btn { font-size: 0.78rem; padding: 0.55rem 1rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .toast { left: 1rem; right: 1rem; bottom: 1rem; }
}

/* Hero title override from index.html inline — keep consistent */
.hero-title { font-size: 4.5rem; }
