/* Tribeca Grocery — Storefront Design System */
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://tribeca-images.b-cdn.net/fonts/bebas-neue.woff2') format('woff2');
}

@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url('https://tribeca-images.b-cdn.net/fonts/oswald.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('https://tribeca-images.b-cdn.net/fonts/inter.woff2') format('woff2');
}

:root {
  --color-primary: #0c3b2e;
  --color-primary-light: #165b48;
  --color-primary-dark: #07261d;
  --color-accent: #b91c1c;
  --color-accent-hover: #991b1b;
  --color-accent-light: #fef2f2;
  --color-gold: #fbbf24;

  --color-bg: #f9f5f0;
  --color-surface: #ffffff;
  --color-surface-subtle: #f5eee3;
  --color-border: #e2d9cb;
  --color-border-light: #eee7db;

  --color-text-main: #18120c;
  --color-text-muted: #5c6b67;
  --color-text-light: #8e9b97;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(12, 59, 46, 0.08);
  --shadow-lg: 0 12px 24px -4px rgba(12, 59, 46, 0.12);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: Georgia, Cambria, "Times New Roman", Times, serif;
  --font-display: 'Bebas Neue', sans-serif;
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;

  --retro-navy: #07261d;
  --retro-red: #b91c1c;
  --retro-yellow: #fbbf24;
  --retro-cream: #f5eee3;
}

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

html {
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
}

/* Screen-reader-only utility — ensures labels are hidden visually without taking flex layout space */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-accent);
}

/* Fluid responsive wrapper adapting from phone to ultrawide */
.wrap {
  width: 100%;
  max-width: min(96vw, 1680px);
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 0.85rem;
    max-width: 100%;
  }
}

/* --- Top Bar --- */
.top-bar {
  background-color: var(--color-primary-dark);
  color: #f1f5f3;
  font-size: 0.8125rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  width: 100%;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar-message {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.top-bar-badge {
  background-color: var(--color-accent);
  color: #ffffff;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.top-bar-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.top-bar-links a {
  color: #d1deda;
}

.top-bar-links a:hover {
  color: #ffffff;
}

/* --- Header --- */
.site-header {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Search */
.header-search {
  flex: 1;
  max-width: 680px;
  position: relative;
}

.search-form {
  display: flex;
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 0.65rem 2.75rem 0.65rem 1.15rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  background-color: var(--color-surface-subtle);
  font-size: 0.9375rem;
  color: var(--color-text-main);
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--color-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(12, 59, 46, 0.12);
}

.search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}

.search-btn:hover {
  background: var(--color-primary-light);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.cart-btn:hover {
  background-color: var(--color-primary-light);
  color: #ffffff;
}

.cart-badge {
  background-color: var(--color-accent);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
}

/* Navigation */
.site-nav {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 0.55rem 0 0.75rem;
  border-top: 1px solid var(--color-border-light);
  scrollbar-width: none;
  width: 100%;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.nav-link {
  color: var(--color-text-main);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.25rem 0.1rem;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -0.75rem;
  left: 0;
  right: 0;
  height: 2.5px;
  background-color: var(--color-primary);
}

/* --- Hero Banner --- */
.hero {
  background: linear-gradient(135deg, #0c3b2e 0%, #175443 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 3.25rem 3rem;
  margin: 1.5rem 0 2.25rem;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: 2.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-tag {
  display: inline-block;
  background-color: rgba(255,255,255,0.15);
  color: #ffffff;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  border: 1px solid rgba(255,255,255,0.2);
}

.hero-title {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 1.1rem;
  color: #d1deda;
  margin-bottom: 1.75rem;
  max-width: 580px;
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-accent);
  color: #ffffff;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(185, 28, 28, 0.4);
  transition: transform 0.15s, background 0.15s;
}

.hero-cta:hover {
  background-color: var(--color-accent-hover);
  color: #ffffff;
  transform: translateY(-2px);
}

.hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img-showcase {
  width: 100%;
  max-width: 580px;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.15);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hero-img-showcase:hover {
  transform: scale(1.02);
}

/* Commercial Foodservice Section Banner */
.commercial-banner-section {
  margin-bottom: 3.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.commercial-banner-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.commercial-banner-image {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.commercial-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}

@media (max-width: 900px) {
  .commercial-banner-section {
    grid-template-columns: 1fr;
    padding: 1.75rem;
  }
}

/* --- Value Props Bar --- */
.value-props {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  width: 100%;
}

.prop-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.prop-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-surface-subtle);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.prop-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.prop-text p {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* --- Section Headings --- */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.section-title {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.section-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* --- Dot Foods 5-Column Squircle Category Grid (Reference Layout) --- */
.category-directory-header {
  margin: 1.5rem 0 1.75rem;
}

.category-filter-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 0 1.25rem;
  margin-bottom: 2rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.cat-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  background: var(--color-surface, #ffffff);
  border: 1px solid var(--color-border, #e2e8f0);
  color: var(--color-text-muted, #64748b);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-filter-btn:hover {
  border-color: var(--color-primary, #07261d);
  color: var(--color-primary, #07261d);
  background: #f8fafc;
}

.cat-filter-btn.active {
  background: var(--color-primary, #07261d);
  color: #ffffff;
  border-color: var(--color-primary, #07261d);
  box-shadow: 0 4px 14px rgba(7, 38, 29, 0.25);
}

.cat-filter-count {
  font-size: 0.75rem;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.cat-filter-btn:not(.active) .cat-filter-count {
  background: #f1f5f9;
  color: #475569;
}

.category-section {
  margin-bottom: 3.5rem;
}

.category-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid #e2e8f0;
}

.category-section-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-primary, #07261d);
  letter-spacing: -0.01em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-section-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted, #64748b);
  margin: 0;
}

/* 5-Column Grid (Direct match to reference screenshot) */
.cat-squircle-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.15rem;
  width: 100%;
}

@media (max-width: 1200px) {
  .cat-squircle-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 900px) {
  .cat-squircle-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

@media (max-width: 600px) {
  .cat-squircle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }
}

/* Squircle Tile (Matches Reference Screenshot) */
.cat-squircle-tile {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  background-color: #132821;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  transform: translateZ(0);
}

.cat-squircle-tile:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.45);
}

/* Background Image Layer */
.cat-squircle-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat-squircle-tile:hover .cat-squircle-bg {
  transform: scale(1.08);
}

/* Dark Vignette / Gradient Overlay for pristine text readability */
.cat-squircle-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.30) 0%, rgba(5, 25, 18, 0.62) 75%, rgba(0, 0, 0, 0.85) 100%);
  transition: background 0.3s ease;
  z-index: 2;
}

.cat-squircle-tile:hover .cat-squircle-overlay {
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.20) 0%, rgba(5, 25, 18, 0.52) 70%, rgba(0, 0, 0, 0.90) 100%);
}

/* Centered Content */
.cat-squircle-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.15rem 0.85rem;
  text-align: center;
}

.cat-squircle-title {
  font-family: 'Bebas Neue', 'Oswald', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 0 20px rgba(0, 0, 0, 0.7);
  margin: 0;
  transition: transform 0.3s ease;
}

.cat-squircle-tile:hover .cat-squircle-title {
  transform: scale(1.04);
}

.cat-squircle-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.22rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  opacity: 0.88;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cat-squircle-tile:hover .cat-squircle-badge {
  opacity: 1;
  transform: translateY(-2px);
  background: rgba(7, 38, 29, 0.8);
  border-color: rgba(255, 255, 255, 0.35);
}

.cat-squircle-subitems {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
  max-width: 92%;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.cat-squircle-tile:hover .cat-squircle-subitems {
  opacity: 1;
  max-height: 48px;
}

/* --- Department / Category Grid with Hero Photo Backgrounds --- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
  width: 100%;
}

.cat-card {
  position: relative;
  background-color: var(--color-primary);
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.cat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(7, 38, 29, 0.35);
  border-color: var(--color-accent);
}

.cat-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5, 29, 22, 0.95) 0%,
    rgba(12, 59, 46, 0.75) 45%,
    rgba(0, 0, 0, 0.3) 100%
  );
  z-index: 2;
  transition: background 0.25s ease;
}

.cat-card:hover .cat-card-overlay {
  background: linear-gradient(
    to top,
    rgba(5, 29, 22, 0.98) 0%,
    rgba(12, 59, 46, 0.65) 45%,
    rgba(0, 0, 0, 0.15) 100%
  );
}

.cat-card-content {
  position: relative;
  z-index: 3;
  padding: 1.5rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cat-card-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  margin-bottom: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.cat-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.cat-card p {
  font-size: 0.85rem;
  color: #e2ece9;
  line-height: 1.4;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.cat-card-cta {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: transform 0.15s ease;
}

.cat-card:hover .cat-card-cta {
  transform: translateX(4px);
  color: #fce79a;
}

/* --- Catalog Listing Layout (Responsive & Fluid) --- */
.listing-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 2rem;
  margin: 1.5rem 0 3.5rem;
  width: 100%;
}

.listing-main {
  min-width: 0;
  width: 100%;
}

.filter-sidebar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  align-self: start;
  position: sticky;
  top: 90px;
}

.filter-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border-light);
}

