:root {
  --bg: #faf9f4;
  --surface: #ffffff;
  --surface-muted: #f5f4ef;
  --surface-soft: #efeee9;
  --surface-strong: #e9e8e3;
  --surface-alt: #f9f8f3;
  --surface-dark: #111827;
  --text: #1b1c19;
  --text-muted: #45464d;
  --text-soft: #6f6f6a;
  --primary: #000000;
  --secondary: #705c30;
  --border: #d7d3c7;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  --radius: 0px;
  --radius-lg: 24px;
  --radius-sm: 16px;
  --max-width: 1200px;
}
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
html { font-size: 16px; }

/* Typography scale */
h1,h2,h3,h4 { line-height: 1.15; margin: 0 0 0.6rem; }
h1 { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem, 3.2vw, 3.8rem); }
h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.2rem, 2.2vw, 2.6rem); }
h3 { font-size: 1rem; }
p, li { font-size: 0.95rem; }

/* Form elements */
input, textarea, select { font-size: 0.95rem; padding: 12px 14px; border-radius: 8px; min-height: 44px; }
input[type="number"] { padding: 10px 12px; min-height: 44px; }

.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 8px; color: var(--text-muted); font-weight: 600; }
.input { width: 100%; border: 1px solid rgba(17,24,39,0.08); padding: 10px 12px; border-radius: 8px; background: #fff; }

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

.summary-row { display:flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(17,24,39,0.04); }
.summary-total { display:flex; justify-content: space-between; gap:12px; padding-top: 12px; font-weight: 700; }

.product-detail-page { margin: 36px 0; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
.container { width: min(100%, var(--max-width)); margin: 0 auto; padding: 0 24px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 244, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  flex-wrap: nowrap;
}
.brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand-short { display: none; }
.brand-full { display: inline; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1 1 0;
  min-width: 0;
  justify-content: flex-start;
}
.menu {
  display: none !important;
}
.nav-links a,
.menu a {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  transition: color 0.25s ease;
}
.nav-links a:hover,
.menu a:hover {
  color: var(--primary);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.search-ghost {
  display: flex;
  align-items: center;
  min-width: 140px;
  max-width: 220px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.12);
}
.search-ghost input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 10px 0;
  color: var(--text);
}
.search-ghost input:focus {
  outline: none;
}

/* Search button for mobile */
.search-btn {
  display: none;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s ease;
}
.search-btn:hover {
  background: rgba(17, 24, 39, 0.06);
}
.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px 160px;
  gap: 16px;
  align-items: center;
  margin-bottom: 40px;
}
.search-form .input,
.search-form select {
  min-width: 0;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.12);
  padding: 16px 18px;
  border-radius: 0;
  color: var(--text);
}
.search-form .input:focus,
.search-form select:focus {
  outline: none;
  border-color: rgba(17, 24, 39, 0.35);
}
.search-form button {
  justify-self: stretch;
}
.icon-button {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--text);
  transition: background 0.2s ease, color 0.2s ease;
}
.icon-button:hover {
  background: rgba(17, 24, 39, 0.06);
}
.icon-button:active { transform: scale(0.98); }
.icon-button:focus { outline: none; box-shadow: 0 0 0 4px rgba(112,92,48,0.08); border-radius: 999px; }

/* Focus-visible for keyboard users */
:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(112,92,48,0.12); border-radius: 8px; }

/* Links and interactive elements */
a { transition: color 0.18s ease, transform 0.14s ease; }
a:hover { transform: translateY(-2px); }
.btn { transition: transform 0.12s ease, box-shadow 0.12s ease; }
.btn:focus-visible { box-shadow: 0 6px 20px rgba(15,23,42,0.08); }

/* Menu links */
.menu a, .nav-links a { padding: 8px 6px; border-radius: 8px; }
.menu a:hover, .nav-links a:focus { background: rgba(17,24,39,0.03); }

/* Small icon svg smoothing */
svg { display: inline-block; vertical-align: middle; }

