:root {
  --primary-h: 152;
  --primary-s: 58%;
  --primary-l: 40%;
  --accent-h: 35;
  --accent-s: 92%;
  --accent-l: 52%;
  --primary-color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
  --primary-hover: hsl(var(--primary-h), var(--primary-s), calc(var(--primary-l) - 7%));
  --primary-soft: hsl(var(--primary-h), var(--primary-s), 93%);
  --accent-color: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
  --border-radius: 12px;
  --transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
  --bg-primary: #f6f8f6;
  --bg-secondary: #ffffff;
  --bg-tertiary: #eef2ee;
  --text-primary: #0f1f14;
  --text-secondary: #2d3d32;
  --text-muted: #5f7565;
  --border-color: #d4ddd6;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 10px rgba(0,0,0,.06);
  --shadow-lg: 0 14px 28px rgba(0,0,0,.08);
  --glass-bg: rgba(255,255,255,.84);
  --glass-border: rgba(255,255,255,.7);
  --color-success: #16a34a;
  --color-danger: #dc2626;
}

body.dark-theme {
  --bg-primary: #0a120e;
  --bg-secondary: #121e16;
  --bg-tertiary: #1a2e22;
  --text-primary: #eaf2ec;
  --text-secondary: #b8ccbf;
  --text-muted: #89a693;
  --border-color: #254332;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.25);
  --shadow-md: 0 4px 10px rgba(0,0,0,.24);
  --shadow-lg: 0 14px 28px rgba(0,0,0,.34);
  --glass-bg: rgba(18,30,22,.86);
  --glass-border: rgba(45,75,56,.68);
  --primary-soft: hsl(var(--primary-h), var(--primary-s), 14%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .2s ease, color .2s ease, padding-bottom .2s ease;
  overscroll-behavior-x: none;
}
body.no-zoom, body.no-zoom * { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button, a, select, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  transform: translateY(-140%);
  z-index: 999;
  background: var(--text-primary);
  color: var(--bg-secondary);
  padding: 10px 12px;
  border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }

.announcement-bar {
  position: relative;
  z-index: 100;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-color), hsl(var(--primary-h), var(--primary-s), calc(var(--primary-l) - 10%)));
  color: #fff;
  font-size: .86rem;
  font-weight: 650;
  padding: 8px 0;
}
.marquee-container { display: flex; white-space: nowrap; }
.marquee-content { display: inline-block; padding-left: 100%; animation: marquee 42s linear infinite; }
.marquee-content span { display: inline-block; padding-right: 2.7rem; }
@keyframes marquee { to { transform: translate3d(-100%,0,0); } }

