/* ═══════════════════════════════════════
   Гастро Консьерж — Home Preview v4
   ═══════════════════════════════════════ */

:root {
  --g: #2D6A4F;
  --gd: #1B4332;
  --gdd: #0D2818;
  --gl: #40916C;
  --gp: #D8F3DC;
  --gold: #E8A838;
  --goldh: #D4982F;
  --dark: #1A1A2E;
  --txt: #2D3436;
  --txt2: #6B7B8D;
  --bg: #FAFBFC;
  --bga: #F3F6F4;
  --w: #FFF;
  --bd: #E8EDF0;
  --sh: 0 4px 14px rgba(0,0,0,0.06);
  --shh: 0 8px 24px rgba(0,0,0,0.10);
  --r: 12px;
  --rl: 16px;
  --tr: 0.22s ease;
  --ff: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--ff); color: var(--txt); background: var(--bg); line-height: 1.55; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── Container: 1070px ── */
.hp-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ═══════════ HEADER ═══════════ */
.hp-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--bd); overflow: visible; }
.hp-header-inner { display: flex; align-items: center; height: 56px; gap: 0; }

.hp-brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.hp-brand-icon { font-size: 26px; }
.hp-brand-text { font-size: 15px; font-weight: 700; color: var(--g); }

.hp-header-catlink {
  padding: 5px 12px; margin-left: 8px; border-radius: 7px;
  font-size: 13px; font-weight: 600; color: var(--g);
  background: var(--gp); flex-shrink: 0; transition: all var(--tr);
}
.hp-header-catlink:hover { background: #c6ebd3; }

.hp-header-search { flex: 1; position: relative; margin: 0 16px; }
.hp-header-search input {
  width: 100%; padding: 8px 12px 8px 36px; border: 1.5px solid var(--bd);
  border-radius: 8px; font-size: 13px; font-family: var(--ff);
  background: var(--bg); outline: none; transition: all var(--tr);
}
.hp-header-search input:focus { border-color: var(--gl); box-shadow: 0 0 0 3px rgba(45,106,79,0.07); background: var(--w); }
.hp-search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--txt2); display: flex; }

.hp-header-actions { display: flex; gap: 4px; flex-shrink: 0; margin-right: 4px; }
.hp-action-btn {
  width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center;
  justify-content: center; color: var(--txt2); transition: all var(--tr);
  background: none; border: none; cursor: pointer; font-size: 16px;
  text-decoration: none; position: relative;
}
.hp-action-btn:hover { background: var(--gp); color: var(--g); }

.hp-mobile-menu-btn { display: none; width: 36px; height: 36px; border: none; background: none; color: var(--txt); cursor: pointer; border-radius: 8px; align-items: center; justify-content: center; margin-left: auto; }

