/* ===========================
   NAMINAM SWEDEN AB – Main CSS
   =========================== */

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

:root {
  --green-900: #1A3409;
  --green-800: #2D5016;
  --green-700: #3B6B1E;
  --green-600: #4A8526;
  --green-100: #EBF5E1;
  --green-50:  #F4FAF0;

  --amber:     #F4A230;
  --amber-light: #FDE8C3;

  --bg:        #FAFAF7;
  --surface:   #FFFFFF;
  --border:    #E5E3DC;
  --border-dark: #C9C7BE;

  --text:      #1A1A17;
  --text-muted: #6B6964;
  --text-light: #9D9A94;

  --font: 'Inter', system-ui, -apple-system, sans-serif;

  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:    0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.08);
}

/* ─── THEMES ─── */
body.theme-oriental {
  --green-900: #5D1A1A;
  --green-800: #8B2500;
  --green-700: #A83200;
  --green-600: #C84300;
  --green-100: #FAE8DC;
  --green-50:  #FDF4EF;
  --amber:     #C9A84C;
  --amber-light: #F8EDD0;
  --bg:        #FDF6EF;
  --surface:   #FFFAF5;
}

body.theme-architecture {
  --green-900: #1A202C;
  --green-800: #2D3748;
  --green-700: #4A5568;
  --green-600: #718096;
  --green-100: #EDF2F7;
  --green-50:  #F7FAFC;
  --amber:     #3182CE;
  --amber-light: #BEE3F8;
  --bg:        #F7FAFC;
  --surface:   #FFFFFF;
  --border:    #E2E8F0;
}

body.theme-natural {
  --green-900: #3B2314;
  --green-800: #6B4226;
  --green-700: #7D5235;
  --green-600: #966644;
  --green-100: #F2E6D9;
  --green-50:  #FAF4EE;
  --amber:     #D97706;
  --amber-light: #FDE68A;
  --bg:        #FAF7F2;
  --surface:   #FFFEFB;
}

body.theme-dark {
  --green-900: #A7F3D0;
  --green-800: #6EE7B7;
  --green-700: #34D399;
  --green-600: #10B981;
  --green-100: #064E3B;
  --green-50:  #022C22;
  --amber:     #FBBF24;
  --amber-light: #78350F;
  --bg:        #111827;
  --surface:   #1F2937;
  --border:    #374151;
  --border-dark: #4B5563;
  --text:      #F9FAFB;
  --text-muted: #D1D5DB;
  --text-light: #9CA3AF;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ─── TYPOGRAPHY ─── */
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 600; }
p  { color: var(--text-muted); }

/* ─── LAYOUT ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--sm { padding: 64px 0; }

/* ─── BADGE ─── */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.badge--green { background: var(--green-100); color: var(--green-800); }
.badge--amber { background: var(--amber-light); color: #92610A; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: .9375rem;
  font-weight: 600;
  transition: all .18s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--green-800);
  color: #fff;
  border-color: var(--green-800);
}
.btn--primary:hover { background: var(--green-700); border-color: var(--green-700); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--secondary {
  background: transparent;
  color: var(--green-800);
  border-color: var(--green-800);
}
.btn--secondary:hover { background: var(--green-50); }
.btn--ghost { background: transparent; color: var(--text-muted); border-color: var(--border); }
.btn--ghost:hover { background: var(--border); color: var(--text); }
.btn--amber { background: var(--amber); color: #fff; border-color: var(--amber); }
.btn--amber:hover { background: #E8921E; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--sm { padding: 8px 16px; font-size: .875rem; }
.btn--block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ─── HEADER ─── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,247,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.header__logo img {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}
.header__logo-text {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--green-800);
  line-height: 1.2;
}
.header__logo-sub {
  font-size: .7rem;
  font-weight: 400;
  color: var(--text-muted);
  display: block;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .15s, background .15s;
}
.nav__link:hover, .nav__link.active { color: var(--green-800); background: var(--green-50); }
.header__actions { display: flex; align-items: center; gap: 8px; }
.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--green-800);
  color: #fff;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  transition: background .18s, transform .18s;
  flex-shrink: 0;
}
.cart-btn:hover { background: var(--green-700); transform: translateY(-1px); }
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--amber);
  color: #fff;
  border-radius: 100px;
  font-size: .65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  display: none;
}
.cart-badge.visible { display: flex; }
.menu-toggle { display: none; padding: 8px; border-radius: 8px; color: var(--text); flex-shrink: 0; }
.menu-toggle:hover { background: var(--border); }

