/* style.css */
:root {
  --saddle: #5C3317;
  --rust: #8B3A1A;
  --terra: #C4592A;
  --sand: #F5E6D3;
  --cream: #FBF7F2;
  --parchment: #F0E4D4;
  --ink: #1A1A18;
  --dust: #A89882;
  --sage: #6B7C5E;
  --gold: #C5993A;
  --white: #FFFDF9;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ═══════════════════════════════════════ */
/* NAV */
/* ═══════════════════════════════════════ */
nav.site-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(251, 247, 242, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(92, 51, 23, 0.08);
  transition: all 0.4s ease;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--saddle);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo .star {
  font-size: 0.6em;
  color: var(--terra);
  animation: spin 20s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.nav-logo span {
  font-weight: 400;
  color: var(--dust);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 101;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--saddle);
  border-radius: 2px;
  transition: all 0.25s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--terra);
  transition: width 0.3s ease;
}

.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--terra); }

.nav-links-btn {
  background: none;
  border: none;
  text-decoration: none;
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.3s;
  padding: 0;
}

.nav-links-btn:hover {
  color: var(--terra);
}

.nav-cta {
  background: var(--saddle) !important;
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.85rem !important;
  letter-spacing: 0.03em;
  transition: all 0.3s ease !important;
  border: 2px solid var(--saddle);
  display: inline-block;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: transparent !important;
  color: var(--saddle) !important;
}

.cart-icon {
  position: relative;
  cursor: pointer;
  color: var(--ink);
  transition: color 0.3s;
  display: flex; /* alignment fix */
  align-items: center;
}

.cart-icon:hover { color: var(--terra); }

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--terra);
  color: white;
  font-size: 0.6rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ═══════════════════════════════════════ */
/* HERO */
/* ═══════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
  background: 
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(139, 58, 26, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 60%, rgba(197, 153, 58, 0.04) 0%, transparent 60%),
    var(--cream);
}

.hero::before {
  content: '★';
  position: absolute;
  top: 15%;
  left: 8%;
  font-size: 3rem;
  color: var(--terra);
  opacity: 0.08;
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '★';
  position: absolute;
  bottom: 20%;
  right: 10%;
  font-size: 2rem;
  color: var(--gold);
  opacity: 0.1;
  animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--parchment);
  border: 1px solid rgba(92, 51, 23, 0.12);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--saddle);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--sage);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--ink);
  max-width: 900px;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero h1 em {
  font-style: italic;
  color: var(--rust);
  position: relative;
}

.hero h1 em::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--terra);
  opacity: 0.3;
  border-radius: 2px;
}

.hero-sub {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.15rem;
  color: var(--dust);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.8s;
}

.btn-primary {
  background: var(--saddle);
  color: var(--white);
  padding: 16px 40px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--saddle);
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--rust);
  border-color: var(--rust);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(92, 51, 23, 0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--saddle);
  padding: 16px 40px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid rgba(92, 51, 23, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-secondary:hover {
  border-color: var(--saddle);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════ */
/* STATS STRIP */
/* ═══════════════════════════════════════ */
.stats-strip {
  display: flex;
  justify-content: center;
  gap: 80px;
  padding: 60px 48px;
  border-top: 1px solid rgba(92, 51, 23, 0.08);
  border-bottom: 1px solid rgba(92, 51, 23, 0.08);
  background: var(--white);
}

.stat {
  text-align: center;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--saddle);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--dust);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

/* ═══════════════════════════════════════ */
/* FEATURED SECTION */
/* ═══════════════════════════════════════ */
.section {
  padding: 100px 48px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--ink);
}

.section-header h2 span {
  color: var(--terra);
}

.view-all {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--saddle);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s ease;
}

.view-all:hover { gap: 14px; }

.view-all svg {
  transition: transform 0.3s ease;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.product-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(92, 51, 23, 0.06);
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(92, 51, 23, 0.1);
  border-color: rgba(92, 51, 23, 0.12);
}

.product-img {
  aspect-ratio: 1;
  background: var(--parchment);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-img .placeholder-icon {
  font-size: 3rem;
  opacity: 0.15;
}

.product-card:hover .product-img::after {
  content: 'View →';
  position: absolute;
  inset: 0;
  background: rgba(92, 51, 23, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--terra);
  color: white;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  z-index: 2;
}

.product-info {
  padding: 20px;
}

.product-store {
  font-size: 0.75rem;
  color: var(--dust);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.product-name {
  font-family: 'Libre Baskerville', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.3;
  text-decoration: none;
  display: block;
}

.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--saddle);
}

