/* Appily Eighteen — Coffeeter-inspired fresh vegetable e-commerce theme */
:root {
  --mocha: #6B5B3E;
  --mocha-dark: #564A34;
  --sage: #8FAE7A;
  --amber: #C67D3A;
  --cream: #F7F4EE;
  --bark: #2C2419;
  --ink: #333333;
  --ink-soft: #666666;
  --muted: #999999;
  --line: #E5DFD6;
  --white: #ffffff;
  --sale: #D32F2F;
  --hot: #E91E63;
  --font-serif: 'Bitter', Georgia, serif;
  --font-sans: 'Work Sans', system-ui, sans-serif;
  --radius: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 2px 8px rgba(44, 36, 25, 0.06);
  --shadow: 0 8px 28px rgba(44, 36, 25, 0.1);
  --shadow-lg: 0 18px 48px rgba(44, 36, 25, 0.14);
  --header-h: 132px;
  --transition: 0.22s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body.cf-theme {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--ink);
  line-height: 1.65;
  font-size: 15px;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--bark);
}

.container {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-main { flex: 1 0 auto; }

body.cf-nav-open { overflow: hidden; }

/* ── Announcement bar ── */
.cf-announce {
  background: var(--bark);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.cf-announce-inner {
  padding: 9px 0;
  text-align: center;
}

.cf-announce p { margin: 0; }

/* ── Utility bar ── */
.cf-utility {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.cf-utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  flex-wrap: wrap;
}

.cf-utility-phone strong { color: var(--mocha-dark); font-weight: 600; }

.cf-utility-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.cf-utility-links a:hover { color: var(--mocha); }

/* ── Header (sticky) ── */
.cf-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: var(--white);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
}

.cf-header-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
}

.cf-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  transition: opacity var(--transition);
}

.cf-brand:hover { opacity: 0.88; }

.cf-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.cf-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.cf-brand-copy strong {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--bark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cf-brand-copy small {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Search */
.cf-search {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--cream);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.cf-search:focus-within {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(143, 174, 122, 0.18);
}

.cf-search-cat {
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  padding: 0 14px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  max-width: 180px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23666' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

.cf-search input {
  border: 0;
  background: transparent;
  padding: 12px 16px;
  outline: none;
  min-width: 0;
  color: var(--ink);
}

.cf-search input::placeholder { color: var(--muted); }

.cf-search button {
  border: 0;
  background: var(--mocha);
  color: var(--white);
  padding: 0 24px;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition);
}

.cf-search button:hover { background: var(--mocha-dark); }

/* Header icons */
.cf-header-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cf-icon-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 500;
  transition: color var(--transition);
  min-width: 48px;
}

.cf-icon-link:hover { color: var(--mocha); }

.cf-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.cf-icon-label {
  max-width: 72px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cf-icon-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.cf-icon-cart .cf-icon-badge,
.cf-cart-badge { background: var(--sage); }

/* Cart dropdown */
.cf-cart-wrap {
  position: relative;
}

.cf-cart-toggle {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.cf-cart-wrap.is-open .cf-cart-toggle {
  color: var(--mocha);
}

.cf-cart-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(340px, calc(100vw - 24px));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  overflow: hidden;
}

.cf-cart-dropdown[hidden] { display: none; }

.cf-cart-dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
}

.cf-cart-dropdown-head strong {
  font-family: var(--font-serif);
  color: var(--bark);
}

.cf-cart-dropdown-head span {
  color: var(--muted);
  font-size: 0.78rem;
}

.cf-cart-dropdown-empty {
  padding: 28px 20px;
  text-align: center;
}

.cf-cart-dropdown-empty p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.cf-cart-dropdown-shop {
  display: inline-block;
  padding: 10px 18px;
  background: var(--mocha);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius);
}

.cf-cart-dropdown-shop:hover { background: var(--mocha-dark); color: var(--white); }

.cf-cart-dropdown-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  max-height: 280px;
  overflow-y: auto;
}

.cf-cart-dropdown-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--cream);
}

.cf-cart-dropdown-item:last-child { border-bottom: 0; }

.cf-cart-dropdown-thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.cf-cart-dropdown-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.cf-cart-dropdown-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cf-cart-dropdown-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cf-cart-dropdown-title:hover { color: var(--mocha); }