.filter-group {
  margin-bottom: 1.5rem;
}

.filter-group h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.65rem;
}

.filter-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.filter-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--color-text-main);
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
}

.filter-item a:hover, .filter-item.active a {
  background: var(--color-surface-subtle);
  color: var(--color-primary);
  font-weight: 600;
}

.listing-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
}

.listing-controls-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.mobile-filter-trigger {
  display: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-primary);
  background: var(--color-surface);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.mobile-filter-trigger:hover,
.mobile-filter-trigger:active {
  background: var(--color-primary);
  color: #ffffff;
}

.mobile-filter-trigger svg {
  flex-shrink: 0;
}

.filter-active-pill {
  display: inline-block;
  background: var(--color-accent);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  margin-left: 0.2rem;
}

.filter-header-mobile {
  display: none;
}

.filter-title-desktop {
  display: block;
}

.filter-drawer-actions {
  display: none;
}

.filter-backdrop {
  display: none;
}

.sort-select {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-main);
  outline: none;
}

/* --- Product Grid (Adaptive columns: 2 on mobile, 3-4 on tablet, 4-6 on desktop) --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
  width: 100%;
}

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
  width: 100%;
}

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

.product-card-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--color-surface-subtle);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.product-card-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

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

.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.product-badge.out-of-stock {
  background-color: #64748b;
}

.product-badge.sale {
  background-color: var(--color-accent);
}

.product-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-brand {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  color: var(--color-text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.6rem;
}

.product-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border-light);
  gap: 0.5rem;
}

.product-price-box {
  display: flex;
  flex-direction: column;
}

.product-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-text-main);
}

.product-compare {
  font-size: 0.75rem;
  color: var(--color-text-light);
  text-decoration: line-through;
}

.quick-add-btn {
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.825rem;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.quick-add-btn:hover:not(:disabled) {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

.quick-add-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2.5rem 0;
  width: 100%;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text-main);
}

.page-btn:hover, .page-btn.active {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

/* --- Product Detail Page --- */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 2rem 0 3.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.gallery-main {
  background: var(--color-surface-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  margin-bottom: 1rem;
}

.gallery-main img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.gallery-thumbs {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
}

.gallery-thumb {
  width: 72px;
  height: 72px;
  background: var(--color-surface-subtle);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.25rem;
  cursor: pointer;
  flex-shrink: 0;
}

.gallery-thumb.active {
  border-color: var(--color-primary);
}

.detail-brand {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.detail-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: var(--color-text-main);
}

.detail-price-box {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.detail-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-primary);
}