/* ─── HERO ─── */
.hero {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 60%, var(--green-700) 100%);
  color: #fff;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
}
.hero > .container { width: 100%; }
.hero > .ticker-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="60" fill="rgba(255,255,255,.03)"/><circle cx="10" cy="80" r="40" fill="rgba(255,255,255,.02)"/></svg>') center/cover;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__eyebrow {
  font-size: .8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--amber);
  margin-bottom: 16px;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero__lead {
  font-size: 1.125rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 36px;
  max-width: 480px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero__stat-value { font-size: 1.75rem; font-weight: 700; color: #fff; }
.hero__stat-label { font-size: .8125rem; color: rgba(255,255,255,.6); margin-top: 2px; }
.hero__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}
.hero__image img { width: 100%; height: 100%; object-fit: cover; }

/* ─── SECTION HEADER ─── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .badge { margin-bottom: 16px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { max-width: 540px; margin: 0 auto; font-size: 1.0625rem; }

/* ─── PRODUCTS ─── */
.products { background: var(--bg); }

.products__controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

/* Search box */
.search-box {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
  width: 100%;
}
.search-box__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-light);
  pointer-events: none;
}
.search-box__input {
  width: 100%;
  padding: 11px 42px 11px 42px;
  border: 2px solid var(--border);
  border-radius: 100px;
  font-family: var(--font);
  font-size: .9375rem;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.search-box__input:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(74,133,38,.12);
}
.search-box__input::placeholder { color: var(--text-light); }
.search-box__input::-webkit-search-cancel-button { display: none; }
.search-box__clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background .15s;
}
.search-box__clear:hover { background: var(--border-dark); }
.search-box__clear svg { width: 12px; height: 12px; }

.search-count {
  text-align: center;
  font-size: .9rem;
  color: var(--text-muted);
  margin-top: -24px;
  margin-bottom: 24px;
}

