/* =========================================================
   CASTANEAS — Shared design system v6
   Artisanal chestnut cream e-commerce
   ========================================================= */

:root {
  /* Core palette */
  --cream:        #F2E8D9;
  --cream-soft:   #F8F1E4;
  --cream-light:  #FBF6EC;
  --shell-accent: #8E5037;
  --brown-deep:   #5C7560;
  --brown-chest:  #7F957D;
  --brown-soft:   #9CB099;
  --accent-cocoa: #3B1F0E;
  --accent-chest: #6B3A2A;
  --ink:          #2A1810;
  --ink-soft:     #5C4438;
  --muted:        #9A8676;
  --line:         rgba(59, 31, 14, 0.10);
  --line-strong:  rgba(59, 31, 14, 0.22);

  /* Product backgrounds */
  --terracotta:   #E8C9A0;
  --vieux-rose:   #E8C4B8;
  --sauge:        #C8D5B9;
  --dore:         #E5D5A8;

  /* Badges */
  --corail:       #D45A47;

  /* Type */
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans:  "Manrope", -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* Radii — coins très arrondis */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 36px;
  --r-pill: 999px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* =========================================================
   PROMO BAR
   ========================================================= */
.promo-bar {
  background: var(--shell-accent);
  color: var(--cream);
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 10px 16px;
  font-weight: 600;
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 32px;
  gap: 32px;
}
.brand {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brown-deep);
  display: inline-flex;
  align-items: center;
}
.brand-logo { display: block; height: 34px; width: auto; }
.footer-brand-logo { display: block; height: 42px; width: auto; filter: brightness(0) invert(1); }
.brand sup {
  font-size: 10px;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.18em;
  vertical-align: super;
  color: var(--brown-chest);
  margin-left: 4px;
}
.nav-links {
  display: flex;
  gap: 36px;
  justify-content: center;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  font-weight: 600;
}
.nav-links a {
  position: relative;
  padding: 6px 2px;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--brown-chest); }
.nav-links a.active { color: var(--brown-deep); font-weight: 700; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 18px;
  height: 2px;
  background: var(--brown-chest);
  border-radius: 2px;
  transform: translateX(-50%);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brown-deep);
  position: relative;
  transition: background .15s ease;
}
.icon-btn:hover { background: var(--cream); }
.icon-btn svg { width: 20px; height: 20px; }
.cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--brown-chest);
  color: var(--cream-light);
  font-size: 10px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--shell-accent);
  color: var(--cream);
  margin-top: 96px;
  padding: 64px 32px 32px;
}
.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(242, 232, 217, 0.15);
}
.footer-brand {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 12px;
}
.footer p {
  color: rgba(242, 232, 217, 0.7);
  font-size: 13px;
  line-height: 1.7;
  max-width: 320px;
}
.footer h4 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 18px;
  color: var(--cream);
  font-weight: 700;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a {
  color: rgba(242, 232, 217, 0.72);
  font-size: 14px;
  font-weight: 500;
  transition: color .15s ease;
}
.footer ul a:hover { color: var(--cream); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 12px;
  color: rgba(242, 232, 217, 0.55);
}

/* =========================================================
   BREADCRUMB
   ========================================================= */
.breadcrumb {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 32px 0;
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb a { color: var(--ink-soft); transition: color .15s ease; }
.breadcrumb a:hover { color: var(--brown-chest); }
.breadcrumb .sep { color: var(--muted); font-size: 11px; }
.breadcrumb .current { color: var(--brown-deep); font-weight: 700; }

/* =========================================================
   PAGE CONTAINER
   ========================================================= */
.page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}

/* =========================================================
   PRODUCT CARD
   ========================================================= */
.product-card {
  background: #ffffff;
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -16px rgba(59, 31, 14, 0.18);
}
.product-img {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-img .badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
}
.fav-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  color: var(--brown-deep);
  transition: background .15s, color .15s;
}
.fav-btn:hover { background: #fff; color: var(--corail); }
.fav-btn.active { color: var(--corail); }
.fav-btn svg { width: 18px; height: 18px; }

.product-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--brown-deep);
  line-height: 1.2;
  margin: 0;
}
.product-weight {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.product-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  max-height: 4.5em;
  overflow: hidden;
}
.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}
.product-price {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--brown-deep);
}

/* =========================================================
   BADGES
   ========================================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  background: var(--cream-light);
  color: var(--brown-deep);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.badge--corail {
  background: var(--corail);
  color: #ffffff;
  border-color: transparent;
}
.badge--brown {
  background: var(--accent-cocoa);
  color: var(--cream);
  border-color: transparent;
}
.badge--cream {
  background: var(--cream-light);
  color: var(--brown-deep);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  transition: background .15s, color .15s, transform .15s;
}
.btn--primary {
  background: var(--brown-chest);
  color: var(--cream-light);
}
.btn--primary:hover { background: var(--accent-cocoa); }
.btn--dark {
  background: var(--accent-cocoa);
  color: var(--cream-light);
}
.btn--dark:hover { background: #2a1408; }
.btn--ghost {
  background: transparent;
  color: var(--brown-deep);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover { background: var(--cream-soft); }
.btn--full { width: 100%; padding: 16px 24px; font-size: 15px; }
.btn--lg { padding: 18px 32px; font-size: 16px; }

/* Card add-to-cart */
.add-btn {
  background: var(--brown-chest);
  color: var(--cream-light);
  border-radius: var(--r-pill);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .15s;
}
.add-btn:hover { background: var(--accent-cocoa); }
.add-btn svg { width: 14px; height: 14px; }