.detail-compare {
  font-size: 1.15rem;
  color: var(--color-text-light);
  text-decoration: line-through;
}

.stock-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}

.stock-indicator.in-stock {
  background: #ecfdf5;
  color: #065f46;
}

.stock-indicator.sold-out {
  background: #f1f5f9;
  color: #475569;
}

.add-form {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.qty-input {
  width: 80px;
  padding: 0.75rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
}

.add-cart-btn {
  flex: 1;
  min-width: 180px;
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s;
}

.add-cart-btn:hover:not(:disabled) {
  background: var(--color-primary-light);
}

.add-cart-btn:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

.detail-specs {
  border-top: 1px solid var(--color-border-light);
  padding-top: 1.5rem;
  font-size: 0.9rem;
}

.detail-specs dt {
  font-weight: 700;
  color: var(--color-text-muted);
}

.detail-specs dd {
  margin-bottom: 0.75rem;
}

/* --- Cart & Checkout --- */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  margin: 2rem 0 3.5rem;
  width: 100%;
}

.cart-table-wrap {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.cart-item-row {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border-light);
}

.cart-thumb {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: var(--color-surface-subtle);
  border-radius: var(--radius-sm);
  padding: 0.25rem;
}

.cart-item-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text-main);
}

.cart-item-price {
  font-weight: 800;
  font-size: 1.05rem;
}

.cart-summary-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  align-self: start;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.summary-row.total-row {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-primary);
  border-top: 2px solid var(--color-border);
  padding-top: 1rem;
  margin-top: 1rem;
}

.checkout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.9rem;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 1rem;
  text-decoration: none;
  transition: background 0.15s;
}

.checkout-btn:hover {
  background: var(--color-accent-hover);
  color: #ffffff;
}

/* Checkout Page Grid */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  margin: 2rem 0 4rem;
  width: 100%;
}

.form-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.form-section h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: 0.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--color-text-main);
}

.form-control {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  outline: none;
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(12, 59, 46, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 1rem;
}

/* Digital Wallets (Apple Pay & Google Pay) */
.wallet-container {
  margin-bottom: 1.25rem;
}

.apple-pay-button {
  display: block;
  width: 100%;
  height: 48px;
  min-height: 44px;
  cursor: pointer;
  -apple-pay-button-type: plain;
  -webkit-appearance: -apple-pay-button;
  appearance: -apple-pay-button;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.apple-pay-button-black {
  -apple-pay-button-style: black;
}

.google-pay-button {
  height: 48px;
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  cursor: pointer;
}

.wallet-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.25rem 0 1rem;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wallet-divider::before,
.wallet-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--color-border);
}

.wallet-divider:not(:empty)::before {
  margin-right: 0.75rem;
}

.wallet-divider:not(:empty)::after {
  margin-left: 0.75rem;
}

/* Square Card Element */
#square-card-container {
  min-height: 90px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin-bottom: 1.25rem;
}

.pay-submit-btn {
  width: 100%;
  background: var(--color-accent);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s;
}

.pay-submit-btn:hover:not(:disabled) {
  background: var(--color-accent-hover);
}