.cf-cart-dropdown-qty {
  font-size: 0.72rem;
  color: var(--muted);
}

.cf-cart-dropdown-line {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--bark);
  white-space: nowrap;
}

.cf-cart-dropdown-foot {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
  background: var(--cream);
  display: grid;
  gap: 10px;
}

.cf-cart-dropdown-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
}

.cf-cart-dropdown-total strong {
  font-size: 1rem;
  color: var(--bark);
}

.cf-cart-dropdown-view,
.cf-cart-dropdown-checkout {
  display: block;
  text-align: center;
  padding: 11px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
}

.cf-cart-dropdown-view {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
}

.cf-cart-dropdown-view:hover {
  border-color: var(--mocha);
  color: var(--mocha);
}

.cf-cart-dropdown-checkout {
  background: var(--amber);
  color: var(--white);
}

.cf-cart-dropdown-checkout:hover {
  background: var(--mocha);
  color: var(--white);
}

.cf-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  cursor: pointer;
  padding: 8px;
}

.cf-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--bark);
  transition: transform 0.25s, opacity 0.25s;
}

.cf-menu-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cf-menu-btn.is-open span:nth-child(2) { opacity: 0; }
.cf-menu-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Navbar ── */
.cf-navbar {
  position: relative;
  background: var(--mocha);
  color: var(--white);
  overflow: visible;
}

.cf-navbar-inner {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 48px;
  overflow: visible;
}

.cf-categories-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  background: var(--mocha-dark);
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--transition);
}

.cf-categories-btn:hover { background: var(--bark); }

.cf-categories-icon { font-size: 1rem; }

.cf-nav {
  display: flex;
  align-items: stretch;
  flex: 1;
  min-width: 0;
  overflow: visible;
}

.cf-drawer-head,
.cf-drawer-close,
.cf-drawer-search,
.cf-drawer-actions,
.cf-drawer-section-label,
.cf-drawer-categories,
.cf-drawer-footer,
.cf-drawer-brand span,
.cf-drawer-link-icon { display: none; }

.cf-drawer-link-arrow:not(.cf-nav-caret) { display: none; }

.cf-drawer-link-text { display: inline; }

.cf-nav-link,
.cf-nav-mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 18px;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.cf-nav-link:hover,
.cf-nav-mega-trigger:hover,
.cf-nav-link.is-active,
.cf-nav-mega-trigger.is-active {
  color: var(--white);
  background: rgba(0, 0, 0, 0.12);
  border-bottom-color: var(--amber);
}

.cf-nav-caret {
  font-size: 0.7rem;
  opacity: 0.75;
}

.cf-nav-badge {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 2px;
  line-height: 1.2;
}

.cf-nav-badge-sale { background: var(--sale); color: var(--white); }
.cf-nav-badge-hot { background: var(--hot); color: var(--white); }

.cf-nav-dropdown { position: relative; display: flex; align-items: stretch; }

.cf-nav-dropdown-simple {
  z-index: 20;
}

.cf-nav-dropdown-simple.is-open,
.cf-nav-dropdown-simple:hover {
  z-index: 310;
}

.cf-nav-simple-trigger {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  height: 100%;
}

.cf-nav-dropdown-simple.is-open .cf-nav-simple-trigger,
.cf-nav-dropdown-simple:hover .cf-nav-simple-trigger {
  color: var(--white);
  background: rgba(0, 0, 0, 0.12);
  border-bottom-color: var(--amber);
}

.cf-simple-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 310;
  padding: 14px 0 10px;
  display: none;
}

.cf-nav-dropdown-simple.is-open .cf-simple-menu,
.cf-nav-dropdown-simple:hover .cf-simple-menu {
  display: block;
}

.cf-simple-menu[hidden] { display: none !important; }

.cf-nav-dropdown-simple.is-open .cf-simple-menu[hidden],
.cf-nav-dropdown-simple:hover .cf-simple-menu[hidden] {
  display: block !important;
}

.cf-simple-menu-title {
  margin: 0 0 10px;
  padding: 0 18px;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bark);
}

.cf-simple-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cf-simple-menu-list li { margin: 0; }

.cf-simple-menu-list a {
  display: block;
  padding: 9px 18px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  transition: color var(--transition), background var(--transition);
}

.cf-simple-menu-list a:hover {
  color: var(--mocha);
  background: var(--cream);
}