/* Small icon badge styling */
.badge { position: relative; top: -6px; left: -6px; }
.menu-btn {
  display: none;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.badge {
  display: none;
  background: var(--text);
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 8px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 60px 0 50px;
  background: linear-gradient(135deg, rgba(250, 249, 244, 0.92) 0%, rgba(250, 249, 244, 0.88) 100%), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="pattern" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M0 50 Q25 0 50 50 T100 50" fill="none" stroke="rgba(112,92,48,0.08)" stroke-width="1"/><circle cx="50" cy="50" r="2" fill="rgba(112,92,48,0.1)"/></pattern></defs><rect width="1200" height="600" fill="%23faf9f4"/><rect width="1200" height="600" fill="url(%23pattern)"/></svg>');
  background-size: auto, 400px 400px;
  background-attachment: fixed;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}
.hero-copy {
  max-width: 620px;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.hero-copy h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.4rem, 4.8vw, 4.8rem);
  line-height: 0.98;
  margin: 0;
  color: var(--primary);
}
.hero-text {
  margin: 28px 0 36px;
  max-width: 540px;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.9;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease;
  min-height: 44px;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: rgba(0, 0, 0, 0.88);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(17,24,39,0.08);
}
.btn-secondary:hover {
  background: rgba(17, 24, 39, 0.03);
}

.hero-image {
  position: relative;
  display: grid;
  place-items: center;
}
.hero-frame {
  width: min(100%, 420px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.10);
}
.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.hero-frame:hover img {
  transform: scale(1.02);
}
.hero-backdrop {
  position: absolute;
  right: -10px;
  bottom: 0;
  font-family: 'Playfair Display', serif;
  font-size: 9.5rem;
  line-height: 0.9;
  color: rgba(27, 28, 25, 0.05);
  pointer-events: none;
  user-select: none;
}

.category-section,
.products-section {
  padding: 70px 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 64px;
}
.section-head h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--primary);
  margin: 0;
}
.link-secondary {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.link-secondary:hover {
  color: var(--primary);
}
.link-secondary .arrow {
  margin-left: 8px;
}

/* Category Carousel */
.carousel-container {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.carousel-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text);
}

.carousel-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
}

.category-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  flex: 1;
  padding: 12px 0;
  scrollbar-width: none; /* Firefox */
}

.category-carousel::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  aspect-ratio: 1;
  padding: 0;
  border: none;
  background: linear-gradient(135deg, rgba(250, 249, 244, 0.6), rgba(245, 244, 239, 0.8)), radial-gradient(circle, rgba(112, 92, 48, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
	overflow: hidden;
}

.cat-card:hover {
  transform: scale(1.08);
  background: linear-gradient(135deg, rgba(76, 128, 57, 0.15), rgba(76, 128, 57, 0.08)), radial-gradient(circle, rgba(76, 128, 57, 0.12) 0%, transparent 70%);
  box-shadow: 0 12px 32px rgba(76, 128, 57, 0.12);
}

.cat-icon {
  width: 90px;
  height: 90px;
  border: none;
  border-radius: 50%;
  background: none;
  overflow: hidden;
  flex-shrink: 0;
}

.cat-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

.cat-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
}

.cat-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2;
  max-width: 100px;
  word-break: break-word;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.product-card {
  display: grid;
  gap: 12px;
  background: #fff;
  min-height: 420px;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.09);
}
.product-media {
  min-height: 260px;
  overflow: hidden;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.product-card:hover .product-media img {
  transform: scale(1.03);
}
.product-copy {
  padding: 24px;
}
.product-label {
  margin-bottom: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  font-weight: 700;
}
.product-copy h3 {
  margin: 0 0 14px;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--primary);
  line-height: 1.35;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  margin: 40px 0;
  background: var(--surface);
  padding: 30px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.product-detail-image {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.1);
}
.product-detail-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.product-detail-copy {
  display: grid;
  gap: 24px;
}
.product-detail-copy h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 2.8vw, 3.4rem);
  margin: 0;
  color: var(--primary);
}
.product-detail-copy .price {
  color: var(--primary);
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}
.product-description {
  color: var(--text-muted);
  line-height: 1.9;
  max-width: 680px;
}
.product-detail-form {
  display: grid;
  gap: 18px;
  max-width: 420px;
}
.product-detail-meta label {
  display: grid;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.product-detail-meta .qty-input {
  width: 110px;
  padding: 14px 16px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 0;
}
.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.cart-list {
  display: grid;
  gap: 22px;
  margin-bottom: 30px;
}
.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 20px;
  background: var(--surface);
  padding: 24px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 24px;
  align-items: center;
}
.cart-item-media {
  width: 120px;
  min-width: 120px;
  aspect-ratio: 0.75;
  overflow: hidden;
  border-radius: 20px;
  background: #f8f7f3;
}
.cart-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-item-content {
  display: grid;
  gap: 12px;
}
.cart-item-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--primary);
}
.cart-item-price {
  color: var(--text-muted);
  font-weight: 700;
}
.cart-item-meta {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}
.cart-item-meta label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
}
.cart-item-meta .qty-input {
  width: 80px;
  padding: 12px 14px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 0;
}
.cart-item-actions {
  display: flex;
  align-items: center;
}
.remove-form {
  margin: 0;
}
.cart-item-total {
  font-weight: 700;
  min-width: 120px;
  text-align: right;
  color: var(--primary);
}
.cart-summary {
  background: var(--surface);
  padding: 30px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  max-width: 420px;
  margin-bottom: 24px;
}
.cart-summary .checkout-cta {
  display: block;
  margin-top: 18px;
}
.cart-summary .row + .row { margin-top: 8px; }
.cart-summary .total { font-size: 1.15rem; }
.cart-summary .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.cart-summary .row.total {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  color: var(--primary);
  font-weight: 700;
}
.cart-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cart-actions .btn-primary { padding: 12px 18px; min-width: 160px; border-radius: 10px; }
.cart-actions .btn-outline { padding: 10px 14px; border-radius: 10px; }