.product-location {
  font-size: 0.75rem;
  color: var(--dust);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ═══════════════════════════════════════ */
/* CATEGORIES */
/* ═══════════════════════════════════════ */
.categories-section {
  background: var(--white);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
}

.category-card {
  background: var(--cream);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s ease;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139, 58, 26, 0.06), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.category-card:hover::before { opacity: 1; }

.category-card:hover {
  border-color: rgba(92, 51, 23, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(92, 51, 23, 0.08);
}

.category-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.category-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 4px;
  display: block;
}

.category-count {
  font-size: 0.75rem;
  color: var(--dust);
  display: block;
}

/* ═══════════════════════════════════════ */
/* SELLER CTA */
/* ═══════════════════════════════════════ */
.seller-cta {
  max-width: 1280px;
  margin: 0 auto;
  background: var(--saddle);
  border-radius: 24px;
  padding: 80px 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.seller-cta::before {
  content: '★';
  position: absolute;
  top: -30px;
  right: 120px;
  font-size: 12rem;
  color: white;
  opacity: 0.03;
}

.seller-cta-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.15;
}

.seller-cta-text p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  max-width: 420px;
  line-height: 1.6;
}

.btn-white {
  background: var(--white);
  color: var(--saddle);
  padding: 18px 44px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-block;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ═══════════════════════════════════════ */
/* FOOTER */
/* ═══════════════════════════════════════ */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  padding: 64px 48px 32px;
  margin-top: auto; /* Push to bottom */
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 64px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 12px;
  transition: color 0.3s;
}

.footer-col a:hover { color: white; }

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
}

/* ═══════════════════════════════════════ */
/* SHOP PAGE */
/* ═══════════════════════════════════════ */
.shop-hero {
  padding: 140px 48px 60px;
  text-align: center;
  position: relative;
}

.shop-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.shop-hero p {
  color: var(--dust);
  font-size: 1rem;
}