.cf-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(44, 36, 25, 0.45);
  z-index: 250;
  backdrop-filter: blur(2px);
}

/* ── Mega menu ── */
.cf-mega-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-top: 3px solid var(--amber);
  box-shadow: var(--shadow-lg);
  z-index: 280;
}

.cf-mega-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: 32px;
  padding: 28px 0 32px;
}

.cf-mega-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.cf-mega-title {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--bark);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--cream);
}

.cf-mega-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cf-mega-list li + li { margin-top: 4px; }

.cf-mega-list a {
  display: block;
  padding: 5px 0;
  font-size: 0.84rem;
  color: var(--ink-soft);
  transition: color var(--transition), padding-left var(--transition);
}

.cf-mega-list a:hover {
  color: var(--mocha);
  padding-left: 4px;
}

.cf-mega-list a.cf-mega-row {
  font-weight: 600;
  color: var(--mocha-dark);
}

.cf-mega-featured {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

.cf-mega-products {
  display: grid;
  gap: 12px;
}

.cf-mega-product {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--cream);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.cf-mega-product:hover {
  border-color: var(--sage);
  box-shadow: var(--shadow-sm);
}

.cf-mega-product img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius);
  background: var(--cream);
  padding: 4px;
}

.cf-mega-product-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.cf-mega-product-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cf-mega-product-price {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ── Hero layout ── */
.cf-hero-layout {
  background: var(--cream);
  padding: 20px 0 24px;
}

.cf-hero-layout-inner {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.cf-sidebar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.cf-sidebar-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--mocha);
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 0.95rem;
}

.cf-sidebar-icon { font-size: 1rem; }

.cf-sidebar-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 6px 0;
}

.cf-sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 0.86rem;
  color: var(--ink);
  border-bottom: 1px solid var(--cream);
  transition: background var(--transition), color var(--transition), padding-left var(--transition);
}

.cf-sidebar-link:hover {
  background: var(--cream);
  color: var(--mocha);
  padding-left: 20px;
}

.cf-sidebar-chevron {
  color: var(--muted);
  font-size: 0.9rem;
}

.cf-sidebar-more {
  color: var(--mocha);
  font-weight: 600;
}

.cf-sidebar-promo {
  margin: 12px;
  padding: 14px;
  background: linear-gradient(145deg, rgba(143, 174, 122, 0.18) 0%, rgba(198, 125, 58, 0.12) 100%);
  border: 1px solid rgba(143, 174, 122, 0.35);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.cf-sidebar-promo:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.cf-sidebar-promo-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
}

.cf-sidebar-promo strong {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--bark);
}

.cf-sidebar-promo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  max-height: 120px;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius);
  margin-top: 4px;
  background: rgba(255, 255, 255, 0.72);
  padding: 6px;
}

/* Hero slider */
.cf-hero-slider {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 400px;
  background: var(--bark);
  box-shadow: var(--shadow);
}

.cf-hero-track {
  position: relative;
  height: 100%;
}

.cf-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s ease, visibility 0.65s ease;
  z-index: 1;
}

.cf-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.cf-hero-slide-bg {
  position: absolute;
  inset: 0;
  background: var(--bark);
}

.cf-hero-slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cf-hero-slide-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(44, 36, 25, 0.72) 0%, rgba(44, 36, 25, 0.35) 45%, rgba(44, 36, 25, 0.08) 100%);
}

.cf-hero-overlay {
  position: relative;
  z-index: 2;
  padding: 56px 48px;
  color: var(--white);
  max-width: 520px;
}

.cf-hero-eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 12px;
}

.cf-hero-overlay h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 22px;
  line-height: 1.15;
}

.cf-btn-shop {
  display: inline-block;
  background: var(--amber);
  color: var(--white);
  padding: 13px 30px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}

.cf-btn-shop:hover {
  background: #b56d2f;
  transform: translateY(-1px);
}

.cf-hero-dots {
  position: absolute;
  bottom: 18px;
  left: 48px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

.cf-hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.cf-hero-dot.is-active,
.cf-hero-dot:hover {
  background: var(--amber);
  border-color: var(--amber);
}

/* ── Features strip ── */
.cf-features {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

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

.cf-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px;
}

.cf-feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: var(--cream);
  border-radius: 50%;
  flex-shrink: 0;
}