/* =========================================================
   JAR PLACEHOLDER (simple stylized chestnut jar)
   ========================================================= */
.jar {
  width: 50%;
  max-width: 180px;
  filter: drop-shadow(0 16px 24px rgba(59, 31, 14, 0.18));
}
.jar--lg { max-width: 320px; width: 60%; }

/* =========================================================
   CART DRAWER
   ========================================================= */
.cart-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(42, 24, 16, 0.45);
  z-index: 90;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: fadeIn .2s ease;
}
.cart-backdrop.open { display: block; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 420px;
  max-width: 96vw;
  background: #ffffff;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.25,.8,.25,1);
  box-shadow: -12px 0 48px rgba(42, 24, 16, 0.15);
}
.cart-drawer.open { transform: translateX(0); }

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
}
.cart-head h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--brown-deep);
  margin: 0;
}
.cart-close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--cream-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background .15s;
}
.cart-close:hover { background: var(--cream); }
.cart-close svg { width: 18px; height: 18px; }

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 260px;
  text-align: center;
  padding: 32px;
  gap: 10px;
}
.cart-empty-icon { font-size: 48px; margin-bottom: 8px; }

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}
.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: var(--r-md);
  background-color: var(--cream-soft);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.cart-item-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--brown-deep);
  line-height: 1.3;
}
.cart-item-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.cart-item-box {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--cream-soft);
  border-radius: var(--r-md);
}
.cart-item-box__title {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brown-chest);
  font-weight: 700;
  margin-bottom: 8px;
}
.cart-item-box__list {
  display: grid;
  gap: 8px;
}
.cart-item-box__row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 8px;
}
.cart-item-box__img {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background-color: #fff;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
.cart-item-box__name {
  font-size: 12px;
  color: var(--brown-deep);
  font-weight: 700;
  line-height: 1.2;
}
.cart-item-box__meta {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.cart-item-box__price {
  font-size: 12px;
  color: var(--brown-deep);
  font-weight: 700;
  white-space: nowrap;
}
.cart-item-price {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--brown-deep);
  white-space: nowrap;
}
.qty-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-top: 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.qty-ctrl button {
  width: 30px;
  height: 30px;
  font-size: 18px;
  font-weight: 600;
  color: var(--brown-deep);
  transition: background .12s;
  line-height: 1;
}
.qty-ctrl button:hover { background: var(--cream-soft); }
.qty-ctrl .val {
  min-width: 28px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  padding: 0 4px;
}

.cart-foot {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  display: none;
  flex-direction: column;
  gap: 12px;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-total-row span:first-child {
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 600;
}
.cart-total-row span:last-child {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--brown-deep);
}
.cart-shipping-note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin: 0;
}
.cart-checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent-cocoa);
  color: var(--cream-light);
  font-size: 15px;
  font-weight: 700;
  padding: 16px 24px;
  border-radius: var(--r-pill);
  transition: background .15s;
  cursor: pointer;
}
.cart-checkout-btn:hover { background: #2a1408; }
.cart-checkout-btn svg { width: 16px; height: 16px; }

/* count badge animation */
@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.5); }
  100% { transform: scale(1); }
}
.bump { animation: bump .3s ease; }

/* =========================================================
   TOAST NOTIFICATION
   ========================================================= */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--accent-cocoa);
  color: var(--cream-light);
  font-size: 14px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  box-shadow: 0 8px 32px rgba(42, 24, 16, 0.22);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity .22s ease, transform .22s ease;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast-check {
  width: 20px;
  height: 20px;
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

/* =========================================================
   FLY-TO-CART ANIMATION
   ========================================================= */
.fly-dot {
  position: fixed;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--brown-chest);
  box-shadow: 0 4px 12px rgba(42, 24, 16, 0.3);
  z-index: 300;
  pointer-events: none;
}

/* =========================================================
   NEWSLETTER SUCCESS
   ========================================================= */
.newsletter-success {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--brown-deep);
  font-weight: 700;
  font-size: 15px;
  padding: 16px 0;
}
.newsletter-success.show { display: flex; }
.newsletter-success-icon {
  width: 32px;
  height: 32px;
  background: var(--brown-chest);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
}

