/* ==========================================================================
   1. VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root {
  /* ===== Theme: Graphite Moss x Vanilla Bean ===== */
  --moss: #523D2D;            /* Graphite Moss - page background          */
  --moss-deep: #3C2D21;       /* deeper moss - footer, bars, dark panels  */
  --moss-soft: #604A38;       /* lifted moss - bands and raised dark areas */
  --moss-line: rgba(244, 239, 230, 0.16);
  --vanilla: #F4EFE6;         /* Vanilla Bean - navbar, cards, text on dark */
  --vanilla-2: #E9E1D3;
  --vanilla-3: #FBF8F2;       /* lightest surface (cards)                  */
  --ink: #33261B;             /* text on light surfaces                    */
  --ink-soft: #6B5646;        /* muted text on light surfaces              */
  --accent-ink: #8A5430;      /* accent used on light surfaces             */
  --accent-lt: #E2B27C;       /* accent used on dark surfaces              */
  --header-h: 65px;

  /* Legacy names, remapped so every existing rule picks up the theme.
     Default meaning = "sits on a light surface". Dark areas re-scope them below. */
  --espresso: var(--ink);
  --caramel: var(--accent-ink);
  --caramel-hover: #6F4224;
  --cream: var(--vanilla);
  --white: var(--vanilla-3);
  --border-color: #D8CBB6;

  /* About / Bento */
  --about-bg: var(--moss);
  --about-card-bg: var(--moss-soft);
  --about-accent: var(--accent-lt);
  --about-dark: var(--vanilla);

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --about-handwriting: 'Caveat', cursive;

  /* Components & Elevators */
  --radius-card: 14px;
  --radius-btn: 30px;
  --shadow-sm: 0 4px 12px rgba(30, 21, 14, 0.18);
  --shadow-md: 0 8px 24px rgba(30, 21, 14, 0.26);
}

/* ==========================================================================
   2. GLOBAL RESETS & BASE STYLES
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  background-color: var(--moss-deep);
}

body {
  background-color: var(--moss);
  color: var(--vanilla);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  display: block;
}

/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */
header {
  background-color: var(--espresso);
  padding: 10px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 1px;
}

.brand-logo span {
  color: var(--caramel);
}

.site-logo,
.bento-logo {
  height: clamp(38px, 5vw, 50px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  background-color: transparent;
  border: none;
  border-radius: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: clamp(12px, 2vw, 24px);
  align-items: center;
}

.nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--caramel);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--caramel);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn,
.cart-icon-btn {
  background: transparent;
  border: none;
  color: var(--cream);
  font-size: 1.25rem;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transition: all 0.2s ease;
  text-decoration: none;
  touch-action: manipulation;
}

.icon-btn:hover,
.cart-icon-btn:hover {
  background-color: rgba(198, 138, 91, 0.2);
  color: var(--caramel);
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background-color: var(--caramel);
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 2px 6px;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
}

/* ==========================================================================
   4. LAYOUT CONTAINERS & GRID SYSTEM
   ========================================================================== */
.page-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 15px 20px 30px;
  width: 100%;
  flex: 1;
}

.section {
  padding: 24px 20px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  scroll-margin-top: 70px;
}

.section-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 60px 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* ==========================================================================
   5. BUTTONS & INTERACTIVE ELEMENTS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  text-decoration: none;
  min-height: 44px;
  touch-action: manipulation;
  box-shadow: 0 2px 6px rgba(62, 38, 23, 0.05);
}

.btn-primary {
  background-color: #523D2D;
  color: var(--cream);
  border-color: #523D2D;
}

.btn-primary:hover {
  background-color: var(--caramel-hover);
  color: var(--white);
  border-color: var(--caramel-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(198, 138, 91, 0.3);
}

.btn-secondary {
  background-color: transparent;
  border-color: #523D2D;
  color: #523D2D;
}

.btn-secondary:hover {
  background-color: #523D2D;
  color: var(--cream);
  transform: translateY(-1px);
}

/* ==========================================================================
   6. CARDS & UI COMPONENTS
   ========================================================================== */
.card {
  background-color: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--espresso);
  margin-bottom: 0;
  line-height: 1.3;
}

.card-text {
  font-size: 0.85rem;
  color: var(--espresso);
  opacity: 0.8;
  flex-grow: 1;
  margin-bottom: 12px;
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  min-height: 2.4rem;
}

.card-price-text {
  font-weight: 700;
  color: var(--caramel);
  font-size: 1.05rem;
  white-space: nowrap;
}

.card-options-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 12px;
  min-height: 76px;
  justify-content: flex-end;
}

.feature-icon {
  font-size: 2rem;
  color: var(--caramel);
  margin-bottom: 12px;
}

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--caramel);
  color: var(--cream);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
}

/* ==========================================================================
   7. FORMS & INPUTS
   ========================================================================== */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--espresso);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  background-color: var(--cream);
  color: var(--espresso);
  outline: none;
  min-height: 42px;
}

.form-control:focus {
  border-color: var(--caramel);
}

.input-password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.btn-toggle-pwd {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--caramel);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 6px;
}

/* ==========================================================================
   8. PAGE HEADERS & HERO SECTIONS
   ========================================================================== */
.page-header-small,
.section-header-small {
  text-align: center;
  padding: 24px 16px 16px;
  scroll-margin-top: 70px;
}

.page-title,
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  color: var(--espresso);
  margin-bottom: 6px;
}

.page-subtitle,
.section-subtitle {
  color: var(--espresso);
  opacity: 0.85;
  font-size: clamp(0.88rem, 2vw, 0.98rem);
  max-width: 600px;
  margin: 0 auto;
}

.tagline {
  color: var(--caramel);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 4px;
}

.hero-bg {
  position: relative;
  background: url('background.jpg') center/cover no-repeat;
  min-height: clamp(580px, 50vh, 450px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  width: 100%;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(62, 38, 23, 0.78);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  color: var(--cream);
  width: 100%;
}

.hero-content .tagline {
  color: var(--caramel);
}

.hero-content .hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--cream);
  margin-bottom: 12px;
  line-height: 1.25;
}

.hero-content .hero-subtitle {
  color: var(--cream);
  opacity: 0.9;
  font-size: clamp(0.88rem, 2vw, 1rem);
  margin-bottom: 22px;
}

.hero-cta-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   9. MENU PAGE SPECIFICS
   ========================================================================== */
.menu-page-wrapper {
  padding-bottom: 40px;
}

.menu-search-container {
  position: relative;
  max-width: 420px;
  margin: 12px auto 0;
  width: 100%;
}

.menu-search-container .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--caramel);
  font-size: 0.95rem;
  pointer-events: none;
  z-index: 2;
}

.menu-search-container input,
.menu-search-container .form-control {
  padding-left: 40px;
  width: 100%;
}

.category-nav-sticky {
  position: sticky;
  top: 68px;
  background-color: var(--cream);
  z-index: 900;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  width: 100%;
  box-shadow: 0 4px 10px rgba(62, 38, 23, 0.06);
}

.category-nav-inner {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-nav-inner::-webkit-scrollbar {
  display: none;
}

.cat-nav-pill {
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: 20px;
  flex-shrink: 0;
}

.cat-nav-pill.active {
  background-color: #523D2D;
  color: var(--cream);
  border-color: #523D2D;
}

.menu-container {
  max-width: 1100px;
  margin: 20px auto 0;
  padding: 0 20px;
}

.menu-section {
  margin-bottom: 35px;
  scroll-margin-top: 130px;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--espresso);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 6px;
}

.section-heading i {
  color: var(--caramel);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.card-img-wrapper {
  position: relative;
  height: 180px;
  width: 100%;
  flex-shrink: 0;
  overflow: hidden;
  background-color: #eee;
}

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

/* ==========================================================================
   10. GALLERY & LIGHTBOX
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  height: 220px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: linear-gradient(transparent, rgba(62, 38, 23, 0.85));
  color: var(--cream);
}

.gallery-overlay h3 {
  font-size: 1rem;
  font-family: var(--font-serif);
}

.gallery-overlay p {
  font-size: 0.75rem;
  opacity: 0.8;
}

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(62, 38, 23, 0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 92%;
  max-height: 75vh;
  border-radius: 8px;
  object-fit: contain;
}

.lightbox-caption {
  color: var(--cream);
  margin-top: 12px;
  font-size: 1rem;
  font-family: var(--font-serif);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 25px;
  color: var(--cream);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 8px;
}

/* ==========================================================================
   11. AUTH / LOGIN PAGE
   ========================================================================== */
.auth-page-body {
  background-color: var(--cream);
}

.auth-page-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
  flex: 1;
}

.cremeur-auth-wrapper {
  width: 100%;
  max-width: 850px;
}

.cremeur-auth-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  min-height: 440px;
}

.auth-panel {
  padding: 30px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-panel-left {
  background-color: var(--espresso);
  color: var(--cream);
  text-align: center;
}

.auth-panel-right {
  background-color: var(--white);
}

.panel-content {
  width: 100%;
  max-width: 360px;
}

.auth-alert {
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  margin-bottom: 15px;
}

.auth-alert.error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #f87171;
}

.auth-alert.success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #34d399;
}

.auth-footer-links {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  font-size: 0.8rem;
}

.auth-footer-links a {
  color: var(--caramel);
  text-decoration: none;
  font-weight: 600;
}

/* ==========================================================================
   12. CART SIDEBAR & CART PAGE
   ========================================================================== */
/* Sidebar Modal */
.cart-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  z-index: 1400;
  display: none;
  transition: opacity 0.3s ease;
}

.cart-backdrop.open {
  display: block;
}

.cart-modal {
  position: fixed;
  top: 0;
  right: -420px;
  width: clamp(320px, 90vw, 400px);
  height: 100%;
  background-color: var(--white);
  box-shadow: -6px 0 25px rgba(0, 0, 0, 0.2);
  z-index: 1500;
  transition: right 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
}

.cart-modal.open {
  right: 0;
}

.cart-header {
  background-color: var(--espresso);
  color: var(--cream);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--caramel);
}

.cart-header h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--cream);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.cart-close-btn:hover {
  background: rgba(198, 138, 91, 0.4);
  color: var(--white);
}

.cart-items {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}

.cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  gap: 12px;
}

.cart-item-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-size: 0.9rem;
  color: var(--espresso);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.cart-item-price {
  font-size: 0.8rem;
  color: var(--caramel);
  font-weight: 600;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-control-group {
  display: flex;
  align-items: center;
  background-color: var(--cream);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2px;
}

.qty-control-group button {
  background: none;
  border: none;
  color: var(--espresso);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.qty-control-group button:hover {
  background: var(--border-color);
}

.qty-control-group .qty-num {
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.btn-remove-item {
  background: transparent;
  border: none;
  color: #a33;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.2s;
  opacity: 0.75;
}

.btn-remove-item:hover {
  background-color: #fee2e2;
  color: #c00;
  opacity: 1;
}

.cart-empty-state {
  text-align: center;
  padding: 30px 10px;
  color: var(--espresso);
  opacity: 0.8;
}

.cart-footer-panel {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  background-color: var(--cream);
}

.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--espresso);
}

.price-row.total {
  font-size: 1.15rem;
  font-weight: 700;
  border-top: 1px dashed var(--border-color);
  padding-top: 10px;
  margin-top: 10px;
}

/* Full Cart Page Grid & Components */
.cart-page-layout,
.cart-page-grid,
.cart-grid-container {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 24px;
  align-items: start;
}

.cart-summary-card,
.cart-summary-panel,
.cart-summary-sidebar,
.cart-page-summary {
  grid-column: 1;
  order: 1;
}

.cart-items-card,
.cart-items-container,
.cart-page-items-wrapper,
#cartPageContainer {
  grid-column: 2;
  order: 2;
}

.cart-page-card {
  padding: 10px 24px;
}

.cart-page-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
  gap: 16px;
}

.cart-page-item-row:last-child {
  border-bottom: none;
}

.cart-page-item-img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

.cart-page-item-details {
  flex: 1;
  min-width: 0;
}

.cart-page-item-title {
  font-size: 1rem;
  color: var(--espresso);
  margin-bottom: 4px;
}

.cart-page-item-price {
  font-size: 0.9rem;
  color: var(--caramel);
  font-weight: 600;
}

.cart-page-item-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.fulfillment-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.fulfillment-tab {
  padding: 10px 20px;
  border-radius: 25px;
  border: 1px solid var(--border-color);
  background: var(--white);
  color: var(--espresso);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.fulfillment-tab:hover {
  border-color: var(--caramel);
}

.fulfillment-tab.active {
  background: #523D2D;
  color: var(--cream);
  border-color: #523D2D;
  box-shadow: 0 4px 12px rgba(198, 138, 91, 0.25);
}

/* ==========================================================================
   13. ABOUT PAGE
   ========================================================================== */
.about-page-main {
  background-color: var(--about-bg);
  color: var(--about-dark);
  font-family: var(--font-sans);
}

/* Spacing above the footer lives on <main>, not <body>, so the footer sits flush at the bottom */
.about-page-main main {
  padding-bottom: 60px;
}

.sub-tag {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #523D2D;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.handwritten-caption {
  font-family: var(--about-handwriting);
  font-size: 1.5rem;
  color: #523D2D;
  line-height: 1.2;
}

.handwritten-caption.right-align {
  text-align: right;
  margin-top: 15px;
}

.banner-hero {
  background: radial-gradient(circle at 20% 50%, #FDFBF7 0%, #EFE3D8 100%);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  border-bottom: 1px solid #D7B899;
  overflow: hidden;
}

.banner-text {
  padding: 60px 8% 60px 10%;
}

.banner-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--about-dark);
  line-height: 1.2;
  margin-bottom: 16px;
  font-weight: 600;
}

.banner-title em {
  font-style: italic;
  font-weight: 400;
}

.banner-description {
  font-size: 0.95rem;
  color: #52412F;
  line-height: 1.7;
  max-width: 480px;
}

.banner-image-container {
  height: 100%;
  max-height: 420px;
  overflow: hidden;
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: ellipse(85% 100% at 85% 50%);
}

.story-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.story-collage {
  position: relative;
  min-height: 380px;
}

.polaroid-frame {
  background: #FBF8F2;
  padding: 10px 10px 25px 10px;
  box-shadow: 0 10px 20px rgba(62, 38, 23, 0.1);
  border-radius: 4px;
  position: absolute;
}

.polaroid-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

.polaroid-frame.main-shop {
  width: 250px;
  height: 280px;
  top: 0;
  left: 10px;
  z-index: 1;
  transform: rotate(-3deg);
}

.polaroid-frame.beans-frame {
  width: 150px;
  height: 170px;
  top: 10px;
  right: 20px;
  z-index: 2;
  transform: rotate(5deg);
}

.polaroid-frame.pastries-frame {
  width: 200px;
  height: 140px;
  bottom: 0;
  left: 110px;
  z-index: 3;
  transform: rotate(3deg);
}

.sticky-note {
  position: absolute;
  bottom: 30px;
  left: 0;
  background: #FFF9E6;
  padding: 12px 18px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transform: rotate(-6deg);
  z-index: 4;
  font-family: var(--about-handwriting);
  font-size: 1.3rem;
  color: #523D2D;
  display: flex;
  flex-direction: column;
  text-align: center;
  line-height: 1.1;
  border: 1px solid #F0E2C1;
}

.story-content h2.section-heading-custom {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--about-dark);
  margin-bottom: 20px;
  line-height: 1.3;
}

.story-content p {
  font-size: 0.92rem;
  color: #52412F;
  line-height: 1.75;
  margin-bottom: 16px;
}

.specialties-section {
  background-color: var(--about-card-bg);
  padding: 60px 20px;
  text-align: center;
}

.specialties-header {
  max-width: 600px;
  margin: 0 auto 40px;
}

.specialties-header h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--about-dark);
  margin-bottom: 8px;
}

.specialties-header p {
  font-size: 0.9rem;
  color: #6B594D;
}

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

.specialty-card {
  background: rgba(255, 255, 255, 0.4);
  padding: 35px 25px;
  border-radius: 12px;
  text-align: center;
  transition: background 0.3s ease;
}

.specialty-card:hover {
  background: rgba(255, 255, 255, 0.7);
}

.spec-icon {
  width: 54px;
  height: 54px;
  background-color: #523D2D;
  color: #FFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.3rem;
}

.specialty-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--about-dark);
  margin-bottom: 12px;
}

.specialty-card p {
  font-size: 0.88rem;
  color: #52412F;
  line-height: 1.6;
}

.dual-experience-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.journey-column {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.journey-photo {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 280px;
}

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

.photo-badge {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(62, 38, 23, 0.75);
  color: #FFF;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 1.1rem;
  text-align: right;
}

.journey-timeline-vertical {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.journey-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.journey-step .step-icon {
  width: 32px;
  height: 32px;
  color: #523D2D;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.star-icon {
  font-size: 1.3rem;
}

.journey-step h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--about-dark);
  margin-bottom: 4px;
}

.journey-step p {
  font-size: 0.88rem;
  color: #52412F;
  line-height: 1.5;
}

.experience-column {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.exp-photo {
  border-radius: 10px;
  overflow: hidden;
  height: 280px;
}

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

.exp-details h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--about-dark);
  margin-bottom: 14px;
}

.exp-details p {
  font-size: 0.9rem;
  color: #52412F;
  line-height: 1.65;
  margin-bottom: 12px;
}

.exp-details .italic-note {
  font-style: italic;
  color: #7A6354;
  margin-top: 15px;
}

.mission-why-section {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 40px;
  align-items: center;
  background-color: var(--about-card-bg);
  border-radius: 16px;
  padding: 40px;
  margin-top: 20px;
}

.mission-left {
  display: flex;
  gap: 30px;
  align-items: center;
}

.cake-img-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

.cake-text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.85);
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--about-handwriting);
  font-size: 1.2rem;
  color: #523D2D;
  line-height: 1.1;
  text-align: center;
  border: 1px dashed var(--caramel);
}

.mission-content h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--about-dark);
  margin-bottom: 12px;
}

.mission-content p {
  font-size: 0.88rem;
  color: #52412F;
  line-height: 1.6;
  margin-bottom: 10px;
}

.why-right {
  border-left: 1px solid #D7B899;
  padding-left: 35px;
}

.why-heading {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: 1px;
  color: var(--about-dark);
  margin-bottom: 20px;
}

.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.why-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: #52412F;
  font-weight: 500;
}

.why-list li i {
  color: #523D2D;
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

/* Base About Elements */
.about-hero {
  text-align: center;
  padding: 50px 20px 40px;
  background: linear-gradient(180deg, rgba(198, 138, 91, 0.12) 0%, rgba(248, 241, 231, 0) 100%);
  border-radius: var(--radius-card);
  margin-bottom: 40px;
  border: 1px solid var(--border-color);
}

.about-hero .tagline {
  font-size: 0.95rem;
  letter-spacing: 2px;
}

.about-hero .hero-brand {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--espresso);
  margin: 8px 0 12px;
  font-weight: 700;
}

.about-hero p {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.02rem;
  color: var(--espresso);
  opacity: 0.9;
  line-height: 1.7;
}

.about-section-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--espresso);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-section-title i {
  color: var(--caramel);
}

.about-subtitle {
  font-size: 0.9rem;
  color: var(--caramel);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.story-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 32px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-bottom: 45px;
}

.story-body p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--espresso);
  margin-bottom: 16px;
  opacity: 0.92;
}

.story-highlight-box {
  background: #FFF9F3;
  border-left: 4px solid var(--caramel);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
  font-style: italic;
}

.journey-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 45px;
}

.timeline-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 24px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.timeline-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--espresso);
  color: var(--caramel);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.timeline-period {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--espresso);
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-card p {
  font-size: 0.88rem;
  color: var(--espresso);
  opacity: 0.85;
  line-height: 1.6;
}

.craft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-bottom: 45px;
}

.craft-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 28px 22px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all 0.2s ease;
}

.craft-card:hover {
  border-color: var(--caramel);
  transform: translateY(-3px);
}

.craft-icon-circle {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(198, 138, 91, 0.15);
  color: var(--caramel);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.craft-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--espresso);
  margin-bottom: 10px;
}

.craft-card p {
  font-size: 0.88rem;
  color: var(--espresso);
  opacity: 0.85;
  line-height: 1.6;
}

.experience-card {
  background: linear-gradient(135deg, #3C2D21 0%, #4d3322 100%);
  color: var(--cream);
  border-radius: var(--radius-card);
  padding: 36px 28px;
  margin-bottom: 45px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.experience-card h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--caramel);
  margin-bottom: 18px;
}

.experience-card p {
  font-size: 0.95rem;
  line-height: 1.8;
  opacity: 0.92;
  max-width: 780px;
  margin: 0 auto 14px;
}

.mission-box {
  background: var(--white);
  border: 2px dashed var(--caramel);
  border-radius: var(--radius-card);
  padding: 32px 24px;
  text-align: center;
  margin-bottom: 25px;
}

.mission-box h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--espresso);
  margin-bottom: 14px;
}

.mission-box p {
  font-size: 0.92rem;
  color: var(--espresso);
  opacity: 0.9;
  max-width: 720px;
  margin: 0 auto 12px;
  line-height: 1.7;
}

.pillars-tags {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0 16px;
}

.pillar-tag {
  background: rgba(198, 138, 91, 0.15);
  color: var(--espresso);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(198, 138, 91, 0.3);
}

.pillar-tag i {
  color: var(--caramel);
}

.mission-signoff {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--caramel);
  font-weight: 600;
  margin-top: 10px;
}

/* ==========================================================================
   14. BENTO CAKE DECORATING SECTION
   ========================================================================== */