.cf-feature strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--bark);
  margin-bottom: 2px;
}

.cf-feature span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ── Sections ── */
.cf-section {
  padding: 48px 0;
}

.cf-section-muted {
  background: var(--cream);
}

.cf-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.cf-section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: var(--bark);
  margin: 0;
  position: relative;
  padding-bottom: 10px;
}

.cf-section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: var(--amber);
  border-radius: 2px;
}

.cf-carousel-nav {
  display: flex;
  gap: 8px;
}

.cf-carousel-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--bark);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.cf-carousel-btn:hover {
  background: var(--mocha);
  border-color: var(--mocha);
  color: var(--white);
}

/* Category carousel */
.cf-cat-carousel {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.cf-cat-carousel::-webkit-scrollbar { display: none; }

.cf-cat-card {
  flex: 0 0 150px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 14px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.cf-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--sage);
}

.cf-cat-card img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  object-position: center;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
  padding: 6px;
}

.cf-cat-card span {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--bark);
}

/* Promo duo */
.cf-promo-duo {
  padding: 0 0 48px;
}

.cf-promo-duo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.cf-promo-banner {
  position: relative;
  min-height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: block;
  color: var(--white);
  transition: transform var(--transition);
  background: linear-gradient(100deg, rgba(44, 36, 25, 0.88) 0%, rgba(107, 91, 62, 0.65) 42%, rgba(143, 174, 122, 0.2) 100%);
}

.cf-promo-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  z-index: 0;
}

.cf-promo-banner-copy {
  position: relative;
  z-index: 1;
  min-height: 220px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 62%;
}

.cf-promo-banner:hover { transform: scale(1.01); }

.cf-promo-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}

.cf-promo-banner h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--white);
  margin: 0 0 14px;
}

.cf-promo-link {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

/* Tabs */
.cf-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 2px solid var(--line);
  margin-bottom: 28px;
}

.cf-tab {
  border: 0;
  background: transparent;
  padding: 12px 24px;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: color var(--transition);
}

.cf-tab::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--mocha);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.cf-tab.is-active,
.cf-tab:hover { color: var(--bark); }

.cf-tab.is-active::after { transform: scaleX(1); }

.cf-tab-panel[hidden] { display: none; }

/* Tabbed product row — compact cards, no stretched images */
.cf-section-tabs .cf-product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.cf-section-tabs .cf-product-card {
  max-width: 100%;
}

.cf-section-tabs .cf-product-img {
  aspect-ratio: unset;
  height: 156px;
  max-height: 156px;
  padding: 10px 12px;
}

.cf-section-tabs .cf-product-img img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 132px;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
}

.cf-section-tabs .cf-product-card:hover .cf-product-img img {
  transform: scale(1.03);
}

.cf-section-tabs .cf-product-body {
  padding: 12px 14px 14px;
  gap: 4px;
}

.cf-section-tabs .cf-product-title {
  font-size: 0.86rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cf-section-tabs .cf-product-variant {
  font-size: 0.72rem;
}

.cf-section-tabs .cf-stars {
  font-size: 0.72rem;
}

.cf-section-tabs .cf-price {
  font-size: 0.92rem;
}

.cf-section-tabs .cf-product-btn {
  padding: 9px 10px;
  font-size: 0.74rem;
  margin-top: 4px;
}

/* ── Deal of the day ── */
.cf-deal-day { background: var(--cream); }

.cf-deal-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.cf-deal-grid::-webkit-scrollbar { display: none; }

.cf-deal-card {
  position: relative;
  flex: 0 0 min(280px, 85vw);
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  transition: box-shadow var(--transition);
}

.cf-deal-card:hover { box-shadow: var(--shadow); }

.cf-deal-img {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--cream);
  padding: 14px;
}

.cf-deal-img img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.35s ease;
}

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

.cf-deal-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cf-deal-body h3 {
  font-size: 0.95rem;
  margin: 0;
}

.cf-deal-body h3 a:hover { color: var(--mocha); }

.cf-countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 4px 0 8px;
}

.cf-countdown span {
  text-align: center;
  padding: 8px 4px;
  background: var(--cream);
  border-radius: var(--radius);
  font-size: 0.62rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cf-countdown strong {
  display: block;
  font-size: 1.1rem;
  color: var(--bark);
  font-weight: 700;
  line-height: 1.2;
}

/* ── Product grid & cards ── */
.cf-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.cf-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cf-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cf-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.cf-product-grid.cf-grid-list {
  grid-template-columns: 1fr;
}

.cf-product-grid.cf-grid-list .cf-product-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
}