.cart-section {
  display: block;
  padding: 40px 0;
}

.cart-update-form {
  width: 100%;
}

@media (min-width: 1040px) {
  .cart-update-form {
    display: grid;
    grid-template-columns: 1fr 380px;
    grid-template-rows: auto auto;
    gap: 32px;
    align-items: start;
    width: 100%;
  }

  .cart-update-form .cart-list {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    margin-bottom: 0;
  }

  .cart-update-form .cart-summary {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    position: sticky;
    top: 100px;
    max-width: 100%;
    margin-bottom: 0;
  }

  .cart-update-form .cart-actions {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }
}

@media (max-width: 780px) {
  .cart-actions { flex-direction: column; }
  .cart-actions .btn-primary, .cart-actions .btn-outline { width: 100%; }
  .cart-summary { padding: 20px; }
}

.cart-section .section-head {
  margin-bottom: 36px;
}

.cart-empty {
  background: var(--surface);
  padding: 60px 40px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 30px;
  align-items: start;
}
.panel {
  background: var(--surface);
  border-radius: 26px;
  padding: 36px;
  box-shadow: var(--shadow);
}
.panel h3 {
  margin-top: 0;
  margin-bottom: 22px;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
}
.order-summary {
  background: var(--surface-alt);
  border: 1px solid rgba(17,24,39,0.08);
  border-radius: 20px;
  padding: 24px;
}
.summary-row {
  align-items: center;
}
.summary-total {
  font-size: 1rem;
  border-top: 1px solid rgba(17,24,39,0.08);
  margin-top: 16px;
  padding-top: 16px;
}
.order-summary .summary-row:last-of-type {
  border-bottom: none;
}

.product-price {
  margin: 0;
  font-weight: 700;
  color: var(--primary);
}

.newsletter-section {
  position: relative;
  overflow: hidden;
  padding: 70px 0 90px;
  background: #141b2b;
  color: #f8fafc;
}
.newsletter-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
  max-width: 720px;
  padding: 50px 40px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.newsletter-card .eyebrow,
.newsletter-card h2,
.newsletter-card p {
  color: #f8fafc;
}
.newsletter-card h2 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  margin: 0;
  line-height: 1.05;
}
.newsletter-card p {
  margin: 16px 0 0;
  color: rgba(248, 250, 252, 0.8);
  max-width: 580px;
}
.newsletter-form {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 10px;
}
.newsletter-form input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #f8fafc;
  padding: 10px 0;
}
.newsletter-form input::placeholder {
  color: rgba(248, 250, 252, 0.45);
}
.newsletter-form input:focus {
  outline: none;
}
.btn-ghost {
  background: transparent;
  color: #f8fafc;
  border-radius: 0;
  font-size: 1.25rem;
  padding: 0;
  min-width: 48px;
  min-height: 48px;
}
.newsletter-accent {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Playfair Display', serif;
  font-size: 16rem;
  line-height: 0.9;
  color: rgba(255, 255, 255, 0.07);
  pointer-events: none;
  user-select: none;
}