.bento-hero-banner {
  background: radial-gradient(circle at 20% 50%, #FDFBF7 0%, #EFE3D8 100%);
  border-bottom: 1px solid #D7B899;
  padding: 40px 5%;
}

.bento-caption-spacing {
  margin-top: 15px;
}

.bento-story-section {
  align-items: start;
}

.bento-heading-spacing {
  margin-bottom: 25px;
}

.bento-card-aesthetic {
  background-color: var(--about-card-bg);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 32px 28px;
}

.bento-card-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--about-dark);
  margin-bottom: 6px;
}

.bento-card-subtitle {
  font-size: 0.88rem;
  color: #52412F;
  margin-bottom: 22px;
}

.bento-feature-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.bento-feature-card {
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
  padding: 18px 20px;
}

.feature-badge-icon {
  width: 42px;
  height: 42px;
  background-color: #523D2D;
  color: #FFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bento-feature-title {
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.bento-feature-desc {
  margin: 0;
  font-size: 0.85rem;
}

.polaroid-single {
  background: #FBF8F2;
  padding: 12px 12px 30px 12px;
  box-shadow: 0 10px 20px rgba(62, 38, 23, 0.1);
  border-radius: 4px;
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
  max-width: 380px;
  margin: 0 auto;
}

.polaroid-single:hover {
  transform: rotate(0deg) scale(1.02);
}

.polaroid-img-wrapper {
  height: 200px;
  overflow: hidden;
  border-radius: 2px;
}

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

.polaroid-caption {
  margin-top: 10px;
  font-size: 1.3rem;
}

.bento-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.bento-submit-btn {
  width: 100%;
  margin-top: 10px;
  height: 48px;
  font-size: 0.95rem;
}

.bento-bottom-section {
  padding-top: 0;
}

.bento-bottom-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--about-dark);
  margin-bottom: 8px;
}

.bento-bottom-desc {
  font-size: 0.88rem;
  color: #52412F;
  line-height: 1.6;
  margin: 0;
}

.bento-quote {
  font-size: 1.8rem;
}

/* ==========================================================================
   15. FOOTER (Compact/Small)
   ========================================================================== */
.footer {
  background-color: var(--espresso);
  color: var(--cream);
  padding: 24px 5% 12px;
  margin-top: auto;
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto 16px;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--caramel);
  margin-bottom: 6px;
}

.footer-text {
  font-size: 0.8rem;
  opacity: 0.8;
  line-height: 1.4;
}

.footer h4 {
  font-family: var(--font-serif);
  color: var(--caramel);
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 4px;
}

.footer-links a {
  color: var(--cream);
  opacity: 0.8;
  text-decoration: none;
  font-size: 0.8rem;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--caramel);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
  font-size: 0.75rem;
  opacity: 0.7;
}

/* ==========================================================================
   16. MEDIA QUERIES & RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 992px) {
  .nav-links {
    gap: 16px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .banner-hero,
  .story-section,
  .dual-experience-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .banner-image-container {
    max-height: 280px;
  }

  .hero-banner-img {
    clip-path: none;
  }

  .specialties-grid {
    grid-template-columns: 1fr;
  }

  .mission-why-section {
    grid-template-columns: 1fr;
    padding: 25px;
  }

  .why-right {
    border-left: none;
    border-top: 1px solid #D7B899;
    padding-left: 0;
    padding-top: 25px;
  }

  .mission-left {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  header {
    padding: 10px 16px;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 58px;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 58px);
    overflow-y: auto;
    background-color: var(--espresso);
    flex-direction: column;
    padding: 16px 20px;
    box-shadow: var(--shadow-md);
    align-items: flex-start;
    border-top: 1px solid rgba(215, 184, 153, 0.15);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 10px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links a.active::after {
    display: none;
  }

  .category-nav-sticky {
    top: 58px;
    padding: 8px 0;
  }

  .category-nav-inner {
    justify-content: flex-start;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cremeur-auth-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-panel-left,
  .auth-panel-right {
    padding: 24px 20px;
  }

  .cart-modal {
    width: 100vw;
    right: -100vw;
  }

  .cart-page-layout,
  .cart-page-grid,
  .cart-grid-container {
    grid-template-columns: 1fr;
  }

  .cart-summary-card,
  .cart-summary-panel,
  .cart-summary-sidebar,
  .cart-page-summary {
    grid-column: 1;
    order: 2;
  }

  .cart-items-card,
  .cart-items-container,
  .cart-page-items-wrapper,
  #cartPageContainer {
    grid-column: 1;
    order: 1;
  }

  .bento-form-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .page-container,
  .section,
  .menu-container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .card-content {
    padding: 14px;
  }

  .btn {
    width: 100%;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }
}

/* ==========================================================================
   CHECKOUT, ORDER TRACKING & ADMIN ORDERS REDESIGN  (added section)
   Everything below is new and prefixed (.cx-*, .adm-*) so the rest of the
   website keeps its existing look.
   ========================================================================== */
.cx {
  --cx-espresso: #33261B;
  --cx-caramel: #B07845;
  --cx-caramel-dark: #8A5430;
  --cx-cream: #F4EFE6;
  --cx-white: #FFFFFF;
  --cx-beige: #E9D9C8;
  --cx-muted: #6B5646;
  --cx-ok: #3F6F44;
  --cx-bad: #A33A2E;
  --cx-radius: 16px;
  --cx-shadow: 0 6px 24px rgba(43, 29, 23, 0.07);
  background: var(--cx-cream);
  color: var(--cx-espresso);
  font-family: var(--font-sans);
  line-height: 1.55;
}
.cx *, .cx *::before, .cx *::after { 
  box-sizing: border-box; }
.cx-inner { 
  max-width: 1160px; 
  margin: 0 auto; 
  padding: 26px 20px 80px; }
.cx h1, .cx h2, .cx h3 { 
  font-family: var(--font-serif); 
  color: var(--cx-espresso); 
  line-height: 1.25; }
.cx [hidden] { 
  display: none !important; }
.cx h1:focus { 
  outline: none; }
.cx a { 
  color: var(--cx-caramel-dark); 
}

/* breadcrumb + page heading */
.cx-breadcrumb { 
  display: flex; 
  gap: 8px; 
  align-items: center; 
  font-size: 0.82rem; 
  color: var(--cx-muted); 
  margin-bottom: 14px; 
  flex-wrap: wrap; }
.cx-breadcrumb a { 
  color: var(--cx-muted); 
  text-decoration: none;
 }
.cx-breadcrumb a:hover { 
  color: var(--cx-caramel-dark); 
  text-decoration: underline;
}
.cx-breadcrumb [aria-current] { 
  color: var(--cx-espresso); 
  font-weight: 600; 
}
.cx-title { 
  font-size: 2.1rem; 
  margin-bottom: 4px; 
}
.cx-sub { 
  color: var(--cx-muted); 
  font-size: 0.98rem; 
  margin-bottom: 22px; 
}

/* checkout progress */
.cx-steps { list-style: none; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 0; 
  margin: 0 0 30px; 
  padding: 0; 
}
.cx-steps li { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  font-size: 0.85rem; 
  font-weight: 600; 
  color: var(--cx-muted); 
}
.cx-steps li + li::before { 
  content: ""; 
  display: block; 
  width: 56px; 
  height: 2px; 
  background: var(--cx-beige); 
  margin: 0 12px; 
}
.cx-steps li.is-done + li::before, .cx-steps li.is-active::before { 
  background: var(--cx-caramel); 
}
.cx-step-dot { 
  width: 30px; 
  height: 30px; 
  border-radius: 50%; 
  display: grid; 
  place-items: center; 
  border: 2px solid var(--cx-beige); 
  background: var(--cx-white); 
  font-size: 0.8rem; 
  flex: none; 
}
.cx-steps li.is-active { 
  color: var(--cx-espresso); 
}
.cx-steps li.is-active .cx-step-dot { 
  background: var(--cx-espresso); 
  border-color: var(--cx-espresso); 
  color: var(--cx-cream); 
}
.cx-steps li.is-done { 
  color: var(--cx-espresso); 
}
.cx-steps li.is-done .cx-step-dot { 
  background: var(--cx-caramel); 
  border-color: var(--cx-caramel); 
  color: #fff; 
}

/* cards + buttons */
.cx-card { 
  background: var(--cx-white); 
  border: 1px solid var(--cx-beige); 
  border-radius: var(--cx-radius); 
  box-shadow: var(--cx-shadow); 
  padding: 24px; 
}
.cx-btn { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: 9px; 
  min-height: 48px; 
  padding: 0 26px; 
  border-radius: 12px; 
  border: 1px solid transparent; 
  font: 600 0.95rem var(--font-sans); 
  cursor: pointer; 
  text-decoration: none; 
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s; 
}
.cx-btn:hover { 
  transform: translateY(-1px);
 }
.cx-btn-primary { 
  background: var(--cx-espresso); 
  color: var(--cx-cream) !important; 
}
.cx-btn-primary:hover { 
  background: #46302A; 
}
.cx-btn-accent { 
  background: var(--cx-caramel); 
  color: #fff !important; 
}
.cx-btn-accent:hover { 
  background: var(--cx-caramel-dark);
 }
.cx-btn-ghost { 
  background: transparent; 
  color: var(--cx-espresso) !important; 
  border-color: var(--cx-beige); 
}
.cx-btn-ghost:hover { 
  border-color: var(--cx-caramel); 
  background: var(--cx-cream);
 }
.cx-btn-block { width: 100%; }
.cx-btn-sm { min-height: 38px; 
  padding: 0 16px;
   font-size: 0.82rem;
    border-radius: 10px; 
  }
.cx-btn[disabled], .cx-btn[aria-disabled="true"] { 
  opacity: 0.5; 
  cursor: not-allowed; 
  transform: none;
 }
.cx a:focus-visible, .cx button:focus-visible, .cx input:focus-visible, .cx select:focus-visible, .cx textarea:focus-visible, .cx summary:focus-visible { outline: 3px solid rgba(196, 138, 90, 0.65); outline-offset: 2px; }

/* cart layout */
.cx-layout { display: grid; 
  grid-template-columns: minmax(0, 1fr) 380px;
   gap: 28px;
    align-items: start; 
  }
.cx-summary {
   position: sticky; 
   top: 96px;
   }
.cx-summary h2 { 
  font-size: 1.3rem;
   margin-bottom: 16px;
    padding-bottom: 12px; 
    border-bottom: 1px solid var(--cx-beige); 
  }
.cx-items { 
  display: flex;
   flex-direction: column; 
   gap: 14px; 
  }
.cx-item {
   display: grid; 
   grid-template-columns: 88px minmax(0, 1fr) auto auto 38px; 
   align-items: center; 
   gap: 16px; 
   background: var(--cx-white); 
   border: 1px solid var(--cx-beige); 
   border-radius: var(--cx-radius); 
   padding: 14px 16px; 
   box-shadow: var(--cx-shadow); 
  }
.cx-item-img { 
  width: 88px; 
  height: 88px; 
  object-fit: cover; 
  border-radius: 12px; 
  border: 1px solid var(--cx-beige); 
  background: var(--cx-cream); 
}
.cx-item-name { 
  font-size: 1.05rem; 
  margin-bottom: 4px; 
}
.cx-chips { list-style: none; 
  display: flex; 
  flex-wrap: wrap; 
  gap: 6px; 
  margin: 0 0 6px; 
  padding: 0; 
}
.cx-chips li { 
  background: var(--cx-cream); 
  border: 1px solid var(--cx-beige); 
  border-radius: 20px; 
  padding: 1px 10px; 
  font-size: 0.72rem; 
  font-weight: 600; 
  color: var(--cx-muted); 
}
.cx-item-unit { 
  font-size: 0.84rem; 
  color: var(--cx-muted); 
}
.cx-qty { 
  display: inline-flex; 
  align-items: center; 
  border: 1px solid var(--cx-beige); 
  border-radius: 12px; 
  overflow: hidden; 
  background: var(--cx-white); 
}
.cx-qty button { 
  width: 38px; 
  height: 40px; 
  border: 0; 
  background: transparent; 
  font-size: 1.15rem; 
  color: var(--cx-espresso); 
  cursor: pointer; 
}
.cx-qty button:hover { 
  background: var(--cx-cream); 
}
.cx-qty span { 
  min-width: 34px; 
  text-align: center; 
  font-weight: 600; 
}
.cx-item-sub { 
  font-weight: 700; 
  min-width: 92px; 
  text-align: right; 
}
.cx-remove { 
  width: 38px; 
  height: 38px; 
  border-radius: 10px; 
  border: 0; 
  background: transparent; 
  color: var(--cx-muted); 
  cursor: pointer; 
  font-size: 1rem; 
}
.cx-remove:hover { 
  background: #F6E3DF; 
  color: var(--cx-bad); 
}
.cx-continue { 
  display: inline-flex; 
  align-items: center; 
  gap: 8px; 
  margin-top: 6px; 
  font-weight: 600; 
  font-size: 0.9rem; 
  text-decoration: none; }

/* method selector (cart summary) */
.cx-seg { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 6px; 
  background: var(--cx-cream); 
  padding: 5px; 
  border-radius: 12px; 
  margin-bottom: 18px; 
}
.cx-seg button { 
  border: 0; 
  background: transparent; 
  padding: 9px 4px; 
  border-radius: 9px; 
  font: 600 0.78rem var(--font-sans); 
  color: var(--cx-muted); 
  cursor: pointer; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 3px; 
}
.cx-seg button.is-on { 
  background: var(--cx-white); 
  color: var(--cx-espresso); 
  box-shadow: 0 2px 8px rgba(43, 29, 23, 0.12); 
}
.cx-seg-label { 
  font-size: 0.78rem; 
  font-weight: 600; 
  margin-bottom: 8px; 
  display: block; 
  color: var(--cx-muted); 
}

/* summary rows */
.cx-sum-row { 
  display: flex; 
  justify-content: space-between; 
  gap: 14px; 
  font-size: 0.93rem; 
  margin-bottom: 10px; 
}
.cx-sum-row span:last-child { 
  text-align: right; 
  font-weight: 600; 
}
.cx-sum-row .cx-tbc { 
  color: var(--cx-caramel-dark); 
  font-size: 0.85rem; 
}
.cx-sum-total { 
  display: flex; 
  justify-content: space-between; 
  align-items: baseline; 
  padding-top: 14px; 
  margin-top: 6px; 
  border-top: 1px dashed var(--cx-beige); 
  font-size: 1.15rem; 
  font-weight: 700; 
}
.cx-sum-total strong { 
  font-family: var(--font-serif); 
  font-size: 1.5rem; 
}
.cx-total-hint { 
  font-size: 0.75rem; 
  color: var(--cx-muted); 
  text-align: right; 
  margin-top: 2px; 
}
.cx-note { 
  display: flex; 
  gap: 9px; 
  background: var(--cx-cream); 
  border-radius: 10px; 
  padding: 10px 12px; 
  font-size: 0.78rem; 
  color: var(--cx-muted); 
  margin: 16px 0; 
}
.cx-note i { 
  color: var(--cx-caramel); 
  margin-top: 2px; 
}
.cx-summary .cx-btn + .cx-btn, .cx-summary .cx-btn + .cx-continue { 
  margin-top: 10px; 
}
.cx-warn { 
  background: #FBEDEA; 
  border: 1px solid #E8BFB8; 
  color: #7C2A20; 
  border-radius: 10px; 
  padding: 10px 12px; 
  font-size: 0.82rem; 
  margin-bottom: 14px; 
  display: flex; 
  gap: 9px; 
}
.cx-mini-items { 
  list-style: none; 
  margin: 0 0 14px; 
  padding: 0; 
  display: flex; 
  flex-direction: column; 
  gap: 10px; 
}
.cx-mini-items li { 
  display: flex; 
  gap: 10px; 
  align-items: center; 
  font-size: 0.85rem; 
}
.cx-mini-items img { 
  width: 44px; 
  height: 44px; 
  border-radius: 8px; 
  object-fit: cover; 
  border: 1px solid var(--cx-beige); 
}
.cx-mini-items .cx-mini-name {
   flex: 1; 
   min-width: 0; 
  }
.cx-mini-items .cx-mini-qty { 
  color: var(--cx-muted); 
  font-size: 0.78rem; 
}

/* empty state */
.cx-empty { 
  text-align: center; 
  padding: 56px 24px; 
  max-width: 560px; 
  margin: 10px auto; 
}
.cx-empty-art { 
  width: 140px; 
  height: 140px; 
  border-radius: 50%; 
  margin: 0 auto 20px; 
  background: var(--cx-beige) center / cover no-repeat; 
  border: 6px solid var(--cx-white); 
  box-shadow: var(--cx-shadow); 
  position: relative; 
}
.cx-empty-art i { 
  position: absolute; 
  right: -4px; 
  bottom: -4px; 
  width: 46px; 
  height: 46px; 
  border-radius: 50%; 
  background: var(--cx-espresso); 
  color: var(--cx-cream); 
  display: grid; 
  place-items: center; 
  font-size: 1.1rem; 
}
.cx-empty h2 { 
  font-size: 1.6rem; 
  margin-bottom: 8px; 
}
.cx-empty p { 
  color: var(--cx-muted); 
  margin-bottom: 22px; 
}

/* checkout form */
.cx-notice { display: flex; gap: 14px; background: #F6EBDD; border: 1px solid var(--cx-beige); border-left: 5px solid var(--cx-caramel); border-radius: 12px; padding: 16px 18px; margin-bottom: 22px; }
.cx-notice > i { font-size: 1.3rem; color: var(--cx-caramel-dark); margin-top: 3px; }
.cx-notice h3 { font-size: 1.05rem; margin-bottom: 4px; }
.cx-notice p { font-size: 0.88rem; color: #5A4639; }
.cx-form-stack { display: flex; flex-direction: column; gap: 18px; }
.cx-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.cx-section-num { width: 32px; height: 32px; border-radius: 50%; background: var(--cx-espresso); color: var(--cx-cream); display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; flex: none; }
.cx-section-head h2 { font-size: 1.2rem; }
.cx-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; }
.cx-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 18px; }
.cx-span-2 { grid-column: 1 / -1; }
.cx-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cx-field label { font-size: 0.82rem; font-weight: 600; }
.cx-field label .cx-opt { font-weight: 400; color: var(--cx-muted); }
.cx-input-wrap { position: relative; }
.cx-input-wrap > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--cx-caramel); font-size: 0.9rem; pointer-events: none; }
.cx-input, .cx-select, .cx-textarea { width: 100%; min-height: 48px; border: 1px solid #D9C5B0; border-radius: 12px; background: var(--cx-white); padding: 0 14px; font: 0.95rem var(--font-sans); color: var(--cx-espresso); transition: border-color 0.2s, box-shadow 0.2s; }
.cx-input-wrap .cx-input { padding-left: 40px; }
.cx-textarea { padding: 12px 14px; min-height: 96px; resize: vertical; }
.cx-input::placeholder, .cx-textarea::placeholder { color: #A8978A; }
.cx-input:hover, .cx-textarea:hover, .cx-select:hover { border-color: var(--cx-caramel); }
.cx-input[aria-invalid="true"], .cx-select[aria-invalid="true"], .cx-textarea[aria-invalid="true"] { border-color: var(--cx-bad); background: #FFFAF9; }
/* space is always reserved for the message so showing an error never shifts the page (a shift could swallow a click) */
.cx-error { color: var(--cx-bad); font-size: 0.78rem; font-weight: 600; min-height: 1.4em; display: flex; gap: 6px; align-items: flex-start; }
.cx-hint { color: var(--cx-muted); font-size: 0.76rem; }
.cx-error-summary { background: #FBEDEA; border: 1px solid #E8BFB8; color: #7C2A20; border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; font-size: 0.88rem; }
.cx-check { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 500; font-size: 0.92rem; }
.cx-check input { width: 20px; height: 20px; accent-color: var(--cx-caramel-dark); flex: none; }
.cx-collapse { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.32s ease, opacity 0.25s ease, margin 0.32s ease; margin-top: 0; }
.cx-collapse.is-open { grid-template-rows: 1fr; opacity: 1; margin-top: 18px; }
.cx-collapse > div { overflow: hidden; min-height: 0; }
.cx-collapse.is-open > div { overflow: visible; }
.cx-method-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.cx-method-card { position: relative; display: block; cursor: pointer; }
.cx-method-card input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.cx-method-body { display: flex; flex-direction: column; gap: 6px; height: 100%; border: 2px solid var(--cx-beige); border-radius: 14px; padding: 16px; background: var(--cx-white); transition: border-color 0.2s, background 0.2s, box-shadow 0.2s; }
.cx-method-card:hover .cx-method-body { border-color: var(--cx-caramel); }
.cx-method-card input:checked + .cx-method-body { border-color: var(--cx-caramel); background: #FDF8F1; box-shadow: 0 0 0 3px rgba(196, 138, 90, 0.18); }
.cx-method-card input:focus-visible + .cx-method-body { outline: 3px solid rgba(196, 138, 90, 0.65); outline-offset: 2px; }
.cx-method-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 700; }
.cx-method-top i { color: var(--cx-caramel); font-size: 1.1rem; }
.cx-method-note { font-size: 0.8rem; color: var(--cx-muted); }
.cx-method-cost { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: 0.88rem; color: var(--cx-caramel-dark); }
.cx-form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cx-skip { background: var(--cx-cream); border: 1px dashed var(--cx-beige); border-radius: 12px; padding: 14px 16px; font-size: 0.88rem; color: var(--cx-muted); }

/* review */
.cx-review-block { margin-bottom: 18px; }
.cx-review-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--cx-beige); }
.cx-review-head h2 { font-size: 1.08rem; }
.cx-edit-link { border: 0; background: none; color: var(--cx-caramel-dark); font: 600 0.84rem var(--font-sans); cursor: pointer; text-decoration: underline; padding: 4px; }
.cx-dl { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 6px 14px; font-size: 0.92rem; }
.cx-dl dt { color: var(--cx-muted); }
.cx-dl dd { font-weight: 500; word-break: break-word; }
.cx-review-item { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--cx-beige); }
.cx-review-item:last-child { border-bottom: 0; }
.cx-review-item img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; border: 1px solid var(--cx-beige); }
.cx-review-item .grow { flex: 1; min-width: 0; font-weight: 600; font-size: 0.92rem; }
.cx-review-item .grow small { display: block; font-weight: 400; color: var(--cx-muted); }