/* =========================================================
   AUTH PAGES (login / register)
   ========================================================= */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: var(--cream-soft);
}
.auth-card {
  background: #ffffff;
  border-radius: var(--r-xl);
  padding: 48px 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 16px 64px rgba(42, 24, 16, 0.10);
}
.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}
.auth-logo img { height: 40px; margin: 0 auto; }
.auth-title {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--brown-deep);
  text-align: center;
  margin: 0 0 6px;
}
.auth-subtitle {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 32px;
}
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.auth-field input {
  padding: 13px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--cream-soft);
  outline: none;
  transition: border-color .15s;
  width: 100%;
}
.auth-field input:focus { border-color: var(--brown-chest); background: #fff; }
.auth-field input.error { border-color: var(--corail); }
.auth-error {
  font-size: 12px;
  color: var(--corail);
  font-weight: 600;
  display: none;
}
.auth-error.show { display: block; }
.auth-submit {
  margin-top: 8px;
  background: var(--accent-cocoa);
  color: var(--cream-light);
  font-size: 15px;
  font-weight: 700;
  padding: 16px;
  border-radius: var(--r-pill);
  width: 100%;
  transition: background .15s;
}
.auth-submit:hover { background: #2a1408; }
.auth-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.auth-divider {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0;
}
.auth-divider a {
  color: var(--brown-chest);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-alert {
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 600;
  display: none;
}
.auth-alert.show { display: block; }
.auth-alert--error { background: #fce8e6; color: var(--corail); border: 1px solid #f5c2be; }
.auth-alert--success { background: #e9f5ee; color: #2a7a50; border: 1px solid #b3dfc6; }

/* =========================================================
   CONFIRMATION PAGE
   ========================================================= */
.confirm-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 32px;
}
.confirm-card {
  background: #ffffff;
  border-radius: var(--r-xl);
  padding: 64px 48px;
  text-align: center;
  max-width: 560px;
  width: 100%;
  box-shadow: 0 16px 64px rgba(42, 24, 16, 0.10);
}
.confirm-icon {
  font-size: 64px;
  margin-bottom: 24px;
  display: block;
}
.confirm-title {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--brown-deep);
  margin: 0 0 12px;
}
.confirm-title em { font-style: italic; font-weight: 400; }
.confirm-sub {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0 0 32px;
}
.confirm-ref {
  display: inline-block;
  background: var(--cream-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 14px 24px;
  font-family: var(--mono, monospace);
  font-size: 14px;
  font-weight: 700;
  color: var(--brown-deep);
  letter-spacing: 0.08em;
  margin-bottom: 36px;
}
.confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

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

/* =========================================================
   RESPONSIVE — HAMBURGER & MOBILE NAV
   ========================================================= */

/* Hamburger button (hidden on desktop, shown by media query) */
.nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  background: var(--cream-soft);
  border: none;
  cursor: pointer;
  color: var(--brown-deep);
  flex-shrink: 0;
  transition: background .15s;
  margin-left: 4px;
}
.nav-burger:hover { background: var(--cream); }
.nav-burger svg { width: 22px; height: 22px; display: block; }

/* Mobile nav overlay */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(42, 24, 16, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.nav-mobile.open { display: block; }

.nav-mobile__panel {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: #ffffff;
  border-radius: 0 0 28px 28px;
  padding: 16px 20px 28px;
  box-shadow: 0 12px 48px rgba(42, 24, 16, 0.18);
  animation: navPanelIn .22s ease;
}

@keyframes navPanelIn {
  from { transform: translateY(-14px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

.nav-mobile__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.nav-mobile__close {
  width: 40px; height: 40px;
  border-radius: var(--r-pill);
  background: var(--cream-soft);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brown-deep);
  transition: background .15s;
  flex-shrink: 0;
}
.nav-mobile__close:hover { background: var(--cream); }
.nav-mobile__close svg { width: 18px; height: 18px; display: block; }

.nav-mobile__links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-mobile__links a {
  display: block;
  padding: 13px 16px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background .15s, color .15s;
  letter-spacing: -0.01em;
}
.nav-mobile__links a:hover,
.nav-mobile__links a.active {
  background: var(--cream-soft);
  color: var(--brown-deep);
}

/* =========================================================
   RESPONSIVE — BREAKPOINTS
   ========================================================= */

@media (max-width: 768px) {
  /* Nav: hide desktop links, show hamburger */
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-inner {
    padding: 12px 16px;
    gap: 0;
    grid-template-columns: auto 1fr auto;
  }

  /* Footer */
  .footer { padding: 0 12px 20px; margin-top: 64px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Breadcrumb */
  .breadcrumb { padding: 14px 16px 0; }

  /* Page container */
  .page { padding: 0 16px 64px; }
}

/* =========================================================
   MOBILE CATEGORY STRIP
   ========================================================= */
.mobile-cats {
  display: none;
}
.mobile-cats::-webkit-scrollbar { display: none; }

.mobile-cats__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  background: var(--cream-soft);
  color: var(--ink-soft);
  transition: background .15s, color .15s;
  text-decoration: none;
}
.mobile-cats__pill:hover,
.mobile-cats__pill.active {
  background: var(--brown-deep);
  color: #ffffff;
}

@media (max-width: 768px) {
  .mobile-cats {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    gap: 8px;
    padding: 10px 16px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .confirm-card { padding: 40px 24px; }
  .confirm-actions { flex-direction: column; align-items: center; }
  .auth-card { padding: 36px 22px; }
}