.footer {
  background: var(--surface);
  color: var(--text-muted);
  padding: 48px 0 28px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
}
.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--primary);
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.footer-links h4 {
  margin: 0 0 18px;
  color: var(--primary);
}
.footer-links a {
  color: var(--text-muted);
  display: block;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--primary);
}
.footer-features {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
}
.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.feature-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 24, 39, 0.1);
}
.feature-icon svg {
  width: 16px;
  height: 16px;
}
.footer-copy-note {
  margin-top: 42px;
  color: rgba(27, 28, 25, 0.7);
  font-size: 0.92rem;
}

/* Bottom navigation (mobile only) */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-base);
  border-top: 1px solid var(--border-light);
  padding: 8px 0;
  z-index: 90;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  padding: 6px 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 500;
  text-align: center;
  border: none;
  background: none;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  min-height: 56px;
  position: relative;
}

.bottom-nav-item:hover {
  color: var(--primary);
  background: rgba(76, 128, 57, 0.05);
}

.bottom-nav-item svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.bottom-nav-item .badge {
  position: absolute;
  top: 2px;
  right: 8px;
  background: var(--primary);
  color: white;
  font-size: 0.6rem;
  padding: 2px 4px;
  border-radius: 50%;
  min-width: 16px;
  text-align: center;
  line-height: 1;
}

