:root {
  --bg: #f5f2ed;
  --surface: #ffffff;
  --surface2: #edeae4;
  --accent: #2d6a4f;
  --accent-light: #52b788;
  --accent-warm: #d4a847;
  --text: #1a1a18;
  --text-muted: #6b6b65;
  --border: #ddd9d2;
  --red: #c0392b;
  --shadow: 0 2px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
  --radius: 16px;
  --radius-sm: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ──── HEADER ──── */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.logo-text {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.logo-subtext {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.logo-text span { color: var(--accent); }

.search-bar {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 10px 18px 10px 44px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color .2s;
}

.search-bar input:focus { border-color: var(--accent-light); }

.search-bar .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
  pointer-events: none;
}

.header-actions { display: flex; align-items: center; gap: 12px; }

.cart-btn {
  position: relative;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background .2s, transform .15s;
}

.cart-btn:hover { background: #1d5c3f; transform: translateY(-1px); }

.cart-badge {
  background: var(--accent-warm);
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}

.cart-badge.bump { transform: scale(1.4); }

/* ──── HERO ──── */
.hero {
  background: linear-gradient(135deg, var(--accent) 0%, #1d5c3f 60%, #0f3d29 100%);
  color: #fff;
  padding: 64px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(82,183,136,.25) 0%, transparent 60%);
}

.hero-content { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }

.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero h1 span { color: var(--accent-warm); }

.hero p {
  font-size: 16px;
  opacity: .85;
  line-height: 1.6;
  margin-bottom: 28px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--accent);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.3); }

/* ──── FILTERS ──── */
.filters-wrap {
  max-width: 1280px;
  margin: 32px auto 0;
  padding: 0 24px;
}

.filters-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}

.filter-btn:hover { border-color: var(--accent-light); color: var(--accent); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ──── PRODUCTS GRID ──── */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 600;
}

.section-count {
  font-size: 13px;
  color: var(--text-muted);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* ──── PRODUCT CARD ──── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
  animation: fadeUp .4s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  background: var(--surface2);
  position: relative;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent-warm);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-category {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: .07em;
}

.card-name {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

.card-stars { color: var(--accent-warm); font-size: 13px; letter-spacing: 1px; }

.card-footer {
  padding: 0 18px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-price {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}

.card-price-old {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.add-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 9px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}

.add-btn:hover { background: #1d5c3f; transform: scale(1.04); }
.add-btn:active { transform: scale(.97); }

/* ──── CART SIDEBAR ──── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  backdrop-filter: blur(2px);
}

.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-sidebar {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 420px;
  max-width: 95vw;
  background: var(--surface);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  box-shadow: -8px 0 40px rgba(0,0,0,.15);
}

.cart-sidebar.open { transform: translateX(0); }

.cart-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-title {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: none;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all .2s;
}

.close-btn:hover { background: var(--surface2); color: var(--text); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-muted);
  text-align: center;
  padding: 40px;
}

.cart-empty .empty-icon { font-size: 64px; opacity: .4; }
.cart-empty p { font-size: 15px; }

.cart-item {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  animation: fadeUp .25s ease;
}

.cart-item-emoji {
  font-size: 36px;
  min-width: 48px;
  text-align: center;
  line-height: 1;
}

.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.cart-item-price { color: var(--accent); font-weight: 700; font-size: 15px; }

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  color: var(--text);
  font-weight: 700;
  line-height: 1;
}

.qty-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.qty-value {
  min-width: 28px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}

.remove-item {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 18px;
  padding: 4px;
  border-radius: 6px;
  transition: color .2s, background .2s;
  align-self: center;
}

.remove-item:hover { color: var(--red); background: #fdecea; }

.cart-footer {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.cart-summary-row { display: flex; justify-content: space-between; }

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.cart-total-label { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 600; }

.cart-total-value {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
}

.checkout-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .2s, transform .15s;
}

.checkout-btn:hover { background: #1d5c3f; transform: translateY(-1px); }

.clear-btn {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all .2s;
}

.clear-btn:hover { border-color: var(--red); color: var(--red); }

/* ──── TOAST ──── */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--text);
  color: #fff;
  padding: 12px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastIn .35s cubic-bezier(.34,1.56,.64,1);
  box-shadow: var(--shadow-lg);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px) scale(.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.toast.out { animation: toastOut .3s ease forwards; }

@keyframes toastOut {
  to { opacity: 0; transform: translateY(10px) scale(.95); }
}

/* ──── CHECKOUT MODAL ──── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  backdrop-filter: blur(4px);
}

.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  transform: scale(.9);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}

.modal-overlay.open .modal { transform: scale(1); }

.modal-icon { font-size: 64px; margin-bottom: 16px; }

.modal h2 {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  margin-bottom: 10px;
}

.modal p { color: var(--text-muted); font-size: 15px; line-height: 1.6; margin-bottom: 24px; }

.modal-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}

.modal-btn:hover { background: #1d5c3f; }

/* ──── FOOTER ──── */
footer {
  background: var(--text);
  color: rgba(255,255,255,.6);
  text-align: center;
  padding: 32px 24px;
  font-size: 13px;
}

footer strong { color: #fff; font-family: 'Fraunces', serif; }

/* ──── IMAGE MODAL ──── */
.image-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

.image-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.image-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  animation: fadeInImage 0.3s ease;
}

@keyframes fadeInImage {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.image-modal-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.image-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* ──── RESPONSIVE ──── */
@media (max-width: 640px) {
  .search-bar { display: none; }
  .hero { padding: 48px 20px; }
  .section-header { flex-direction: column; gap: 4px; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .card-img { height: 140px; font-size: 52px; }
  .card-body { padding: 14px; }
  .card-name { font-size: 14px; }
  .card-footer { padding: 0 14px 14px; }
  .card-price { font-size: 18px; }
  .add-btn { padding: 8px 14px; font-size: 12px; }
}


.company-info {
  background: #ffffff;
  padding: 70px 20px;
  border-top: 1px solid #eaeaea;
  margin-top: 50px;
}

.company-container {
  max-width: 1200px;
  margin: 0 auto;
}

.company-block {
  text-align: center;
  margin-bottom: 50px;
}

.company-block h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #1f2937;
}

.company-block p {
  max-width: 800px;
  margin: 0 auto 12px;
  color: #6b7280;
  line-height: 1.7;
  font-size: 1rem;
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.info-card {
  background: #f9fafb;
  padding: 28px;
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.info-card h3 {
  margin-bottom: 18px;
  color: #111827;
}

.info-card ul,
.info-card ol {
  padding-left: 20px;
  color: #4b5563;
  line-height: 1.8;
}

.company-footer-note {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
}

.company-footer-note p {
  margin: 8px 0;
}

.top-info-bar {
  background: #111827;
  color: white;
  text-align: center;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.top-info-bar:hover {
  background: #1f2937;
}

.info-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
  box-sizing: border-box;
}

.info-popup-box {
  background: white;
  width: 100%;
  max-width: 560px;
  border-radius: 20px;
  padding: 30px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
}

.info-popup-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: none;
  background: none;
  font-size: 22px;
  cursor: pointer;
}

.info-popup-box h2 {
  text-align: center;
  margin-bottom: 24px;
  font-size: 1.6rem;
}

.info-section {
  background: #f9fafb;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
}

.info-section h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.info-section ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .top-info-bar {
    font-size: 13px;
    padding: 10px 12px;
  }

  .info-popup-box {
    padding: 22px;
    border-radius: 16px;
  }
}