.pay-submit-btn:disabled {
  background: #94a3b8;
  cursor: wait;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--color-primary-dark);
  color: #d1deda;
  padding: 3.5rem 0 2rem;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
  width: 100%;
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 340px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.footer-links a {
  color: #a3b8b2;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* --- Media Queries / Responsive Breakpoints --- */
@media (max-width: 1100px) {
  .listing-layout {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 2.25rem 1.75rem;
  }
  .listing-layout {
    display: block;
    margin-top: 0.75rem;
  }

  .mobile-filter-trigger {
    display: inline-flex;
  }

  .filter-header-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1.5px solid var(--color-border);
  }

  .filter-title-desktop {
    display: none;
  }

  .filter-drawer-actions {
    display: block;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border-light);
  }

  .mobile-filter-close {
    background: var(--color-surface-subtle);
    border: 1px solid var(--color-border);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    line-height: 1;
    color: var(--color-text-muted);
    cursor: pointer;
    touch-action: manipulation;
  }

  .mobile-filter-close:hover {
    background: var(--color-border);
    color: var(--color-text-main);
  }

  .filter-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    max-width: 86vw;
    height: 100vh;
    height: 100dvh;
    background: var(--color-surface);
    z-index: 10000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 6px 0 32px rgba(0, 0, 0, 0.35);
    padding: 1.25rem 1.25rem 3.5rem;
    border: none;
    border-right: 1px solid var(--color-border);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .filter-sidebar.filter-open {
    transform: translateX(0) !important;
  }

  .filter-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(5, 29, 22, 0.6);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .filter-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* Initial entrance peek animation: slides out to catch attention, then slides off left so products are above the fold */
  .filter-sidebar.filter-initial-peek {
    animation: mobileFilterPeek 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .filter-backdrop.filter-initial-peek-backdrop {
    animation: mobileBackdropPeek 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .product-detail-layout {
    grid-template-columns: 1fr;
    padding: 1.75rem;
  }
  .cart-layout, .checkout-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@keyframes mobileFilterPeek {
  0% {
    transform: translateX(-100%);
  }
  22% {
    transform: translateX(0);
  }
  70% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes mobileBackdropPeek {
  0% {
    opacity: 0;
    pointer-events: none;
  }
  22% {
    opacity: 0.45;
    pointer-events: auto;
  }
  70% {
    opacity: 0.45;
    pointer-events: auto;
  }
  100% {
    opacity: 0;
    pointer-events: none;
  }
}

@media (max-width: 640px) {
  .header-top {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .header-search {
    order: 3;
    max-width: 100%;
    width: 100%;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .product-card-body {
    padding: 0.75rem;
  }
  .product-title {
    font-size: 0.85rem;
    height: 2.3rem;
  }
  .product-price {
    font-size: 1rem;
  }
  .quick-add-btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .form-row, .form-row-3 {
    grid-template-columns: 1fr;
  }
  .cart-item-row {
    grid-template-columns: 64px 1fr;
    gap: 0.75rem;
  }
}

/* ==========================================================================
   Slide-Out Mini-Cart Drawer
   ========================================================================== */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 59, 46, 0.45);
  backdrop-filter: blur(2px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.cart-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 92vw);
  background: var(--color-surface);
  box-shadow: -6px 0 24px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.cart-drawer.active {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border-light);
  background: var(--color-surface);
}
.cart-drawer-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}
.cart-drawer-close:hover {
  color: var(--color-accent);
}

.cart-drawer-nudge {
  background: #ecfdf5;
  border-bottom: 1px solid #a7f3d0;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #065f46;
  font-weight: 600;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
}

.cart-drawer-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  min-height: 240px;
  padding: 2rem 1rem;
}

.cart-drawer-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-border-light);
  align-items: center;
}
.cart-drawer-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--color-surface-subtle);
}
.cart-drawer-item-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-drawer-item-price {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.cart-drawer-qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.35rem;
  width: fit-content;
}
.cart-drawer-qty-btn {
  background: var(--color-surface-subtle);
  border: none;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-text-main);
}
.cart-drawer-qty-val {
  padding: 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

.cart-drawer-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--color-border-light);
  background: var(--color-surface);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.03);
}
.cart-drawer-summary {
  margin-bottom: 1rem;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
  color: var(--color-text-main);
}
.summary-line.total-line {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary);
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-border-light);
  margin-top: 0.5rem;
}
.cart-drawer-checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: var(--color-primary);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease;
}
.cart-drawer-checkout-btn:hover {
  background: var(--color-primary-light);
}
.cart-drawer-view-cart {
  display: block;
  text-align: center;
  margin-top: 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: underline;
}

/* ==========================================================================
   Predictive Live Search Dropdown
   ========================================================================== */
.search-suggest-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  overflow: hidden;
  max-height: 440px;
  overflow-y: auto;
}
.suggest-section-title {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  padding: 0.5rem 0.85rem;
  background: var(--color-surface-subtle);
  border-bottom: 1px solid var(--color-border-light);
}
.suggest-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--color-border-light);
  text-decoration: none !important;
  color: inherit;
  transition: background 0.1s ease;
}
.suggest-item:hover, .suggest-item:focus {
  background: #f8fafc;
}
.suggest-thumb {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--color-surface-subtle);
  flex-shrink: 0;
}
.suggest-info {
  flex: 1;
  min-width: 0;
}
.suggest-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.suggest-price {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 600;
}
.suggest-view-all {
  display: block;
  text-align: center;
  padding: 0.75rem;
  background: var(--color-surface-subtle);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
}
.suggest-view-all:hover {
  background: #e2e8f0;
}

/* ==========================================================================
   Quick Order Matrix Table
   ========================================================================== */
.qo-search-input-wrap {
  position: relative;
}
.qo-search-input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}
.qo-autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 100;
  max-height: 240px;
  overflow-y: auto;
}
.qo-autocomplete-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 0.8rem;
}
.qo-autocomplete-item:hover {
  background: #f1f5f9;
}
.nav-highlight {
  color: #fbbf24 !important;
  font-weight: 800;
}

/* ==========================================================================
   Tribeca Curations (php-store) Style Layout Architecture for Tribeca Grocery
   ========================================================================== */