@media (max-width: 1040px) {
  .hero-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .nav-links { justify-content: center; gap: 18px; }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 780px) {
  body { padding-bottom: 0; }
  .bottom-nav { display: none !important; }
  html { font-size: 15px; }
  .container { padding: 0 14px; }
  .nav-inner { padding: 14px 0; gap: 12px; }
  .nav-links { display: none; }
  .nav-actions { gap: 8px; }
  .menu-btn { display: inline-flex; }
  .search-btn { display: inline-flex; }
  .brand-full { display: inline; font-size: 1rem; }
  .brand-short { display: none; }
  .search-ghost { position: absolute; top: 60px; left: 0; right: 0; width: 100%; max-width: none; min-width: auto; border: none; border-bottom: 1px solid rgba(17, 24, 39, 0.08); background: rgba(250, 249, 244, 0.98); padding: 14px 14px; display: none; }
  .search-ghost.open { display: flex; }
  .search-ghost input { padding: 8px 10px; font-size: 0.9rem; min-width: 0; }
  .menu { display: none !important; position: absolute; top: 80px; left: 0; right: 0; background: rgba(250, 249, 244, 0.98); flex-direction: column; padding: 18px 14px; gap: 14px; border-bottom: 1px solid rgba(17, 24, 39, 0.08); box-shadow: 0 16px 50px rgba(15, 23, 42, 0.08); }
  .menu.open { display: flex !important; }
  .icon-button { width: 40px; height: 40px; }
  /* Hero section mobile */
  .hero-section { padding: 50px 0 45px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-copy { max-width: 100%; }
  .hero-copy h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.1; }
  .hero-text { margin: 16px 0 20px; font-size: 0.9rem; line-height: 1.6; }
  .hero-actions { gap: 12px; }
  .hero-image { display: none; }
  .hero-frame { width: min(100%, 280px); }
  .hero-frame img { object-position: center top; }
  .hero-backdrop { display: none; }
  /* Grid layouts mobile */
  .product-grid { grid-template-columns: 1fr; gap: 16px; }
  .product-card { min-height: auto; gap: 10px; }
  .product-media { min-height: 180px; }
  .product-copy { padding: 14px; }
  .product-label { font-size: 0.7rem; }
  .product-copy h3 { font-size: 0.95rem; margin-bottom: 8px; }
  /* Category carousel mobile */
  .carousel-container { gap: 12px; }
  .carousel-btn { width: 40px; height: 40px; }
  .category-carousel { gap: 12px; }
  .cat-card { width: 100px; height: 100px;  }
  .cat-icon { width: 68px; height: 68px }
  .cat-icon svg { width: 20px; height: 20px; }
  .cat-label { font-size: 0.7rem; }
  /* Section mobile */
  .category-section, .products-section { padding: 50px 0; }
  .section-head { margin-bottom: 32px; gap: 12px; }
  .section-head h2 { font-size: clamp(1.2rem, 3vw, 1.8rem); }
  .eyebrow { font-size: 0.75rem; margin-bottom: 12px; }
  /* Newsletter mobile */
  .newsletter-section { padding: 50px 0 60px; }
  .newsletter-card { padding: 30px 20px; gap: 18px; }
  .newsletter-card h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); }
  .newsletter-card p { font-size: 0.9rem; margin-top: 8px; }
  .newsletter-form { gap: 10px; }
  .newsletter-accent { display: none; }
  /* Product detail mobile */
  .product-detail { grid-template-columns: 1fr; gap: 24px; padding: 24px; margin: 30px 0; }
  .product-detail-copy h1 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
  .product-detail-copy .price { font-size: 1.4rem; }
  .product-detail-form { max-width: 100%; }
  .product-detail-actions { flex-direction: column; gap: 10px; }
  .product-detail-actions .btn { width: 100%; }
  /* Cart mobile */
  .cart-item { grid-template-columns: 100px 1fr auto; gap: 12px; padding: 14px; min-height: auto; }
  .cart-item-media { width: 100px; min-width: 100px; aspect-ratio: 2/3; }
  .cart-item-title { font-size: 0.95rem; }
  .cart-item-price { font-size: 0.9rem; }
  .cart-item-meta { gap: 10px; }
  .cart-item-meta .qty-input { width: 70px; padding: 6px 8px; }
  .cart-item-total { font-size: 0.95rem; min-width: auto; }
  .cart-summary { padding: 18px; margin-bottom: 16px; }
  .cart-summary .row { padding: 8px 0; font-size: 0.9rem; }
  .cart-actions { gap: 10px; }
  .cart-actions .btn-primary, .cart-actions .btn-outline { width: 100%; padding: 12px 14px; font-size: 0.9rem; }
  .checkout-grid { grid-template-columns: 1fr; gap: 18px; }
  .panel { padding: 24px; }
  .panel h3 { font-size: 1.3rem; margin-bottom: 16px; }
  /* Footer mobile */
  .footer { padding: 36px 0 20px; }
  .footer-inner { gap: 24px; }
  .footer-brand { font-size: 1rem; }
  .footer-links { grid-template-columns: 1fr; gap: 14px; }
  .footer-links h4 { font-size: 0.95rem; margin-bottom: 12px; }
  .footer-links a { font-size: 0.9rem; }
  .feature-pill { font-size: 0.75rem; gap: 8px; }
  .footer-copy-note { font-size: 0.85rem; }
  .btn { padding: 10px 16px; font-size: 0.85rem; min-height: 40px; }
  
  /* Admin mobile */
  header.admin-nav .nav-links { display: none !important; position: absolute; top: 56px; left: 0; right: 0; background: var(--surface); flex-direction: column; padding: 0; border-bottom: 1px solid var(--border); box-shadow: 0 4px 12px rgba(15,23,42,0.08); z-index: 99; }
  header.admin-nav .nav-links.open { display: flex !important; }
  header.admin-nav .menu-btn { display: inline-flex; }
  .stats-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
  .stat-card { padding: 14px; }
  .stat-card h2 { font-size: 1.3rem; }
  .dash { grid-template-columns: 1fr; }
  .hide-mobile { display: none !important; }
  .hide-desktop { display: table-cell !important; }
  .order-id { font-weight: 700; }
  .order-customer { max-width: 150px; word-break: break-word; }
  .inline-form-compact { flex-wrap: wrap; gap: 4px; }
  .small-select { max-width: 110px; font-size: 0.8rem; padding: 5px 6px; }
  .orders-table { font-size: 0.85rem; }
  .orders-table td { padding: 8px 10px; }
  .order-details { display: block; }
  .order-details summary { padding: 4px 0; margin-top: 4px; }
}

@media (max-width: 600px) {
  .search-form { grid-template-columns: 1fr; gap: 12px; margin-bottom: 24px; }
  .search-form .input, .search-form select { padding: 12px 12px; font-size: 0.9rem; }
  .search-form button { padding: 12px; min-height: 44px; font-size: 0.85rem; }
}