.cf-product-grid.cf-grid-list .cf-product-img { aspect-ratio: auto; height: 100%; min-height: 180px; }
.cf-product-grid.cf-grid-list .cf-product-body { justify-content: center; }

.cf-product-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.cf-product-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(143, 174, 122, 0.45);
}

.cf-product-card.is-sold-out { opacity: 0.82; }

.cf-discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--sale);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius);
}

.cf-discount-badge.cf-sold-badge { background: var(--ink-soft); }

.cf-product-img {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--cream);
  padding: 14px;
}

.cf-product-img img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.35s ease;
}

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

.cf-product-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.cf-product-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.35;
}

.cf-product-title a:hover { color: var(--mocha); }

.cf-product-variant {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.cf-stars {
  display: inline-flex;
  gap: 1px;
  font-size: 0.82rem;
  line-height: 1;
}

.cf-stars-sm { font-size: 0.68rem; }

.cf-star { color: var(--line); }
.cf-star.is-filled { color: var(--amber); }

.cf-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.cf-price-was {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: line-through;
}

.cf-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bark);
}

.cf-price.is-sale { color: var(--sale); }

.cf-product-btn {
  display: block;
  margin-top: auto;
  padding: 11px 16px;
  text-align: center;
  background: var(--mocha);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  transition: background var(--transition);
}

.cf-product-btn:hover { background: var(--mocha-dark); }

.cf-product-btn-disabled {
  background: var(--line);
  color: var(--muted);
  cursor: not-allowed;
}

/* ── Testimonials ── */
.cf-testimonials {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.cf-testimonials::-webkit-scrollbar { display: none; }

.cf-testimonial {
  flex: 0 0 min(360px, 88vw);
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.cf-quote-mark {
  position: absolute;
  top: 14px;
  right: 20px;
  font-size: 3rem;
  line-height: 1;
  color: rgba(143, 174, 122, 0.35);
  font-family: var(--font-serif);
}

.cf-testimonial p {
  margin: 0 0 18px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.cf-testimonial footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cf-testimonial footer strong {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--bark);
}

.cf-testimonial footer span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── Newsletter ── */
.cf-newsletter {
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}

.cf-newsletter-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(0, 520px) 1fr;
  align-items: center;
  gap: 24px;
}

.cf-newsletter-visual {
  height: 180px;
  border-radius: var(--radius-lg);
  opacity: 0.85;
}

.cf-newsletter-visual-left {
  background:
    radial-gradient(ellipse 80% 70% at 30% 50%, rgba(143, 174, 122, 0.45) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 70% 60%, rgba(198, 125, 58, 0.2) 0%, transparent 65%),
    linear-gradient(135deg, var(--cream) 0%, rgba(143, 174, 122, 0.15) 100%);
}

.cf-newsletter-visual-right {
  background:
    radial-gradient(ellipse 70% 60% at 60% 40%, rgba(107, 91, 62, 0.25) 0%, transparent 68%),
    radial-gradient(ellipse 50% 45% at 25% 70%, rgba(143, 174, 122, 0.35) 0%, transparent 60%),
    linear-gradient(225deg, var(--cream) 0%, rgba(198, 125, 58, 0.12) 100%);
}

.cf-newsletter-copy {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cf-newsletter-copy h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 0 0 10px;
  color: var(--bark);
}

.cf-newsletter-copy p {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.cf-newsletter-form {
  display: flex;
  gap: 0;
  max-width: 440px;
  margin: 0 auto 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
}

.cf-newsletter-form input {
  flex: 1;
  border: 0;
  padding: 13px 16px;
  outline: none;
  min-width: 0;
}

.cf-newsletter-form button {
  border: 0;
  background: var(--mocha);
  color: var(--white);
  padding: 0 22px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition);
}

.cf-newsletter-form button:hover { background: var(--mocha-dark); }

.cf-newsletter-consent {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--muted);
  max-width: 440px;
  margin: 0 auto;
  text-align: left;
}

.cf-newsletter-consent input { margin-top: 3px; flex-shrink: 0; }