.main-full {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* ── Full-Bleed Photographic Hero ── */
.hero-curations {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--retro-navy);
}
.hero-curations .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}
.hero-curations .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(7, 38, 29, 0.94) 38%, rgba(7, 38, 29, 0.4) 100%);
  z-index: 2;
}
.hero-curations .hero-content {
  position: relative;
  z-index: 3;
  padding: 4.5rem 1.5rem 6rem;
  max-width: min(96vw, 1680px);
  margin: 0 auto;
  width: 100%;
}
.hero-curations .hero-text-block {
  max-width: 640px;
}
.hero-curations .hero-pre {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  color: #ffffff;
  font-style: italic;
  margin: 0 0 -0.5rem;
}
.hero-curations .hero-title {
  margin: 0 0 1rem;
  line-height: 0.88;
}
.hero-curations .hero-one {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.2vw, 2.2rem);
  color: var(--retro-yellow);
  letter-spacing: clamp(3px, 0.8vw, 6px);
}
.hero-curations .hero-main {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 8.5vw, 6.5rem);
  color: #ffffff;
  letter-spacing: clamp(1px, 0.4vw, 2px);
  text-shadow: 4px 4px 0 var(--retro-navy);
  -webkit-text-stroke: 1.5px rgba(7, 38, 29, 0.5);
  line-height: 0.92;
  word-break: break-word;
  overflow-wrap: break-word;
}
.hero-curations .hero-subline {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 6vw, 4.5rem);
  color: var(--retro-yellow);
  letter-spacing: clamp(2px, 0.5vw, 4px);
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
}
.hero-curations .hero-sub {
  font-size: clamp(0.925rem, 2vw, 1.05rem);
  color: rgba(255, 255, 255, 0.9);
  margin: 0.85rem 0 1.5rem;
  line-height: 1.55;
  max-width: 580px;
}
.hero-curations .hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-curations .hero-btn {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 1px;
  padding: 0.85rem 2.2rem;
  border: 2.5px solid var(--retro-navy);
  border-radius: 50px;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--retro-navy);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.hero-curations .hero-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--retro-navy);
}
.hero-curations .hero-btn-primary {
  background: var(--retro-red);
  color: #ffffff;
}
.hero-curations .hero-btn-primary:hover {
  background: #991b1b;
  color: #ffffff;
}
.hero-curations .hero-btn-secondary {
  background: var(--retro-yellow);
  color: var(--retro-navy);
}
.hero-curations .hero-btn-secondary:hover {
  background: #ffffff;
  color: var(--retro-navy);
}
.goodies-badge {
  position: absolute;
  right: 10%;
  top: 26%;
  z-index: 4;
  background: var(--retro-red);
  color: white;
  border: 2.5px solid var(--retro-navy);
  border-radius: 12px;
  padding: 0.75rem 1.1rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.825rem;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 4px 4px 0 var(--retro-navy);
  line-height: 1.3;
}
.goodies-caret {
  font-size: 1.5rem;
}
.thousands-badge {
  position: absolute;
  right: 5%;
  bottom: 20%;
  z-index: 4;
  background: var(--retro-yellow);
  color: var(--retro-navy);
  border: 2.5px solid var(--retro-navy);
  border-radius: 50%;
  width: 105px;
  height: 105px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  line-height: 1.3;
  box-shadow: 4px 4px 0 var(--retro-navy);
  transform: rotate(-8deg);
}
.hero-curations .hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 5;
}
.hero-curations .hero-wave svg {
  width: 100%;
  height: 100%;
}

/* ── Offer Shelf ── */
.offer-shelf {
  background: var(--color-surface-subtle);
  border-bottom: 3px solid #e0d8ce;
  padding: 1.75rem 0 1.6rem;
}
.offer-shelf-inner {
  display: grid;
  gap: 1.25rem;
}
.offer-search {
  display: flex;
  align-items: stretch;
  background: #ffffff;
  border: 3px solid var(--retro-navy);
  border-radius: 12px;
  box-shadow: 5px 5px 0 var(--retro-navy);
  overflow: hidden;
  max-width: 740px;
  width: 100%;
  margin: 0 auto;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.offer-search:focus-within {
  box-shadow: 5px 5px 0 var(--retro-red);
  border-color: var(--retro-red);
}
.offer-search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.35rem 0 1.15rem;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--retro-navy);
  user-select: none;
  flex-shrink: 0;
}
.offer-search-input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  outline: none;
  padding: 0.95rem 0.85rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--retro-navy);
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}
.offer-search-input::placeholder {
  color: #78716c;
  opacity: 1;
}
.offer-search-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--retro-red);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 1.85rem;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.15s ease;
}
.offer-search-btn:hover {
  background: #991b1b;
  color: #ffffff;
}
.offer-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.offer {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.offer-mark {
  font-size: 1.25rem;
  line-height: 1;
  flex: 0 0 auto;
}
.offer-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 0.825rem;
  line-height: 1.35;
  color: var(--color-text-muted);
}
.offer-text strong {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--retro-navy);
}

/* ── Brands Section ── */
.brands-section {
  padding: 3rem 0;
  background: #f9f5f0;
  border-bottom: 1px solid #ede8e0;
}
.brands-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0;
}
.brand-logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 86px;
  background: white;
  border-radius: 12px;
  border: 2px solid #e0d8ce;
  padding: 0.6rem 0.75rem;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 3px 3px 0 var(--retro-navy);
  overflow: hidden;
  text-align: center;
}
.brand-logo-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 5px 5px 0 var(--retro-navy);
  border-color: var(--retro-red);
}
.brand-card-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--retro-navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.brand-card-desc {
  font-size: 0.68rem;
  color: var(--color-text-muted);
  margin-top: 0.15rem;
}

/* ── Section Headings & Curations Layout ── */
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 1.95rem);
  color: var(--retro-navy);
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.mb0 { margin-bottom: 0; }
.h-arrow { color: var(--retro-red); font-size: 1rem; }

.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.view-all-btn {
  background: var(--retro-red);
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.825rem;
  letter-spacing: 1px;
  padding: 0.5rem 1.3rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
  flex-shrink: 0;
}
.view-all-btn:hover {
  background: #991b1b;
  color: white;
}