/* ── Service menu (burger: profile, info) ── */
.hp-service-overlay { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.5); }
.hp-service-overlay.active { display: block; }
.hp-service-menu { display: none; position: fixed; top: 0; right: 0; width: 260px; height: 100%; z-index: 201; background: var(--w); padding: 20px; box-shadow: -4px 0 20px rgba(0,0,0,0.1); flex-direction: column; }
.hp-service-menu.active { display: flex; }
.hp-service-header { display: flex; justify-content: space-between; align-items: center; font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.hp-service-close { width: 32px; height: 32px; border: none; background: none; font-size: 20px; cursor: pointer; border-radius: 6px; color: var(--txt2); }
.hp-service-link { display: block; padding: 12px 0; font-size: 14px; font-weight: 500; border-bottom: 1px solid var(--bd); color: var(--txt); }
.hp-service-search { margin-top: 16px; }
.hp-service-search input { width: 100%; padding: 10px 12px; border: 1.5px solid var(--bd); border-radius: 8px; font-size: 13px; font-family: var(--ff); }

/* ── Catalog drawer (mobile: sections + categories) ── */
.hp-cat-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 150; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.hp-cat-overlay.open { opacity: 1; pointer-events: all; }
.hp-cat-drawer { position: fixed; top: 0; left: 0; bottom: 0; width: min(300px, 85vw); background: var(--w); z-index: 151; display: flex; flex-direction: column; transform: translateX(-100%); transition: transform 0.28s cubic-bezier(0.32,0.72,0,1); box-shadow: 4px 0 20px rgba(0,0,0,0.12); }
.hp-cat-drawer.open { transform: translateX(0); }
.hp-cat-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--bd); font-size: 15px; font-weight: 700; }
.hp-cat-drawer-header button { background: var(--bg); border: none; font-size: 16px; cursor: pointer; color: var(--txt2); padding: 4px 8px; border-radius: 6px; }
.hp-cat-drawer-list { flex: 1; overflow-y: auto; padding: 4px 0; }
.hp-mc-sec-head { display: flex; align-items: center; gap: 8px; padding: 10px 16px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--txt); border-bottom: 1px solid var(--bga); transition: background 0.1s; }
.hp-mc-sec-head:hover { background: var(--gp); }
.hp-mc-sec-icon { font-size: 16px; flex-shrink: 0; }
.hp-mc-sec-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-mc-sec-arrow { font-size: 10px; color: var(--txt2); }
.hp-mc-sec-cats { padding: 2px 0 4px; background: var(--bga); }
.hp-mc-cat { display: block; padding: 8px 16px 8px 40px; font-size: 12px; color: var(--txt2); border: none; background: none; width: 100%; text-align: left; transition: all 0.1s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.hp-mc-cat:hover { color: var(--g); background: var(--gp); }

/* ── Mobile bottom bar (search, catalog, cart) ── */
.hp-mobile-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; background: var(--w); border-top: 1px solid var(--bd); padding: 6px 0 env(safe-area-inset-bottom, 6px); box-shadow: 0 -2px 10px rgba(0,0,0,0.04); }
.hp-mobile-bar-btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 8px; border: none; background: none; color: var(--txt2); font-size: 10px; font-family: var(--ff); cursor: pointer; }
.hp-mobile-bar-btn:hover { color: var(--g); }
.hp-mobile-bar-btn svg { flex-shrink: 0; }
.hp-mobile-bar { display: none; }
@media(max-width:768px) { .hp-mobile-bar { display: flex; } .hp-mobile-menu-btn { display: flex; } #hpFloatingCart { display: none !important; } }

/* ═══════════ HERO ═══════════ */
.hp-hero { position: relative; overflow: hidden; background: linear-gradient(150deg, var(--g) 0%, var(--gd) 55%, var(--gdd) 100%); color: var(--w); padding: 80px 0 84px; }
.hp-hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 500px 350px at 55% 50%, rgba(64,145,108,0.25), transparent), radial-gradient(ellipse 250px 250px at 20% 75%, rgba(232,168,56,0.06), transparent), radial-gradient(ellipse 800px 500px at 82% 45%, rgba(64,145,108,0.28), transparent 70%), radial-gradient(ellipse 400px 350px at 96% 55%, rgba(232,168,56,0.10), transparent); pointer-events: none; }
.hp-hero-inner { position: relative; display: flex; align-items: center; gap: 0; }
.hp-hero-content { width: 65%; flex-shrink: 0; }
.hp-hero-label { display: inline-block; padding: 4px 12px; border-radius: 16px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.16); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.4px; margin-bottom: 16px; color: var(--gold); }
.hp-hero-title { font-size: 36px; font-weight: 800; line-height: 1.15; margin-bottom: 16px; letter-spacing: -0.5px; }
.hp-hero-sub { font-size: 14px; line-height: 1.55; opacity: 0.7; margin-bottom: 32px; }
.hp-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.hp-hero-stats { display: flex; align-items: center; gap: 16px; margin-top: 24px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.12); }
.hp-hero-stat { display: flex; flex-direction: column; }
.hp-hero-stat-num { font-size: 20px; font-weight: 700; color: var(--gold); }
.hp-hero-stat-lbl { font-size: 10px; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.3px; }
.hp-hero-stat-sep { width: 1px; height: 28px; background: rgba(255,255,255,0.15); }

/* Hero visual — asymmetric dense composition (no circle) */
.hp-hero-visual { width: 35%; flex-shrink: 0; display: flex; align-items: center; min-height: 380px; position: relative; }
.hp-hero-composition { position: relative; width: 100%; height: 380px; }