/* Admin Navigation and Menu */
header.admin-nav .nav-links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
header.admin-nav .nav-links a {
  padding: 12px 14px;
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid rgba(17, 24, 39, 0.04);
  text-align: left;
}
header.admin-nav .nav-links a.active {
  background: rgba(17, 24, 39, 0.06);
  border-left: 4px solid var(--primary);
  padding-left: 10px;
}

/* Admin / table improvements */
.stats-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 30px; }
.stat-card { background: var(--surface); border: 1px solid rgba(17,24,39,0.08); padding: 18px; border-radius: 8px; }
.stat-card .muted { font-size: 0.85rem; color: var(--text-muted); }
.dash { display: grid; gap: 24px; grid-template-columns: 1fr minmax(360px, 520px); align-items: start; }
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; margin-top: 12px; background: transparent; }
.table thead th { text-align: left; font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--text-muted); font-size: 0.95rem; }
.table tbody td { padding: 10px 14px; border-bottom: 1px solid rgba(17,24,39,0.04); vertical-align: middle; color: var(--text); }
.table img { width: 48px; height: 64px; object-fit: cover; border-radius: 6px; }
.table .actions { white-space: nowrap; display: flex; gap: 8px; justify-content: flex-end; }
.btn-outline { border: 1px solid rgba(17,24,39,0.08); background: transparent; padding: 8px 10px; border-radius: 8px; }

/* Orders table mobile styles */
.orders-panel { padding: 0; }
.orders-table { font-size: 0.95rem; }
.order-id { font-weight: 700; white-space: nowrap; }
.order-customer { min-width: 140px; }
.order-total { font-weight: 600; white-space: nowrap; }
.order-update { white-space: nowrap; }
.inline-form-compact { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.small-select { max-width: 130px; padding: 6px 8px; font-size: 0.85rem; }
.btn-sm { padding: 6px 10px; font-size: 0.85rem; }
.small-text { font-size: 0.8rem; }
.muted { color: var(--text-muted); }

.hide-mobile { display: table-cell; }
.hide-desktop { display: none; }

/* Admin nav tweaks for clarity on desktop */
@media (min-width: 780px) {
  header.nav .nav-links { gap: 20px; }
  header.nav .nav-links a { padding: 10px 12px; border-radius: 8px; color: var(--text-muted); background: transparent; text-transform: none; font-weight: 600; }
  header.nav .nav-links a.active { background: rgba(17,24,39,0.04); color: var(--primary); }
  header.nav .brand { font-size: 1rem; }
  
  header.admin-nav .menu-btn { display: none !important; }
  header.admin-nav .nav-links { display: flex !important; position: static; background: transparent; border: none; box-shadow: none; flex-direction: row; padding: 0; gap: 32px; flex: 1; }
  header.admin-nav .nav-links a { padding: 10px 12px; border-radius: 8px; color: var(--text-muted); background: transparent; border: none; border-left: none; text-transform: uppercase; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.18em; }
  header.admin-nav .nav-links a.active { background: transparent; border: none; color: var(--primary); padding-left: 12px; }
}

/* Table column sizing on larger screens */
@media (min-width: 900px) {
  .table th:nth-child(1), .table td:nth-child(1) { width: 60px; }
  .table th:nth-child(4), .table td:nth-child(4) { width: 120px; text-align: right; }
}

/* Prevent overly stretched flex children inside panels */
.panel { background: var(--surface); border: 1px solid rgba(17,24,39,0.08); border-radius: 8px; padding: 24px; }
.panel .field { max-width: 100%; }
.panel .field .input { width: 100%; box-sizing: border-box; }

/* Inline forms inside table rows */
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form .input { max-width: 220px; }

/* Constrain number inputs and small fields so they don't stretch rows */
input[type="number"], .qty-input, select.small { width: auto; min-width: 88px; max-width: 140px; }

@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; }
  .table img { width: 40px; height: 52px; }
  .inline-form .input { max-width: 100%; }
  .stats-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
}

/* Make action buttons compact */
.table .btn { padding: 6px 10px; font-size: 0.9rem; }

/* Improve toast visibility */
.toast { padding: 12px 16px; border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); margin-bottom: 12px; }