/* ── Category Cards Grid ── */
.categories-section {
  padding: 4rem 0;
  background: white;
}
.category-grid-curations {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.cat-card-curations {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  background: white;
  border: 1px solid var(--color-border);
}
.cat-card-curations:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}
.cat-card-curations .cat-img-wrap {
  width: 100%;
  height: 165px;
  overflow: hidden;
  background: #f0f0f0;
  position: relative;
}
.cat-card-curations .cat-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.cat-card-curations:hover .cat-img-wrap img {
  transform: scale(1.08);
}
.cat-card-curations .cat-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  background: var(--color-primary);
  color: white;
}
.cat-card-curations .cat-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}
.cat-card-curations .cat-arrow-btn {
  width: 24px;
  height: 24px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: white;
  flex-shrink: 0;
}

/* ── Product Rails ── */
.trending-section {
  padding: 3.5rem 0;
  background: #f9f5f0;
}
.trending-scroll-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* ── Commercial Foodservice Feature Band ── */
.commercial-band {
  position: relative;
  background: #f5eee3;
  padding: 4.5rem 0 4rem;
  overflow: hidden;
  border-top: 3px solid #e0d8ce;
  border-bottom: 3px solid #e0d8ce;
}
.commercial-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(12, 59, 46, 0.08) 1.5px, transparent 1.6px),
    radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, 0.5), transparent 60%);
  background-size: 14px 14px, 100% 100%;
  pointer-events: none;
}
.commercial-band-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3rem;
  align-items: center;
}
.commercial-band-left {
  position: relative;
  padding: 0.5rem 0;
}
.commercial-rays {
  position: absolute;
  top: 50%;
  left: 8%;
  width: 46rem;
  height: 46rem;
  transform: translate(-38%, -50%);
  background: repeating-conic-gradient(from 0deg,
    rgba(12, 59, 46, 0.11) 0deg 7deg,
    transparent 7deg 18deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, rgba(0,0,0,0.55) 42%, transparent 68%);
  mask-image: radial-gradient(circle, #000 0%, rgba(0,0,0,0.55) 42%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .commercial-rays { animation: commercial-spin 90s linear infinite; }
}
@keyframes commercial-spin {
  to { transform: translate(-38%, -50%) rotate(360deg); }
}
.commercial-band-eyebrow {
  display: inline-block;
  margin: 0 0 0.9rem;
  transform: rotate(-2deg);
}
.commercial-band-eyebrow span {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fffdf5;
  background: var(--retro-red);
  border: 2px solid var(--retro-navy);
  border-radius: 4px;
  box-shadow: 3px 3px 0 var(--retro-navy);
  padding: 0.3rem 0.85rem 0.25rem;
}
.commercial-band-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  line-height: 0.85;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fffdf5;
  margin: 0 0 1.1rem;
  -webkit-text-stroke: 2px var(--retro-navy);
  paint-order: stroke fill;
  text-shadow:
    4px 4px 0 var(--retro-navy),
    8px 8px 0 rgba(185, 28, 28, 0.85);
}
.commercial-band-title em {
  font-style: normal;
  color: var(--retro-yellow);
}
.commercial-band-sub {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.55;
  color: #3b4d45;
  max-width: 26rem;
  margin: 0 0 1.75rem;
}
.commercial-band-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--retro-navy);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.85rem 1.6rem;
  border: 3px solid var(--retro-navy);
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 5px 5px 0 rgba(185, 28, 28, 0.9);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.commercial-band-btn:hover {
  color: #fff;
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 rgba(185, 28, 28, 0.9);
}
.commercial-band-right {
  display: flex;
  flex-direction: column;
}
.commercial-band-frame {
  margin: 0;
  background: #fffdf5;
  padding: 0.75rem 0.75rem 0.9rem;
  border: 3px solid var(--retro-navy);
  border-radius: 8px;
  box-shadow: 9px 9px 0 var(--retro-navy);
  transform: rotate(1.4deg);
  transition: transform 0.25s ease;
}
.commercial-band-frame:hover {
  transform: rotate(0deg);
}
.commercial-band-photo {
  width: 100%;
  display: block;
  border-radius: 4px;
}

/* ==========================================================================
   Comprehensive Responsive & Mobile Frontend Design Rules
   ========================================================================== */
@media (max-width: 992px) {
  .brands-track {
    grid-template-columns: repeat(4, 1fr);
  }
  .category-grid-curations {
    grid-template-columns: repeat(4, 1fr);
  }
  .commercial-band-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .commercial-band-frame {
    max-width: 520px;
    margin: 0 auto;
    transform: none;
  }
  .goodies-badge,
  .thousands-badge {
    display: none !important;
  }
}