/* Background organic blobs — unified backdrop + bridge to text */
.hp-hero-blob { position: absolute; pointer-events: none; }
.hp-blob-1 {
  top: 5%; left: 12%; width: 380px; height: 280px;
  border-radius: 42% 58% 45% 55% / 55% 42% 58% 45%;
  background: radial-gradient(ellipse at 45% 45%, rgba(232,168,56,0.18), transparent 65%);
  filter: blur(24px);
}
.hp-blob-2 {
  bottom: -5%; right: -8%; width: 280px; height: 260px;
  border-radius: 55% 45% 50% 50% / 45% 55% 45% 55%;
  background: radial-gradient(ellipse at 50% 45%, rgba(64,145,108,0.22), transparent 60%);
  filter: blur(24px);
}
.hp-blob-3 {
  top: 15%; left: -50px; width: 180px; height: 250px;
  border-radius: 50% 40% 55% 45% / 45% 55% 40% 50%;
  background: radial-gradient(ellipse, rgba(232,168,56,0.10), transparent 70%);
  filter: blur(22px);
}
.hp-blob-4 {
  top: 2%; right: 0; width: 55%; height: 90%;
  border-radius: 40% 60% 45% 55% / 55% 40% 60% 45%;
  background: radial-gradient(ellipse at 60% 50%, rgba(64,145,108,0.22), transparent 50%);
  filter: blur(45px);
}


/* Large edge food shape — partially clipped, atmospheric */
.hp-hero-edge {
  position: absolute;
  right: -20px; top: 45%; transform: translateY(-50%);
  font-size: 200px;
  opacity: 0.30;
  filter: blur(1px) drop-shadow(0 10px 35px rgba(0,0,0,0.15));
  z-index: 1;
  pointer-events: none;
  animation: hpFloatEdge 6s ease-in-out infinite;
}
@keyframes hpFloatEdge { 0%,100% { transform: translateY(-50%) rotate(0deg); } 50% { transform: translateY(calc(-50% - 8px)) rotate(3deg); } }
/* Main visual anchor — center of triangular mass */
.hp-hero-main {
  position: absolute;
  top: 20px; left: 30px;
  font-size: 195px;
  filter: drop-shadow(0 14px 44px rgba(0,0,0,0.32));
  z-index: 3;
  animation: hpFloatMain 5s ease-in-out infinite;
}

/* Supporting items — tight triangular cluster */
.hp-hero-item {
  position: absolute;
  filter: drop-shadow(0 5px 16px rgba(0,0,0,0.22));
}

/* 🧀 Medium support — upper-right */
.hp-hi1 {
  font-size: 102px;
  top: 25px; left: 270px;
  z-index: 4;
  animation: hpFloatSec 4s ease-in-out infinite;
  animation-delay: 0s;
}
/* 🥑 Secondary — bottom-center */
.hp-hi2 {
  font-size: 69px;
  top: 260px; left: 160px;
  z-index: 2;
  animation: hpFloatSec 4.5s ease-in-out infinite;
  animation-delay: 0.8s;
}
/* 🍇 Secondary — bottom-left grounding */
.hp-hi3 {
  font-size: 64px;
  top: 285px; left: 90px;
  z-index: 2;
  animation: hpFloatSec 4.2s ease-in-out infinite;
  animation-delay: 1.6s;
}
/* 🐟 Secondary — top accent, partially behind main */
.hp-hi4 {
  font-size: 72px;
  top: -35px; left: 180px;
  z-index: 1;
  animation: hpFloatSec 4.8s ease-in-out infinite;
  animation-delay: 2.4s;
}
/* 🥩 Medium support — lower-right */
.hp-hi5 {
  font-size: 95px;
  top: 200px; left: 280px;
  z-index: 3;
  animation: hpFloatSec 4.3s ease-in-out infinite;
  animation-delay: 3.2s;
}

@keyframes hpFloatMain { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
@keyframes hpFloatSec { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ═══════════ BUTTONS ═══════════ */
.hp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 22px; border-radius: 10px; font-size: 13px; font-weight: 600; font-family: var(--ff); cursor: pointer; transition: all var(--tr); border: none; }
.hp-btn-primary { background: var(--gold); color: var(--dark); }
.hp-btn-primary:hover { background: var(--goldh); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(232,168,56,0.3); }
.hp-btn-ghost { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.2); }
.hp-btn-ghost:hover { background: rgba(255,255,255,0.15); color: var(--w); }
.hp-btn-lg { padding: 13px 28px; font-size: 14px; }