/* Empty state for no search results */
.products-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.products-empty svg {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  color: var(--text-light);
}
.products-empty p { margin-bottom: 16px; }

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0;
}
.filter-tab {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: .875rem;
  font-weight: 600;
  border: 2px solid var(--border);
  color: var(--text-muted);
  background: var(--surface);
  transition: all .18s;
  cursor: pointer;
}
.filter-tab:hover { border-color: var(--green-600); color: var(--green-700); }
.filter-tab.active { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card__img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--green-50);
  position: relative;
}
.product-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-card__img img { transform: scale(1.05); }
.product-card__category-tag {
  position: absolute;
  top: 12px;
  left: 12px;
}
.product-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}
.product-card__desc {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.product-card__price { font-size: 1.125rem; font-weight: 700; color: var(--green-800); }
.product-card__price span { font-size: .8125rem; font-weight: 400; color: var(--text-muted); }
.add-to-cart-btn {
  padding: 8px 16px;
  background: var(--green-800);
  color: #fff;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background .15s, transform .15s;
  flex-shrink: 0;
}
.add-to-cart-btn:hover { background: var(--green-700); transform: translateY(-1px); }
.add-to-cart-btn svg { width: 16px; height: 16px; }
.product-card__min { font-size: .75rem; color: var(--text-light); margin-top: 4px; }

/* ─── ABOUT ─── */
.about { background: var(--green-900); color: #fff; }
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about .badge--green { background: rgba(75,133,38,.3); color: #A8D18C; }
.about h2 { color: #fff; margin: 16px 0 20px; }
.about p { color: rgba(255,255,255,.7); font-size: 1.05rem; margin-bottom: 16px; }
.about__features { list-style: none; margin: 28px 0 36px; display: flex; flex-direction: column; gap: 12px; }
.about__features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255,255,255,.85);
  font-size: .9375rem;
}
.about__features li::before {
  content: '✓';
  width: 22px;
  height: 22px;
  background: var(--green-700);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
  color: #fff;
}

/* ─── CONTACT ─── */
.contact { background: var(--surface); }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.contact__info h2 { margin: 16px 0 16px; }
.contact__info p { margin-bottom: 32px; }
.contact__details { display: flex; flex-direction: column; gap: 20px; }
.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact__detail-icon {
  width: 44px;
  height: 44px;
  background: var(--green-50);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green-800);
}
.contact__detail-icon svg { width: 20px; height: 20px; }
.contact__detail-label { font-size: .75rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.contact__detail-value { font-weight: 500; color: var(--text); }
.contact__detail-value a { color: var(--green-800); }
.contact__detail-value a:hover { text-decoration: underline; }
.contact-form { background: var(--bg); border-radius: var(--radius-lg); padding: 36px; border: 1px solid var(--border); }
.contact-form h3 { margin-bottom: 24px; }

/* ─── FORMS ─── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .875rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group label .req { color: #E53935; margin-left: 2px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: .9375rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(59,107,30,.12);
}
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
  border-color: #E53935;
  box-shadow: 0 0 0 3px rgba(229,57,53,.1);
}
.form-error { font-size: .8125rem; color: #E53935; margin-top: 4px; display: none; }
.form-error.visible { display: block; }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ─── FOOTER ─── */
.footer { background: var(--green-900); color: rgba(255,255,255,.7); padding: 64px 0 32px; }
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 32px;
}
.footer__brand img { width: 48px; border-radius: 8px; margin-bottom: 16px; }
.footer__brand-name { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer__brand p { font-size: .875rem; line-height: 1.6; max-width: 260px; }
.footer__col h4 { color: #fff; margin-bottom: 16px; font-size: .875rem; text-transform: uppercase; letter-spacing: .06em; }
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer__links li a { font-size: .875rem; transition: color .15s; }
.footer__links li a:hover { color: #fff; }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__copy { font-size: .8125rem; }

/* ─── PRODUCT MODAL ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(.97);
  transition: transform .25s;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 1.25rem;
  transition: background .15s, color .15s;
  border: none;
  cursor: pointer;
  z-index: 10;
}
.modal__close:hover { background: var(--border); color: var(--text); }
.product-modal__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.product-modal__img {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
.product-modal__img img { width: 100%; height: 100%; object-fit: cover; }
.product-modal__content {
  padding: 36px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-modal__category { margin-bottom: 12px; }
.product-modal__name { font-size: 1.375rem; font-weight: 700; margin-bottom: 12px; }
.product-modal__price-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 20px; }
.product-modal__price { font-size: 1.75rem; font-weight: 700; color: var(--green-800); }
.product-modal__unit { font-size: .9rem; color: var(--text-muted); }
.product-modal__desc { font-size: .9375rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 24px; }
.product-modal__specs { margin-bottom: 24px; }
.product-modal__spec {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: .875rem;
}
.product-modal__spec:last-child { border-bottom: none; }
.product-modal__spec-label { color: var(--text-muted); }
.product-modal__spec-value { font-weight: 600; color: var(--text); }
.qty-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.qty-input-row label { font-size: .875rem; font-weight: 600; white-space: nowrap; }
.qty-control {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  flex: 1;
}
.qty-control button {
  width: 36px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  background: var(--bg);
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.qty-control button:hover { background: var(--border); color: var(--text); }
.qty-control input {
  border: none;
  width: 60px;
  text-align: center;
  font-size: .9375rem;
  font-weight: 600;
  padding: 0;
  background: var(--surface);
  color: var(--text);
  -moz-appearance: textfield;
}
.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-unit { font-size: .875rem; color: var(--text-muted); font-weight: 500; }

/* ─── CART DRAWER ─── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(480px, 100vw);
  background: var(--surface);
  z-index: 301;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-lg);
}
.cart-overlay.open .cart-drawer { transform: translateX(0); }
.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-drawer__header h3 { font-size: 1.125rem; }
.cart-drawer__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: background .15s;
  cursor: pointer;
}
.cart-drawer__close:hover { background: var(--border); color: var(--text); }
.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--text-muted);
  gap: 12px;
}
.cart-empty svg { width: 56px; height: 56px; color: var(--border-dark); }
.cart-empty p { font-size: .9375rem; }
.cart-items { display: flex; flex-direction: column; gap: 16px; }
.cart-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item__img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--green-50);
}
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-size: .9375rem; font-weight: 600; color: var(--text); margin-bottom: 2px; line-height: 1.3; }
.cart-item__price { font-size: .875rem; color: var(--text-muted); margin-bottom: 10px; }
.cart-item__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cart-item__qty-row {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.cart-item__qty-row button {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text-muted);
  font-size: .9rem;
  transition: background .15s;
}
.cart-item__qty-row button:hover { background: var(--border); color: var(--text); }
.cart-item__qty-row span { width: 40px; text-align: center; font-size: .875rem; font-weight: 600; }
.cart-item__unit { font-size: .75rem; color: var(--text-light); }
.cart-item__total { font-size: .9375rem; font-weight: 700; color: var(--green-800); }
.cart-item__remove {
  color: var(--text-light);
  font-size: .8125rem;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0;
  transition: color .15s;
  cursor: pointer;
}
.cart-item__remove:hover { color: #E53935; }
.cart-drawer__footer {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: .9375rem;
}
.cart-summary-row.total {
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text);
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.cart-summary-row span:first-child { color: var(--text-muted); }

/* ─── CHECKOUT MODAL ─── */
.checkout-modal { max-width: 560px; }
.checkout-modal .modal__close { position: sticky; top: 0; float: right; margin: 16px 16px -52px auto; }
.checkout-modal__inner { padding: 36px; }
.checkout-modal__inner h2 { margin-bottom: 8px; }
.checkout-modal__inner > p { margin-bottom: 28px; }
.checkout-items-summary {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 24px;
}
.checkout-items-summary h4 { margin-bottom: 12px; font-size: .875rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-light); }
.checkout-item-line {
  display: flex;
  justify-content: space-between;
  font-size: .875rem;
  padding: 4px 0;
  color: var(--text-muted);
}
.checkout-item-line span:last-child { font-weight: 600; color: var(--text); }
.checkout-total-line {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  padding-top: 10px;
  margin-top: 6px;
  border-top: 1px solid var(--border);
  font-size: 1rem;
}
.form-type-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.type-option {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.type-option input { display: none; }
.type-option:has(input:checked) {
  border-color: var(--green-700);
  background: var(--green-50);
}
.type-option__label { font-size: .9375rem; font-weight: 600; }
.type-option__desc { font-size: .8125rem; color: var(--text-muted); margin-top: 2px; }

/* ─── SUCCESS STATE ─── */
.checkout-success { text-align: center; padding: 48px 36px; }
.checkout-success__icon { font-size: 3rem; margin-bottom: 16px; }
.checkout-success h2 { margin-bottom: 12px; }
.checkout-success p { margin-bottom: 24px; }

/* ─── TOAST ─── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--green-900);
  color: #fff;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: .9375rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 500;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ─── MOBILE MENU ─── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  top: 72px;
  background: var(--surface);
  z-index: 99;
  padding: 24px;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav__link { font-size: 1.125rem; padding: 14px 16px; border-radius: 10px; width: 100%; }
.mobile-nav__cart-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  margin-top: 8px;
  background: var(--green-800);
  color: #fff;
  border-radius: 10px;
  font-size: 1.0625rem;
  font-weight: 600;
  transition: background .15s;
}
.mobile-nav__cart-btn:hover { background: var(--green-700); }

/* ─── UTILS ─── */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__image { max-width: 500px; margin: 0 auto; }
  .about__inner { grid-template-columns: 1fr; gap: 40px; }
  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .product-modal__inner { grid-template-columns: 1fr; }
  .product-modal__img { border-radius: var(--radius-lg) var(--radius-lg) 0 0; aspect-ratio: 16/9; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav { display: none; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; }
  .products__grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .footer__inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero__stats { gap: 20px; }
  .hero__stat-value { font-size: 1.375rem; }
  /* Cart becomes icon-only on mobile */
  .cart-btn { padding: 10px; gap: 0; }
  .cart-btn-label { display: none; }
}

@media (max-width: 480px) {
  .products__grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .checkout-modal__inner { padding: 24px; }
  .form-type-row { grid-template-columns: 1fr; }
  .cart-drawer { width: 100vw; }
}

/* ─── PRODUCT TICKER ─── */
.ticker-wrap {
  background: var(--green-800);
  overflow: hidden;
  padding: 0;
  position: relative;
  min-height: 44px;
}
.ticker-wrap::before,
.ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.ticker-wrap::before { left: 0; background: linear-gradient(to right, var(--green-800), transparent); }
.ticker-wrap::after  { right: 0; background: linear-gradient(to left,  var(--green-800), transparent); }

.ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 12px 0;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
  width: max-content;
}
.ticker-wrap:hover .ticker-track { animation-play-state: paused; }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker__item {
  display: inline-block;
  padding: 0 28px;
  font-size: .875rem;
  color: rgba(255,255,255,.92);
  font-weight: 500;
}
.ticker__item strong { color: #fff; font-weight: 700; }
.ticker__sep {
  color: rgba(255,255,255,.35);
  font-size: 1rem;
  padding: 0 4px;
}

/* ─── PRODUCTS CTA STRIP ─── */
.products-cta-strip {
  background: var(--bg);
  border-top: 3px solid var(--amber);
  padding: 18px 0;
}
.products-cta-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.products-cta-strip__label {
  font-size: .9375rem;
  color: var(--text-muted);
  font-weight: 500;
}
.products-cta-strip__btn {
  white-space: nowrap;
  padding: 10px 24px;
  font-size: .9375rem;
}
@media (max-width: 480px) {
  .products-cta-strip .container { flex-direction: column; gap: 10px; text-align: center; }
  .products-cta-strip__btn { width: 100%; justify-content: center; }
}

/* ─── OFFERS SLIDESHOW ─── */
.offers-section {
  padding: 64px 0 48px;
  background: var(--bg);
}
.offers-slideshow {
  position: relative;
  margin-top: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
}
.offers-track {
  display: flex;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}
.offer-slide {
  min-width: 100%;
  display: flex;
  min-height: 420px;
}
.offer-slide__img {
  flex: 0 0 42%;
  overflow: hidden;
  background: var(--amber-light);
}
.offer-slide__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.offer-slide__img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
}
.offer-slide__body {
  flex: 1;
  padding: 52px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.offer-slide__badge {
  display: inline-block;
  background: var(--amber);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: .06em;
  text-transform: uppercase;
  align-self: flex-start;
}
.offer-slide__title {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin: 0;
}
.offer-slide__desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 480px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}
.offer-slide__pricing { display: flex; align-items: baseline; gap: 10px; }
.offer-slide__price { font-size: 2rem; font-weight: 800; color: var(--green-800); }
.offer-slide__price-unit { font-size: .9rem; color: var(--text-muted); }
.offer-slide__original { font-size: .9375rem; color: var(--text-light); text-decoration: line-through; }
.offer-slide__valid { font-size: .8125rem; color: var(--text-light); margin-top: -4px; }
.offer-see-product { justify-content: center; }
.offers-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.92);
  border: none;
  border-radius: 50%;
  width: 46px; height: 46px;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
  color: var(--green-800);
  transition: background .15s, transform .15s;
  z-index: 2;
  padding: 0;
}
.offers-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.offers-arrow--prev { left: 14px; }
.offers-arrow--next { right: 14px; }
.offers-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.offers-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.2);
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}
.offers-dot--active {
  background: var(--amber);
  transform: scale(1.35);
}
@media (max-width: 640px) {
  .offer-slide { flex-direction: column; min-height: auto; }
  .offer-slide__img { flex: 0 0 210px; }
  .offer-slide__body { padding: 24px 20px 52px; gap: 10px; }
  .offer-slide__title { font-size: 1.375rem; }
  .offer-slide__price { font-size: 1.625rem; }
  .offer-slide__desc { -webkit-line-clamp: 3; }
  .offers-arrow { display: none; }
}