/* confirmation */
.cx-confirm { max-width: 720px; margin: 0 auto; text-align: center; }
.cx-confirm-icon { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; background: #E3EFE3; color: var(--cx-ok); display: grid; place-items: center; font-size: 2.2rem; animation: cxPop 0.5s ease; }
@keyframes cxPop { 0% { transform: scale(0.6); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.cx-order-pill { display: inline-block; background: var(--cx-cream); border: 1px dashed var(--cx-caramel); border-radius: 30px; padding: 6px 18px; font-weight: 700; letter-spacing: 0.6px; margin: 10px 0 22px; }
.cx-confirm .cx-card { text-align: left; margin-bottom: 22px; }
.cx-confirm-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* status badges (text label + color, never color alone) */
.cx-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 20px; font-size: 0.74rem; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.cx-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cx-st-pending { background: #F1E6D8; color: #6A5238; border-color: #E2D0BA; }
.cx-st-confirmed { background: #DFE8F3; color: #2D4A6B; border-color: #C5D4E6; }
.cx-st-preparing { background: #F5E0C8; color: #7A4817; border-color: #EBCBA6; }
.cx-st-out { background: #E7DEF1; color: #54377A; border-color: #D3C4E4; }
.cx-st-delivered { background: #DDEBDD; color: #2F5D34; border-color: #C3DBC4; }
.cx-st-hold { background: #F3EDC9; color: #6E5A12; border-color: #E4DA9E; }
.cx-st-cancelled { background: #F5DAD5; color: #8A2F25; border-color: #E8BDB5; }

/* tracking */
.cx-track-lookup { max-width: 640px; margin: 0 auto 28px; }
.cx-track-lookup .cx-grid-2 { margin-bottom: 16px; gap: 16px 18px; }
.cx-status-card { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.cx-status-card h2 { font-size: 1.5rem; margin: 6px 0 2px; }
.cx-status-meta { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 0.88rem; }
.cx-status-meta dt { color: var(--cx-muted); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.5px; }
.cx-status-meta dd { font-weight: 600; margin-bottom: 4px; }
.cx-banner { display: flex; gap: 14px; align-items: center; background: #EFE8F6; border: 1px solid #D3C4E4; border-radius: 14px; padding: 16px 20px; margin-bottom: 18px; color: #3F2A5C; }
.cx-banner > i { font-size: 1.6rem; }
.cx-banner h3 { font-size: 1.1rem; color: #3F2A5C; }
.cx-banner-cancel { background: #FBEDEA; border-color: #E8BFB8; color: #7C2A20; }
.cx-banner-cancel h3 { color: #7C2A20; }
.cx-timeline { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 6px 0 0; padding: 0; }
.cx-tl-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 0 6px; }
.cx-tl-step::before { content: ""; position: absolute; top: 19px; right: 50%; width: 100%; height: 4px; background: var(--cx-beige); z-index: 0; }
.cx-tl-step:first-child::before { display: none; }
.cx-tl-step.is-done::before, .cx-tl-step.is-current::before { background: var(--cx-caramel); }
.cx-tl-dot { position: relative; z-index: 1; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--cx-white); border: 3px solid var(--cx-beige); color: var(--cx-muted); font-size: 0.95rem; }
.cx-tl-step.is-done .cx-tl-dot { background: var(--cx-caramel); border-color: var(--cx-caramel); color: #fff; }
.cx-tl-step.is-current .cx-tl-dot { background: var(--cx-espresso); border-color: var(--cx-espresso); color: var(--cx-cream); box-shadow: 0 0 0 5px rgba(196, 138, 90, 0.25); }
.cx-tl-label { font-weight: 600; font-size: 0.82rem; color: var(--cx-muted); }
.cx-tl-step.is-done .cx-tl-label, .cx-tl-step.is-current .cx-tl-label { color: var(--cx-espresso); }
.cx-tl-time { font-size: 0.72rem; color: var(--cx-muted); }
.cx-tl-text { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cx-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cx-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 18px; }
.cx-detail-grid h2 { font-size: 1.1rem; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--cx-beige); }
.cx-lookup-error { background: #FBEDEA; border: 1px solid #E8BFB8; color: #7C2A20; border-radius: 10px; padding: 10px 14px; font-size: 0.88rem; margin-bottom: 14px; }

/* My Orders (account page) */
.cx-orders { text-align: left; margin: 6px 0 20px; }
.cx-orders-head { font-family: var(--font-serif); font-size: 1.15rem; color: #33261B; margin-bottom: 10px; }
.cx-order-card { border: 1px solid var(--border-color); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; background: #FBF8F2; }
.cx-order-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.cx-order-top strong { font-size: 0.95rem; }
.cx-order-top small { display: block; color: #6B5646; font-size: 0.76rem; }
.cx-order-sum { font-size: 0.84rem; color: #5A4639; margin-bottom: 10px; }
.cx-order-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.cx-order-foot .cx-order-total { font-weight: 700; }
.cx-order-foot .cx-order-eta { font-size: 0.78rem; color: #6B5646; }
.cx-order-actions { display: flex; gap: 8px; }
.cx-order-details { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border-color); font-size: 0.82rem; }
.cx-order-details ul { list-style: none; padding: 0; margin: 0 0 8px; }
.cx-order-details li { display: flex; justify-content: space-between; padding: 3px 0; }
.cx-order-details-total { text-align: right; }

/* toast */
.cx-toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); background: #33261B; color: #F4EFE6; padding: 12px 22px; border-radius: 12px; font-size: 0.9rem; opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s; z-index: 1000; max-width: 90vw; }
.cx-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- admin: order management ---------- */
.adm-orders.cx { background: transparent; }
.adm-toolbar { display: grid; grid-template-columns: minmax(200px, 2fr) repeat(3, minmax(130px, 1fr)) auto; gap: 12px; align-items: end; margin-bottom: 16px; }
.adm-toolbar .cx-field label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--cx-muted); }
.adm-toolbar .cx-input, .adm-toolbar .cx-select { min-height: 42px; font-size: 0.88rem; }
.adm-table-wrap { overflow-x: auto; background: var(--cx-white); border: 1px solid var(--cx-beige); border-radius: var(--cx-radius); }
.adm-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; text-align: left; }
.adm-table th { padding: 12px 14px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.6px; color: var(--cx-muted); background: #FBF7F1; border-bottom: 1px solid var(--cx-beige); white-space: nowrap; }
.adm-table td { padding: 12px 14px; border-bottom: 1px solid #F1E7DA; vertical-align: middle; }
.adm-table tbody tr:hover { background: #FDFAF5; }
.adm-table .adm-id { font-weight: 700; }
.adm-empty { padding: 36px; text-align: center; color: var(--cx-muted); }
.adm-modal-back { position: fixed; inset: 0; background: rgba(43, 29, 23, 0.55); z-index: 2000; display: flex; align-items: flex-start; justify-content: center; padding: 28px 14px; overflow-y: auto; }
.adm-modal { background: var(--cx-cream); border-radius: 18px; width: 100%; max-width: 940px; padding: 26px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); position: relative; }
.adm-modal-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--cx-white); cursor: pointer; font-size: 1.1rem; color: var(--cx-espresso); box-shadow: var(--cx-shadow); }
.adm-modal h2 { font-size: 1.4rem; margin-bottom: 4px; }
.adm-modal-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; }
.adm-modal .cx-card { padding: 18px; }
.adm-modal .cx-card h3 { font-size: 1rem; margin-bottom: 12px; }
.adm-history { list-style: none; margin: 0; padding: 0; font-size: 0.84rem; }
.adm-history li { padding: 8px 0 8px 18px; border-left: 3px solid var(--cx-beige); position: relative; }
.adm-history li::before { content: ""; position: absolute; left: -7px; top: 14px; width: 11px; height: 11px; border-radius: 50%; background: var(--cx-caramel); border: 2px solid var(--cx-white); }
.adm-history small { color: var(--cx-muted); display: block; }
.adm-note { font-size: 0.78rem; color: var(--cx-muted); background: var(--cx-white); border: 1px dashed var(--cx-beige); border-radius: 10px; padding: 8px 12px; margin-top: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .cx-layout { grid-template-columns: minmax(0, 1fr); }
  .cx-summary { position: static; }
  .adm-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-modal-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .cx-inner { padding: 18px 14px 70px; }
  .cx-title { font-size: 1.65rem; }
  .cx-card { padding: 18px; }
  .cx-steps li .cx-step-label { display: none; }
  .cx-steps li.is-active .cx-step-label { display: inline; }
  .cx-steps li + li::before { width: 26px; margin: 0 6px; }
  .cx-item { grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "img info remove" "qty qty sub"; row-gap: 12px; column-gap: 12px; }
  .cx-item-img { grid-area: img; width: 72px; height: 72px; }
  .cx-item > div:nth-child(2) { grid-area: info; }
  .cx-qty { grid-area: qty; justify-self: start; }
  .cx-item-sub { grid-area: sub; align-self: center; min-width: 0; }
  .cx-remove { grid-area: remove; align-self: start; justify-self: end; }
  .cx-grid-2, .cx-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .cx-dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cx-dl dt { margin-top: 8px; font-size: 0.78rem; }
  .cx-timeline { grid-auto-flow: row; grid-auto-columns: auto; gap: 0; }
  .cx-tl-step { flex-direction: row; align-items: flex-start; text-align: left; gap: 14px; padding: 0 0 22px; }
  .cx-tl-step::before { top: -22px; right: auto; left: 19px; width: 4px; height: 100%; }
  .cx-tl-step .cx-tl-text { align-items: flex-start; padding-top: 6px; }
  .cx-status-card { flex-direction: column; align-items: flex-start; }
  .adm-toolbar { grid-template-columns: minmax(0, 1fr); }
  .cx-confirm-actions .cx-btn, .cx-form-actions .cx-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .cx *, .cx *::before, .cx *::after { animation: none !important; transition: none !important; }
}
@media print {
  .cx-steps, .cx-confirm-actions, header, footer { display: none !important; }
}

/* ---------- admin: inventory, customers, activity (added) ---------- */
.adm-section { margin-top: 40px; }
.adm-toolbar.adm-toolbar-4 { grid-template-columns: minmax(200px, 2fr) repeat(2, minmax(150px, 1fr)) auto; }
@media (max-width: 1000px) { .adm-toolbar.adm-toolbar-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 720px) { .adm-toolbar.adm-toolbar-4 { grid-template-columns: minmax(0, 1fr) !important; } }
.auth-alert.info { background: #F6F0E5; color: #6A5238; border: 1px solid #E2D0BA; }

/* ==========================================================================
   ADMIN DASHBOARD REDESIGN  (added)
   Sidebar tabs, stat cards, order status buttons. Scoped to body.adm-body.
   ========================================================================== */
body.adm-body { background: #EEE7DA; color: #33261B; font-family: var(--font-sans); }
.adm-shell { display: grid; grid-template-columns: 268px minmax(0, 1fr); min-height: 100vh; }

/* sidebar */
.adm-sidebar { background: linear-gradient(180deg, #33261B 0%, #3C2D21 100%); color: #F3E8DA; padding: 26px 16px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 26px; overflow-y: auto; }
.adm-brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 22px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.adm-brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #FBF8F2; flex: none; }
.adm-brand h2 { font-family: var(--font-serif); font-size: 1.2rem; color: #E7B988; letter-spacing: 0.6px; line-height: 1.2; }
.adm-brand p { font-size: 0.72rem; color: rgba(243, 232, 218, 0.65); }
.adm-nav-label { font-size: 0.68rem; letter-spacing: 1.3px; text-transform: uppercase; color: rgba(243, 232, 218, 0.45); padding: 0 14px; margin-bottom: 8px; }
.adm-nav { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.adm-nav-link { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; color: rgba(243, 232, 218, 0.85); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: background 0.2s, color 0.2s; }
.adm-nav-link i { width: 18px; text-align: center; }
.adm-nav-link:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.adm-nav-link:focus-visible { outline: 2px solid #E7B988; outline-offset: 2px; }
.adm-nav-link.is-active { background: #B07845; color: #33261B; font-weight: 600; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28); }
.adm-nav-link.is-danger { color: #FFA394; }
.adm-nav-link.is-danger:hover { background: rgba(255, 120, 100, 0.14); color: #FFC2B8; }
.adm-nav-badge { margin-left: auto; background: #E4572E; color: #fff; font-size: 0.7rem; font-weight: 700; border-radius: 20px; padding: 1px 8px; min-width: 22px; text-align: center; }
.adm-nav-badge[hidden] { display: none; }
.adm-nav-link.is-active .adm-nav-badge { background: #33261B; color: #F3E8DA; }

/* main area */
.adm-main { padding: 28px 36px 64px; min-width: 0; }
.adm-topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; padding: 26px 30px; border-radius: 20px; background: linear-gradient(135deg, #33261B 0%, #5A4331 100%); box-shadow: 0 10px 28px rgba(43, 29, 23, 0.22); }
.adm-topbar h1 { font-family: var(--font-serif); font-size: 1.9rem; font-weight: 700; color: #FFF8EE; line-height: 1.2; }
.adm-topbar p { font-size: 0.95rem; color: #EADBC8; margin-top: 4px; }
.adm-topbar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.adm-status { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22); color: #C9F4D3; font-size: 0.82rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; }
.adm-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.25); }
.adm-user { display: inline-flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22); color: #FFF8EE; font-size: 0.85rem; font-weight: 600; padding: 5px 14px 5px 6px; border-radius: 999px; }
.adm-avatar { width: 30px; height: 30px; border-radius: 50%; background: #B07845; color: #33261B; display: grid; place-items: center; font-size: 0.8rem; }
.adm-view.cx { background: transparent; }
.adm-view[hidden] { display: none !important; }

/* stat cards */
.adm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-bottom: 26px; }
.adm-stat { display: flex; align-items: center; gap: 16px; background: #FBF8F2; border: 1px solid #E4DACA; border-radius: 16px; padding: 20px; box-shadow: 0 6px 20px rgba(43, 29, 23, 0.06); }
.adm-stat-ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 1.2rem; flex: none; }
.adm-stat h3 { font-family: var(--font-sans); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.6px; color: #6B5646; font-weight: 600; margin-bottom: 2px; }
.adm-stat .val { font-size: 1.55rem; font-weight: 700; color: #33261B; line-height: 1.2; }
.t-green { background: #DDEFE0; color: #2F6B3A; }
.t-blue { background: #DFE8F3; color: #2D4A6B; }
.t-amber { background: #F8E7CC; color: #8A5A12; }
.t-purple { background: #E9E0F3; color: #54377A; }
.t-brown { background: #EFE0D2; color: #7A4A28; }
.t-red { background: #F8DDD8; color: #A33A2E; }

/* cards + panels */
.adm-card, .adm-panel { background: #FBF8F2; border: 1px solid #E4DACA; border-radius: 18px; padding: 22px; box-shadow: 0 6px 20px rgba(43, 29, 23, 0.06); }
.adm-panels { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.adm-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.adm-panel-head h2 { font-size: 1.1rem; }
.adm-panel-head a { font-size: 0.8rem; font-weight: 600; color: #8A5430; text-decoration: none; white-space: nowrap; }
.adm-panel-head a:hover { text-decoration: underline; }
.adm-card .adm-table-wrap, .adm-panel .adm-table-wrap { border: 1px solid #E9E1D3; border-radius: 12px; }
.adm-card .adm-toolbar { margin-bottom: 12px; }
.adm-count { margin-bottom: 10px; }
.adm-tip { display: flex; gap: 10px; align-items: flex-start; font-size: 0.84rem; color: #6A5238; background: #F6F0E5; border: 1px solid #EBDCC6; border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; }
.adm-tip i { color: #B07845; margin-top: 3px; }
.adm-alert-list { list-style: none; display: flex; flex-direction: column; }
.adm-alert-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 2px; border-bottom: 1px solid #F1E7DA; font-size: 0.88rem; font-weight: 500; }
.adm-alert-list li:last-child { border-bottom: 0; }
.adm-alert-list .adm-empty-li { color: #2F6B3A; justify-content: flex-start; gap: 8px; }
.adm-table td { white-space: nowrap; }
.adm-table td:nth-child(2) { white-space: normal; min-width: 130px; }

/* order status controls */
.adm-actions { display: flex; align-items: center; gap: 8px; }
.adm-next-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; background: linear-gradient(135deg, #B07845, #8A5430); color: #fff; font: 600 0.8rem var(--font-sans); padding: 9px 14px; border-radius: 999px; box-shadow: 0 4px 12px rgba(165, 110, 63, 0.35); transition: transform 0.15s, box-shadow 0.15s, filter 0.15s; white-space: nowrap; }
.adm-next-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(165, 110, 63, 0.4); filter: brightness(1.05); }
.adm-next-btn:active { transform: translateY(0); }
.adm-next-btn:focus-visible, .adm-icon-btn:focus-visible { outline: 3px solid #33261B; outline-offset: 2px; }
.adm-next-arrow { font-size: 0.7rem; opacity: 0.85; }
.adm-icon-btn { display: inline-flex; align-items: center; gap: 6px; background: #FBF8F2; border: 1px solid #E4D6C4; color: #5A4639; font: 600 0.78rem var(--font-sans); padding: 8px 12px; border-radius: 999px; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.adm-icon-btn:hover { background: #F4EFE6; border-color: #B07845; }
.adm-done { display: inline-flex; align-items: center; gap: 7px; font-size: 0.82rem; font-weight: 600; color: #2F6B3A; background: #E6F3E8; padding: 8px 14px; border-radius: 999px; }
.adm-done.is-closed { color: #6B5646; background: #F1E9DE; }
.adm-progress { margin-top: 8px; height: 5px; width: 120px; max-width: 100%; border-radius: 99px; background: #EFE4D4; overflow: hidden; }
.adm-progress span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #B07845, #8A5430); transition: width 0.3s; }

/* admin responsive */
@media (max-width: 1100px) { .adm-panels { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .adm-shell { grid-template-columns: minmax(0, 1fr); }
  .adm-sidebar { position: static; height: auto; flex-direction: column; gap: 14px; padding: 16px; }
  .adm-brand { padding-bottom: 14px; }
  .adm-nav { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .adm-nav-link { white-space: nowrap; padding: 10px 14px; }
  .adm-nav-label { display: none; }
  .adm-main { padding: 20px 16px 56px; }
}

/* ==========================================================================
   ACCOUNTS & PROFILES  (added)
   Espresso #33261B - Caramel #B07845 - Cream #F4EFE6
   ========================================================================== */

/* ---------- avatars ---------- */
.pf-avatar { position: relative; display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, #EBD6BF, #B07845); color: #33261B; font-size: 1rem; }
.pf-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pf-avatar-sm { width: 32px; height: 32px; font-size: 0.85rem; }
.pf-avatar-md { width: 48px; height: 48px; font-size: 1.1rem; }
.pf-avatar-lg { width: 88px; height: 88px; font-size: 1.9rem; }
.pf-avatar-xl { width: 96px; height: 96px; font-size: 2.2rem; border: 4px solid #fff; box-shadow: 0 4px 14px rgba(43, 29, 23, 0.22); }

/* ---------- header profile menu ---------- */
.pf-menu { position: relative; }
.pf-menu-btn { display: flex; align-items: center; gap: 8px; height: 42px; padding: 4px 12px 4px 4px; background: rgba(250, 246, 240, 0.1); border: 1px solid rgba(250, 246, 240, 0.22); border-radius: 999px; color: #F4EFE6; font: 500 0.85rem var(--font-sans); cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.pf-menu-btn:hover, .pf-menu-btn[aria-expanded="true"] { background: rgba(196, 138, 90, 0.25); border-color: #B07845; }
.pf-menu-btn:focus-visible { outline: 2px solid #B07845; outline-offset: 2px; }
.pf-menu-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-caret { font-size: 0.65rem; opacity: 0.8; transition: transform 0.2s; }
.pf-menu-btn[aria-expanded="true"] .pf-caret { transform: rotate(180deg); }
.pf-dropdown { position: absolute; right: 0; top: calc(100% + 10px); width: 272px; padding: 8px; background: #FBF8F2; color: #33261B; border: 1px solid #E4DACA; border-radius: 16px; box-shadow: 0 18px 44px rgba(43, 29, 23, 0.3); z-index: 1200; }
.pf-dropdown[hidden] { display: none; }
.pf-dropdown a, .pf-dropdown button[role="menuitem"] { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 10px 14px; border: 0; border-radius: 10px; background: none; color: #33261B; font: 500 0.9rem var(--font-sans); text-decoration: none; text-align: left; cursor: pointer; }
.pf-dropdown a i, .pf-dropdown button i { width: 18px; text-align: center; color: #8A5430; }
.pf-dropdown a:hover, .pf-dropdown button[role="menuitem"]:hover, .pf-dropdown a:focus-visible, .pf-dropdown button[role="menuitem"]:focus-visible { background: #F6F0E5; outline: none; }
.pf-dd-head { display: flex; align-items: center; gap: 12px; padding: 10px 12px 12px; margin-bottom: 6px; border-bottom: 1px solid #E9E1D3; }
.pf-dd-head strong { display: block; font-size: 0.95rem; }
.pf-dd-head span { display: block; font-size: 0.78rem; color: #6B5646; word-break: break-all; }
.pf-dd-logout { margin-top: 6px; border-top: 1px solid #E9E1D3 !important; border-radius: 0 0 10px 10px !important; color: #A33A2E !important; }
.pf-dd-logout i { color: #A33A2E !important; }
@media (max-width: 640px) {
  .pf-menu-name, .pf-caret { display: none; }
  .pf-menu-btn { padding: 4px; }
  .pf-dropdown { position: fixed; left: 12px; right: 12px; top: 70px; width: auto; max-height: calc(100vh - 90px); overflow-y: auto; }
  .pf-dropdown a, .pf-dropdown button[role="menuitem"] { min-height: 48px; }
}

/* ---------- favorite hearts on menu cards ---------- */
.pf-fav-btn { position: absolute; top: 10px; left: 10px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: #6B5646; font-size: 1.05rem; cursor: pointer; box-shadow: 0 2px 8px rgba(43, 29, 23, 0.2); transition: transform 0.15s, color 0.15s; z-index: 2; }
.pf-fav-btn:hover { transform: scale(1.08); color: #C0392B; }
.pf-fav-btn.is-on { color: #C0392B; }
.pf-fav-btn:focus-visible { outline: 3px solid #33261B; outline-offset: 2px; }

/* ---------- shared form + button parts ---------- */
.pf-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.pf-field label { font-size: 0.85rem; font-weight: 600; color: #33261B; }
.pf-input { width: 100%; min-height: 46px; padding: 10px 14px; background: #FBF8F2; color: #33261B; border: 1.5px solid #E2D3C0; border-radius: 12px; font: 400 0.95rem var(--font-sans); transition: border-color 0.2s, box-shadow 0.2s; }
textarea.pf-input { resize: vertical; min-height: 84px; }
.pf-input:focus { outline: none; border-color: #B07845; box-shadow: 0 0 0 3px rgba(196, 138, 90, 0.25); }
.pf-input[aria-invalid="true"] { border-color: #C0392B; }
.pf-hint { font-size: 0.78rem; color: #6B5646; }
.pf-err { font-size: 0.8rem; color: #B3261E; font-weight: 500; }
.pf-err:empty { display: none; }
.pf-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.pf-grid-3 { display: grid; grid-template-columns: 1.4fr 1.2fr 0.8fr; gap: 0 12px; }
@media (max-width: 640px) { .pf-grid-2, .pf-grid-3 { grid-template-columns: minmax(0, 1fr); } }
.pf-pw { position: relative; }
.pf-pw .pf-input { padding-right: 64px; }
.pf-pw-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #8A5430; font: 600 0.78rem var(--font-sans); padding: 8px 10px; cursor: pointer; border-radius: 8px; }
.pf-pw-btn:hover { background: #F6F0E5; }
.pf-check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; color: #33261B; cursor: pointer; line-height: 1.5; }
.pf-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: #8A5430; flex: none; }
.pf-link { background: none; border: 0; padding: 0; color: #8A5430; font: 600 inherit var(--font-sans); font-size: inherit; cursor: pointer; text-decoration: none; }
.pf-link:hover { text-decoration: underline; }
.pf-row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; font-size: 0.85rem; }
.pf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border: 1.5px solid transparent; border-radius: 12px; font: 600 0.92rem var(--font-sans); cursor: pointer; text-decoration: none; transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s; }
.pf-btn:focus-visible { outline: 3px solid #33261B; outline-offset: 2px; }
.pf-btn:disabled { opacity: 0.7; cursor: wait; }
.pf-btn-primary { background: linear-gradient(135deg, #B07845, #8A5430); color: #fff; box-shadow: 0 4px 12px rgba(165, 110, 63, 0.3); }
.pf-btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(165, 110, 63, 0.38); }
.pf-btn-ghost { background: #FBF8F2; color: #33261B; border-color: #E2D3C0; }
.pf-btn-ghost:hover { border-color: #B07845; background: #F4EFE6; }
.pf-btn-danger { background: #FBF8F2; color: #A33A2E; border-color: #F0C9C2; }
.pf-btn-danger:hover { background: #FDEEEB; border-color: #A33A2E; }
.pf-btn-light { background: #F4EFE6; color: #33261B; }
.pf-btn-light:hover { background: #FBF8F2; transform: translateY(-1px); }
.pf-btn-sm { min-height: 38px; padding: 0 14px; font-size: 0.82rem; border-radius: 10px; }
.pf-btn-block { width: 100%; }
.pf-btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-spinner { width: 15px; height: 15px; border: 2px solid rgba(255, 255, 255, 0.45); border-top-color: #fff; border-radius: 50%; display: inline-block; animation: pf-spin 0.7s linear infinite; }
.pf-btn-ghost .pf-spinner { border-color: rgba(43, 29, 23, 0.25); border-top-color: #33261B; }
@keyframes pf-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pf-spinner { animation-duration: 2s; } .pf-btn, .pf-fav-btn { transition: none; } }

/* ---------- login / create account ---------- */
.pf-auth-page { display: flex; justify-content: center; align-items: flex-start; padding: 36px 16px 64px; min-height: calc(100vh - 150px); background: radial-gradient(circle at 20% 0%, #F4E6D3 0%, #F4EFE6 55%); }
.pf-auth-card { width: 100%; max-width: 560px; background: #FBF8F2; border: 1px solid #E4DACA; border-radius: 24px; padding: 32px 30px 28px; box-shadow: 0 18px 50px rgba(43, 29, 23, 0.12); }
.pf-auth-brand { text-align: center; margin-bottom: 20px; }
.pf-auth-logo { width: 58px; height: 58px; margin: 0 auto 8px; display: grid; place-items: center; border-radius: 50%; background: #33261B; color: #E7B988; font-size: 1.5rem; }
.pf-auth-brand h1 { font-family: var(--font-serif); font-size: 1.6rem; color: #33261B; letter-spacing: 1px; line-height: 1.2; }
.pf-auth-brand p { font-size: 0.8rem; color: #6B5646; letter-spacing: 2px; text-transform: uppercase; }
.pf-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: #EEE7DA; border-radius: 14px; margin-bottom: 20px; }
.pf-tab { min-height: 42px; border: 0; border-radius: 11px; background: transparent; color: #6A5238; font: 600 0.9rem var(--font-sans); cursor: pointer; transition: background 0.2s, color 0.2s; }
.pf-tab.is-active { background: #33261B; color: #F4EFE6; box-shadow: 0 4px 10px rgba(43, 29, 23, 0.25); }
.pf-tab:focus-visible { outline: 3px solid #B07845; outline-offset: 1px; }
.pf-auth-title { font-family: var(--font-serif); font-size: 1.45rem; color: #33261B; margin-bottom: 4px; }
.pf-auth-sub { font-size: 0.88rem; color: #6B5646; margin-bottom: 18px; }
.pf-auth-switch, .pf-auth-owner { text-align: center; font-size: 0.86rem; color: #6A5238; margin-top: 16px; }
.pf-auth-owner { font-size: 0.8rem; color: #8C7A6B; margin-top: 8px; }
.pf-alert { padding: 12px 14px; border-radius: 12px; font-size: 0.88rem; font-weight: 500; margin-bottom: 16px; border: 1px solid; }
.pf-alert[hidden] { display: none; }
.pf-alert-error { background: #FDECEA; color: #8C1D18; border-color: #F3B8B2; }
.pf-alert-success { background: #E6F3E8; color: #1F5A2B; border-color: #A9D9B3; }
.pf-alert-info { background: #F6F0E5; color: #6A5238; border-color: #E2D0BA; }
.pf-avatar-pick { display: flex; align-items: center; gap: 18px; padding: 14px; margin-bottom: 18px; background: #F4EFE6; border: 1.5px dashed #D9C3A9; border-radius: 16px; }
.pf-question { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 14px; background: #F6F0E5; border: 1px solid #E8D7BF; border-radius: 12px; font-weight: 600; font-size: 0.9rem; color: #4A3426; }
.pf-question i { color: #B07845; margin-top: 2px; }
@media (max-width: 520px) { .pf-auth-card { padding: 26px 18px 22px; border-radius: 20px; } .pf-avatar-pick { flex-direction: column; text-align: center; } .pf-avatar-pick .pf-btn-row { justify-content: center; } }

/* ---------- modals ---------- */
.pf-modal-back { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 16px; background: rgba(43, 29, 23, 0.58); overflow-y: auto; }
.pf-modal { width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 26px; background: #FBF8F2; color: #33261B; border-radius: 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.pf-modal-wide { max-width: 640px; }
.pf-modal-crop { max-width: 360px; }
.pf-modal h2 { font-family: var(--font-serif); font-size: 1.35rem; margin-bottom: 14px; }
.pf-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.pf-policy { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; color: #4A3426; }
.pf-crop-stage { display: grid; place-items: center; margin: 14px 0; }
.pf-crop-stage canvas { width: 260px; height: 260px; max-width: 100%; border-radius: 50%; cursor: grab; touch-action: none; background: #F4EFE6; box-shadow: 0 0 0 4px #fff, 0 0 0 6px #B07845, 0 8px 22px rgba(43, 29, 23, 0.25); }
.pf-crop-stage canvas:active { cursor: grabbing; }
.pf-crop-stage canvas:focus-visible { outline: 3px solid #33261B; outline-offset: 6px; }
.pf-zoom { display: flex; align-items: center; gap: 10px; color: #6B5646; }
.pf-zoom input { flex: 1; accent-color: #8A5430; }
.pf-avatar-edit { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }

/* ---------- account pages ---------- */
.pf-page { background: #523D2D; padding: 28px 16px 64px; min-height: calc(100vh - 150px); }
.pf-inner { max-width: 1120px; margin: 0 auto; }
.pf-loading { text-align: center; color: #6B5646; padding: 60px 0; }
.pf-layout { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 24px; align-items: start; }
.pf-side { position: sticky; top: 84px; background: #FBF8F2; border: 1px solid #E4DACA; border-radius: 20px; padding: 16px; box-shadow: 0 6px 20px rgba(43, 29, 23, 0.06); }
.pf-side-user { display: flex; align-items: center; gap: 12px; padding: 6px 8px 14px; margin-bottom: 8px; border-bottom: 1px solid #E9E1D3; }
.pf-side-user strong { display: block; font-size: 0.95rem; }
.pf-side-user span { display: block; font-size: 0.76rem; color: #6B5646; word-break: break-all; }
.pf-nav { display: flex; flex-direction: column; gap: 3px; }
.pf-nav-link { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 10px 14px; border: 0; border-radius: 12px; background: none; color: #4A3426; font: 500 0.9rem var(--font-sans); text-decoration: none; text-align: left; cursor: pointer; transition: background 0.2s; }
.pf-nav-link i { width: 18px; text-align: center; color: #8A5430; }
.pf-nav-link:hover { background: #F6F0E5; }
.pf-nav-link:focus-visible { outline: 3px solid #B07845; outline-offset: 1px; }
.pf-nav-link.is-active { background: #33261B; color: #F4EFE6; font-weight: 600; }
.pf-nav-link.is-active i { color: #E7B988; }
.pf-nav-out { margin-top: 8px; color: #A33A2E; border-top: 1px solid #E9E1D3; border-radius: 0 0 12px 12px; }
.pf-nav-out i { color: #A33A2E; }
.pf-main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 860px) {
  .pf-layout { grid-template-columns: minmax(0, 1fr); }
  .pf-side { position: static; padding: 12px; }
  .pf-side-user { display: none; }
  .pf-nav { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .pf-nav-link { width: auto; white-space: nowrap; flex: none; }
  .pf-nav-out { margin: 6px 0 0; border: 0; }
}

.pf-hero { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 28px; border-radius: 24px; background: linear-gradient(135deg, #33261B 0%, #5A4331 100%); box-shadow: 0 12px 30px rgba(43, 29, 23, 0.25); }
.pf-hero-text { flex: 1; min-width: 200px; }
.pf-eyebrow { font-size: 0.74rem; letter-spacing: 1.6px; text-transform: uppercase; color: #E7B988; margin-bottom: 4px; }
.pf-hero h1 { font-family: var(--font-serif); font-size: clamp(1.4rem, 3.4vw, 2rem); color: #FFF8EE; line-height: 1.25; margin-bottom: 4px; }
.pf-hero-sub { font-size: 0.92rem; color: #EADBC8; }
.pf-card { background: #FBF8F2; border: 1px solid #E4DACA; border-radius: 20px; padding: 22px; box-shadow: 0 6px 20px rgba(43, 29, 23, 0.06); }
.pf-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.pf-card-head h2 { font-family: var(--font-serif); font-size: 1.2rem; color: #33261B; }
.pf-count { background: #F6F0E5; color: #8A5A12; font-weight: 700; font-size: 0.8rem; padding: 2px 12px; border-radius: 999px; }
.pf-order-id { font-weight: 700; color: #33261B; }
.pf-order-id span { font-weight: 400; color: #6B5646; font-size: 0.85rem; }
.pf-order-items { color: #4A3426; font-size: 0.9rem; margin: 6px 0 14px; }
.pf-latest-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid #E9E1D3; font-size: 1.1rem; }
.pf-empty { text-align: center; padding: 34px 20px; }
.pf-empty > i { font-size: 2.2rem; color: #B07845; margin-bottom: 10px; display: block; }
.pf-empty h2 { font-family: var(--font-serif); font-size: 1.2rem; margin-bottom: 6px; }
.pf-empty p { color: #6B5646; font-size: 0.9rem; max-width: 380px; margin: 0 auto 14px; }
.pf-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.pf-quick-card { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: #FBF8F2; border: 1px solid #E4DACA; border-radius: 18px; color: #33261B; text-decoration: none; box-shadow: 0 6px 20px rgba(43, 29, 23, 0.05); transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s; }
.pf-quick-card:hover { transform: translateY(-2px); border-color: #B07845; box-shadow: 0 12px 26px rgba(43, 29, 23, 0.1); }
.pf-quick-card:focus-visible { outline: 3px solid #B07845; outline-offset: 2px; }
.pf-quick-card span:last-child { font-size: 0.82rem; color: #6B5646; }
.pf-quick-ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: #F6F0E5; color: #8A5430; font-size: 1.1rem; margin-bottom: 6px; }
.pf-profile-top { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.pf-profile-top h3 { font-family: var(--font-serif); font-size: 1.3rem; }
.pf-profile-top p { color: #6B5646; font-size: 0.85rem; }
.pf-list { display: flex; flex-direction: column; }
.pf-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-top: 1px solid #F3EADD; }
.pf-row dt { font-size: 0.82rem; font-weight: 600; color: #6B5646; }
.pf-row dd { font-size: 0.95rem; word-break: break-word; }
.pf-row dd small { display: block; font-size: 0.76rem; color: #8C7A6B; margin-top: 2px; }
.pf-row dd em { color: #A89886; }
@media (max-width: 560px) { .pf-row { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.pf-note { font-size: 0.88rem; color: #4A3426; margin-bottom: 14px; }
.pf-note small { color: #8C7A6B; }
.pf-fav-list, .pf-addr-list, .pf-notes { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pf-fav-list li { display: flex; align-items: center; gap: 14px; padding: 10px; border: 1px solid #E9E1D3; border-radius: 14px; }
.pf-fav-list img, .pf-fav-noimg { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; background: #EEE7DA; display: grid; place-items: center; color: #B07845; }
.pf-fav-list li > div { flex: 1; min-width: 0; }
.pf-fav-list strong { display: block; }
.pf-fav-list li span { font-size: 0.82rem; color: #6B5646; }
.pf-icon-btn { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #FDEEEB; color: #C0392B; cursor: pointer; flex: none; }
.pf-icon-btn:hover { background: #F9D9D3; }
.pf-icon-btn:focus-visible { outline: 3px solid #33261B; outline-offset: 2px; }
.pf-addr { padding: 16px; border: 1.5px solid #E9E1D3; border-radius: 16px; }
.pf-addr.is-default { border-color: #B07845; background: #FFFBF5; }
.pf-addr-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; gap: 10px; }
.pf-addr-top i { color: #8A5430; margin-right: 4px; }
.pf-addr p { font-size: 0.9rem; color: #4A3426; margin-bottom: 12px; }
.pf-tag { background: #33261B; color: #E7B988; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.5px; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; }
.pf-notes li { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid #E9E1D3; border-radius: 14px; }
.pf-notes li > div { flex: 1; min-width: 0; }
.pf-notes p { font-size: 0.9rem; }
.pf-notes small { color: #8C7A6B; font-size: 0.76rem; }
.pf-note-ic { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #F6F0E5; color: #8A5430; flex: none; }
.pf-toggle { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid #F3EADD; cursor: pointer; }
.pf-toggle:first-of-type { border-top: 0; }
.pf-toggle strong { display: block; font-size: 0.92rem; }
.pf-toggle small { display: block; font-size: 0.78rem; color: #6B5646; max-width: 460px; }
.pf-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pf-switch { position: relative; width: 48px; height: 28px; flex: none; border-radius: 999px; background: #D9CBBA; transition: background 0.2s; }
.pf-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #FBF8F2; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); transition: transform 0.2s; }
.pf-toggle input:checked + .pf-switch { background: #8A5430; }
.pf-toggle input:checked + .pf-switch::after { transform: translateX(20px); }
.pf-toggle input:focus-visible + .pf-switch { outline: 3px solid #33261B; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .pf-switch, .pf-switch::after, .pf-quick-card { transition: none; } }

/* ---------- admin: account management ---------- */
.adm-cust { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
}
.adm-cust-lg { 
  margin-bottom: 14px; 
}
.adm-cust-lg h2 { 
  margin-bottom: 0; 
}
.adm-icon-btn.is-warn { 
  color: #A33A2E; 
  border-color: #F0C9C2; 
}
.adm-icon-btn.is-warn:hover { 
  background: #FDEEEB; 
  border-color: #A33A2E; 
}
.adm-modal-sm { 
  max-width: 560px; 
}
.adm-order-list { 
  list-style: none; 
  display: flex; 
  flex-direction: column; 
  gap: 8px; 
}
.adm-order-list li { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  padding: 12px; 
  border: 1px solid #E9E1D3; 
  border-radius: 12px; 
  flex-wrap: wrap; 
}
.adm-order-list li > div { 
  flex: 1; 
  min-width: 150px; }
.adm-order-list small 
{ 
  display: block; 
  color: #6B5646; 
  font-size: 0.78rem; 
}
/* ==========================================================================
   GALLERY SLIDER + POPUP  (added - editorial poster cards in the cafe palette)
   ========================================================================== */
.gx { position: relative; margin: 0 -20px; }
.gx-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 20px;
  padding: 14px 20px 26px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  outline: none;
}
.gx-track::-webkit-scrollbar {
   display: none; 
  }
.gx-track.is-dragging { 
  cursor: grabbing; 
  scroll-snap-type: none; 
  user-select: none; 
}
.gx-track:focus-visible { 
  box-shadow: inset 0 0 0 2px var(--caramel); 
  border-radius: 12px; 
}

.gx-card {
  position: relative;
  flex: 0 0 272px;
  height: 410px;
  border: none;
  border-radius: 22px;
  padding: 0;
  text-align: left;
  font: inherit;
  color: var(--espresso);
  cursor: pointer;
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  -webkit-tap-highlight-color: transparent;
}
.gx-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.gx-card:focus-visible { outline: 3px solid var(--caramel); outline-offset: 3px; }
.gx-card.is-dragged { pointer-events: none; }

.gx-media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #d9b99a, #B07845);
  flex-shrink: 0;
}
.gx-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gx-card:hover .gx-media img { transform: scale(1.06); }

.gx-num {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  letter-spacing: 2px;
  opacity: 0.75;
}
.gx-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.gx-title {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  line-height: 1.2;
  font-weight: 600;
}
.gx-desc {
  font-size: 0.8rem;
  line-height: 1.5;
  opacity: 0.85;
}
.gx-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.gx-more i { transition: transform 0.25s ease; }
.gx-card:hover .gx-more i { transform: translateX(4px); }
.gx-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.gx-body .gx-more { margin-top: auto; }

/* 1 - arch on caramel */
.gx-v1 { background: var(--caramel); color: var(--espresso); }
.gx-v1 .gx-media { margin: 14px 14px 0; height: 56%; border-radius: 999px 999px 16px 16px; }
.gx-v1 .gx-more, .gx-v1 .gx-tag { color: var(--espresso); }

/* 2 - circle on cream */
.gx-v2 { background: var(--about-card-bg); border: 1px solid var(--border-color); }
.gx-v2 .gx-media { width: 188px; height: 188px; border-radius: 50%; margin: 22px auto 0; box-shadow: 0 8px 20px rgba(62, 38, 23, 0.15); }
.gx-v2 .gx-body { padding-top: 14px; text-align: center; align-items: center; }
.gx-v2 .gx-tag { color: #523D2D; }

/* 3 - full-bleed photo */
.gx-v3 { background: var(--espresso); color: var(--cream); }
.gx-v3 .gx-media { position: absolute; inset: 0; height: auto; }
.gx-v3::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(62, 38, 23, 0.15) 0%, rgba(62, 38, 23, 0.15) 35%, rgba(62, 38, 23, 0.9) 100%);
  pointer-events: none;
}
.gx-v3 .gx-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; color: var(--cream); }
.gx-v3 .gx-tag { color: var(--caramel); }

/* 4 - leaf shape on espresso */
.gx-v4 { background: var(--espresso); color: var(--cream); }
.gx-v4 .gx-media { margin: 14px 14px 0; height: 56%; border-radius: 120px 16px 120px 16px; }
.gx-v4 .gx-tag, .gx-v4 .gx-more { color: var(--caramel); }

/* top-corner index badge */
.gx-card .gx-num { position: absolute; top: 18px; right: 20px; z-index: 3; color: var(--cream); text-shadow: 0 1px 6px rgba(0,0,0,.35); }

/* controls */
.gx-ctrl { display: flex; align-items: center; gap: 16px; padding: 0 20px; }
.gx-arrow {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid #523D2D;
  background: transparent;
  color: #523D2D;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
  touch-action: manipulation;
}
.gx-arrow:hover:not(:disabled) { background: #523D2D; color: var(--cream); }
.gx-arrow:disabled { opacity: 0.35; cursor: default; }
.gx-arrow:focus-visible { outline: 3px solid var(--caramel); outline-offset: 2px; }
.gx-progress { flex: 1; height: 3px; border-radius: 3px; background: var(--border-color); overflow: hidden; }
.gx-progress span { display: block; height: 100%; width: 20%; background: var(--caramel); border-radius: 3px; transition: width 0.15s linear; }
.gx-hint { font-size: 0.78rem; opacity: 0.7; text-align: center; margin-top: 12px; }

/* popup */
.gx-modal {
  position: fixed; inset: 0;
  background: rgba(62, 38, 23, 0.92);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.gx-modal.is-open { opacity: 1; visibility: visible; }
.gx-dialog {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  width: 100%; max-width: 940px;
  max-height: calc(100vh - 40px);
  background: var(--cream);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  transform: translateY(18px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.gx-modal.is-open .gx-dialog { transform: none; }
.gx-dialog-media { background: var(--espresso); min-height: 360px; }
.gx-dialog-media img { width: 100%; height: 100%; object-fit: cover; }
.gx-dialog-info { padding: 40px 36px 28px; display: flex; flex-direction: column; overflow-y: auto; }
.gx-dialog-info .gx-tag { color: #523D2D; margin-bottom: 8px; }
.gx-dialog-title { font-family: var(--font-serif); font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.2; color: var(--espresso); margin-bottom: 14px; }
.gx-rule { width: 56px; height: 3px; background: var(--caramel); border-radius: 3px; margin-bottom: 16px; }
.gx-dialog-text { font-size: 0.95rem; line-height: 1.75; color: #52412F; }
.gx-dialog-nav { margin-top: auto; padding-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gx-count { font-family: var(--font-serif); color: #523D2D; letter-spacing: 2px; font-size: 0.9rem; }
.gx-dialog-nav .gx-arrow { width: 42px; height: 42px; }
.gx-close {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 40px; height: 40px; border-radius: 50%;
  border: none; background: rgba(248, 241, 231, 0.92); color: var(--espresso);
  font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s ease;
}
.gx-close:hover { background: var(--white); }
.gx-close:focus-visible { outline: 3px solid var(--caramel); outline-offset: 2px; }

@media (max-width: 760px) {
  .gx-card { flex-basis: 74vw; max-width: 300px; height: 390px; }
  .gx-dialog { grid-template-columns: 1fr; overflow-y: auto; }
  .gx-dialog-media { min-height: 0; height: 42vh; }
  .gx-dialog-info { padding: 24px 22px 22px; overflow: visible; }
}
@media (prefers-reduced-motion: reduce) {
  .gx-card, .gx-media img, .gx-modal, .gx-dialog, .gx-more i { transition: none; }
}

/* ==========================================================================
   HOME PAGE HERO (index.html) - color-shifting showcase, drag / swipe / slide
   ========================================================================== */
@property --hx1 { syntax: '<color>'; inherits: true; initial-value: #b98a65; }
@property --hx2 { syntax: '<color>'; inherits: true; initial-value: #f2a65a; }

.hero-bg.hx {
  --hx1: #b98a65; --hx2: #f2a65a;
  position: relative; display: block; text-align: left; padding: 0;
  min-height: clamp(640px, 100vh, 880px);
  color: #fff; overflow: hidden; touch-action: pan-y;
  background:
    radial-gradient(ellipse 58% 44% at 88% 104%, rgba(255,255,255,.97) 0%, rgba(255,255,255,.55) 42%, rgba(255,255,255,0) 74%),
    linear-gradient(180deg, var(--hx1) 0%, var(--hx1) 28%, var(--hx2) 100%);
  transition: --hx1 .9s ease, --hx2 .9s ease;
}
.hx-inner { position: relative; max-width: 1280px; min-height: inherit; margin: 0 auto; padding: 150px 5% 70px; display: flex; flex-direction: column; justify-content: center; user-select: none; -webkit-user-select: none; }

/* big title (sits UNDER the drink so the cup overlaps its edge, like the reference) */
.hx-title { position: relative; z-index: 1; max-width: 66%; font-family: 'Bebas Neue','Oswald','Anton',Impact,'Arial Narrow',sans-serif; font-weight: 400; text-transform: uppercase; line-height: .92; letter-spacing: .02em; font-size: clamp(3.4rem, 9.2vw, 8.4rem); color: #fff; text-shadow: 0 4px 24px rgba(0,0,0,.12); }
.hx-title span { display: block; }

.hx-copy { position: relative; z-index: 3; max-width: 430px; margin-top: 18px; }
.hx-kicker { font-size: .95rem; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: #fff; margin-bottom: 4px; text-shadow: 0 1px 8px rgba(0,0,0,.18); }
.hx-desc { font-size: .98rem; line-height: 1.6; color: rgba(255,255,255,.92); max-width: 400px; margin-bottom: 26px; text-shadow: 0 1px 8px rgba(0,0,0,.18); min-height: 3.2em; }
.hx-actions { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }
.hx-order { display: inline-flex; align-items: center; justify-content: center; padding: 14px 34px; border-radius: 40px; background: #FBF8F2; color: #111; font-weight: 600; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; box-shadow: 0 8px 22px rgba(0,0,0,.16); transition: transform .2s ease, box-shadow .2s ease; }
.hx-order:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(0,0,0,.22); }
.hx-all { color: #fff; text-decoration: none; font-weight: 500; font-size: .88rem; letter-spacing: .06em; text-transform: uppercase; padding: 0 2px 8px; border-bottom: 1.5px solid rgba(255,255,255,.75); display: inline-flex; align-items: center; gap: 22px; transition: gap .2s ease; }
.hx-all:hover { gap: 30px; }

/* thumbnails: translucent rounded tiles, the active one drops down */
.hx-thumbs { display: flex; align-items: flex-start; gap: 14px; margin-top: 34px; padding: 4px 4px 28px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.hx-thumbs::-webkit-scrollbar { display: none; }
.hx-thumb { flex: 0 0 auto; width: 64px; height: 76px; padding: 8px; border: 1px solid rgba(255,255,255,.28); border-radius: 18px; background: rgba(255,255,255,.18); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); cursor: pointer; display: grid; place-items: center; transition: transform .3s ease, background .3s ease, box-shadow .3s ease; -webkit-tap-highlight-color: transparent; }
.hx-thumb img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 5px 6px rgba(0,0,0,.25)); pointer-events: none; }
.hx-thumb img.is-photo { object-fit: cover; border-radius: 12px; filter: none; }
.hx-thumb:hover { background: rgba(255,255,255,.32); transform: translateY(-4px); }
.hx-thumb.is-active { transform: translateY(14px); background: rgba(255,255,255,.38); box-shadow: 0 10px 22px rgba(0,0,0,.14); }
.hx-thumb:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* the drink */
.hx-stage { position: absolute; z-index: 2; right: 1%; top: 54%; transform: translateY(-50%); width: min(50%, 640px); aspect-ratio: 1; cursor: grab; outline: none; touch-action: pan-y; }
.hx-stage.is-dragging { cursor: grabbing; }
.hx-stage:focus-visible { box-shadow: 0 0 0 3px rgba(255,255,255,.8); border-radius: 50%; }
.hx-splash { position: absolute; inset: -4%; width: 108%; height: 108%; fill: var(--hx2); opacity: .55; filter: saturate(1.3) brightness(.92); animation: hxSpin 28s linear infinite; pointer-events: none; }
@keyframes hxSpin { to { transform: rotate(360deg); } }
.hx-float { position: absolute; inset: 4%; transition: transform .25s ease-out; animation: hxBob 6s ease-in-out infinite; }
@keyframes hxBob { 0%,100% { margin-top: 0; } 50% { margin-top: -12px; } }
.hx-drink { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 26px 30px rgba(0,0,0,.28)); will-change: transform; }
.hx-drink.is-photo { object-fit: cover; border-radius: 50%; filter: none; -webkit-mask-image: radial-gradient(circle closest-side, #000 74%, transparent 100%); mask-image: radial-gradient(circle closest-side, #000 74%, transparent 100%); }
.hx-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.55); background: rgba(255,255,255,.2); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s ease; touch-action: manipulation; }
.hx-arrow:hover { background: #FBF8F2; color: #222; }
.hx-arrow:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.hx-arrow.prev { left: -2%; } .hx-arrow.next { right: -2%; }

/* header becomes a transparent bar with a centered pill menu (desktop) */
@media (min-width: 769px) {
  body:has(.hx) header { position: fixed; top: 0; left: 0; right: 0; padding: 18px 5%; background: transparent; box-shadow: none; display: grid; grid-template-columns: 1fr auto 1fr; transition: background .3s ease, padding .3s ease, box-shadow .3s ease; }
  body:has(.hx) header.is-solid { background: rgba(62,38,23,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 10px 5%; box-shadow: var(--shadow-sm); }
  body:has(.hx) .brand-logo { justify-self: start; }
  body:has(.hx) .nav-actions { justify-self: end; }
  body:has(.hx) .nav-links { gap: 2px; padding: 6px; border-radius: 40px; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
  body:has(.hx) .nav-links a { display: block; padding: 9px 18px; border-radius: 30px; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: #fff; padding-bottom: 9px; }
  body:has(.hx) .nav-links a:hover { background: rgba(255,255,255,.22); color: #fff; }
  body:has(.hx) .nav-links a.active { background: #FBF8F2; color: #111; }
  body:has(.hx) .nav-links a.active::after { display: none; }
  body:has(.hx) .icon-btn, body:has(.hx) .cart-icon-btn { width: 38px; height: 38px; font-size: 1rem; border: 1px solid rgba(255,255,255,.55); background: rgba(255,255,255,.14); color: #fff; }
  body:has(.hx) .icon-btn:hover, body:has(.hx) .cart-icon-btn:hover { background: #FBF8F2; color: #222; }
}

/* tablet / phone: stack, drink on top of the text block */
@media (max-width: 900px) {
  .hero-bg.hx { min-height: 0; }
  .hx-inner { padding: 96px 6% 40px; align-items: center; text-align: center; }
  .hx-title { max-width: 100%; font-size: clamp(3rem, 14vw, 5.2rem); }
  .hx-stage { position: relative; right: auto; top: auto; transform: none; width: min(78vw, 400px); margin: -6px auto 6px; }
  .hx-copy { max-width: 520px; margin-top: 0; }
  .hx-desc { margin-left: auto; margin-right: auto; }
  .hx-actions { justify-content: center; gap: 22px; }
  .hx-thumbs { justify-content: flex-start; margin-top: 24px; }
  .hx-arrow.prev { left: -6px; } .hx-arrow.next { right: -6px; }
}
@media (prefers-reduced-motion: reduce) { .hx-float, .hx-splash { animation: none; } .hero-bg.hx, .hx-thumb { transition: none; } }

/* ==========================================================================
   HOME PAGE - DARK HIGHLIGHTS SECTION + FOOTER (matches hero) - added
   ========================================================================== */
.home-dark {
  position: relative;
  width: 100%;
  padding: 36px 0 56px;
  color: var(--cream);
  background:
    radial-gradient(ellipse at 15% 0%, rgba(198,138,91,.20) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 100%, rgba(198,138,91,.14) 0%, transparent 55%),
    linear-gradient(180deg, #1b100a 0%, #2a1810 55%, #1b100a 100%);
  border-top: 1px solid rgba(198,138,91,.25);
}
.home-dark::before {              /* soft coffee-bean texture */
  content: '';
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(198,138,91,.10) 1.5px, transparent 1.6px);
  background-size: 26px 26px;
}
.home-dark .section { position: relative; z-index: 1; }

.home-dark .section-header-small { padding-bottom: 28px; }
.home-dark .section-title { color: var(--cream); letter-spacing: .03em; }
.home-dark .section-title::after {
  content: ''; display: block; width: 64px; height: 3px; margin: 14px auto 0;
  border-radius: 3px; background: linear-gradient(90deg, transparent, var(--caramel), transparent);
}
.home-dark .section-subtitle { color: var(--cream); opacity: .75; }

.home-dark .grid-3 { gap: 26px; }
.home-dark .card {
  position: relative;
  background: linear-gradient(160deg, rgba(248,241,231,.08), rgba(248,241,231,.02));
  border: 1px solid rgba(198,138,91,.35);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: visible;
}
.home-dark .card-content { padding: 30px 26px; align-items: center; text-align: center; }
.home-dark .card:hover {
  transform: translateY(-8px);
  border-color: var(--caramel);
  box-shadow: 0 18px 40px rgba(0,0,0,.5), 0 0 28px rgba(198,138,91,.25);
}
.home-dark .feature-icon {
  display: grid; place-items: center;
  width: 68px; height: 68px; margin-bottom: 18px;
  font-size: 1.6rem; color: var(--caramel);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198,138,91,.28), rgba(198,138,91,.06) 70%);
  border: 1.5px solid rgba(198,138,91,.55);
  transition: transform .3s ease, background .3s ease, color .3s ease;
}
.home-dark .card:hover .feature-icon { transform: rotate(-8deg) scale(1.08); background: var(--caramel); color: var(--espresso); }
.home-dark .card-title { color: var(--cream); font-size: 1.3rem; margin-bottom: 10px; }
.home-dark .card-text { color: var(--cream); opacity: .78; font-size: .92rem; margin-bottom: 0; }

/* Reservation / pastries card */
.home-dark .card-reserve { border: 1.5px dashed var(--caramel); background: linear-gradient(160deg, rgba(198,138,91,.20), rgba(198,138,91,.05)); }
.home-dark .card-reserve .card-text p { margin-bottom: 8px; opacity: 1; }
.home-dark .card-reserve strong { color: var(--caramel); }
.reserve-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--caramel); color: var(--espresso);
  font-size: .7rem; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
  padding: 4px 14px; border-radius: 30px; white-space: nowrap; box-shadow: var(--shadow-sm);
}
.home-dark .pickup-note {
  margin-top: 12px; padding: 9px 12px;
  background: rgba(0,0,0,.28); border-left: 4px solid var(--caramel);
  border-radius: 8px; font-size: .85rem; text-align: left; font-weight: 500;
}
.home-dark .pickup-note i { color: var(--caramel); margin-right: 4px; }

/* Footer to match */
.hx ~ .footer, .home-dark ~ .footer {
  background: #3C2D21;
  border-top: 2px solid var(--caramel);
}
.home-dark ~ .footer .footer-bottom { border-top: none; opacity: .75; }

/* Entrance animation */
@keyframes homeRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.home-dark .card { animation: homeRise .7s ease both; }
.home-dark .card:nth-child(2) { animation-delay: .12s; }
.home-dark .card:nth-child(3) { animation-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .home-dark .card { animation: none; } .home-dark .card, .home-dark .feature-icon { transition: none; } }
@media (max-width: 600px) { .home-dark { padding: 24px 0 40px; } .home-dark .card-content { padding: 26px 20px; } }


/* ==========================================================================
   THEME LAYER - Graphite Moss (#523D2D) x Vanilla Bean (#F4EFE6)
   Dark page, light navbar, light cards. Added last so it overrides earlier
   rules; every colour comes from the tokens in :root.
   ========================================================================== */
:root { --header-h: 64px; }

/* Dark areas read the accent as the light gold, light surfaces keep the deep one */
.home-dark, .footer, .cart-header, .gx-v3, .gx-v4, .gx-dialog-media, .adm-sidebar, .adm-topbar, .pf-hero {
  --caramel: var(--accent-lt);
}

:focus-visible { outline-color: var(--accent-lt); }
header :focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; }

/* ---------- 1. NAVBAR: light, with hamburger on the right ---------- */
header,
body:has(.hx) header,
body:has(.hx) header.is-solid {
  position: sticky; top: 0; left: auto; right: auto;
  display: flex; justify-content: flex-start; align-items: center;
  height: var(--header-h); padding: 0 5%;
  background: var(--vanilla);
  border-bottom: 1px solid rgba(82, 61, 45, 0.14);
  box-shadow: 0 2px 14px rgba(30, 21, 14, 0.24);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.brand-logo { color: var(--moss); flex-shrink: 0; }
header .site-logo, header .bento-logo { height: 42px !important; width: auto !important; max-width: none; }

.nav-links, body:has(.hx) .nav-links {
  gap: 4px; padding: 0; background: none; border: 0; border-radius: 0;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  margin: 0 18px;
}
.nav-links a, body:has(.hx) .nav-links a {
  color: var(--moss); font-size: 0.9rem; font-weight: 500;
  padding: 8px 14px; border-radius: 999px;
  text-transform: none; letter-spacing: 0; white-space: nowrap;
}
.nav-links a:hover, body:has(.hx) .nav-links a:hover { background: rgba(82, 61, 45, 0.1); color: var(--moss); }
.nav-links a.active, body:has(.hx) .nav-links a.active { background: var(--moss); color: var(--vanilla); }
.nav-links a.active::after, body:has(.hx) .nav-links a.active::after { display: none; }

.nav-actions { gap: 6px; }
.icon-btn, .cart-icon-btn,
body:has(.hx) .icon-btn, body:has(.hx) .cart-icon-btn {
  width: 42px; height: 42px; font-size: 1.15rem;
  color: var(--moss); background: transparent; border: 0;
}
.icon-btn:hover, .cart-icon-btn:hover,
body:has(.hx) .icon-btn:hover, body:has(.hx) .cart-icon-btn:hover { background: rgba(82, 61, 45, 0.1); color: var(--moss); }
.cart-badge { background: var(--moss); color: var(--vanilla); }

.pf-menu-btn { background: rgba(82, 61, 45, 0.08); border-color: rgba(82, 61, 45, 0.25); color: var(--moss); }
.pf-menu-btn:hover, .pf-menu-btn[aria-expanded="true"] { background: rgba(82, 61, 45, 0.16); border-color: var(--moss); }

/* hamburger: hidden on desktop, sits at the far right on tablet + phone */
.mobile-toggle {
  display: none; order: 3; flex-shrink: 0;
  width: 44px; height: 44px; margin-left: 6px; padding: 0;
  align-items: center; justify-content: center;
  color: var(--moss); background: transparent;
  border: 1px solid rgba(82, 61, 45, 0.3); border-radius: 12px;
  font-size: 1.2rem; transition: background .2s ease, color .2s ease;
}
.mobile-toggle:hover, .mobile-toggle[aria-expanded="true"] { background: var(--moss); color: var(--vanilla); }

@media (max-width: 1100px) {
  .nav-links a, body:has(.hx) .nav-links a { padding: 8px 10px; font-size: 0.86rem; }
  .nav-links, body:has(.hx) .nav-links { margin: 0 8px; }
}

@media (max-width: 900px) {
  header, body:has(.hx) header, body:has(.hx) header.is-solid { padding: 0 16px; }
  .brand-logo { order: 1; margin-right: auto; }
  .nav-actions { order: 2; }
  .mobile-toggle { display: inline-flex; }

  .nav-links, body:has(.hx) .nav-links {
    display: none; position: fixed; top: var(--header-h); left: 0; right: 0; width: 100%; margin: 0;
    max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px 16px 18px;
    background: var(--vanilla); border-top: 1px solid rgba(82, 61, 45, 0.14); border-radius: 0 0 18px 18px;
    box-shadow: 0 22px 36px rgba(20, 14, 9, 0.38);
  }
  .nav-links.active, body:has(.hx) .nav-links.active { display: flex; animation: navDrop .18s ease-out; }
  .nav-links li { width: 100%; }
  .nav-links a, body:has(.hx) .nav-links a {
    display: block; width: 100%; padding: 14px 16px; font-size: 1rem; border: 0; border-radius: 12px;
  }
}
@keyframes navDrop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) {
  header .site-logo, header .bento-logo { height: 34px !important; }
  .nav-actions { gap: 2px; }
  .icon-btn, .cart-icon-btn, body:has(.hx) .icon-btn, body:has(.hx) .cart-icon-btn { width: 40px; height: 40px; }
  .mobile-toggle { width: 42px; height: 42px; margin-left: 4px; }
}
@media (prefers-reduced-motion: reduce) { .nav-links.active { animation: none; } }

/* ---------- 2. TEXT THAT SITS DIRECTLY ON THE DARK PAGE ---------- */
.page-title, .section-title { color: var(--vanilla); }
.page-subtitle, .section-subtitle { color: var(--vanilla); opacity: 0.85; }
.tagline { color: var(--accent-lt); }
.section-heading { color: var(--vanilla); border-bottom-color: var(--moss-line); }
.section-heading i { color: var(--accent-lt); }
.gx-hint { color: var(--vanilla); }

/* buttons that appear on the dark page */
.btn-primary:hover { background-color: var(--moss-deep); border-color: var(--moss-deep); color: var(--vanilla); box-shadow: 0 4px 12px rgba(30, 21, 14, 0.28); }

/* ---------- 3. MENU: full width + phone / tablet / desktop grid ---------- */
.menu-page-wrapper { padding-bottom: 56px; }
.menu-search-container { max-width: min(560px, 100%); }
.category-nav-sticky {
  top: var(--header-h); background: var(--moss-deep);
  border-bottom: 1px solid var(--moss-line); box-shadow: 0 8px 16px rgba(20, 14, 9, 0.28);
}
.category-nav-inner { max-width: 1760px; padding: 0 clamp(14px, 3.2vw, 56px); }
.category-nav-inner .cat-nav-pill {
  background: transparent; color: var(--vanilla); border-color: rgba(244, 239, 230, 0.35); box-shadow: none;
}
.category-nav-inner .cat-nav-pill:hover { background: rgba(244, 239, 230, 0.12); color: var(--vanilla); transform: none; }
.category-nav-inner .cat-nav-pill.active,
.category-nav-inner .cat-nav-pill.active:hover { background: var(--vanilla); color: var(--moss); border-color: var(--vanilla); font-weight: 700; }

/* the menu now uses the whole width instead of a 1100px column */
.menu-container { max-width: 1760px; width: 100%; padding: 0 clamp(14px, 3.2vw, 56px); margin-top: 26px; }
.menu-section { scroll-margin-top: calc(var(--header-h) + 64px); margin-bottom: 44px; }
.products-grid {
  grid-template-columns: repeat(auto-fill, minmax(clamp(220px, 17vw, 290px), 1fr));
  gap: clamp(14px, 1.6vw, 26px);
}
.products-grid .card { background: var(--vanilla); border-color: transparent; box-shadow: 0 8px 22px rgba(20, 14, 9, 0.28); }
.products-grid .card-img-wrapper { height: clamp(170px, 14vw, 220px); background: var(--vanilla-2); }
.products-grid .card-title, .products-grid .card-text { color: var(--ink); }

/* tablet */
@media (min-width: 600px) and (max-width: 1023px) {
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
  .products-grid .card-img-wrapper { height: 170px; }
}

/* phone: two compact cards per row */
@media (max-width: 599px) {
  .category-nav-inner { justify-content: flex-start; }
  .menu-container { padding: 0 12px; margin-top: 18px; }
  .menu-section { margin-bottom: 30px; }
  .section-heading { font-size: 1.12rem; }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .products-grid .card { border-radius: 12px; }
  .products-grid .card-img-wrapper { height: 118px; }
  .products-grid .card-content { padding: 10px; }
  .products-grid .card-header-row { flex-direction: column; gap: 2px; min-height: 0; margin-bottom: 4px; }
  .products-grid .card-title { font-size: 0.92rem; }
  .products-grid .card-price-text { font-size: 0.92rem; }
  .products-grid .card-text {
    font-size: 0.74rem; margin-bottom: 8px; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .products-grid .card-options-wrapper { min-height: 0; gap: 6px; margin-bottom: 8px; }
  .products-grid select.form-control, .products-grid input.form-control { font-size: 0.74rem !important; padding: 4px 6px !important; }
  .products-grid label { font-size: 0.7rem !important; }
  .products-grid .btn { font-size: 0.76rem; padding: 8px 6px; min-height: 40px; gap: 5px; }
  .products-grid .badge { font-size: 0.64rem; padding: 2px 7px; top: 6px; right: auto; left: 6px; }
}
@media (max-width: 359px) { .products-grid { grid-template-columns: minmax(0, 1fr); } .products-grid .card-img-wrapper { height: 150px; } }
@media (hover: none) { .card:hover { transform: none; } }

/* ---------- 4. CART DRAWER ---------- */
.cart-header { background: var(--moss); color: var(--vanilla); }
.cart-close-btn { background: rgba(244, 239, 230, 0.14); }

/* ---------- 5. HOME ---------- */
@media (min-width: 901px) { .hero-bg.hx { min-height: clamp(560px, calc(100vh - var(--header-h)), 860px); } }
.hx-inner { padding-top: clamp(36px, 7vh, 84px); }
@media (max-width: 900px) { .hx-inner { padding: 36px 6% 40px; } }
.home-dark {
  background:
    radial-gradient(ellipse at 15% 0%, rgba(226, 178, 124, .16) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 100%, rgba(226, 178, 124, .10) 0%, transparent 55%),
    linear-gradient(180deg, var(--moss-deep) 0%, var(--moss) 55%, var(--moss-deep) 100%);
  border-top: 1px solid rgba(226, 178, 124, .3);
}
.footer, .hx ~ .footer, .home-dark ~ .footer { background: var(--moss-deep); color: var(--vanilla); border-top: 2px solid var(--accent-lt); }

/* ---------- 6. ABOUT + BENTO ---------- */
.about-page-main { background: var(--moss); color: var(--vanilla); }
.banner-hero, .bento-hero-banner {
  background: radial-gradient(circle at 20% 50%, #6A5240 0%, var(--moss) 72%);
  border-bottom: 1px solid var(--moss-line);
}
.banner-title em { color: var(--accent-lt); }
.banner-description, .story-content p, .specialties-header p, .specialty-card p, .journey-step p,
.exp-details p, .mission-content p, .why-list li, .bento-bottom-desc { color: rgba(244, 239, 230, 0.86); }
.exp-details .italic-note { color: rgba(244, 239, 230, 0.72); }
.sub-tag, .handwritten-caption { color: var(--accent-lt); }
.polaroid-frame .handwritten-caption, .polaroid-single .handwritten-caption { color: var(--moss); }
.photo-badge { color: #fff; }
.specialties-section, .mission-why-section { background: var(--moss-soft); }
.specialty-card { background: rgba(244, 239, 230, 0.07); border: 1px solid var(--moss-line); }
.specialty-card:hover { background: rgba(244, 239, 230, 0.13); }
.spec-icon, .feature-badge-icon { background: var(--accent-lt); color: var(--moss-deep); }
.journey-step .step-icon, .why-list li i { color: var(--accent-lt); }
.why-right { border-left-color: var(--moss-line); }
@media (max-width: 992px) { .why-right { border-top-color: var(--moss-line); } }
/* the booking form stays a light card so its fields stay readable */
.bento-card-aesthetic { background: var(--vanilla); color: var(--ink); border-color: transparent; box-shadow: var(--shadow-md); }
.bento-card-title { color: var(--ink); }
.bento-card-subtitle { color: var(--ink-soft); }
.bento-card-aesthetic .sub-tag { color: var(--accent-ink); }
.bento-card-aesthetic .form-control { background: var(--vanilla-3); }

/* ---------- 7. GALLERY ---------- */
.gx-v1 { background: var(--accent-lt); color: var(--ink); }
.gx-v1 .gx-more, .gx-v1 .gx-tag { color: var(--moss-deep); }
.gx-v2 { background: var(--vanilla); border-color: transparent; color: var(--ink); }
.gx-v3, .gx-v4 { background: var(--moss-deep); }
.gx-v3::after { background: linear-gradient(180deg, rgba(30, 21, 14, .12) 0%, rgba(30, 21, 14, .12) 35%, rgba(30, 21, 14, .9) 100%); }
.gx-arrow { border-color: var(--vanilla); color: var(--vanilla); }
.gx-arrow:hover:not(:disabled) { background: var(--vanilla); color: var(--moss); }
.gx-progress { background: rgba(244, 239, 230, 0.22); }
.gx-progress span { background: var(--accent-lt); }
.gx-modal, .lightbox { background: rgba(30, 21, 14, 0.92); }
.gx-dialog-info .gx-tag, .gx-count { color: var(--accent-ink); }
.gx-dialog-text { color: var(--ink-soft); }
.gx-dialog .gx-arrow { border-color: var(--moss); color: var(--moss); }
.gx-dialog .gx-arrow:hover:not(:disabled) { background: var(--moss); color: var(--vanilla); }

/* ---------- 8. CART / CHECKOUT / TRACKING ---------- */
.cx { --cx-white: #FBF8F2; --cx-beige: #E2D8C7; --cx-cream: #F4EFE6; --cx-muted: #6B5646; }
main.cx { background: var(--moss); }
main.cx h1 { color: var(--vanilla); }
main.cx .cx-sub { color: rgba(244, 239, 230, 0.82); }
main.cx .cx-breadcrumb, main.cx .cx-breadcrumb a { color: rgba(244, 239, 230, 0.75); }
main.cx .cx-breadcrumb a:hover { color: var(--accent-lt); }
main.cx .cx-breadcrumb [aria-current] { color: var(--vanilla); }
main.cx .cx-steps li { color: rgba(244, 239, 230, 0.7); }
main.cx .cx-steps li.is-active, main.cx .cx-steps li.is-done { color: var(--vanilla); }
main.cx .cx-steps li + li::before { background: rgba(244, 239, 230, 0.25); }
main.cx .cx-steps li.is-done + li::before, main.cx .cx-steps li.is-active::before { background: var(--accent-lt); }
main.cx .cx-step-dot { background: transparent; border-color: rgba(244, 239, 230, 0.4); }
main.cx .cx-steps li.is-active .cx-step-dot { background: var(--vanilla); border-color: var(--vanilla); color: var(--moss); }
main.cx .cx-steps li.is-done .cx-step-dot { background: var(--accent-lt); border-color: var(--accent-lt); color: var(--ink); }
main.cx .cx-empty h2 { color: var(--vanilla); }
main.cx .cx-empty p { color: rgba(244, 239, 230, 0.8); }
main.cx .cx-empty-art { border-color: var(--moss-soft); }
/* buttons that sit on the dark page (not inside a card) */
main.cx .cx-form-actions .cx-btn-primary, main.cx .cx-empty .cx-btn-primary, main.cx .cx-confirm-actions .cx-btn-primary {
  background: var(--vanilla); color: var(--moss) !important;
}
main.cx .cx-form-actions .cx-btn-primary:hover, main.cx .cx-empty .cx-btn-primary:hover, main.cx .cx-confirm-actions .cx-btn-primary:hover { background: #fff; }
main.cx #cxTrackJump, main.cx .cx-form-actions .cx-btn-ghost, main.cx .cx-confirm-actions .cx-btn-ghost, main.cx .cx-empty .cx-btn-ghost {
  color: var(--vanilla) !important; border-color: rgba(244, 239, 230, 0.5);
}
main.cx #cxTrackJump:hover, main.cx .cx-form-actions .cx-btn-ghost:hover, main.cx .cx-confirm-actions .cx-btn-ghost:hover, main.cx .cx-empty .cx-btn-ghost:hover {
  background: rgba(244, 239, 230, 0.12); border-color: var(--vanilla);
}
main.cx .cx-card, main.cx .cx-item { box-shadow: 0 8px 22px rgba(20, 14, 9, 0.28); }
.cx-toast { background: var(--vanilla); color: var(--ink); }

/* ---------- 9. LOGIN + ACCOUNT ---------- */
.auth-page-body { background: var(--moss); }
.pf-auth-page { background: radial-gradient(circle at 20% 0%, #6A5240 0%, var(--moss) 60%); }
.pf-page { background: var(--moss); }
.pf-loading { color: var(--vanilla); }
.pf-btn-primary, .adm-next-btn { background: linear-gradient(135deg, #9A6238, #7A4A29); color: #fff; }
.pf-hero { background: linear-gradient(135deg, var(--moss-deep) 0%, var(--moss-soft) 100%); }
.pf-auth-card, .pf-card, .pf-side { box-shadow: 0 12px 30px rgba(20, 14, 9, 0.3); }

/* ---------- 10. ADMIN: dark frame, light working sheet ---------- */
body.adm-body { background: var(--moss); color: var(--ink); }
.adm-sidebar { background: linear-gradient(180deg, var(--moss-deep) 0%, #2E2118 100%); }
.adm-brand img { background: var(--moss-deep); }
.adm-view.cx, .adm-orders.cx { background: var(--vanilla); border-radius: 20px; padding: clamp(14px, 2vw, 26px); box-shadow: 0 10px 28px rgba(20, 14, 9, 0.3); }
.adm-topbar { background: linear-gradient(135deg, var(--moss-deep) 0%, var(--moss-soft) 100%); }
@media (max-width: 900px) { .adm-main { padding: 18px 14px 56px; } }

/* ==========================================================================
   THEME LAYER v5 - Cremeur look (matches the reference screenshot)
   --moss        #523D2D  header, footer, mobile dropdown
   --page-bg     #3A281C  page background (darker than the header)
   --moss-light  #7D6E62  secondary backgrounds, subtle borders
   --cream-bg    #FAF6F0  product cards, search field, text on dark
   --caramel     #B8733F  active pills, prices, icons, badges, key actions
   Added last so it overrides the earlier theme layers.
   ========================================================================== */
:root {
  --moss: #523D2D;
  --moss-light: #7D6E62;
  --page-bg: #3A281C;
  --cream-bg: #FAF6F0;
  --caramel-main: #B8733F;
  --caramel-deep: #A9683A;           /* caramel for prices on cream cards */
  --ink-dark: #3A281C;               /* text on cream                      */
  --line-on-dark: rgba(250, 246, 240, 0.24);

  /* remap the older tokens so every earlier rule picks up the palette */
  --moss-soft: var(--moss-light);
  --moss-deep: var(--page-bg);
  --moss-line: rgba(250, 246, 240, 0.22);
  --vanilla: var(--cream-bg);
  --vanilla-2: #F1E8DB;
  --vanilla-3: var(--cream-bg);
  --accent-lt: var(--caramel-main);
  --accent-ink: var(--caramel-deep);
  --ink: var(--ink-dark);
  --border-color: #E4D8C8;

  --text-main: var(--cream-bg);
  --text-muted: #E6DDD1;
  --header-h: 64px;
}

/* ---------- 1. HEADER: Graphite Moss, logo left - links centred - icons right ---------- */
header,
body:has(.hx) header,
body:has(.hx) header.is-solid {
  position: sticky; top: 0; left: auto; right: auto;
  display: flex; align-items: center; justify-content: flex-start;
  gap: clamp(8px, 1.6vw, 24px);
  height: var(--header-h);
  padding: 0 clamp(14px, 3.6vw, 72px);
  background: var(--moss);
  border-bottom: 1px solid rgba(250, 246, 240, 0.08);
  box-shadow: 0 2px 14px rgba(20, 14, 9, 0.30);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.brand-logo, .brand-logo span { color: var(--cream-bg); }
header .site-logo, header .bento-logo { height: 46px !important; width: auto !important; max-width: none; }

.nav-links, body:has(.hx) .nav-links {
  flex: 1 1 auto; min-width: 0; margin: 0; padding: 0;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(0px, 0.4vw, 8px);
  background: none; border: 0; border-radius: 0;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.nav-links a, body:has(.hx) .nav-links a {
  color: var(--cream-bg); font-weight: 500;
  font-size: clamp(0.84rem, 0.95vw, 1rem);
  padding: 10px clamp(12px, 1.6vw, 28px); border-radius: 999px;
  text-transform: none; letter-spacing: 0; white-space: nowrap;
}
.nav-links a:hover, body:has(.hx) .nav-links a:hover { background: rgba(250, 246, 240, 0.10); color: var(--cream-bg); }
.nav-links a.active, body:has(.hx) .nav-links a.active { background: var(--caramel-main); color: var(--cream-bg); font-weight: 600; }
.nav-links a.active::after, body:has(.hx) .nav-links a.active::after { display: none; }

.nav-actions { gap: 10px; flex-shrink: 0; }
.icon-btn, .cart-icon-btn,
body:has(.hx) .icon-btn, body:has(.hx) .cart-icon-btn { color: var(--cream-bg); background: transparent; }
.icon-btn:hover, .cart-icon-btn:hover,
body:has(.hx) .icon-btn:hover, body:has(.hx) .cart-icon-btn:hover { background: rgba(250, 246, 240, 0.10); color: var(--cream-bg); }
.cart-badge { background: var(--caramel-main); color: var(--cream-bg); }

/* profile pill */
.pf-menu-btn { background: rgba(30, 18, 10, 0.30); border: 1px solid transparent; color: var(--cream-bg); }
.pf-menu-btn:hover, .pf-menu-btn[aria-expanded="true"] { background: rgba(30, 18, 10, 0.50); border-color: rgba(250, 246, 240, 0.25); }
header :focus-visible { outline: 3px solid var(--cream-bg); outline-offset: 2px; }

/* hamburger: RIGHT side, after the cart / profile icons */
.mobile-toggle { order: 3; color: var(--cream-bg); border-color: rgba(250, 246, 240, 0.4); }
.mobile-toggle:hover, .mobile-toggle[aria-expanded="true"] { background: var(--caramel-main); color: var(--cream-bg); border-color: var(--caramel-main); }

@media (max-width: 900px) {
  header, body:has(.hx) header, body:has(.hx) header.is-solid { padding: 0 clamp(10px, 3vw, 20px); gap: 6px; }
  .brand-logo { order: 1; margin-right: auto; }
  .nav-actions { order: 2; gap: 4px; }
  .nav-links, body:has(.hx) .nav-links {
    display: none; position: fixed; top: var(--header-h); left: 0; right: 0; width: 100%;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 4px;
    padding: 10px clamp(10px, 3vw, 20px) 18px;
    background: var(--moss); border-top: 1px solid rgba(250, 246, 240, 0.12); border-radius: 0 0 18px 18px;
    box-shadow: 0 22px 36px rgba(20, 14, 9, 0.45);
  }
  .nav-links.active, body:has(.hx) .nav-links.active { display: flex; }
  .nav-links a, body:has(.hx) .nav-links a { padding: 14px 16px; font-size: 1rem; text-align: left; }
}
@media (min-width: 600px) and (max-width: 900px) {
  .nav-links.active, body:has(.hx) .nav-links.active { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  header .site-logo, header .bento-logo { height: 36px !important; }
  .nav-actions { gap: 0; }
}

/* ---------- 2. PAGE + TEXT ON DARK ---------- */
html { background: var(--page-bg); }
body { background: var(--page-bg); color: var(--cream-bg); }
.menu-page-wrapper, main.menu-page { background: var(--page-bg); }
.section-title, .section-heading { color: var(--cream-bg); }
.page-subtitle, .section-subtitle { color: var(--text-muted); opacity: 1; }
.tagline, .section-heading i, .sub-tag { color: var(--caramel-main); }

/* menu page intro: "— CRAFTED FLAVORS —", big serif title, subtitle */
.page-header-small { padding: 30px 16px 6px; }
.page-header-small .tagline, .menu-page-wrapper .tagline {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-size: clamp(0.72rem, 1.2vw, 0.9rem); font-weight: 600; letter-spacing: 0.3em; margin-bottom: 10px;
}
.page-header-small .tagline::before, .page-header-small .tagline::after,
.menu-page-wrapper .tagline::before, .menu-page-wrapper .tagline::after {
  content: ""; width: clamp(20px, 3vw, 38px); height: 1px; background: currentColor; opacity: 0.85;
}
.page-title {
  color: var(--cream-bg); font-weight: 700; letter-spacing: 0.04em;
  font-size: clamp(1.9rem, 4.4vw, 3.2rem); line-height: 1.15; margin-bottom: 10px;
}
.page-header-small .page-title { text-transform: uppercase; }
.page-header-small .page-subtitle { max-width: 720px; font-size: clamp(0.92rem, 1.5vw, 1.1rem); }

/* search = big cream pill */
.menu-search-container { max-width: min(800px, 100%); margin: 24px auto 0; }
.menu-search-container .search-icon { left: 22px; font-size: 1.1rem; color: var(--moss); }
.menu-search-container input, .menu-search-container .form-control, .menu-search-container .search-input {
  height: 56px; padding: 0 22px 0 54px; border: 0; border-radius: 999px;
  background: var(--cream-bg); color: var(--ink-dark); font-size: 1rem;
  box-shadow: 0 8px 22px rgba(15, 9, 5, 0.25);
}
.menu-search-container input::placeholder { color: #8C7B6C; opacity: 1; }
.menu-search-container input:focus { outline: 2px solid var(--caramel-main); outline-offset: 2px; }

/* important actions = caramel */
.btn-primary, .products-grid .btn { background-color: var(--caramel-main); border-color: var(--caramel-main); color: var(--cream-bg); }
.btn-primary:hover, .products-grid .btn:hover { background-color: var(--caramel-deep); border-color: var(--caramel-deep); color: var(--cream-bg); }

/* ---------- 3. CATEGORY PILLS + MENU GRID ---------- */
.category-nav-sticky {
  top: var(--header-h); background: var(--page-bg); padding: 22px 0 18px;
  border-bottom: 1px solid rgba(250, 246, 240, 0.08); box-shadow: 0 8px 14px rgba(15, 9, 5, 0.25);
}
.category-nav-inner {
  max-width: none; padding: 0 clamp(14px, 3.6vw, 72px);
  gap: clamp(8px, 1.3vw, 24px); justify-content: center;
}
.category-nav-inner .cat-nav-pill {
  background: transparent; color: var(--cream-bg); border: 1px solid var(--line-on-dark);
  padding: 12px clamp(16px, 1.7vw, 28px); border-radius: 999px;
  font-size: clamp(0.72rem, 0.8vw, 0.86rem); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; box-shadow: none;
}
.category-nav-inner .cat-nav-pill:hover { background: rgba(250, 246, 240, 0.10); color: var(--cream-bg); transform: none; }
.category-nav-inner .cat-nav-pill.active,
.category-nav-inner .cat-nav-pill.active:hover { background: var(--caramel-main); color: var(--cream-bg); border-color: var(--caramel-main); font-weight: 700; }
@media (max-width: 1100px) { .category-nav-inner { justify-content: flex-start; } }

.menu-container { max-width: none; width: 100%; padding: 0 clamp(14px, 3.6vw, 72px); margin-top: 26px; }
.section-heading {
  font-size: clamp(1.2rem, 2vw, 1.65rem); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  gap: 14px; margin-bottom: 26px; padding-bottom: 0; border-bottom: 0;
}
.section-heading::after { content: ""; flex: 1; height: 1px; background: var(--line-on-dark); margin-left: 4px; }

.products-grid { gap: clamp(14px, 1.5vw, 24px); }
.products-grid .card {
  background: #F8F2EA; border: 0; border-radius: 10px;
  box-shadow: 0 10px 26px rgba(12, 7, 4, 0.35);
}
.products-grid .card-img-wrapper { background: radial-gradient(circle at 50% 42%, #FCF8F2 0%, #F3EADD 100%); height: clamp(190px, 17vw, 280px); }
.products-grid .card-content { padding: 18px clamp(16px, 1.6vw, 26px) 22px; }
.products-grid .card-header-row { align-items: flex-start; }
.products-grid .card-title { font-size: clamp(1.05rem, 1.35vw, 1.3rem); font-weight: 600; color: var(--ink-dark); }
.products-grid .card-title::after { content: ""; display: block; width: 62px; height: 2px; margin-top: 10px; background: var(--caramel-main); opacity: 0.7; }
.products-grid .card-text { color: var(--ink-dark); }
.products-grid .card-price-text { font-family: var(--font-serif); font-size: clamp(1.05rem, 1.3vw, 1.3rem); font-weight: 700; color: var(--caramel-deep); }
.products-grid .form-control, .products-grid select { background: #fff; border-color: #DDD0BE; color: var(--ink-dark); }

/* badge (Popular / Specialty) top-right, heart top-left */
.products-grid .badge { top: 14px; right: 14px; left: auto; padding: 6px 16px; font-size: 0.82rem; font-weight: 600; border-radius: 999px; background: var(--caramel-main); color: var(--cream-bg); }
.pf-fav-btn { top: 14px; left: 14px; width: 46px; height: 46px; background: #FDF7EF; color: var(--caramel-main); font-size: 1.15rem; box-shadow: 0 3px 10px rgba(43, 29, 23, 0.18); }
.pf-fav-btn:hover { color: var(--caramel-deep); }
.pf-fav-btn.is-on { color: #C0392B; }

/* 4 columns on laptop/desktop, 5 on very wide, 3 tablet, 2 phone */
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1900px) { .products-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 768px) and (max-width: 1023px) {
  .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .products-grid .card-img-wrapper { height: 170px; }
  .pf-fav-btn { width: 40px; height: 40px; top: 10px; left: 10px; }
  .products-grid .badge { top: 10px; right: 10px; padding: 4px 12px; font-size: 0.74rem; }
}
@media (min-width: 600px) and (max-width: 767px) {
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .products-grid .card-img-wrapper { height: 190px; }
}
@media (max-width: 599px) {
  .page-header-small { padding-top: 22px; }
  .menu-search-container input, .menu-search-container .form-control { height: 48px; }
  .category-nav-sticky { padding: 14px 0 12px; }
  .category-nav-inner .cat-nav-pill { padding: 9px 16px; font-size: 0.72rem; }
  .menu-container { padding: 0 12px; }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .products-grid .card { border-radius: 10px; }
  .products-grid .card-img-wrapper { height: 130px; }
  .products-grid .card-title::after { margin-top: 6px; width: 40px; }
  .products-grid .badge { top: 6px; right: 6px; left: auto; padding: 2px 8px; font-size: 0.62rem; }
  .pf-fav-btn { width: 32px; height: 32px; top: 6px; left: 6px; font-size: 0.9rem; }
}
@media (max-width: 359px) { .products-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 4. FOOTER ---------- */
.footer, .hx ~ .footer, .home-dark ~ .footer { background: var(--moss); border-top: 1px solid rgba(250, 246, 240, 0.14); }
.footer-links a, .footer-text { color: var(--cream-bg); }
.footer-links a:hover { color: var(--caramel-main); }


/* ==========================================================================
   HOME PAGE - ABOUT OUR SHOP (brief intro, sits above the highlights)
   ========================================================================== */
.home-dark .about-shop { padding-top: 12px; padding-bottom: 0; }
.home-dark .about-shop .section-header-small { padding-bottom: 8px; }
.about-shop-text {
  max-width: 680px;
  margin: 18px auto 0;
  color: var(--cream);
  opacity: .82;
  font-size: clamp(.92rem, 2vw, 1.02rem);
  line-height: 1.85;
}
.home-dark .about-shop .section-header-small { animation: homeRise .7s ease both; }
@media (prefers-reduced-motion: reduce) { .home-dark .about-shop .section-header-small { animation: none; } }
@media (max-width: 600px) { .about-shop-text { margin-top: 14px; line-height: 1.75; } }

/* ==========================================================================
   HOME PAGE - SHOP RATING (stars only)
   ========================================================================== */
.home-dark .reviews { padding-top: 44px; padding-bottom: 0; }
.rv-panel {
  background: linear-gradient(160deg, rgba(248,241,231,.08), rgba(248,241,231,.02));
  border: 1px solid rgba(226, 178, 124, .35);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  padding: 28px 26px;
  color: var(--cream);
}
.rv-quick { max-width: 460px; margin: 8px auto 0; text-align: center; }
.rv-rating-field { margin: 0; padding: 0; border: 0; min-width: 0; }
.rv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* star picker: DOM order is 5..1 and flex is reversed, so "~" fills every lower star */
.rv-stars-input { display: inline-flex; flex-direction: row-reverse; gap: 8px; }
.rv-stars-input input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.rv-stars-input label { font-size: 2.2rem; line-height: 1; color: rgba(244,239,230,.28); cursor: pointer; transition: color .15s, transform .15s; }
.rv-stars-input label:hover,
.rv-stars-input label:hover ~ label,
.rv-stars-input input:checked ~ label { color: var(--caramel); }
.rv-stars-input label:hover { transform: scale(1.12); }
.rv-stars-input input:focus-visible + label { outline: 2px solid var(--caramel); outline-offset: 3px; border-radius: 4px; }

.rv-msg { min-height: 1.3em; margin: 12px 0 6px; font-size: .9rem; font-weight: 500; color: var(--caramel); }
.rv-stars i { color: rgba(244,239,230,.28); font-size: .9rem; margin-right: 1px; }
.rv-stars i.is-on { color: var(--caramel); }
.rv-sum-line { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 10px; padding-top: 14px; border-top: 1px solid rgba(244,239,230,.14); }
.rv-avg { font-size: 1.5rem; font-weight: 600; line-height: 1; color: var(--caramel); }
.rv-count { font-size: .82rem; opacity: .7; }

@media (max-width: 600px) {
  .home-dark .reviews { padding-top: 32px; }
  .rv-panel { padding: 22px 18px; }
  .rv-stars-input { gap: 6px; }
  .rv-stars-input label { font-size: 2.1rem; }
}
@media (prefers-reduced-motion: reduce) { .rv-stars-input label { transition: none; } .rv-stars-input label:hover { transform: none; } }

/* ==========================================================================
   RIDER SYSTEM (added) - uses the existing theme tokens, nothing above changed
   ========================================================================== */
.rd-sec-title { font-size: 1.15rem; margin: 6px 0 14px; color: var(--ink); }
.rd-stack { display: grid; gap: 18px; }
.rd-del h3 { font-family: var(--font-sans); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.6px; color: var(--ink-soft); margin: 0 0 8px; }
.rd-meta { font-size: 0.86rem; color: var(--ink-soft); margin: 4px 0; }
.rd-meta i { color: var(--accent-ink); margin-right: 4px; }
.rd-badges { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.rd-items { list-style: none; margin: 10px 0; padding: 0; font-size: 0.88rem; }
.rd-items li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--border-color); }
.rd-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.rd-foot small { font-weight: 400; color: var(--ink-soft); }
.rd-cols { margin-top: 12px; align-items: start; }
.rd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 6px; padding-top: 14px; border-top: 1px solid var(--border-color); }
.rd-actions button[disabled] { opacity: 0.55; cursor: not-allowed; }
.rd-chat-wrap { margin-top: 12px; border: 1px solid var(--border-color); border-radius: 12px; padding: 10px 14px; background: var(--vanilla-3); }
.rd-chat-wrap > summary { cursor: pointer; font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.rd-dot { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #B3402A; color: #fff; font-size: 0.7rem; font-weight: 700; margin-left: 6px; }
.pf-nav-link .rd-dot { margin-left: auto; }
.rd-log { list-style: none; margin: 10px 0 0; padding: 0; font-size: 0.86rem; }
.rd-log li { padding: 7px 0; border-bottom: 1px dashed var(--border-color); }
.rd-log small { display: block; color: var(--ink-soft); font-size: 0.75rem; }
.rd-k { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; background: #E9E1D3; color: var(--ink); }
.rd-k-delivery { background: #E8D7BD; color: #6F4224; }
.rd-livelist, .rd-hist { list-style: none; margin: 0; padding: 0; }
.rd-livelist li, .rd-hist li { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--border-color); }
.rd-hist small { display: block; color: var(--ink-soft); font-size: 0.78rem; }
.pf-notes li.rd-unread { background: rgba(226, 178, 124, 0.18); border-radius: 10px; }

/* chat */
.rd-chat { margin-top: 12px; }
.rd-msgs { display: flex; flex-direction: column; gap: 8px; max-height: 340px; min-height: 120px; overflow-y: auto; padding: 12px; border-radius: 12px; background: #F6EFE3; border: 1px solid var(--border-color); }
.rd-msg { max-width: 82%; padding: 8px 12px; border-radius: 14px; font-size: 0.88rem; line-height: 1.4; overflow-wrap: anywhere; }
.rd-msg strong { display: block; font-size: 0.72rem; opacity: 0.8; margin-bottom: 2px; }
.rd-msg p { margin: 0; }
.rd-msg small { display: block; margin-top: 4px; font-size: 0.68rem; opacity: 0.75; }
.rd-msg a { color: inherit; font-weight: 600; text-decoration: underline; }
.rd-me { align-self: flex-end; background: var(--accent-ink); color: var(--vanilla); border-bottom-right-radius: 4px; }
.rd-them { align-self: flex-start; background: #fff; color: var(--ink); border: 1px solid var(--border-color); border-bottom-left-radius: 4px; }
.rd-from-admin.rd-them { background: #FFF3DC; border-color: #E2B27C; }
.rd-sys { align-self: center; text-align: center; font-size: 0.76rem; color: var(--ink-soft); background: rgba(0,0,0,0.05); border-radius: 999px; padding: 4px 12px; }
.rd-sys small { margin-left: 6px; opacity: 0.8; }
.rd-flag, .rd-priv { display: inline-block; font-style: normal; font-size: 0.68rem; font-weight: 700; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: rgba(179, 64, 42, 0.14); color: #B3402A; }
.rd-me .rd-flag { background: rgba(255,255,255,0.25); color: #fff; }
.rd-priv { background: rgba(0,0,0,0.08); color: inherit; }
.rd-tick { margin-left: 6px; }
.rd-empty, .rd-note { text-align: center; color: var(--ink-soft); font-size: 0.84rem; margin: 6px 0; }
.rd-form { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.rd-form .rd-text { flex: 1 1 200px; min-width: 0; }
.rd-to-sel { max-width: 210px; }
.rd-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.rd-err { min-height: 1em; }
.rd-chat input:disabled, .rd-chat button:disabled, .rd-chat select:disabled { opacity: 0.55; cursor: not-allowed; }

/* customer panel */
.rd-cust-panel h2 { margin-bottom: 10px; }
.rd-rider { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rd-rider > div { display: flex; flex-direction: column; }
.rd-rider > div span { font-size: 0.82rem; color: var(--ink-soft); }
.rd-dropoff { margin: 14px 0; padding: 14px; border-radius: 12px; background: var(--vanilla-3); border: 1px solid var(--border-color); }
.rd-dropoff h3 { font-family: var(--font-sans); font-size: 0.92rem; margin: 0 0 10px; }

/* admin */
.rd-settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; align-items: end; margin-bottom: 8px; }
.rd-rcell { display: inline-flex; align-items: center; gap: 10px; }
.rd-assign { display: flex; align-items: center; gap: 8px; }
.rd-assign .cx-select { min-width: 150px; min-height: 36px; }
.rd-last { white-space: normal !important; min-width: 200px; max-width: 320px; }
.rd-issue-box { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 12px 0; padding: 12px 14px; border-radius: 12px; background: #FDEBE6; border: 1px solid #E8B3A6; color: #6E2A1B; }
.rd-issue-box > i { font-size: 1.3rem; }
.rd-issue-box > div { flex: 1 1 200px; }
.rd-issue-box p { margin: 2px 0 0; font-size: 0.86rem; }
.rd-log-big li { padding: 10px 0; }
#rdAdmAlerts .pf-notes { margin: 0; }
.adm-modal .rd-msgs { max-height: 380px; }

@media (max-width: 720px) {
  .rd-msg { max-width: 92%; }
  .rd-foot, .rd-actions { flex-direction: column; align-items: stretch; }
  .rd-actions .pf-btn, .rd-foot .pf-btn { width: 100%; justify-content: center; }
  .rd-to-sel { max-width: none; width: 100%; }
  .rd-assign { flex-wrap: wrap; }
}

/* ==========================================================================
   FLY-TO-CART (added)
   ========================================================================== */
.cart-fly {
  position: fixed; z-index: 3000; pointer-events: none; border-radius: 50%;
  background: var(--vanilla, #F4EFE6) center / cover no-repeat;
  border: 2px solid var(--vanilla, #F4EFE6);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .38);
  display: flex; align-items: center; justify-content: center;
  color: var(--moss, #523D2D); font-size: 1.1rem; will-change: transform, opacity;
}
.cart-icon-btn.cart-bump { animation: cartBump .6s ease; }
.cart-icon-btn.cart-bump .cart-badge { animation: cartBadgePop .6s ease; }
@keyframes cartBump { 0% { transform: scale(1); } 30% { transform: scale(1.3) rotate(-8deg); } 55% { transform: scale(.92) rotate(5deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes cartBadgePop { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.5); } }
@media (prefers-reduced-motion: reduce) { .cart-icon-btn.cart-bump, .cart-icon-btn.cart-bump .cart-badge { animation: none; } }

/* ==========================================================================
   HOME PAGE - SHOP REVIEWS (added)
   ========================================================================== */
.rvx { max-width: 880px; margin: 8px auto 0; text-align: left; }
.rvx-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 40px; align-items: center; }
.rvx-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; line-height: 1; }
.rvx-big span { font-size: clamp(3.4rem, 9vw, 5.2rem); font-weight: 700; letter-spacing: -.02em; color: var(--cream); }
.rvx-big small { font-size: 1.05rem; font-weight: 600; opacity: .8; }
.rvx-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 14px; }
.rvx-meta .rv-stars i { font-size: 1.15rem; }
.rvx-link { background: none; border: 0; padding: 0; font: inherit; font-size: .92rem; color: var(--cream); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rvx-link:hover, .rvx-link:focus-visible { color: var(--caramel); }
.rvx-bars { display: flex; flex-direction: column; gap: 6px; }
.rvx-bar { display: grid; grid-template-columns: 62px minmax(0, 1fr) 34px; align-items: center; gap: 12px; width: 100%; padding: 3px 6px; margin: 0 -6px; background: none; border: 0; border-radius: 8px; color: var(--cream); font: inherit; font-size: .92rem; cursor: pointer; text-align: left; }
.rvx-bar:hover, .rvx-bar.is-on { background: rgba(244, 239, 230, .09); }
.rvx-bar:focus-visible { outline: 2px solid var(--caramel); outline-offset: 2px; }
.rvx-bar-label { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.rvx-bar-track { height: 8px; border-radius: 99px; background: rgba(244, 239, 230, .16); overflow: hidden; }
.rvx-bar-fill { display: block; height: 100%; border-radius: 99px; background: var(--caramel); transition: width .4s ease; }
.rvx-bar-n { text-align: right; opacity: .85; font-variant-numeric: tabular-nums; }

.rvx-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.rvx-btn { font: inherit; font-size: .98rem; font-weight: 600; padding: 12px 26px; border-radius: 999px; cursor: pointer; transition: transform .15s, background .15s, color .15s; }
.rvx-btn:hover { transform: translateY(-1px); }
.rvx-btn:focus-visible { outline: 2px solid var(--caramel); outline-offset: 3px; }
.rvx-btn-ghost { background: transparent; color: var(--cream); border: 2px solid rgba(244, 239, 230, .75); }
.rvx-btn-ghost:hover { background: rgba(244, 239, 230, .12); }
.rvx-btn-main { background: var(--caramel); color: #fff; border: 2px solid var(--caramel); }
.rvx-btn-main:hover { background: var(--caramel-hover, #6F4224); border-color: var(--caramel-hover, #6F4224); }
.rvx-btn[hidden] { display: none; }

.rvx-form-wrap { margin-top: 22px; }
.rvx-form { padding: 22px; border-radius: 14px; background: rgba(244, 239, 230, .06); border: 1px solid rgba(244, 239, 230, .16); }
.rvx-form-title { margin: 0 0 14px; font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--cream); }
.rvx-form .rv-rating-field { margin-bottom: 14px; }
.rvx-form .rv-stars-input { justify-content: flex-end; }
.rvx-form .rv-rating-field { display: flex; flex-direction: column; align-items: flex-start; }
.rvx-form .rv-stars-input { flex-direction: row-reverse; }
.rvx-label { display: block; margin-bottom: 6px; font-size: .88rem; font-weight: 600; color: var(--cream); padding: 0; }
.rvx-opt { font-weight: 400; opacity: .7; }
.rvx-field { position: relative; margin-bottom: 14px; }
.rvx-input { width: 100%; box-sizing: border-box; padding: 11px 13px; font: inherit; font-size: .95rem; color: #2b2017; background: var(--vanilla-3, #FBF8F2); border: 1px solid rgba(0, 0, 0, .18); border-radius: 10px; }
.rvx-input:focus { outline: 2px solid var(--caramel); outline-offset: 1px; }
textarea.rvx-input { resize: vertical; min-height: 96px; }
.rvx-count { position: absolute; right: 10px; bottom: -18px; font-size: .74rem; opacity: .7; }
.rvx-form .rv-msg { margin: 20px 0 8px; text-align: left; }
.rvx-form-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

.rvx-filter { margin-top: 18px; font-size: .9rem; opacity: .9; }
.rvx-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
.rvx-item, .rvx-empty { padding: 16px 18px; border-radius: 14px; background: rgba(244, 239, 230, .06); border: 1px solid rgba(244, 239, 230, .14); }
.rvx-empty { text-align: center; opacity: .8; }
.rvx-item-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rvx-item-head > div { flex: 1 1 140px; min-width: 0; }
.rvx-avatar { width: 38px; height: 38px; flex: 0 0 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--caramel); color: #fff; font-weight: 700; }
.rvx-item-name { display: block; font-size: .98rem; color: var(--cream); overflow-wrap: anywhere; }
.rvx-you { font-style: normal; font-size: .7rem; font-weight: 700; padding: 2px 7px; margin-left: 6px; border-radius: 99px; background: rgba(244, 239, 230, .18); }
.rvx-item-date { display: block; font-size: .78rem; opacity: .65; }
.rvx-item-stars i { font-size: .95rem; }
.rvx-item-text { margin: 12px 0 0; line-height: 1.6; font-size: .95rem; overflow-wrap: anywhere; white-space: pre-line; }
.rvx-reply { margin-top: 12px; padding: 10px 14px; border-left: 3px solid var(--caramel); background: rgba(244, 239, 230, .07); border-radius: 0 10px 10px 0; font-size: .9rem; }
.rvx-reply strong { font-size: .82rem; color: var(--caramel); }
.rvx-reply p { margin: 4px 0 0; overflow-wrap: anywhere; white-space: pre-line; }

@media (max-width: 720px) {
  .rvx-top { grid-template-columns: 1fr; }
  .rvx-actions .rvx-btn { flex: 1 1 100%; text-align: center; }
  .rvx-form { padding: 18px 14px; }
}
@media (prefers-reduced-motion: reduce) { .rvx-btn, .rvx-bar-fill { transition: none; } .rvx-btn:hover { transform: none; } }

/* admin reviews tab */
.rvx-adm-stars i { font-size: .85rem; color: rgba(0, 0, 0, .22); margin-right: 1px; }
.rvx-adm-stars i.is-on { color: #C68A5B; }
.rvx-adm-reply { margin-top: 6px; padding: 6px 10px; border-left: 3px solid #C68A5B; background: rgba(198, 138, 91, .1); border-radius: 0 6px 6px 0; font-size: .85rem; overflow-wrap: anywhere; }

/* ==========================================================================
   FOOTER - dark coffee style: logo + links + round icons, contact column (added)
   ========================================================================== */
footer.footer.cf {
  position: relative;
  overflow: hidden;
  padding: 0;
  color: var(--vanilla);
  border-top: 0;
  background: linear-gradient(180deg, #2a170c 0%, #1f1109 100%);
}
footer.footer.cf::before,
footer.footer.cf::after {
  content: ''; position: absolute; width: 250px; height: 250px; pointer-events: none; opacity: .42;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240' fill='none' stroke='%23B07A45' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'><path d='M8 232C46 176 98 120 214 18'/><g id='l'><path d='M0 0C16-26 52-30 74-8 52 14 16 18 0 0Z'/><path d='M4 0C26-6 48-8 70-8'/></g><use href='%23l' transform='translate(40 176) rotate(-52)'/><use href='%23l' transform='translate(70 140) rotate(-95) scale(.9)'/><use href='%23l' transform='translate(104 110) rotate(-40) scale(1.05)'/><use href='%23l' transform='translate(138 76) rotate(-92) scale(.9)'/><use href='%23l' transform='translate(172 48) rotate(-32) scale(.95)'/><use href='%23l' transform='translate(100 150) rotate(12) scale(.8)'/><use href='%23l' transform='translate(150 108) rotate(8) scale(.75)'/><circle cx='34' cy='214' r='7'/><circle cx='52' cy='222' r='6'/><circle cx='22' cy='196' r='6'/></svg>") center / contain no-repeat;
}
footer.footer.cf::before { left: -46px; bottom: 36px; transform: rotate(-8deg); }
footer.footer.cf::after { right: -40px; top: -34px; transform: rotate(168deg); }

.cf-main {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.25fr) auto minmax(0, 1fr);
  gap: 0 48px; align-items: center;
  max-width: 1240px; margin: 0 auto; padding: 64px 4% 52px;
}
.cf-brand { display: flex; flex-direction: column; align-items: center; gap: 34px; }
.cf-logo img { display: block; height: 88px; width: auto; max-width: 100%; object-fit: contain; }

.cf-nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; row-gap: 10px; }
.cf-nav a { color: #fff; text-decoration: none; font-size: .95rem; white-space: nowrap; transition: color .2s; }
.cf-nav a + a::before {
  content: ''; display: inline-block; width: 1px; height: 14px; margin: 0 14px; vertical-align: -2px;
  background: #B87333;
}
.cf-nav a:hover, .cf-nav a:focus-visible { color: var(--accent-lt); }

.cf-icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.cf-icons a, .cf-ico {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  border-radius: 50%; color: #fff6e6;
  background: radial-gradient(circle at 35% 30%, #86542a, #62391b 72%);
  border: 1px solid rgba(226, 178, 124, .38);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
.cf-icons a { width: 52px; height: 52px; font-size: 1.05rem; text-decoration: none; transition: transform .2s, background .2s, color .2s; }
.cf-icons a:hover, .cf-icons a:focus-visible { transform: translateY(-3px); background: var(--accent-lt); color: #2b1a0e; }

.cf-divider { align-self: stretch; width: 2px; min-height: 190px; border-radius: 2px; background: linear-gradient(#B87333, rgba(184, 115, 51, .65)); }

.cf-title {
  margin: 0; font-family: var(--font-serif); font-size: 2rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: #fff6e6; line-height: 1.1;
}
.cf-rule { display: block; width: 58px; height: 4px; margin: 18px 0 28px; border-radius: 4px; background: #F5DDB5; }
.cf-info { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cf-info li { display: flex; align-items: center; gap: 18px; font-size: 1.05rem; color: #fff; min-width: 0; }
.cf-ico { width: 40px; height: 40px; font-size: .9rem; }
.cf-lbl { flex: 0 0 66px; color: #fff; }
.cf-val { min-width: 0; overflow-wrap: anywhere; color: #fff; }
a.cf-link { color: #D9A066; text-decoration: none; }
a.cf-link:hover, a.cf-link:focus-visible { color: #F0C48C; text-decoration: underline; }

footer.footer.cf .footer-bottom.cf-bottom {
  position: relative; z-index: 1; padding: 0 4% 26px; border-top: 0; opacity: 1;
  background: transparent; text-align: center;
}
.cf-bottom-inner { border-top: 1px solid rgba(184, 115, 51, .7); padding-top: 22px; }
.cf-bottom p { margin: 0; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 246, 230, .85); line-height: 1.9; }
.cf-bottom p.cf-edu { font-size: .66rem; opacity: .6; letter-spacing: .16em; }

@media (max-width: 900px) {
  .cf-main { grid-template-columns: 1fr; gap: 34px; padding: 46px 6% 38px; }
  .cf-divider { width: 100%; min-height: 0; height: 2px; align-self: auto; }
  .cf-contact { max-width: 440px; margin: 0 auto; width: 100%; }
}
@media (max-width: 560px) {
  .cf-logo img { height: 70px; }
  .cf-nav a + a::before { display: none; }
  .cf-nav { column-gap: 22px; }
  .cf-nav a { font-size: .9rem; }
  .cf-icons { gap: 16px; }
  .cf-icons a { width: 48px; height: 48px; }
  .cf-title { font-size: 1.6rem; }
  .cf-info li { font-size: .95rem; gap: 14px; }
  .cf-lbl { flex-basis: 58px; }
  .cf-bottom p { letter-spacing: .12em; font-size: .66rem; }
  footer.footer.cf::before, footer.footer.cf::after { width: 170px; height: 170px; opacity: .3; }
}
@media (prefers-reduced-motion: reduce) { .cf-icons a, .cf-nav a { transition: none; } .cf-icons a:hover { transform: none; } }

/* ==========================================================================
   RATING FACES (sad to happy) + SMOOTH HERO IMAGE SWAP
   ========================================================================== */
.rv-f1 { --face: #e5533d; } .rv-f2 { --face: #f08a3c; } .rv-f3 { --face: #f2c230; } .rv-f4 { --face: #9ccc4a; } .rv-f5 { --face: #4caf50; }

/* summary / list faces */
.rv-stars i { margin-right: 4px; }
.rv-stars i.is-on { color: var(--face, var(--caramel)); transform: scale(1.12); }
.rvx-meta .rv-stars i { font-size: 1.5rem; }
.rvx-item-stars i { font-size: 1.1rem; }
.rvx-adm-stars i { font-size: 1rem; margin-right: 3px; }
.rvx-adm-stars i.is-on { color: var(--face, #C68A5B); }
.rvx-bar-label { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.rvx-bar-label i { color: var(--face); font-size: 1rem; }
.rvx-bar .rvx-bar-fill { background: var(--caramel); }

/* picker in the form */
.rv-faces-input { display: flex; flex-wrap: nowrap; gap: 10px; width: 100%; }
.rv-faces-input input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.rv-face-label { flex: 1 1 0; min-width: 0; max-width: 92px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 14px; border: 1px solid transparent; cursor: pointer; color: rgba(244, 239, 230, .35); transition: color .2s, transform .2s, background .2s, border-color .2s; -webkit-tap-highlight-color: transparent; }
.rv-face-label i { font-size: 2.3rem; line-height: 1; }
.rv-face-name { font-size: .72rem; font-weight: 600; letter-spacing: .02em; opacity: .75; text-align: center; }
.rv-face-label:hover { color: var(--face); transform: translateY(-3px); background: rgba(244, 239, 230, .06); }
.rv-faces-input input:checked + .rv-face-label { color: var(--face); background: rgba(244, 239, 230, .1); border-color: var(--face); transform: translateY(-3px) scale(1.06); }
.rv-faces-input input:checked + .rv-face-label .rv-face-name { opacity: 1; }
.rv-faces-input input:focus-visible + .rv-face-label { outline: 2px solid var(--caramel); outline-offset: 3px; }
@media (max-width: 480px) { .rv-faces-input { gap: 4px; } .rv-face-label i { font-size: 1.8rem; } .rv-face-name { font-size: .64rem; } }
@media (prefers-reduced-motion: reduce) { .rv-face-label, .rv-stars i { transition: none; } .rv-face-label:hover, .rv-faces-input input:checked + .rv-face-label { transform: none; } }

/* hero picture: never show alt text or a box while swapping */
.hx-drink, .hx-thumb img { color: transparent; background: transparent; }
.hx-drink { backface-visibility: hidden; }

/* ==========================================================================
   MENU PAGE - RESPONSIVE COMPLETION  (added section - keep at the END of the file)
   ========================================================================== */

/* 1. Category pills: the phone rule ".btn { width:100% }" made every pill as wide as the
      screen, so only one was visible. Pills size to their text and scroll sideways. */
.category-nav-inner .cat-nav-pill { width: auto; flex: 0 0 auto; scroll-snap-align: center; }
.category-nav-inner {
  scroll-snap-type: x proximity;
  scroll-padding-inline: 20px;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
/* soft fade on the right edge = "there is more, swipe" */
@media (max-width: 1100px) {
  .category-nav-inner {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 28px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 28px), transparent 100%);
  }
}

/* 2. Anchor links (menu.php#shake) land below header + sticky pill bar, not underneath them */
:root { --cat-nav-h: 86px; }
@media (max-width: 599px) { :root { --cat-nav-h: 72px; } }
.menu-section { scroll-margin-top: calc(var(--header-h) + var(--cat-nav-h) + 12px); }

/* 3. Product cards: nothing inside a narrow 2-column card may push the card wider */
.products-grid .card { min-width: 0; }
.products-grid .card-options-wrapper > * { min-width: 0; }
.products-grid .form-control,
.products-grid select,
.products-grid input[type="date"] { min-width: 0; max-width: 100%; }
.products-grid label,
.cart-footer-panel label { color: var(--ink-dark); }   /* labels were cream-on-cream */
.products-grid .card-title { overflow-wrap: anywhere; }
.products-grid .card-header-row > * { min-width: 0; }

/* 4. iPhone Safari zooms the whole page when a field smaller than 16px gets focus */
@media (max-width: 599px) {
  @supports (-webkit-touch-callout: none) {
    .products-grid select.form-control, .products-grid input.form-control,
    .products-grid select, .products-grid input[type="date"] { font-size: 16px !important; }
  }
  .pf-fav-btn { width: 36px; height: 36px; }
}
@media (pointer: coarse) {
  #paymentMethodModal { font-size: 16px !important; min-height: 44px; }
}

/* 5. Cart drawer */
.cart-modal { height: 100%; height: 100dvh; max-height: 100dvh; }        /* dvh = excludes the mobile URL bar */
.cart-backdrop { width: 100%; height: 100%; height: 100dvh; }
.cart-items { min-height: 0; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
body:has(.cart-modal.open) { overflow: hidden; }                         /* page behind does not scroll */
@media (max-width: 768px) { .cart-modal { width: 100%; right: -100%; } }
@media (max-width: 400px) {
  .cart-items { padding: 14px; }
  .cart-footer-panel { padding: 14px; }
  .cart-item-row { flex-wrap: wrap; row-gap: 8px; }
  .cart-item-info { flex: 1 1 calc(100% - 70px); }
  .cart-item-actions { width: 100%; justify-content: space-between; }
}
@media (pointer: coarse) {                                                /* finger-sized buttons */
  .qty-control-group button { width: 36px; height: 36px; font-size: 1rem; }
  .btn-remove-item { width: 40px; height: 40px; }
  .cart-close-btn { width: 40px; height: 40px; }
}

/* 6. Short screens (phone held sideways): give the content the room */
@media (max-height: 520px) {
  .category-nav-sticky { position: static; padding: 10px 0; }
  .menu-section { scroll-margin-top: calc(var(--header-h) + 12px); }
  .page-header-small { padding-top: 14px; }
  .menu-search-container { margin-top: 12px; }
  .menu-search-container input, .menu-search-container .form-control { height: 44px; }
  .cart-header { padding: 10px 16px; }
  .cart-items { padding: 10px 16px; }
  .cart-footer-panel { padding: 10px 16px; }
  .cart-footer-panel .price-row.total { margin-top: 6px; padding-top: 6px; }
  .cart-footer-panel .btn { min-height: 38px; padding-top: 6px; padding-bottom: 6px; }
  .cart-footer-panel .form-control { min-height: 36px; height: 36px; }
}

/* 7. Very large monitors: stop the layout stretching edge to edge */
@media (min-width: 2200px) {
  .menu-container, .category-nav-inner { max-width: 2200px; margin-left: auto; margin-right: auto; }
}

/* ==========================================================================
   MENU PAGE - PERFORMANCE  (added section)
   ========================================================================== */
/* The browser skips layout + paint for sections that are far off screen.
   The padding / negative margin keeps the card shadows from being clipped. */
.menu-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
  padding: 0 12px 32px;
  margin: 0 -12px 12px;
}
@media (max-width: 599px) { .menu-section { padding-bottom: 24px; margin-bottom: 6px; } }
.products-grid .card-img-wrapper img { background: transparent; }
@media (prefers-reduced-motion: reduce) { .products-grid .card { transition: none; } }

/* ---- Privacy notice page ---- */
.legal-page { max-width: 820px; margin: 0 auto 30px; line-height: 1.65; }
.legal-page h2 { font-family: var(--font-serif, 'Playfair Display', serif); font-size: 1.15rem; margin: 1.4rem 0 0.4rem; }
.legal-page p, .legal-page li { font-size: 0.92rem; }
.legal-page ul { padding-left: 1.2rem; margin: 0.4rem 0 0.8rem; }
.legal-page a { text-decoration: underline; }

/* ===== Owner <-> rider chat, and "who updates what" (added) ===== */
.rd-ochat { margin-top: 12px; }
.rd-ochat input:disabled, .rd-ochat button:disabled { opacity: 0.55; cursor: not-allowed; }
.rd-ohead { margin: 0 0 8px; font-size: 0.82rem; color: var(--ink-soft); }
.rd-ohead i { color: var(--accent-ink); margin-right: 4px; }
.rd-msg.rd-ready { display: flex; align-items: center; gap: 12px; align-self: stretch; max-width: 100%; background: #E6F3E8; color: #1F5B2C; border: 1px solid #B7D9BD; border-radius: 14px; }
.rd-msg.rd-ready > i { font-size: 1.5rem; }
.rd-msg.rd-ready strong { font-size: 0.9rem; opacity: 1; margin: 0; }
.rd-msg.rd-ready p { font-weight: 600; }
.rd-rules { margin: 10px 0 0; }
.rd-rules i { color: var(--accent-ink); margin-right: 4px; }
.adm-done.adm-rider-turn { color: #7A4B12; background: #FFF1D6; }
.adm-sub { font-family: var(--font-sans); font-size: 1rem; margin: 0 0 10px; }
.adm-sub .cx-hint { font-weight: 400; font-size: 0.8rem; margin-left: 6px; }
.adm-rider-chat-btn { margin-top: 8px; }
@media (max-width: 720px) { .rd-msg.rd-ready { max-width: 100%; } }

/* ===== Size pills + "Added to cart!" popup (added) ===== */
.size-picker { margin-bottom: 2px; }
.size-label { display: block; font-size: 0.78rem; font-weight: 600; margin-bottom: 4px; }
.size-pills { position: relative; display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); padding: 3px; border-radius: 999px; background: var(--vanilla-3, #FBF8F2); border: 1px solid var(--border-color, #E4D8C6); }
.size-slider { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / var(--n, 3)); border-radius: 999px; background: var(--accent-ink, #8A5430); box-shadow: 0 3px 8px rgba(80, 45, 20, .3); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .24s cubic-bezier(.3, 1.35, .5, 1); }
.size-pill { position: relative; z-index: 1; background: none; border: 0; padding: 5px 2px; font: inherit; line-height: 1.15; color: var(--ink, #3B2B1E); cursor: pointer; border-radius: 999px; transition: color .18s, transform .12s; -webkit-tap-highlight-color: transparent; }
.size-pill b { display: block; font-size: 0.8rem; }
.size-pill small { display: block; font-size: 0.66rem; opacity: .75; }
.size-pill.is-active { color: #fff; }
.size-pill:active { transform: scale(.9); }
.size-pill:focus-visible { outline: 2px solid var(--accent-ink, #8A5430); outline-offset: 2px; }
.card-price-text.price-pop { animation: cxPricePop .32s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes cxPricePop { 0% { transform: scale(1); } 45% { transform: scale(1.22); } 100% { transform: scale(1); } }

.cx-cartpop { position: fixed; z-index: 3500; right: 22px; bottom: 22px; width: min(380px, calc(100vw - 24px)); pointer-events: none; opacity: 0; transform: translateY(24px) scale(.94); transition: opacity .22s, transform .32s cubic-bezier(.3, 1.4, .5, 1); }
.cx-cartpop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.cx-cartpop-card { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #fff; color: var(--ink, #3B2B1E); border: 1px solid #E4D8C6; box-shadow: 0 16px 40px rgba(40, 22, 10, .3); }
.cx-cartpop-check { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #2F8A4A; display: grid; place-items: center; }
.cx-cartpop-check svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 26; stroke-dashoffset: 26; }
.cx-cartpop.is-on .cx-cartpop-check { animation: cxPopIn .4s cubic-bezier(.3, 1.6, .5, 1) both; }
.cx-cartpop.is-on .cx-cartpop-check svg { animation: cxDraw .35s .18s ease-out forwards; }
@keyframes cxPopIn { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes cxDraw { to { stroke-dashoffset: 0; } }
.cx-cartpop-img { flex: none; width: 46px; height: 46px; border-radius: 12px; object-fit: cover; }
.cx-cartpop-body { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.cx-cartpop-body strong { font-size: 0.95rem; }
.cx-cartpop-name { font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-cartpop-body small { font-size: 0.72rem; color: var(--ink-soft, #6B5646); }
.cx-cartpop-actions { flex: none; display: flex; align-items: center; gap: 6px; }
.cx-cartpop-view { border: 0; border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 0.78rem; font-weight: 600; cursor: pointer; background: var(--accent-ink, #8A5430); color: #fff; }
.cx-cartpop-x { border: 0; background: none; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink-soft, #6B5646); padding: 2px 6px; }
.cx-cartpop-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: #2F8A4A; transform-origin: left; }
.cx-cartpop.is-on .cx-cartpop-bar { animation: cxBar 3.8s linear forwards; }
@keyframes cxBar { to { transform: scaleX(0); } }
@media (max-width: 600px) { .cx-cartpop { right: 12px; left: 12px; bottom: 12px; width: auto; } .cx-cartpop-img { display: none; } }
@media (prefers-reduced-motion: reduce) { .size-slider, .size-pill, .cx-cartpop { transition: none; } .card-price-text.price-pop, .cx-cartpop.is-on .cx-cartpop-check, .cx-cartpop.is-on .cx-cartpop-check svg, .cx-cartpop.is-on .cx-cartpop-bar { animation: none; } .cx-cartpop-check svg { stroke-dashoffset: 0; } }

/* ===== Empty cart card: readable text (added) =====
   The card is light, but the dark-page rules made its text light too. */
main.cx .cx-card.cx-empty h2 { color: #3B2B1E; }
main.cx .cx-card.cx-empty p { color: #5A4636; font-size: 1rem; line-height: 1.55; }
main.cx .cx-card.cx-empty .cx-btn-primary { background: #523D2D; color: #FBF8F2 !important; border-color: #523D2D; box-shadow: 0 6px 16px rgba(60, 38, 20, .25); }
main.cx .cx-card.cx-empty .cx-btn-primary:hover { background: #8A5430; border-color: #8A5430; }
main.cx .cx-card.cx-empty .cx-empty-art { border-color: #FBF8F2; }

/* ===== Rider dashboard: readability (added) =====
   The page background is dark, so the base text colour is cream. Anything inside a light panel
   that did not set its own colour came out cream-on-cream. Fixed here, and small grey text darkened. */
.pf-page { --cx-white: #FBF8F2; --cx-beige: #E2D8C7; --cx-cream: #F4EFE6; --cx-muted: #5A4636; }
.pf-page .pf-card, .pf-page .pf-side, .pf-page .pf-quick-card, .pf-page .rd-chat-wrap { color: #33261B; }
.pf-page .pf-card { font-size: 1rem; }
.pf-page .pf-card h2, .pf-page .pf-card h3, .pf-page .pf-empty h2 { color: #33261B; }
.pf-page .pf-empty p, .pf-page .pf-hint, .pf-page .rd-meta, .pf-page .rd-hist small, .pf-page .rd-log small,
.pf-page .rd-del h3, .pf-page .rd-foot small, .pf-page .rd-rider > div span, .pf-page .pf-side-user span,
.pf-page .pf-quick-card span:last-child, .pf-page .cx-dl dt { color: #5A4636; }
.pf-page .pf-notes small { color: #5A4636; font-size: 0.8rem; }
.pf-page .cx-dl dt { font-weight: 600; }
.pf-page .cx-dl dd { color: #33261B; }
.pf-page .rd-meta { font-size: 0.92rem; }
.pf-page .rd-items { font-size: 0.95rem; }
.pf-page .rd-del h3 { font-size: 0.82rem; }
.pf-page .pf-quick-card span:last-child { font-size: 0.9rem; }
.pf-page .pf-quick-card strong { font-size: 1.6rem; color: #33261B; }
.pf-page .pf-nav-link { font-size: 0.95rem; color: #33261B; }
.pf-page .pf-nav-link.is-active { color: #F4EFE6; }
.pf-page .pf-nav-out, .pf-page .pf-nav-out i { color: #8F2D22; }
.pf-page .pf-hero-sub { color: #F4EFE6; font-size: 1rem; }
.pf-page .pf-eyebrow { color: #F0C99A; }
.pf-page .rd-actions .pf-btn { min-height: 44px; font-size: 0.92rem; }
.pf-page .rd-chat-wrap > summary { font-size: 0.95rem; }
.pf-page .rd-msg { font-size: 0.94rem; }
.pf-page .rd-msg small { opacity: 0.9; }
.pf-page .rd-unread { background: #FFF3DC; }
.pf-page .pf-notes p { font-size: 0.95rem; color: #33261B; }