/* ── Footer ── */
.cf-footer {
  background: var(--bark);
  color: rgba(255, 255, 255, 0.82);
  padding-top: 52px;
}

.cf-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 40px;
}

.cf-footer-col h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--white);
  margin: 0 0 16px;
}

.cf-footer-col p,
.cf-footer-col a {
  display: block;
  font-size: 0.86rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.72);
  transition: color var(--transition);
}

.cf-footer-col a:hover { color: var(--amber); }

.cf-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.cf-social span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.cf-social span:hover {
  background: var(--mocha);
  border-color: var(--mocha);
}

.cf-footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  flex-wrap: wrap;
}

.cf-pay-icons { letter-spacing: 0.04em; }

.cf-scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--mocha);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 200;
  transition: background var(--transition), transform var(--transition);
}

.cf-scroll-top:hover {
  background: var(--amber);
  transform: translateY(-3px);
}

.cf-scroll-top[hidden] { display: none; }

/* ── Breadcrumb ── */
.cf-breadcrumb-bar {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.cf-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--muted);
}

.cf-breadcrumb a:hover { color: var(--mocha); }

.cf-breadcrumb a::after {
  content: '›';
  margin-left: 8px;
  color: var(--line);
}

/* ── Collections page ── */
.cf-collections-page { padding: 40px 0 56px; }

.cf-collections-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.cf-collection-card {
  position: relative;
  min-height: 200px;
  padding: 24px 22px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.cf-collection-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--sage);
}

.cf-collection-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--bark);
  position: relative;
  z-index: 2;
}

.cf-collection-view {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mocha);
  margin-top: 6px;
  position: relative;
  z-index: 2;
}

.cf-collection-img {
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 55%;
  max-height: 85%;
  object-fit: contain;
  opacity: 0.9;
  z-index: 1;
  pointer-events: none;
}

/* ── Shop / collection layout ── */
.cf-collection {
  padding: 32px 0 56px;
}

.cf-collection-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.cf-filter-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.cf-filter-heading {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--cream);
}

.cf-filter-form { display: flex; flex-direction: column; gap: 4px; }

.cf-filter-group {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.cf-filter-group:last-of-type { border-bottom: 0; }

.cf-filter-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--bark);
  cursor: pointer;
  list-style: none;
  padding: 4px 0;
}

.cf-filter-title::-webkit-details-marker { display: none; }

.cf-filter-body {
  padding: 10px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cf-filter-scroll {
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.cf-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--ink-soft);
  cursor: pointer;
}

.cf-check input { accent-color: var(--mocha); }

.cf-price-range {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}

.cf-price-range input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}

.cf-price-sep {
  font-size: 0.82rem;
  color: var(--muted);
}

.cf-filter-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.cf-filter-apply {
  border: 0;
  background: var(--mocha);
  color: var(--white);
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
}

.cf-filter-apply:hover { background: var(--mocha-dark); }

.cf-filter-clear {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mocha);
}

.cf-filter-clear:hover { color: var(--amber); }

.cf-collection-main { min-width: 0; }