@media (max-width: 768px) {
  /* ── Top Bar ── */
  .top-bar {
    padding: 0.35rem 0;
    font-size: 0.78rem;
  }
  .top-bar-inner {
    justify-content: center;
    text-align: center;
  }
  .top-bar-message {
    justify-content: center;
    gap: 0.45rem;
  }
  .top-bar-badge {
    padding: 0.12rem 0.45rem;
    font-size: 0.68rem;
  }
  .top-bar-secondary-text,
  .top-bar-links {
    display: none !important;
  }

  /* ── Header ── */
  .header-top {
    padding: 0.6rem 0;
    gap: 0.75rem;
  }
  .brand-logo {
    height: 38px;
    width: auto;
  }
  .brand-title {
    font-size: 1.15rem;
  }
  .brand-subtitle {
    font-size: 0.68rem;
  }
  .cart-btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.825rem;
  }
  .site-nav {
    padding: 0.45rem 0 0.55rem;
    gap: 0.85rem;
    -webkit-overflow-scrolling: touch;
  }
  .nav-link {
    font-size: 0.825rem;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
  }

  /* ── Hero ── */
  .hero-curations {
    min-height: auto;
  }
  .hero-curations .hero-content {
    padding: 2.75rem 1.15rem 3.75rem;
    text-align: left;
  }
  .hero-curations .hero-text-block {
    max-width: 100%;
  }
  .hero-curations .hero-pre {
    font-size: 1.25rem;
    margin-bottom: -0.2rem;
  }
  .hero-curations .hero-one {
    font-size: 1.15rem;
    letter-spacing: 3.5px;
  }
  .hero-curations .hero-main {
    font-size: clamp(2rem, 8.2vw, 3.25rem);
    letter-spacing: 1px;
    line-height: 0.94;
  }
  .hero-curations .hero-subline {
    font-size: clamp(1.6rem, 5.5vw, 2.5rem);
    letter-spacing: 2px;
  }
  .hero-curations .hero-sub {
    font-size: 0.925rem;
    line-height: 1.5;
    margin: 0.75rem 0 1.25rem;
    color: rgba(255, 255, 255, 0.92);
  }
  .hero-curations .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
  }
  .hero-curations .hero-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }
  .hero-curations .hero-wave {
    height: 34px;
  }

  /* ── Offer Shelf ── */
  .offer-shelf {
    padding: 1.15rem 0 1.25rem;
  }
  .offer-shelf-inner {
    gap: 0.85rem;
  }
  .offer-search {
    border-width: 2.5px;
    border-radius: 10px;
    box-shadow: 3.5px 3.5px 0 var(--retro-navy);
  }
  .offer-search-icon {
    padding: 0 0.2rem 0 0.85rem;
    font-size: 1rem;
  }
  .offer-search-input {
    padding: 0.7rem 0.5rem;
    font-size: 0.92rem;
  }
  .offer-search-input::placeholder {
    font-size: 0.825rem;
  }
  .offer-search-btn {
    padding: 0 1.15rem;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
  }
  .offer-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    max-width: 460px;
    margin: 0.25rem auto 0;
  }
  .offer {
    background: #ffffff;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    border: 1px solid #e5ded4;
    gap: 0.6rem;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  }
  .offer-mark {
    font-size: 1.15rem;
    flex-shrink: 0;
  }
  .offer-text {
    font-size: 0.76rem;
    line-height: 1.35;
  }
  .offer-text strong {
    font-size: 0.86rem;
    display: block;
    margin-bottom: 0.1rem;
  }

  /* ── Brands & Categories ── */
  .brands-section {
    padding: 2rem 0;
  }
  .brands-track {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
  }
  .brand-logo-card {
    height: 68px;
    padding: 0.4rem 0.5rem;
    border-radius: 8px;
    box-shadow: 2.5px 2.5px 0 var(--retro-navy);
  }
  .brand-card-name {
    font-size: 0.78rem;
    letter-spacing: 0.25px;
  }
  .brand-card-desc {
    font-size: 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .section-heading {
    font-size: 1.25rem;
    letter-spacing: 1.5px;
    margin-bottom: 1.25rem;
    gap: 0.45rem;
  }
  .h-arrow {
    font-size: 0.8rem;
  }
  .categories-section {
    padding: 2.25rem 0;
  }
  .category-grid-curations {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
  .cat-card-curations {
    border-radius: 10px;
    border-width: 2px;
    box-shadow: 3.5px 3.5px 0 var(--retro-navy);
  }
  .cat-card-curations .cat-img-wrap {
    height: 110px;
  }
  .cat-card-curations .cat-footer {
    padding: 0.45rem 0.65rem;
  }
  .cat-card-curations .cat-label {
    font-size: 0.75rem;
  }
  .cat-card-curations .cat-arrow-btn {
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
  }

  /* ── Section Header Row ── */
  .section-header-row {
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  .view-all-btn {
    font-size: 0.78rem;
    padding: 0.25rem 0.65rem;
  }
}

@media (max-width: 480px) {
  .brands-track {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem;
  }
  .brand-logo-card {
    height: 58px;
    padding: 0.35rem 0.45rem;
  }
  .brand-card-desc {
    display: none;
  }
  .brand-card-name {
    font-size: 0.82rem;
  }
  .hero-curations .hero-content {
    padding: 2.25rem 0.85rem 3.25rem;
  }
  .offer-search-btn {
    padding: 0 0.95rem;
    font-size: 0.82rem;
  }
  .offer-search-input {
    padding: 0.65rem 0.45rem;
    font-size: 0.88rem;
  }
}

/* ==========================================================================
   Mobile Optimization — P0, P1, P2 Fixes
   ========================================================================== */

/* ── P0: iOS Safari Auto-Zoom Prevention ──
   iOS zooms the viewport when any input/select/textarea has font-size < 16px.
   Force 16px on all interactive controls at mobile widths. */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="search"],
  input[type="number"],
  input[type="url"],
  input[type="password"],
  select,
  textarea,
  .search-input,
  .offer-search-input,
  .sort-select,
  .form-control,
  .qty-input,
  .qo-search-input {
    font-size: 16px !important;
  }
}

/* ── P1: Mobile Hamburger Button ── */
.mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.45rem;
  color: var(--color-text-main);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: inline-flex;
  }
}

/* ── P1: Mobile Navigation Slide-Out Drawer ── */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 29, 22, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--color-surface);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 6px 0 24px rgba(0, 0, 0, 0.2);
}
.mobile-nav-drawer.active {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border-light);
  background: var(--color-surface);
  flex-shrink: 0;
}
.mobile-nav-header-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-primary);
}
.mobile-nav-close {
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
  touch-action: manipulation;
}
.mobile-nav-close:hover {
  background: var(--color-border);
  color: var(--color-text-main);
}