/* ═══════════ SECTIONS ═══════════ */
.hp-section { padding: 48px 0; }
.hp-s-personal { border-left: 3px solid #D97706; background: var(--bg); }
.hp-s-tiles { background: linear-gradient(150deg, var(--gd) 0%, var(--gdd) 100%); color: var(--w); }
.hp-s-musttry { border-left: 3px solid #DB2777; }
.hp-s-value { border-left: 3px solid #2563EB; background: var(--bga); }
.hp-s-seasonal { border-left: 3px solid var(--g); }
.hp-s-promo { background: var(--w); }

.hp-section-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; gap: 12px; }
.hp-section-title { font-size: 20px; font-weight: 700; color: var(--dark); letter-spacing: -0.2px; line-height: 1.2; }
.hp-t-light { color: var(--w); }
.hp-section-desc { font-size: 12px; color: var(--txt2); margin-top: 2px; }
.hp-section-link { font-size: 12px; font-weight: 500; color: var(--g); transition: all var(--tr); white-space: nowrap; padding-top: 2px; }
.hp-section-link:hover { color: var(--gl); }
.hp-t-link { color: rgba(255,255,255,0.5); }
.hp-t-link:hover { color: var(--w); }

.hp-badge { display: inline-block; padding: 2px 8px; border-radius: 5px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.hp-b-personal { background: #FEF3C7; color: #92400E; }
.hp-b-musttry { background: #FCE7F3; color: #9D174D; }
.hp-b-value { background: #DBEAFE; color: #1E40AF; }
.hp-b-seasonal { background: var(--gp); color: var(--g); }

/* ═══════════ PROMO STRIP ═══════════ */
.hp-strip { background: var(--w); border-bottom: 1px solid var(--bd); }
.hp-strip-inner { display: flex; }
.hp-strip-item { flex: 1; display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-right: 1px solid var(--bd); font-size: 12px; }
.hp-strip-item:last-child { border-right: none; }
.hp-strip-icon { font-size: 22px; flex-shrink: 0; }

/* ═══════════ QUICK CATEGORIES (compact) ═══════════ */
.hp-quick-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.hp-quick-cats-compact .hp-quick-cat {
  padding: 18px 12px 14px; gap: 10px;
}
.hp-quick-cats-compact .hp-quick-cat-icon { width: 52px; height: 52px; font-size: 28px; border-radius: 14px; }
.hp-quick-cats-compact .hp-quick-cat-name { font-size: 12px; }
.hp-quick-cat {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 28px 16px 22px; background: var(--w); border-radius: var(--rl);
  border: 1.5px solid var(--bd); transition: all var(--tr); cursor: pointer; text-align: center;
}
.hp-quick-cat:hover { border-color: var(--gl); box-shadow: var(--shh); transform: translateY(-2px); }
.hp-quick-cat-icon { width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 32px; transition: transform var(--tr); }
.hp-quick-cat:hover .hp-quick-cat-icon { transform: scale(1.08); }
.hp-quick-cat-name { font-size: 13px; font-weight: 600; color: var(--txt); line-height: 1.35; }

/* ═══════════ PRODUCT CARDS ═══════════ */
.hp-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.hp-product-card {
  background: var(--w); border-radius: var(--rl); border: 1.5px solid var(--bd);
  overflow: hidden; transition: all var(--tr); display: flex; flex-direction: column;
}
.hp-product-card:hover { box-shadow: var(--shh); transform: translateY(-2px); border-color: rgba(45,106,79,0.12); }

.hp-product-img {
  width: 100%; height: 150px; background: linear-gradient(135deg, #F5F8F6, #EAF0EC);
  display: flex; align-items: center; justify-content: center; font-size: 46px; overflow: hidden;
}
.hp-product-img img { width: 100%; height: 100%; object-fit: cover; }

.hp-product-body { padding: 12px; display: flex; flex-direction: column; flex: 1; }
.hp-product-name { font-size: 13px; font-weight: 600; color: var(--dark); line-height: 1.3; margin-bottom: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hp-product-cat { font-size: 10px; color: var(--txt2); margin-bottom: 4px; }
.hp-product-origin { display: inline-block; font-size: 9px; color: var(--txt2); text-transform: uppercase; letter-spacing: 0.3px; padding: 1px 6px; background: var(--bg); border-radius: 4px; margin-bottom: 6px; align-self: flex-start; }

.hp-product-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.hp-product-price { font-size: 16px; font-weight: 700; color: var(--g); }
.hp-product-unit { font-size: 10px; font-weight: 400; color: var(--txt2); }

.hp-product-tags { display: flex; gap: 3px; margin-top: 6px; flex-wrap: wrap; }
.hp-tag { font-size: 9px; padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.hp-tag-personal { background: #FEF3C7; color: #92400E; }
.hp-tag-musttry { background: #FCE7F3; color: #9D174D; }
.hp-tag-bestvalue { background: #DBEAFE; color: #1E40AF; }

.hp-product-add-btn {
  width: 34px; height: 34px; border-radius: 8px; border: none;
  background: var(--g); color: var(--w); font-size: 18px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all var(--tr); flex-shrink: 0; box-shadow: 0 1px 4px rgba(45,106,79,0.15);
}
.hp-product-add-btn:hover { background: var(--gl); transform: scale(1.05); }

/* Stepper on homepage cards (cart qty) */
.hp-stepper { display: flex; align-items: center; background: var(--g); border-radius: 7px; overflow: hidden; flex-shrink: 0; }
.hp-step { width: 26px; height: 28px; border: none; background: none; color: #fff; font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.hp-step:active { background: rgba(0,0,0,0.12); }
.hp-step-num { color: #fff; font-size: 11px; font-weight: 700; min-width: 22px; text-align: center; border-left: 1px solid rgba(255,255,255,0.2); border-right: 1px solid rgba(255,255,255,0.2); height: 28px; display: flex; align-items: center; justify-content: center; }

/* ═══════════ CATEGORY TILES ═══════════ */
.hp-cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.hp-cat-tile {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; background: rgba(255,255,255,0.06);
  border-radius: var(--rl); border: 1px solid rgba(255,255,255,0.08);
  transition: all var(--tr); cursor: pointer;
}
.hp-cat-tile:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.hp-cat-tile-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; }
.hp-cat-tile-info { flex: 1; }
.hp-cat-tile-name { font-size: 13px; font-weight: 600; color: var(--w); margin-bottom: 1px; }
.hp-cat-tile-count { font-size: 11px; color: rgba(255,255,255,0.45); }
.hp-cat-tile-arrow { color: rgba(255,255,255,0.25); flex-shrink: 0; transition: all var(--tr); }
.hp-cat-tile:hover .hp-cat-tile-arrow { transform: translateX(3px); color: var(--gold); }

/* ═══════════ BANNER ═══════════ */
.hp-banner { background: linear-gradient(135deg, var(--gp), #B7E4C7); padding: 36px 0; }
.hp-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hp-banner-title { font-size: 20px; font-weight: 700; color: var(--gd); margin-bottom: 2px; }
.hp-banner-sub { font-size: 13px; color: var(--g); }

/* ═══════════ PROMO CARDS ═══════════ */
.hp-promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.hp-promo-card { padding: 24px 20px; border-radius: var(--rl); transition: all var(--tr); }
.hp-promo-card:hover { transform: translateY(-2px); }
.hp-pc-green { background: var(--gp); }
.hp-pc-gold { background: #FEF7E8; }
.hp-pc-blue { background: #DBEAFE; }
.hp-pc-rose { background: #FCE7F3; }
.hp-promo-iw { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; background: rgba(255,255,255,0.6); }
.hp-pc-green .hp-promo-iw { color: var(--g); }
.hp-pc-gold .hp-promo-iw { color: #B45309; }
.hp-pc-blue .hp-promo-iw { color: #1E40AF; }
.hp-pc-rose .hp-promo-iw { color: #9D174D; }
.hp-promo-card h3 { font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.hp-promo-card p { font-size: 12px; color: var(--txt2); line-height: 1.5; }

/* ═══════════ FOOTER ═══════════ */
.hp-footer { background: var(--dark); color: rgba(255,255,255,0.55); padding: 44px 0 0; }
.hp-footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.hp-footer .hp-brand-text { color: var(--w); }
.hp-footer-about { font-size: 12px; line-height: 1.6; margin-top: 10px; max-width: 260px; }
.hp-footer-h { font-size: 11px; font-weight: 600; color: var(--w); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.6px; }
.hp-footer-link { display: block; font-size: 12px; padding: 3px 0; transition: color var(--tr); }
.hp-footer-link:hover { color: var(--w); }
.hp-footer-bot { padding: 16px 0; font-size: 11px; opacity: 0.35; }

/* ═══════════ MEGA MENU — polished ═══════════ */
.mega-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,0.2); opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.mega-overlay.open { opacity: 1; pointer-events: all; }

.mega-menu {
  position: absolute; top: 50px; left: 0; right: 0; z-index: 95;
  background: var(--w); border-bottom: 1px solid var(--bd);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  opacity: 0; pointer-events: none; transform: translateY(-3px);
  transition: all 0.2s ease;
}
.mega-menu.open { opacity: 1; pointer-events: all; transform: translateY(0); }

.mega-inner {
  max-width: 980px; margin: 0 auto; display: flex;
  min-height: 300px; max-height: 420px;
}

.mega-left {
  width: 200px; flex-shrink: 0; border-right: 1px solid var(--bd);
  padding: 6px 0; overflow-y: auto; max-height: 420px;
  scrollbar-width: thin; scrollbar-color: var(--bd) transparent;
}
.mega-left::-webkit-scrollbar { width: 4px; }
.mega-left::-webkit-scrollbar-thumb { background: var(--bd); border-radius: 4px; }
.mega-left::-webkit-scrollbar-track { background: transparent; }
.mg-sec {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 14px; font-size: 12px; font-weight: 400;
  color: var(--txt2); cursor: pointer; transition: all 0.12s;
  border-left: 2px solid transparent;
}
.mg-sec:hover { color: var(--txt); background: rgba(0,0,0,0.02); }
.mg-sec.active { color: var(--g); font-weight: 600; background: var(--gp); border-left-color: var(--g); }
.mg-sec-icon { font-size: 14px; flex-shrink: 0; opacity: 0.7; }
.mg-sec.active .mg-sec-icon { opacity: 1; }
.mg-sec-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.mg-sec-count-badge { font-size: 9px; color: var(--txt2); background: var(--bg); padding: 0px 5px; border-radius: 4px; flex-shrink: 0; margin-left: auto; }

.mega-center {
  flex: 1; padding: 16px 20px; overflow-y: auto; max-height: 420px;
  scrollbar-width: thin; scrollbar-color: var(--bd) transparent;
}
.mega-center::-webkit-scrollbar { width: 4px; }
.mega-center::-webkit-scrollbar-thumb { background: var(--bd); border-radius: 4px; }
.mega-empty { color: var(--txt2); font-size: 13px; padding: 40px 20px; text-align: center; }
.mg-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--bd); }
.mg-header-icon { font-size: 22px; }
.mg-header-title { font-size: 15px; font-weight: 700; color: var(--dark); flex: 1; }
.mg-view-all { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; font-size: 11px; font-weight: 600; color: var(--g); background: var(--gp); border-radius: 6px; text-decoration: none; transition: all 0.12s; }
.mg-view-all:hover { background: #c6ebd3; }
.mg-cats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 16px; }
.mg-cat { display: block; padding: 5px 8px; font-size: 12px; color: var(--txt2); border-radius: 5px; cursor: pointer; transition: all 0.1s; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-cat:hover { background: var(--gp); color: var(--g); }

.mega-right {
  width: 195px; flex-shrink: 0; border-left: 1px solid var(--bd);
  padding: 14px; display: flex; flex-direction: column; gap: 12px;
}
.mg-promo-section { }
.mg-promo-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--txt2); margin-bottom: 6px; }
.mg-quick-links { display: flex; flex-direction: column; gap: 2px; }
.mg-quick-link { display: flex; align-items: center; gap: 6px; padding: 5px 8px; font-size: 11px; font-weight: 500; color: var(--txt); border-radius: 5px; text-decoration: none; transition: all 0.1s; }
.mg-quick-link:hover { background: var(--gp); color: var(--g); }
.mg-quick-link-icon { font-size: 13px; flex-shrink: 0; }
.mg-promo-tile { padding: 12px; border-radius: 8px; background: linear-gradient(135deg, var(--gp), #B7E4C7); display: flex; flex-direction: column; gap: 4px; }
.mg-promo-tile-title { font-size: 12px; font-weight: 700; color: var(--gd); }
.mg-promo-tile-text { font-size: 10px; color: var(--g); line-height: 1.4; }
.mg-promo-tile-link { font-size: 10px; font-weight: 600; color: var(--gd); text-decoration: none; margin-top: 2px; }
.mg-promo-tile-link:hover { text-decoration: underline; }

/* ═══════════ SKELETON ═══════════ */
.hp-skeleton { background: linear-gradient(90deg, var(--bd) 25%, #f0f0f0 50%, var(--bd) 75%); background-size: 200% 100%; animation: hpShim 1.5s infinite; border-radius: 8px; }
@keyframes hpShim { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.hp-skeleton-card { height: 260px; border-radius: var(--rl); }
.hp-skeleton-tile { height: 72px; border-radius: var(--rl); }
.hp-skeleton-cat { height: 90px; border-radius: var(--r); }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 768px) {
  .hp-header-search, .hp-header-actions, .hp-header-catlink { display: none; }
  .mega-menu, .mega-overlay { display: none !important; }
  .hp-hero { padding: 48px 0 52px; }
  .hp-hero-inner { flex-direction: column; text-align: center; }
  .hp-hero-title { font-size: 26px; }
  .hp-hero-content { width: 100%; max-width: 100%; }
  .hp-hero-actions { justify-content: center; }
  .hp-hero-stats { justify-content: center; }
  .hp-hero-visual { min-height: 240px; justify-content: center; }
  .hp-hero-composition { width: 100%; height: 240px; margin-left: 0; }
  .hp-hero-main { font-size: 100px; top: 40px; left: calc(50% - 100px); }
  .hp-hero-item { font-size: 36px; }
  .hp-hi1 { font-size: 48px; top: 10px; left: 150px; }
  .hp-hi2 { font-size: 34px; top: 160px; left: 70px; }
  .hp-hi3 { font-size: 32px; top: 175px; left: 25px; }
  .hp-hi4 { font-size: 34px; top: 0; left: 105px; }
  .hp-hi5 { font-size: 44px; top: 125px; left: 155px; }
  .hp-hero-blob { transform: scale(0.5); }
  .hp-blob-4 { display: none; }
  .hp-hero-edge { display: none; }
  .hp-section { padding: 36px 0; }
  .hp-section-header { flex-direction: column; }
  .hp-section-title { font-size: 17px; }
  .hp-s-personal, .hp-s-musttry, .hp-s-value, .hp-s-seasonal { border-left-width: 2px; }
  .hp-quick-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hp-quick-cat { padding: 14px 8px 12px; gap: 8px; }
  .hp-quick-cat-icon { width: 46px; height: 46px; font-size: 26px; border-radius: 12px; }
  .hp-quick-cat-name { font-size: 12px; line-height: 1.3; white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-align: center; min-height: 2.6em; }
  .hp-quick-cat { padding: 12px 6px 10px; }
  .hp-quick-cat-icon { width: 42px; height: 42px; font-size: 24px; border-radius: 12px; }
  .hp-quick-cat-name { font-size: 10px; }
  .hp-strip-inner { flex-direction: column; }
  .hp-strip-item { border-right: none; border-bottom: 1px solid var(--bd); padding: 10px 12px; }
  .hp-strip-item:last-child { border-bottom: none; }
  .hp-product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .hp-product-img { height: 100px; font-size: 34px; }
  .hp-product-body { padding: 8px; }
  .hp-product-name { font-size: 11px; }
  .hp-product-price { font-size: 13px; }
  .hp-product-add-btn { width: 30px; height: 30px; font-size: 16px; }
  .hp-step { width: 22px; height: 24px; font-size: 11px; }
  .hp-step-num { height: 24px; font-size: 10px; min-width: 18px; }
  .hp-cat-tiles { grid-template-columns: 1fr; }
  .hp-banner-inner { flex-direction: column; text-align: center; }
  .hp-banner-title { font-size: 17px; }
  .hp-promo-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-promo-card { padding: 18px 14px; }
  .hp-footer-inner { grid-template-columns: 1fr 1fr; gap: 16px; }
}

@media (max-width: 480px) {
  .hp-hero-title { font-size: 22px; }
  .hp-btn { padding: 9px 16px; font-size: 12px; }
  .hp-hero-main { font-size: 80px; top: 30px; left: 30px; }
  .hp-hero-item { font-size: 28px; }
  .hp-hi1 { font-size: 38px; top: 8px; left: 115px; }
  .hp-hi5 { font-size: 34px; top: 100px; left: 120px; }
  .hp-product-img { height: 80px; font-size: 28px; }
  .hp-promo-grid { grid-template-columns: 1fr; }
  .hp-footer-inner { grid-template-columns: 1fr; }
  .hp-quick-cat { padding: 10px 6px 8px; }
  .hp-quick-cat-icon { width: 40px; height: 40px; font-size: 22px; border-radius: 10px; }
  .hp-quick-cat-name { font-size: 11px; }
}