.site-header {
  position: sticky;
  cursor: pointer;
  top: 0;
  z-index: 99;
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px max(14px, env(safe-area-inset-left)) 10px max(14px, env(safe-area-inset-right));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.logo-area {
  min-width: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(1.18rem, 4.2vw, 1.55rem);
  font-weight: 850;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, var(--primary-color), hsl(var(--primary-h), calc(var(--primary-s) - 8%), calc(var(--primary-l) + 15%)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo-area img { max-height: 38px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.header-action-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.header-action-btn:active { transform: scale(.96); }
.btn-call-icon:hover { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.btn-whatsapp-icon:hover { background: var(--color-success); border-color: var(--color-success); color: #fff; }

.store-intro {
  max-width: 1400px;
  margin: 16px auto 0;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.eyebrow {
  color: var(--primary-color);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .72rem;
  margin-bottom: 4px;
}
.store-intro h1 {
  font-size: clamp(1.65rem, 6vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -.04em;
  margin-bottom: 6px;
}
.store-intro p:not(.eyebrow) {
  max-width: 680px;
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: clamp(.94rem, 2.8vw, 1.05rem);
}
.intro-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.intro-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 750;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.intro-btn.primary { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.intro-btn:active { transform: scale(.98); }

.offers-slider-section { max-width: 1400px; margin: 12px auto 24px; padding: 0 24px; }
.slider-wrapper {
  position: relative;
  height: clamp(210px, 44vw, 340px);
  overflow: hidden;
  border-radius: calc(var(--border-radius) + 6px);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-lg);
  touch-action: pan-y;
  user-select: none;
}
.slides-container { height: 100%; display: flex; transition: transform .45s cubic-bezier(.4,0,.2,1); will-change: transform; }
.slide {
  position: relative;
  min-width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  background: linear-gradient(135deg, hsl(var(--primary-h), 46%, 34%), hsl(var(--primary-h), 48%, 16%));
  background-size: cover;
  background-position: center;
}
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 78% 20%, rgba(255,255,255,.24), transparent 26%), radial-gradient(circle at 18% 30%, rgba(255,255,255,.12), transparent 20%), linear-gradient(to top, rgba(0,0,0,.76), rgba(0,0,0,.20));
}
.slide-placeholder-art {
  position: absolute;
  right: 7%;
  top: 50%;
  transform: translateY(-50%) rotate(-8deg);
  font-size: clamp(5rem, 18vw, 10rem);
  opacity: .22;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.24));
}
.slide-content-card { position: relative; z-index: 2; max-width: 640px; margin: clamp(18px, 5vw, 38px); color: #fff; }
.slide-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--accent-color);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.slide-title { font-size: clamp(1.35rem, 6vw, 2.25rem); line-height: 1.12; font-weight: 900; text-shadow: 0 2px 8px rgba(0,0,0,.55); }
.slide-desc { margin-top: 8px; max-width: 540px; font-size: clamp(.9rem, 3vw, 1.05rem); line-height: 1.45; opacity: .94; text-shadow: 0 1px 4px rgba(0,0,0,.45); }

.catalog-section { max-width: 1400px; margin: 0 auto; padding: 0 24px 96px; }
.catalog-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 18px; }
.section-title { font-size: clamp(1.35rem, 4vw, 1.85rem); font-weight: 900; letter-spacing: -.03em; position: relative; padding-bottom: 8px; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 999px; background: linear-gradient(90deg, var(--primary-color), var(--accent-color)); }
.controls-wrapper { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.search-box { position: relative; display: flex; align-items: center; min-width: min(100%, 260px); }
.search-box input {
  width: min(280px, 100%);
  min-height: 44px;
  padding: 10px 42px 10px 42px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-secondary);
  color: var(--text-primary);
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.search-box input:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px hsla(var(--primary-h), var(--primary-s), var(--primary-l), .14); }
.search-icon { position: absolute; left: 14px; color: var(--text-muted); pointer-events: none; }
.search-clear-btn { position: absolute; right: 8px; display: none; width: 32px; height: 32px; border: 0; border-radius: 999px; background: transparent; color: var(--text-muted); font-size: 1.2rem; line-height: 1; }
.search-clear-btn.visible { display: inline-flex; align-items: center; justify-content: center; }
.search-clear-btn:active { background: var(--bg-tertiary); }
.category-box, .sort-box { display: flex; align-items: center; gap: 6px; }
.category-box label, .sort-box label { color: var(--text-secondary); font-size: .86rem; font-weight: 700; }
.category-box select, .sort-box select {
  min-height: 44px;
  min-width: 150px;
  max-width: min(280px, 100%);
  padding: 9px 34px 9px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-secondary);
  color: var(--text-primary);
  outline: none;
  box-shadow: var(--shadow-sm);
}
.category-box select { min-width: 220px; }
.filter-summary { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: var(--text-muted); font-size: .9rem; flex-wrap: wrap; }
.reset-link { border: 0; background: none; color: var(--primary-color); font-weight: 800; text-decoration: underline; }

.products-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); }
.product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-sm);
  animation: fadeInUp .32s ease both;
  transition: var(--transition);
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: hsla(var(--primary-h), var(--primary-s), var(--primary-l), .28); }
.product-card:active { transform: scale(.985); }
.product-card.out-of-stock { opacity: .66; }
.card-image-wrapper { position: relative; padding-top: 100%; overflow: hidden; background: var(--bg-tertiary); }
.card-image-wrapper img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.card-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  text-align: center;
  color: var(--text-muted);
  background: radial-gradient(circle at 70% 18%, hsla(var(--primary-h), var(--primary-s), var(--primary-l), .15), transparent 28%), linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
}
.placeholder-icon { font-size: clamp(2.35rem, 11vw, 4.1rem); line-height: 1; filter: saturate(.95); }
.placeholder-text { max-width: 92%; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .74; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-oos-stamp { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%) rotate(-12deg); z-index: 3; padding: 6px 16px; border: 2px solid #fff; border-radius: 8px; background: var(--color-danger); color: #fff; font-size: .75rem; font-weight: 900; letter-spacing: .08em; white-space: nowrap; box-shadow: var(--shadow-md); }
.card-content { display: flex; flex-direction: column; flex: 1; padding: 12px; }
.card-id { align-self: flex-start; margin-bottom: 5px; padding: 2px 7px; border-radius: 6px; background: var(--bg-tertiary); color: var(--text-muted); font-size: .68rem; font-weight: 800; }
.card-name { min-height: 2.42rem; margin-bottom: 4px; color: var(--text-primary); font-size: .93rem; font-weight: 850; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-desc { min-height: 1.1rem; margin-bottom: 9px; color: var(--text-muted); font-size: .78rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.card-price { margin: auto 0 10px; color: var(--primary-color); font-size: 1.15rem; font-weight: 900; }
.product-card.out-of-stock .card-price { color: var(--color-danger); text-decoration: line-through; }
.qty-stepper { display: flex; align-items: center; justify-content: center; min-height: 40px; overflow: hidden; border: 2px solid var(--border-color); border-radius: 10px; background: var(--bg-secondary); transition: border-color .2s ease, background .2s ease; }
.qty-stepper.active { border-color: var(--primary-color); background: var(--primary-soft); }
.stepper-btn { min-width: 40px; height: 40px; border: 0; background: transparent; color: var(--text-primary); font-size: 1.15rem; font-weight: 900; }
.stepper-plus { flex: 1; }
.stepper-minus, .stepper-value { width: 0; opacity: 0; overflow: hidden; transition: width .2s ease, opacity .18s ease; }
.stepper-value { text-align: center; color: var(--primary-color); font-size: .95rem; font-weight: 900; }
.qty-stepper.active .stepper-minus { width: 42px; opacity: 1; }
.qty-stepper.active .stepper-value { width: 38px; opacity: 1; }
.qty-stepper.active .stepper-plus { flex: 0 0 42px; }
.stepper-btn:active { background: hsla(var(--primary-h), var(--primary-s), var(--primary-l), .18); }
.qty-stepper.disabled { min-height: 40px; opacity: .35; pointer-events: none; }

.skeleton-card { overflow: hidden; border: 1px solid var(--border-color); border-radius: var(--border-radius); background: var(--bg-secondary); }
.skeleton-img { position: relative; width: 100%; padding-top: 100%; background: var(--bg-tertiary); }
.skeleton-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.skeleton-line { position: relative; height: 12px; overflow: hidden; border-radius: 999px; background: var(--bg-tertiary); }
.skeleton-line.short { width: 36%; }
.skeleton-line.medium { width: 72%; }
.skeleton-line.long { width: 96%; }
.skeleton-line.price { width: 44%; height: 20px; margin-top: 4px; }
.skeleton-line.stepper { height: 38px; border-radius: 10px; }
.skeleton-img::after, .skeleton-line::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.38), transparent); animation: shimmer 1.4s infinite; }
body.dark-theme .skeleton-img::after, body.dark-theme .skeleton-line::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent); }
@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.no-results { display: none; padding: 56px 18px; text-align: center; border: 1px solid var(--border-color); border-radius: var(--border-radius); background: var(--bg-secondary); }
.no-results svg { color: var(--text-muted); margin-bottom: 12px; }
.no-results h3 { margin-bottom: 6px; }
.no-results p { color: var(--text-muted); }