.cf-collection-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.cf-collection-count {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.cf-collection-count strong {
  font-family: var(--font-serif);
  color: var(--bark);
}

.cf-toolbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cf-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.cf-sort select {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 12px;
  background: var(--white);
  cursor: pointer;
}

.cf-view-switcher {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.cf-view-btn {
  border: 0;
  background: var(--white);
  color: var(--muted);
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background var(--transition), color var(--transition);
}

.cf-view-btn + .cf-view-btn { border-left: 1px solid var(--line); }

.cf-view-btn.is-active,
.cf-view-btn:hover {
  background: var(--mocha);
  color: var(--white);
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  background: var(--cream);
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
}

.empty-state p { margin: 0 0 8px; font-family: var(--font-serif); font-size: 1.1rem; }
.empty-state .sub { color: var(--muted); font-size: 0.9rem; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .cf-mega-inner { grid-template-columns: 1fr; }
  .cf-mega-links { grid-template-columns: repeat(2, 1fr); }
  .cf-mega-featured {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 20px;
  }
  .cf-grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cf-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }

  .cf-header-main {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding: 12px 0;
  }

  .cf-search { display: none; }

  .cf-icon-label { display: none; }
  .cf-icon-link:not(.cf-icon-cart) { min-width: 40px; }

  .cf-menu-btn { display: flex; }

  .cf-categories-btn { display: none; }

  /* ── Mobile drawer ── */
  .cf-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: min(360px, 92vw);
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    background: var(--cream);
    z-index: 320;
    transform: translateX(-105%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 8px 0 40px rgba(44, 36, 25, 0.18);
    padding-bottom: 28px;
    -webkit-overflow-scrolling: touch;
  }

  .cf-nav.is-open { transform: translateX(0); }

  .cf-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 18px;
    background: linear-gradient(135deg, var(--mocha) 0%, var(--mocha-dark) 100%);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 2;
  }

  .cf-drawer-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  .cf-drawer-brand strong {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.2;
  }

  .cf-drawer-brand span {
    display: block;
    font-size: 0.72rem;
    opacity: 0.8;
    letter-spacing: 0.04em;
  }

  .cf-drawer-close {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--transition);
  }

  .cf-drawer-close:hover {
    background: rgba(255, 255, 255, 0.2);
  }

  .cf-drawer-search {
    display: block;
    padding: 14px 16px 0;
  }

  .cf-drawer-search form {
    display: flex;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
  }

  .cf-drawer-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 12px 14px;
    font-size: 0.9rem;
    background: transparent;
  }

  .cf-drawer-search button {
    border: 0;
    padding: 0 16px;
    background: var(--sage);
    color: var(--white);
    font-size: 1.1rem;
    cursor: pointer;
  }

  .cf-drawer-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 14px 16px 6px;
  }

  .cf-drawer-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    border-radius: var(--radius-md);
    background: var(--white);
    border: 1px solid var(--line);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--bark);
    text-align: center;
    position: relative;
    transition: border-color var(--transition), box-shadow var(--transition);
  }

  .cf-drawer-action:hover {
    border-color: var(--sage);
    box-shadow: var(--shadow-sm);
  }

  .cf-drawer-action-icon {
    font-size: 1.2rem;
    line-height: 1;
  }

  .cf-drawer-action-badge {
    position: absolute;
    top: 6px;
    right: 8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--amber);
    color: var(--white);
    font-size: 0.62rem;
    font-weight: 800;
    font-style: normal;
    display: grid;
    place-items: center;
  }

  .cf-drawer-section-label {
    display: block;
    margin: 12px 16px 8px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .cf-drawer-categories {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 12px 8px;
    padding: 14px 14px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--mocha) 0%, var(--mocha-dark) 100%);
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 6px 16px rgba(107, 91, 62, 0.25);
  }

  .cf-drawer-categories .cf-drawer-link-arrow {
    margin-left: auto;
    opacity: 0.85;
  }

  .cf-drawer-link-icon,
  .cf-drawer-link-arrow,
  .cf-drawer-link-badges {
    display: inline-flex;
  }

  .cf-drawer-link-text {
    display: inline;
    flex: 1;
    min-width: 0;
    font-weight: 600;
    font-size: 0.92rem;
  }

  .cf-nav-link,
  .cf-nav-mega-trigger,
  .cf-nav-simple-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    width: calc(100% - 24px);
    margin: 0 12px 6px;
    padding: 14px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    border-left: 4px solid transparent;
    background: var(--white);
    color: var(--bark);
    text-align: left;
    box-shadow: 0 1px 4px rgba(44, 36, 25, 0.04);
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  }

  .cf-drawer-link-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius);
    background: var(--cream);
    display: grid;
    place-items: center;
    font-size: 1rem;
    flex-shrink: 0;
  }

  .cf-drawer-link-badges {
    gap: 4px;
    flex-shrink: 0;
  }

  .cf-drawer-link-arrow {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--muted);
    flex-shrink: 0;
  }

  .cf-nav-link:hover,
  .cf-nav-mega-trigger:hover,
  .cf-nav-simple-trigger:hover,
  .cf-nav-link.is-active,
  .cf-nav-mega-trigger.is-active,
  .cf-nav-simple-trigger.is-active {
    background: var(--white);
    border-left-color: var(--amber);
    border-bottom-color: var(--line);
    color: var(--mocha);
    box-shadow: var(--shadow-sm);
  }

  .cf-nav-dropdown {
    flex-direction: column;
    width: 100%;
  }

  .cf-nav-dropdown.is-open > .cf-drawer-link,
  .cf-nav-dropdown-simple.is-open > .cf-drawer-link {
    border-left-color: var(--sage);
    background: var(--white);
  }

  .cf-nav-dropdown-simple:hover .cf-simple-menu {
    display: none !important;
  }

  .cf-nav-dropdown-simple .cf-simple-menu {
    position: static;
    width: auto;
    margin: 0 12px 8px 24px;
    border: 0;
    border-radius: var(--radius-md);
    box-shadow: none;
    padding: 6px 0;
    background: var(--white);
    border-left: 3px solid var(--sage);
  }

  .cf-nav-dropdown-simple.is-open .cf-simple-menu {
    display: block !important;
  }

  .cf-simple-menu-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--cream);
  }

  .cf-simple-menu-list a::before {
    content: "›";
    color: var(--sage);
    font-weight: 700;
  }

  .cf-simple-menu-list a:hover {
    color: var(--mocha);
    background: var(--cream);
  }

  .cf-mega-menu {
    position: static;
    box-shadow: none;
    border-top: 0;
    background: transparent;
    margin: 0 12px 10px;
  }

  .cf-mega-inner {
    padding: 12px;
    gap: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--amber);
  }

  .cf-mega-links { grid-template-columns: 1fr; }

  .cf-mega-title {
    font-size: 0.78rem;
    margin-bottom: 6px;
  }

  .cf-mega-list a {
    padding: 8px 0;
    font-size: 0.84rem;
  }

  .cf-drawer-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 12px 0;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
  }

  .cf-drawer-footer a {
    flex: 1 1 calc(50% - 4px);
    min-width: 120px;
    padding: 11px 12px;
    border-radius: var(--radius-md);
    background: var(--white);
    border: 1px solid var(--line);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--mocha);
    text-align: center;
  }

  .cf-drawer-footer a:hover {
    border-color: var(--sage);
    background: var(--cream);
  }

  .cf-hero-layout-inner {
    grid-template-columns: 1fr;
  }

  .cf-sidebar { order: 2; }
  .cf-hero-slider { order: 1; height: 300px; }
  .cf-hero-track { height: 100%; }
  .cf-hero-overlay { padding: 36px 24px; }
  .cf-hero-dots { left: 24px; }

  .cf-features-grid { grid-template-columns: 1fr; gap: 12px; }
  .cf-promo-duo-grid { grid-template-columns: 1fr; }
  .cf-promo-banner-copy { max-width: 100%; min-height: 200px; padding: 24px 20px; }
  .cf-promo-banner-img { object-position: center; opacity: 0.55; }
  .cf-grid-4,
  .cf-grid-3,
  .cf-section-tabs .cf-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cf-collections-grid { grid-template-columns: repeat(2, 1fr); }
  .cf-collection-layout { grid-template-columns: 1fr; }
  .cf-filter-panel { position: static; }
  .cf-newsletter-inner { grid-template-columns: 1fr; }
  .cf-newsletter-visual { display: none; }
}