.shop-controls {
  max-width: 1280px;
  margin: 0 auto 40px;
  padding: 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 8px 20px;
  border-radius: 100px;
  border: 1.5px solid rgba(92, 51, 23, 0.15);
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.filter-pill:hover {
  border-color: var(--saddle);
  background: rgba(92, 51, 23, 0.04);
  color: var(--ink);
}

.filter-pill.active {
  background: var(--saddle);
  color: var(--white);
  border-color: var(--saddle);
}

.sort-select {
  padding: 10px 20px;
  border-radius: 100px;
  border: 1.5px solid rgba(92, 51, 23, 0.15);
  background: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%235C3317' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.sort-dropdown {
  position: relative;
}

.sort-dropdown-toggle {
  padding: 10px 24px;
  border-radius: 100px;
  border: 1.5px solid rgba(92, 51, 23, 0.15);
  background: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.sort-dropdown-toggle:hover {
  border-color: var(--saddle);
}

.sort-dropdown-toggle svg {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.sort-dropdown.open .sort-dropdown-toggle svg {
  transform: rotate(180deg);
}

.sort-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid rgba(92, 51, 23, 0.1);
  border-radius: 12px;
  padding: 8px;
  min-width: 200px;
  box-shadow: 0 12px 32px rgba(92, 51, 23, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;
  z-index: 50;
}

.sort-dropdown.open .sort-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sort-dropdown-item {
  display: block;
  padding: 10px 16px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.2s ease;
}

.sort-dropdown-item:hover {
  background: var(--cream);
}

.sort-dropdown-item.active {
  color: var(--terra);
  font-weight: 600;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px 100px;
}

/* ═══════════════════════════════════════ */
/* MARQUEE */
/* ═══════════════════════════════════════ */
.marquee-wrap {
  overflow: hidden;
  padding: 24px 0;
  border-top: 1px solid rgba(92, 51, 23, 0.06);
  border-bottom: 1px solid rgba(92, 51, 23, 0.06);
  background: var(--white);
}

.marquee {
  display: flex;
  gap: 64px;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

.marquee span {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  color: var(--dust);
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 64px;
}

.marquee span::after {
  content: '✦';
  color: var(--terra);
  opacity: 0.3;
  font-size: 0.6rem;
  font-style: normal;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════ */
/* PAGE CONTENT WRAPPER */
/* ═══════════════════════════════════════ */
.page-content {
  padding: 120px 48px 80px;
  max-width: 1280px;
  margin: 0 auto;
  min-height: calc(100vh - 200px);
}

.page-content-narrow {
  padding: 120px 48px 80px;
  max-width: 720px;
  margin: 0 auto;
  min-height: calc(100vh - 200px);
}

.page-content-centered {
  padding: 120px 48px 80px;
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══════════════════════════════════════ */
/* PAGE HEADERS */
/* ═══════════════════════════════════════ */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.page-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--ink);
}

.page-title span {
  color: var(--terra);
}

/* ═══════════════════════════════════════ */
/* CARDS */
/* ═══════════════════════════════════════ */
.card {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid rgba(92, 51, 23, 0.08);
  box-shadow: 0 4px 16px rgba(92, 51, 23, 0.04);
  overflow: hidden;
}

.card-body {
  padding: 32px;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--saddle);
  margin-bottom: 24px;
  text-align: center;
}

/* ═══════════════════════════════════════ */
/* FORMS */
/* ═══════════════════════════════════════ */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(92, 51, 23, 0.15);
  border-radius: 10px;
  background: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--saddle);
  box-shadow: 0 0 0 3px rgba(92, 51, 23, 0.08);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%235C3317' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-file {
  width: 100%;
  padding: 10px 16px;
  border: 1.5px dashed rgba(92, 51, 23, 0.2);
  border-radius: 10px;
  background: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--dust);
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.form-file:hover {
  border-color: var(--saddle);
}

.form-help {
  font-size: 0.8rem;
  color: var(--dust);
  margin-top: 4px;
}

.form-error {
  font-size: 0.8rem;
  color: #c0392b;
  margin-top: 4px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 32px;
}

/* ═══════════════════════════════════════ */
/* BUTTONS (additional) */
/* ═══════════════════════════════════════ */
.btn-danger {
  background: #c0392b;
  color: white;
  padding: 12px 28px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid #c0392b;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-danger:hover {
  background: #a93226;
  border-color: #a93226;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192, 57, 43, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--dust);
  padding: 12px 28px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid rgba(92, 51, 23, 0.12);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-ghost:hover {
  border-color: var(--saddle);
  color: var(--saddle);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 16px 44px;
  font-size: 1rem;
}

.btn-xs {
  padding: 5px 14px;
  font-size: 0.75rem;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* ═══════════════════════════════════════ */
/* ALERTS */
/* ═══════════════════════════════════════ */
.alert {
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-error {
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.2);
  color: #c0392b;
}

.alert-success {
  background: rgba(39, 174, 96, 0.08);
  border: 1px solid rgba(39, 174, 96, 0.2);
  color: #27ae60;
}

/* ═══════════════════════════════════════ */
/* BADGES */
/* ═══════════════════════════════════════ */
.badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-success {
  background: rgba(39, 174, 96, 0.12);
  color: #27ae60;
}

.badge-error {
  background: rgba(192, 57, 43, 0.12);
  color: #c0392b;
}

.badge-secondary {
  background: var(--parchment);
  color: var(--saddle);
}

/* ═══════════════════════════════════════ */
/* DATA TABLE */
/* ═══════════════════════════════════════ */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead th {
  padding: 14px 20px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dust);
  background: var(--cream);
  border-bottom: 1px solid rgba(92, 51, 23, 0.1);
}

.data-table tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(92, 51, 23, 0.06);
  vertical-align: middle;
  font-size: 0.95rem;
}

.data-table tbody tr:hover {
  background: rgba(92, 51, 23, 0.02);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* ═══════════════════════════════════════ */
/* AVATAR */
/* ═══════════════════════════════════════ */
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--parchment);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--dust);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.avatar-lg {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  font-size: 2rem;
}

/* ═══════════════════════════════════════ */
/* PRODUCT DETAIL */
/* ═══════════════════════════════════════ */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.product-detail-img {
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  background: var(--parchment);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-img .no-image {
  font-size: 1.1rem;
  color: var(--dust);
  font-weight: 500;
}

.product-detail-info h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.15;
}

.product-detail-info .product-desc {
  font-size: 1.05rem;
  color: var(--dust);
  line-height: 1.7;
  margin-bottom: 32px;
}

.product-detail-price {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--saddle);
}

.product-detail-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.product-detail-seller {
  padding: 20px;
  background: var(--cream);
  border-radius: 12px;
  border: 1px solid rgba(92, 51, 23, 0.08);
}

.product-detail-seller .seller-label {
  font-size: 0.75rem;
  color: var(--dust);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 4px;
}

.product-detail-seller .seller-name {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--saddle);
  text-decoration: none;
  transition: color 0.3s;
}

.product-detail-seller .seller-name:hover {
  color: var(--terra);
}