.local-seo-block { max-width: 1400px; margin: 0 auto 32px; padding: 24px; color: var(--text-secondary); }
.local-seo-block h2 { margin-bottom: 8px; color: var(--text-primary); font-size: clamp(1.2rem, 4vw, 1.6rem); }
.local-seo-block p { line-height: 1.55; max-width: 860px; }
.local-address { margin-top: 8px; color: var(--text-muted); font-weight: 650; }
.store-map-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; max-width: 560px; margin-top: 18px; padding: 12px; border: 1px solid var(--border-color); border-radius: var(--border-radius); background: var(--bg-secondary); box-shadow: var(--shadow-sm); }
.store-map-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.store-map-copy strong { color: var(--text-primary); font-size: .96rem; }
.store-map-copy span { color: var(--text-muted); font-size: .84rem; line-height: 1.35; }
.store-map-square { position: relative; flex: 0 0 118px; width: 118px; height: 118px; overflow: hidden; border-radius: 12px; border: 1px solid var(--border-color); background: var(--bg-tertiary); }
.store-map-square iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.store-map-open { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 7px; color: #fff; font-size: .72rem; font-weight: 850; background: linear-gradient(to top, rgba(0,0,0,.58), rgba(0,0,0,0) 55%); }

.floating-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px max(14px, env(safe-area-inset-right)) calc(11px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -6px 20px rgba(0,0,0,.11);
  transform: translateY(110%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.floating-bar.visible { transform: translateY(0); }
.floating-bar-info { display: flex; align-items: center; gap: 10px; min-width: 0; }
.floating-bar-count { color: var(--text-secondary); font-size: .93rem; font-weight: 750; white-space: nowrap; }
.floating-bar-divider { color: var(--border-color); }
.floating-bar-total { color: var(--primary-color); font-size: 1.16rem; font-weight: 900; white-space: nowrap; }
.floating-bar-actions { display: grid; grid-template-columns: minmax(132px, auto); gap: 8px; }
.fb-btn { min-height: 44px; min-width: 44px; padding: 9px 14px; border: 0; border-radius: 10px; color: #fff; font-size: .82rem; font-weight: 850; transition: var(--transition); }
.fb-bill { background: var(--primary-color); }
.fb-whatsapp { background: var(--color-success); }
.fb-btn:active { transform: scale(.96); }
.floating-reset-btn {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: calc(78px + env(safe-area-inset-bottom));
  z-index: 201;
  min-width: 58px;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: var(--bg-secondary);
  color: var(--color-danger);
  box-shadow: var(--shadow-lg);
  font-size: .82rem;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: var(--transition);
}
.floating-reset-btn.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.floating-reset-btn:active { transform: scale(.96); }

.site-footer { padding: 30px 20px 24px; text-align: center; border-top: 1px solid var(--border-color); background: var(--bg-secondary); }
.footer-nav { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; font-size: .9rem; font-weight: 750; color: var(--primary-color); }
.footer-name { margin-bottom: 6px; font-size: 1.25rem; font-weight: 900; color: var(--primary-color); }
.footer-tagline, .footer-address, .footer-copy { color: var(--text-muted); font-size: .86rem; line-height: 1.45; }
.footer-address { max-width: 560px; margin: 8px auto; }
.footer-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin: 12px 0; }
.footer-link-item { display: inline-flex; align-items: center; gap: 4px; color: var(--text-secondary); font-size: .9rem; font-weight: 700; }
.footer-link-item:hover { color: var(--primary-color); }

.page-shell { max-width: 920px; margin: 0 auto; padding: 34px 20px 60px; }
.page-card { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--border-radius); padding: clamp(18px, 5vw, 34px); box-shadow: var(--shadow-sm); }
.page-card h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); line-height: 1.1; margin-bottom: 12px; }
.page-card h2 { margin-top: 22px; margin-bottom: 8px; }
.page-card p, .page-card li { color: var(--text-secondary); line-height: 1.65; }
.page-card ul { margin: 10px 0 0 22px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

.bill-page-body { min-height: 100vh; background: var(--bg-tertiary); padding: 18px 14px calc(92px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; }
.bill-actions-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 14px; width: 100%; max-width: 720px; }
.bill-top-actions { justify-content: flex-start; max-width: 520px; }
.bill-bottom-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 220;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px max(14px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -6px 20px rgba(0,0,0,.11);
}
.bill-btn { min-height: 44px; padding: 11px 16px; border: 0; border-radius: 10px; color: #fff; font-weight: 800; }
.bill-btn-back { background: var(--bg-secondary); color: var(--text-primary); border: 1px solid var(--border-color); }
.bill-btn-share { background: var(--primary-color); }
.bill-btn-whatsapp { background: var(--color-success); }
.bill-buyer-box { width: 100%; max-width: 520px; margin-bottom: 14px; padding: 12px; border: 1px solid var(--border-color); border-radius: var(--border-radius); background: var(--bg-secondary); box-shadow: var(--shadow-sm); }
.bill-buyer-box label { display: block; margin-bottom: 6px; font-size: .86rem; font-weight: 850; color: var(--text-secondary); }
.bill-buyer-box label span { color: var(--text-muted); font-weight: 700; }
.bill-buyer-row { display: flex; gap: 8px; }
.bill-buyer-box input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 10px; background: #fff; color: #111; outline: none; }
.bill-buyer-box input:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px hsla(var(--primary-h), var(--primary-s), var(--primary-l), .15); }
.bill-buyer-help { display: block; margin-top: 6px; font-size: .78rem; line-height: 1.35; color: var(--text-muted); }
.bill-wrapper { width: 100%; max-width: 520px; }
.bill-paper { background: #fff; color: #111; border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,.14); padding: 30px 24px; }
.bill-header { text-align: center; margin-bottom: 16px; }
.bill-shop-name { color: #1a5c38; font-size: 1.55rem; font-weight: 900; }
.bill-address, .bill-phone, .bill-buyer-line { color: #555; font-size: .82rem; line-height: 1.45; }
.bill-meta { display: flex; justify-content: space-between; gap: 10px; color: #444; font-size: .84rem; margin: 12px 0; }
.bill-divider { border: 0; border-top: 2px dashed #bdbdbd; margin: 12px 0; }
.bill-table { width: 100%; border-collapse: collapse; font-size: .84rem; table-layout: fixed; }
.bill-table th { color: #1a5c38; text-align: left; padding: 8px 4px; border-bottom: 2px solid #1a5c38; }
.bill-table td { padding: 8px 4px; border-bottom: 1px solid #e5e5e5; word-break: break-word; }
.bill-table th:last-child, .bill-table td:last-child { text-align: right; }
.bill-table th:nth-child(1), .bill-table td:nth-child(1) { width: 28px; text-align: center; }
.bill-table th:nth-child(2), .bill-table td:nth-child(2) { width: auto; }
.bill-table th:nth-child(3), .bill-table td:nth-child(3) { width: 42px; text-align: center; }
.bill-table th:nth-child(4), .bill-table td:nth-child(4), .bill-table th:nth-child(5), .bill-table td:nth-child(5) { width: 70px; }
.bill-total-row { display: flex; justify-content: flex-end; gap: 20px; margin-top: 12px; color: #1a5c38; font-size: 1.12rem; font-weight: 900; }
.bill-footer { text-align: center; color: #555; font-size: .86rem; margin-top: 16px; }
.bill-empty { max-width: 520px; padding: 48px 22px; text-align: center; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--border-radius); }

@media (max-width: 860px) {
  .store-intro { align-items: flex-start; flex-direction: column; padding: 18px 16px; }
  .intro-actions { width: 100%; justify-content: stretch; }
  .intro-btn { flex: 1; }
  .offers-slider-section, .catalog-section, .local-seo-block { padding-left: 16px; padding-right: 16px; }
  .catalog-header { align-items: stretch; flex-direction: column; }
  .controls-wrapper { flex-direction: column; align-items: stretch; }
  .search-box, .search-box input, .category-box, .sort-box, .category-box select, .sort-box select { width: 100%; max-width: 100%; }
  .category-box, .sort-box { flex-direction: column; align-items: stretch; gap: 5px; }
  .floating-bar { flex-direction: column; align-items: stretch; }
  .floating-bar-info { justify-content: center; }
  .floating-bar-actions { width: 100%; grid-template-columns: 1fr; }
  .floating-reset-btn { bottom: calc(104px + env(safe-area-inset-bottom)); }
  .store-map-card { align-items: stretch; }
  .store-map-square { flex-basis: 104px; width: 104px; height: 104px; }
}
@media (max-width: 380px) {
  .header-action-btn { width: 38px; height: 38px; }
  .header-actions { gap: 6px; }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-content { padding: 9px; }
  .card-name { font-size: .82rem; min-height: 2.15rem; }
  .card-desc { display: none; }
  .placeholder-text { display: none; }
  .floating-bar-count { font-size: .86rem; }
  .floating-bar-total { font-size: 1rem; }
  .fb-btn { padding: 8px 6px; font-size: .76rem; }
  .floating-reset-btn { bottom: calc(104px + env(safe-area-inset-bottom)); right: 10px; }
  .store-map-card { flex-direction: column; }
  .store-map-square { flex: none; width: 100%; height: 138px; }
}
@media (min-width: 1180px) { .products-grid { grid-template-columns: repeat(5, 1fr); gap: 18px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
@media print {
  .bill-actions-bar, .bill-bottom-actions, .bill-buyer-box { display: none !important; }
  .bill-page-body { background: #fff !important; padding: 0 !important; }
  .bill-wrapper { max-width: 100% !important; }
  .bill-paper { box-shadow: none !important; border-radius: 0 !important; }
  @page { margin: 10mm; }
}