@media (max-width: 600px) {
  .container { width: min(1280px, calc(100% - 20px)); }

  .cf-announce-inner { font-size: 0.7rem; padding: 8px 0; }
  .cf-utility { display: none; }
  .cf-utility-inner { justify-content: center; text-align: center; }
  .cf-utility-phone { width: 100%; }
  .cf-brand img { width: 44px; height: 44px; }
  .cf-brand-copy strong { font-size: 0.95rem; }
  .cf-brand-copy small { font-size: 0.68rem; }
  .cf-header-icons { gap: 4px; }
  .cf-menu-btn { width: 38px; height: 38px; }
  .cf-section { padding: 32px 0; }
  .cf-footer-grid { grid-template-columns: 1fr; }
  .cf-footer-base { justify-content: center; text-align: center; }
  .cf-collections-grid { grid-template-columns: 1fr; }
  .cf-newsletter-form { flex-direction: column; }
  .cf-newsletter-form button { padding: 12px; width: 100%; }
  .cf-product-grid.cf-grid-list .cf-product-card { grid-template-columns: 1fr; }
  .cf-grid-4,
  .cf-grid-3,
  .cf-section-tabs .cf-product-grid { grid-template-columns: 1fr; }
  .cf-cart-dropdown {
    position: fixed;
    left: 10px;
    right: 10px;
    top: auto;
    bottom: 12px;
    width: auto;
    max-height: 70vh;
  }
}