.product-detail-seller .seller-location {
  font-size: 0.8rem;
  color: var(--dust);
  margin-top: 2px;
}

/* ═══════════════════════════════════════ */
/* VENDOR PROFILE */
/* ═══════════════════════════════════════ */
.vendor-header {
  text-align: center;
  padding: 140px 48px 60px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(139, 58, 26, 0.04) 0%, transparent 70%),
    var(--cream);
}

.vendor-header .avatar-lg {
  margin: 0 auto 20px;
}

.vendor-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 8px;
}

.vendor-header p {
  font-size: 1rem;
  color: var(--dust);
}

.vendor-products {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 48px 100px;
}

.vendor-products h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(92, 51, 23, 0.1);
}

.vendor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ═══════════════════════════════════════ */
/* LOGIN PAGE */
/* ═══════════════════════════════════════ */
.login-card {
  width: 400px;
  max-width: 90vw;
}

/* ═══════════════════════════════════════ */
/* CART PAGE */
/* ═══════════════════════════════════════ */
.cart-summary {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 32px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 2px solid rgba(92, 51, 23, 0.1);
}

.cart-total {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--ink);
}

.cart-total span {
  color: var(--saddle);
}

.cart-empty {
  text-align: center;
  padding: 80px 20px;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid rgba(92, 51, 23, 0.08);
}

.cart-empty h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 16px;
}

.cart-empty p {
  color: var(--dust);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.item-cell {
  display: flex;
  align-items: center;
  gap: 14px;
}

.item-cell .item-name {
  font-weight: 600;
  color: var(--ink);
}

/* ═══════════════════════════════════════ */
/* EMPTY STATE */
/* ═══════════════════════════════════════ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--dust);
}

.empty-state p {
  margin-bottom: 20px;
}

/* ═══════════════════════════════════════ */
/* PAYMENT RESULT */
/* ═══════════════════════════════════════ */
.payment-result {
  text-align: center;
  max-width: 500px;
}

.payment-result .result-icon {
  font-size: 4rem;
  margin-bottom: 24px;
}

.payment-result h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 16px;
}

.payment-result.success h1 {
  color: #27ae60;
}

.payment-result.cancelled h1 {
  color: var(--gold);
}

.payment-result p {
  font-size: 1.1rem;
  color: var(--dust);
  line-height: 1.6;
  margin-bottom: 40px;
}

/* ═══════════════════════════════════════ */
/* UTILITY */
/* ═══════════════════════════════════════ */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mt-4 { margin-top: 16px; }
.font-bold { font-weight: 700; }

/* ═══════════════════════════════════════ */
/* RESPONSIVE */
/* ═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .product-grid, .shop-grid { grid-template-columns: repeat(3, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  nav.site-nav { padding: 0 24px; }
  .hero { padding: 120px 24px 80px; }
  .section { padding: 60px 24px; }
  .product-grid, .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .seller-cta { flex-direction: column; text-align: center; padding: 48px 32px; gap: 32px; }
  .seller-cta-text p { margin: 0 auto; }
  .stats-strip { gap: 40px; flex-wrap: wrap; }
  .footer-inner { flex-direction: column; gap: 40px; }
  .filter-pills { max-width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
  .shop-controls { flex-direction: column; gap: 16px; align-items: flex-start; padding: 0 24px; }
  .shop-grid { padding: 0 24px 60px; }
  .page-content, .page-content-narrow { padding: 100px 24px 60px; }
  .page-content-centered { padding: 100px 24px 60px; }
  .product-detail { grid-template-columns: 1fr; gap: 32px; }
  .vendor-header { padding: 100px 24px 40px; }
  .vendor-products { padding: 40px 24px 60px; }
  .vendor-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .cart-summary { flex-direction: column; align-items: flex-end; gap: 16px; }
  .page-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .data-table thead th, .data-table tbody td { padding: 10px 12px; font-size: 0.85rem; }

  /* Hamburger: show button, hide desktop links */
  .hamburger { display: flex !important; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(251, 247, 242, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(92, 51, 23, 0.08);
    padding: 24px 32px 32px;
    gap: 8px;
    z-index: 99;
    align-items: flex-start;
  }
  .nav-links.open li { width: 100%; }
  .nav-links.open a,
  .nav-links.open .nav-links-btn {
    display: block;
    font-size: 1.05rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(92, 51, 23, 0.06);
    width: 100%;
  }
  .nav-links.open .nav-cta {
    margin-top: 8px;
    display: inline-block;
    width: auto;
  }
  .nav-links.open .cart-icon { padding: 10px 0; }
}