.mobile-nav-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0;
}

.mobile-nav-section {
  padding: 0.5rem 1.25rem;
}
.mobile-nav-section-title {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: 0.25rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--color-text-main);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border-light);
  transition: color 0.15s;
}
.mobile-nav-link:hover {
  color: var(--color-primary);
}
.mobile-nav-link.active {
  color: var(--color-primary);
  font-weight: 700;
}
.mobile-nav-link-icon {
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.mobile-nav-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface-subtle);
  flex-shrink: 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* ── P1: Slim Sticky Header on Mobile ── */
@media (max-width: 768px) {
  /* Let the top announcement bar scroll off naturally */
  .top-bar {
    position: relative;
  }

  /* Keep header sticky but reduce padding */
  .site-header {
    position: sticky;
    top: 0;
  }

  /* Let the department nav strip scroll off-screen naturally instead of being sticky */
  .site-nav {
    position: relative;
    padding: 0.4rem 0 0.5rem;
    gap: 0.75rem;
    /* Add fade mask on right to signal horizontal scroll */
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
  }

  /* Hide .brand-text on small phones to save header width for hamburger + search + cart */
  .brand-text {
    display: none;
  }
}

@media (max-width: 480px) {
  .brand-logo {
    height: 32px;
  }
}

/* ── P1: Cart Page Item Row Fix on Mobile ── */
@media (max-width: 640px) {
  .cart-item-row {
    grid-template-columns: 64px 1fr !important;
    grid-template-rows: auto auto;
    gap: 0.5rem 0.75rem !important;
    padding: 1rem 0;
    align-items: start;
  }
  .cart-item-row > img {
    grid-row: 1;
    grid-column: 1;
  }
  .cart-item-row > div:nth-child(2) {
    grid-row: 1;
    grid-column: 2;
  }
  .cart-item-row > form {
    grid-row: 2;
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  .cart-item-row > div:last-child {
    grid-row: 2;
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.25rem;
  }
  /* When both form and price div are on row 2, use a combined layout */
  .cart-item-row > form,
  .cart-item-row > div:last-child {
    grid-row: 2;
  }
  .cart-item-row > form {
    grid-column: 1;
    width: auto;
  }
  .cart-item-row > div:last-child {
    grid-column: 2;
    text-align: right;
  }
}

/* ── P1: Checkout Mobile Order Summary ── */
.mobile-checkout-summary {
  display: none;
}

@media (max-width: 900px) {
  .mobile-checkout-summary {
    display: block;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    overflow: hidden;
  }

  .mobile-summary-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.85rem 1.15rem;
    background: var(--color-surface-subtle);
    border: none;
    cursor: pointer;
    font-family: inherit;
    touch-action: manipulation;
  }
  .mobile-summary-toggle-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.925rem;
    font-weight: 700;
    color: var(--color-primary);
  }
  .mobile-summary-chevron {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    transition: transform 0.2s;
  }
  .mobile-summary-total {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-primary);
  }
  .mobile-summary-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 1.15rem;
  }
  .mobile-summary-body.open {
    max-height: 600px;
    padding: 1rem 1.15rem;
    border-top: 1px solid var(--color-border-light);
  }

  /* Hide the desktop sidebar summary on mobile */
  .checkout-summary-col {
    display: none;
  }
}

/* ── P2: PDP Mobile Sticky Add-to-Cart Bar ── */
.mobile-sticky-atc {
  display: none;
}

@media (max-width: 768px) {
  .mobile-sticky-atc {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9990;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
    padding: 0.65rem 1rem;
    padding-bottom: max(0.65rem, env(safe-area-inset-bottom));
    align-items: center;
    gap: 0.75rem;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .mobile-sticky-atc.visible {
    transform: translateY(0);
  }
  .mobile-sticky-atc-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: var(--color-surface-subtle);
    border: 1px solid var(--color-border-light);
    flex-shrink: 0;
  }
  .mobile-sticky-atc-info {
    flex: 1;
    min-width: 0;
  }
  .mobile-sticky-atc-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
  }
  .mobile-sticky-atc-price {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--color-primary);
  }
  .mobile-sticky-atc-btn {
    background: var(--color-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.65rem 1.15rem;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 42px;
    touch-action: manipulation;
    transition: background 0.15s;
  }
  .mobile-sticky-atc-btn:hover:not(:disabled) {
    background: var(--color-primary-light);
  }
  .mobile-sticky-atc-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
  }
}

/* ── P2: Cart Drawer Enlarged Touch Targets ── */
.cart-drawer-qty-btn {
  width: 36px;
  height: 36px;
  font-size: 1rem;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.cart-drawer-qty-val {
  min-width: 32px;
  font-size: 0.875rem;
}

/* Safe-area padding for cart drawer footer */
.cart-drawer-footer {
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
}

/* ── P2: Product Card Mobile Footer Improvements ── */
@media (max-width: 640px) {
  .product-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .quick-add-btn {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.825rem;
    padding: 0.45rem 0.75rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .product-price-box {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  .tier-hint {
    font-size: 0.65rem !important;
  }
}

/* ── Safe Area insets for all bottom-fixed elements ── */
@media (max-width: 768px) {
  .cart-drawer {
    padding-bottom: env(safe-area-inset-bottom);
  }
  .filter-sidebar {
    padding-bottom: max(3.5rem, env(safe-area-inset-bottom));
  }
}