/* Order status badges */
.status { display: inline-block; padding: 6px 10px; border-radius: 8px; font-weight: 700; font-size: 0.85rem; color: #fff; }
.status.Pending { background: #f59e0b; color: #111827; }
.status.Confirmed { background: #0ea5a4; }
.status.Shipped { background: #3b82f6; }
.status.Delivered { background: #10b981; }

/* Inline form select sizing */
.inline-form select, .inline-form .input { padding: 8px 10px; min-width: 120px; }
.inline-form .btn { padding: 6px 10px; }

.whatsapp-float img{
    width: 100%;
    height: 100%;
    display: block;
}

.whatsapp-float:hover{
    transform: scale(1.1);
    transition: 0.3s;
}

/* ── Policy Pages (privacy.php / terms.php) ── */
.policy-section {
  padding: 60px 0 100px;
}

.policy-wrap {
  max-width: 780px;
  margin: 0 auto;
}

.policy-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.policy-header h1 {
  margin: 10px 0 12px;
}

.policy-meta {
  color: var(--text-soft);
  font-size: 0.88rem;
  margin: 0;
}

.policy-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--primary);
  margin: 40px 0 12px;
}

.policy-body p {
  color: var(--text-muted);
  line-height: 1.9;
  margin: 0 0 16px;
}

.policy-body ul {
  margin: 0 0 20px;
  padding-left: 20px;
}

.policy-body ul li {
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 6px;
}

.policy-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-body a:hover {
  color: var(--secondary);
}

/* ── Account Dashboard ── */
.acc-wrap { display: grid; grid-template-columns: 240px 1fr; grid-template-rows: auto 1fr; gap: 0; min-height: 60vh; align-items: start; }
.acc-topbar { display: none; }
.acc-sidebar { grid-row: 1 / 3; background: var(--surface); border-radius: 16px; padding: 24px 16px; border: 1px solid var(--border); position: sticky; top: 24px; }
.acc-profile-card { display: flex; align-items: center; gap: 12px; padding: 0 8px 20px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.acc-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 1.2rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.acc-name { font-weight: 600; font-size: .95rem; }
.acc-email { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }
.acc-nav { display: flex; flex-direction: column; gap: 4px; }
.acc-nav-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 500; transition: background .15s; }
.acc-nav-link:hover { background: rgba(0,0,0,.04); }
.acc-nav-link.active { background: var(--primary); color: #fff; }
.acc-nav-link.active svg { stroke: #fff; }
.acc-logout { margin-top: 12px; color: #ef4444; }
.acc-logout:hover { background: #fef2f2; }
.acc-content { padding: 0 0 0 28px; }
.acc-title { font-family: 'Playfair Display', serif; font-size: 1.6rem; margin-bottom: 20px; }
.acc-meta { color: var(--text-muted); font-size: .9rem; margin-bottom: 16px; }
.acc-back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: .9rem; margin-bottom: 16px; text-decoration: none; }
.acc-back:hover { color: var(--text); }
.acc-username { font-weight: 600; }
.acc-empty { text-align: center; padding: 48px 24px; color: var(--text-muted); display: flex; flex-direction: column; align-items: center; gap: 16px; }

/* Order cards */
.order-list { display: flex; flex-direction: column; gap: 12px; }
.order-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; }
.order-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.order-date { font-weight: 600; font-size: .95rem; }
.order-city { color: var(--text-muted); font-size: .85rem; margin-left: 10px; }
.order-card-bottom { display: flex; justify-content: space-between; align-items: center; }
.order-total { font-size: 1.1rem; font-weight: 700; }

/* Order detail */
.order-detail-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.order-detail-row { display: flex; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--border); font-size: .9rem; }
.order-detail-row:last-child { border-bottom: none; }
.order-detail-row span:first-child { color: var(--text-muted); }

/* Address cards */
.address-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.address-info { display: flex; gap: 10px; align-items: flex-start; flex: 1; }

/* Mobile */
@media (max-width: 768px) {
  .acc-wrap { grid-template-columns: 1fr; }
  .acc-topbar { display: flex; justify-content: space-between; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; }
  .acc-toggle { display: flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 7px 12px; cursor: pointer; font-size: .9rem; font-weight: 500; }
  .acc-sidebar { display: none; position: fixed; top: 0; left: 0; width: 280px; height: 100vh; z-index: 200; border-radius: 0; overflow-y: auto; box-shadow: 4px 0 24px rgba(0,0,0,.12); }
  .acc-sidebar.open { display: block; }
  .acc-content { padding: 0; }
}