:root {
  --primary: #059b94;
  --primary-dark: #047a75;
  --accent: #ffb000;
  --accent-dark: #e59300;
  --ink: #263238;
  --muted: #667479;
  --line: #dfe7e8;
  --soft: #f2f6f6;
  --paper: #ffffff;
  --danger: #d43c3c;
  --success: #118463;
  --radius: 8px;
  --shadow: 0 18px 44px rgba(20, 50, 58, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #fbfdfd;
}

body.store-loading {
  overflow: hidden;
}

body.store-loading > * {
  visibility: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

.shell {
  width: min(1160px, calc(100% - 44px));
  margin-inline: auto;
}

.promo-badges {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 7px 16px;
  color: var(--promo-text, #101818);
  background: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.promo-badges span + span {
  border-left: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  padding-left: 12px;
}

body.search-active #heroSection,
body.search-active #advantagesList,
body.search-active #categoryGrid,
body.search-active #inlineBanners,
body.search-active #footerBanners {
  display: none;
}

body.search-active #featuredProductsSection {
  margin-top: 28px;
}

body.search-active #featuredProductsSection .section-heading {
  margin-bottom: 16px;
}

.site-header {
  position: sticky;
  top: 34px;
  z-index: 25;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.header-main {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(220px, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  color: var(--primary);
  background: #fff;
  border-radius: 50%;
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
}

.brand-mark.has-logo {
  width: 82px;
  height: 46px;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

.brand-mark.has-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

.brand.logo-only {
  gap: 0;
}

.brand.logo-only .brand-mark.has-logo {
  width: 155px;
  height: 87px;
}

.brand.logo-only > span:last-child {
  display: none;
}

.brand strong,
.brand small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand strong {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1;
}

.brand small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
}

.search-box {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  color: #789095;
  background: #fff;
  border-radius: var(--radius);
}

.search-icon {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: var(--primary-dark);
}

.search-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.header-actions,
.hero-actions,
.checkout-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ghost-button,
.cart-button,
.primary-button,
.secondary-button,
.outline-button,
.icon-button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 15px;
  font-weight: 800;
}

.ghost-button {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
}

.cart-button {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  min-width: 132px;
  min-height: 46px;
  color: #fff;
  background: rgba(0, 0, 0, 0.16);
  text-align: left;
}

.cart-button-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.cart-button-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.cart-button-text {
  display: grid;
  gap: 1px;
  line-height: 1.1;
}

.cart-button-text span {
  font-size: 0.76rem;
  font-weight: 700;
  opacity: 0.86;
}

.cart-button-text strong {
  font-size: 0.95rem;
  font-weight: 800;
}

.cart-button em {
  position: absolute;
  top: -8px;
  right: -8px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--accent-dark);
  font-size: 0.78rem;
  font-style: normal;
}

.category-nav { display: flex; align-items: center; gap: 16px; min-height: 52px; overflow: visible; position: relative; }
.store-nav-menu { position: relative; flex: 0 0 auto; }
.store-nav-menu summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 8px; color: #fff; font-weight: 700; font-size: .9rem; cursor: pointer; list-style: none; }
.store-nav-menu summary::-webkit-details-marker { display: none; }
.store-nav-menu summary svg { width: 20px; height: 20px; flex: 0 0 20px; }
.store-nav-menu summary .menu-chevron { width: 16px; height: 16px; flex-basis: 16px; transition: transform .15s; }
.store-nav-menu[open] summary .menu-chevron { transform: rotate(180deg); }
.store-nav-menu summary:hover, .store-nav-menu[open] summary { background: rgba(255,255,255,.14); }
.store-nav-menu summary:focus-visible, .category-nav a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.store-nav-dropdown { position: absolute; top: calc(100% + 4px); left: 0; z-index: 50; width: 320px; max-width: calc(100vw - 32px); max-height: min(480px,65vh); overflow-y: auto; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 16px 40px rgba(0,0,0,.16); }
#navCategories, #navPages { display: grid; gap: 4px; margin: 0; }
.category-nav .store-nav-dropdown a { display: block; padding: 12px; border-radius: 8px; color: var(--ink); font-size: .9rem; font-weight: 500; line-height: 1.4; text-decoration: none; white-space: normal; overflow-wrap: anywhere; }
.category-nav .store-nav-dropdown a:hover, .category-nav .store-nav-dropdown a[aria-current] { color: var(--primary-dark); background: #edf7f7; }
.category-nav .all-categories-link { font-weight: 700; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.catalog-shortcut { margin-left: auto; color: #fff; text-decoration: none; font-size: .9rem; font-weight: 600; white-space: nowrap; padding: 12px; }
#featuredProductsSection { scroll-margin-top: 180px; }
@media (max-width: 700px) {
  .category-nav { gap: 4px; flex-wrap: wrap; padding-bottom: 6px; }
  .store-nav-menu summary { font-size: .82rem; gap: 6px; padding: 0 8px; }
  .catalog-shortcut { margin-left: 0; font-size: .82rem; padding: 8px; }
  .category-nav .store-nav-menu { position: static; }
  .category-nav .store-nav-dropdown, .category-nav #pagesMenu .store-nav-dropdown { left: 0; right: auto; width: 100%; }
  #featuredProductsSection { scroll-margin-top: 230px; }
}

.hero {
  display: block;
  position: relative;
  min-height: 430px;
  gap: 0;
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--hero-gradient-primary, var(--soft)) 94%, transparent) 0%, color-mix(in srgb, var(--hero-gradient-secondary, var(--soft)) 72%, transparent) 48%, transparent 82%),
    var(--hero-image, linear-gradient(135deg, #e9f6f5, #ffe7ac));
  background-position: center;
  background-size: cover;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(680px, 64%);
  padding: clamp(34px, 5.5vw, 68px);
  color: var(--hero-text-color, var(--ink));
}

.hero-copy p {
  max-width: 56ch;
  color: color-mix(in srgb, var(--hero-text-color, var(--ink)) 76%, transparent);
  font-size: 1rem;
  line-height: 1.6;
}

.hero-copy #heroEyebrow {
  margin: 0 0 12px;
  color: var(--hero-text-color, var(--primary-dark));
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  color: var(--hero-text-color, var(--ink));
  font-size: clamp(2rem, 4vw, 4.3rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.primary-button {
  color: #fff;
  background: var(--primary);
}

.secondary-button {
  color: var(--primary-dark);
  background: #e7f5f4;
}

.outline-button {
  color: var(--primary-dark);
  border-color: var(--primary);
  background: #fff;
}

.outline-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 0 15px;
  color: var(--primary-dark);
  background: #fff;
  font-weight: 800;
  text-decoration: none;
}

.hero-media {
  display: none;
}

.advantages,
.category-grid,
.inline-banners,
.footer-banners {
  display: grid;
  gap: 22px;
  margin-top: 34px;
}

.advantages {
  grid-template-columns: repeat(3, 1fr);
}

.advantage-card,
.banner-card,
.product-card,
.order-card,
.admin-list article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.advantage-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 16px;
  min-height: 90px;
  padding: 22px;
}

.advantage-card b,
.category-card b {
  display: block;
  font-size: 0.98rem;
}

.advantage-card span,
.category-card span,
.product-card small,
.order-card small {
  color: var(--muted);
  font-size: 0.88rem;
}

.tile-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: var(--radius);
  color: var(--primary-dark);
  background: #e6f5f4;
  font-size: 1.8rem;
  font-weight: 900;
  overflow: hidden;
}

.tile-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.category-grid {
  grid-template-columns: repeat(auto-fit, minmax(132px, 164px));
  justify-content: center;
  column-gap: clamp(26px, 5vw, 76px);
  row-gap: 24px;
}

.category-card {
  display: grid;
  min-height: 126px;
  place-items: center;
  gap: 10px;
  padding: 20px 12px;
  border: 0;
  background: transparent;
  text-align: center;
}

.category-card.active {
  outline: 3px solid color-mix(in srgb, var(--primary) 32%, transparent);
}

.product-section {
  margin-top: 54px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-heading p {
  margin: 0 0 6px;
  color: var(--primary-dark);
  font-weight: 900;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.category-section-heading {
  align-items: center;
  margin-bottom: 18px;
}

.category-section-heading h2 {
  color: var(--primary-dark);
  font-size: clamp(1.65rem, 2.3vw, 2.35rem);
}

.product-grid,
.category-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.category-row {
  margin-bottom: 54px;
}

.product-card {
  position: relative;
  display: grid;
  min-height: 390px;
  padding: 18px;
  grid-template-rows: 170px auto auto auto;
  gap: 14px;
}

.product-image {
  display: grid;
  position: relative;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f6f9f9, #e6f5f4);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-placeholder {
  display: grid;
  width: 86px;
  height: 118px;
  place-items: center;
  border-radius: 12px 12px 8px 8px;
  color: #fff;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  box-shadow: 0 12px 22px rgba(5, 155, 148, 0.25);
  font-weight: 900;
  text-align: center;
}

.discount-badge,
.deal-badge {
  position: absolute;
  z-index: 1;
  left: 12px;
  min-height: 28px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.discount-badge {
  top: 12px;
  background: var(--success);
}

.deal-badge {
  top: 46px;
  background: var(--accent-dark);
}

.favorite {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: #fff;
}

.product-title {
  margin: 0;
  min-height: 42px;
  font-size: 0.95rem;
  line-height: 1.35;
}

.price-block {
  display: grid;
  gap: 3px;
}

.old-price {
  color: var(--muted);
  font-size: 0.78rem;
  text-decoration: line-through;
}

.price {
  font-size: 1.1rem;
  font-weight: 900;
}

.add-button {
  align-self: end;
  min-height: 38px;
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  background: var(--primary);
  font-weight: 900;
}

.banner-card {
  min-height: 168px;
  padding: 32px;
  color: #fff;
  background:
    linear-gradient(115deg, color-mix(in srgb, var(--banner-overlay-primary, var(--primary)) 86%, transparent), color-mix(in srgb, var(--banner-overlay-secondary, var(--accent)) 76%, transparent)),
    var(--banner-image, linear-gradient(135deg, #059b94, #ffb000));
  background-size: cover;
  background-position: center;
}

.banner-card h3 {
  max-width: 480px;
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.inline-banners {
  grid-template-columns: 1.35fr 0.65fr;
}

.footer-banners {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 70px;
  margin-bottom: 34px;
}

.site-footer {
  margin-top: 0;
  color: #fff;
  background: var(--primary);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 42px;
  padding: 56px 0 36px;
}

.footer-main h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.footer-main p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.social-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.social-links a {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: var(--primary-dark);
  background: #fff;
  text-decoration: none;
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 18px 0 28px;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  line-height: 1.5;
}

.floating-bubble {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 24;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px 0 16px;
  color: #fff;
  background: #18a84a;
  box-shadow: var(--shadow);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.floating-bubble.left {
  right: auto;
  left: 18px;
}

.whatsapp-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.whatsapp-icon svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.page-view {
  margin-top: 34px;
}

.page-view article {
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.page-hero {
  display: grid;
  min-height: 330px;
  align-items: end;
  padding: clamp(30px, 6vw, 70px);
  color: #fff;
  background:
    linear-gradient(115deg, rgba(5, 155, 148, 0.9), rgba(20, 34, 38, 0.5)),
    var(--page-image, linear-gradient(135deg, #059b94, #ffb000));
  background-position: center;
  background-size: cover;
}

.page-hero p {
  max-width: 760px;
  margin: 14px 0 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
}

.page-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: 0.98;
}

.page-body {
  max-width: 820px;
  padding: clamp(28px, 5vw, 56px);
  font-size: 1.05rem;
  line-height: 1.8;
}

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

.promo-dialog {
  width: min(720px, calc(100% - 32px));
  border: 0;
  border-radius: 18px;
  padding: 0;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 28px 70px rgba(12, 28, 31, 0.3);
  overflow: hidden;
}

.promo-dialog::backdrop {
  background: rgba(12, 28, 31, 0.58);
  backdrop-filter: blur(2px);
}

.promo-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 310px;
}

.promo-visual {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 26% 24%, rgba(255, 255, 255, 0.34), transparent 24%),
    linear-gradient(145deg, var(--primary), var(--primary-dark) 55%, var(--accent));
}

.promo-visual span,
.promo-visual strong {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--primary-dark);
  background: #fff;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.18);
}

.promo-visual span {
  width: 88px;
  height: 88px;
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
}

.promo-visual strong {
  position: absolute;
  right: 26px;
  bottom: 34px;
  width: 62px;
  height: 62px;
  color: #fff;
  background: var(--accent-dark);
  font-size: 2rem;
}

.promo-content {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 46px 52px 42px 42px;
}

.promo-kicker {
  justify-self: start;
  margin: 0;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--primary-dark);
  background: #e6f5f4;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.promo-dialog h2 {
  max-width: 420px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.promo-dialog #popupText {
  max-width: 410px;
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.6;
  font-weight: 500;
  text-transform: none;
}

.promo-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 4px;
}

.promo-actions .primary-button,
.promo-actions .secondary-button {
  min-height: 46px;
  padding-inline: 18px;
}

.dialog-close,
.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  border: 1px solid rgba(4, 122, 117, 0.25);
  border-radius: 50%;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(12, 28, 31, 0.08);
}

.side-panel,
.admin-panel {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  justify-content: flex-end;
  background: rgba(12, 28, 31, 0.52);
}

.side-panel.open,
.admin-panel.open {
  display: flex;
}

.panel-card,
.admin-card {
  width: min(620px, 100%);
  height: 100%;
  overflow-y: auto;
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-card {
  width: min(1080px, 100%);
}

.panel-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.panel-header p {
  margin: 0 0 4px;
  color: var(--primary-dark);
  font-weight: 900;
  text-transform: uppercase;
}

.panel-header h2 {
  margin: 0;
}

.cart-items,
.checkout-form,
.cart-summary,
.coupon-row,
.orders-list,
.admin-list {
  padding: 18px 22px;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-controls button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
}

.coupon-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.coupon-row input,
.checkout-form input,
.checkout-form select,
.checkout-form textarea,
.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 11px;
  color: var(--ink);
  background: #fff;
}

.cart-summary {
  display: grid;
  gap: 8px;
  background: var(--soft);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.summary-line.total {
  font-size: 1.2rem;
  font-weight: 900;
}

.checkout-form {
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-grid label,
.admin-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.wide {
  grid-column: 1 / -1;
}

.captcha-box {
  display: grid;
  grid-template-columns: 1fr 100px auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-tabs {
  display: flex;
  gap: 8px;
  padding: 14px 22px 0;
  overflow-x: auto;
}

.admin-tabs button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 16px;
  background: #fff;
  font-weight: 900;
}

.admin-tabs button.active {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.tab-pane {
  display: none;
  padding: 22px;
}

.tab-pane.active {
  display: block;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.admin-form h3,
.compact-form h3 {
  grid-column: 1 / -1;
  margin: 0;
}

.admin-form .actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.split-admin {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 16px;
}

.compact-form {
  align-content: start;
}

.admin-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.admin-list article,
.order-card {
  padding: 14px;
}

.admin-list h4,
.order-card h3 {
  margin: 0 0 6px;
}

.order-card {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.order-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.order-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  color: #fff;
  background: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
}

.order-card select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 10px;
}

.empty-state {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
  background: #fff;
}

.empty-state strong,
.empty-state span {
  display: block;
}

.search-empty-state {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: clamp(34px, 6vw, 64px);
  border-style: solid;
}

.search-empty-state strong {
  max-width: 760px;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  line-height: 1.18;
}

.search-empty-state span {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.whatsapp-empty-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  margin-top: 8px;
  border-radius: var(--radius);
  padding: 0 28px;
  color: #fff;
  background: #16a34a;
  font-size: 1rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.22);
}

.whatsapp-empty-button:hover {
  background: #12853d;
}

.whatsapp-empty-button .whatsapp-icon {
  background: rgba(255, 255, 255, 0.18);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  transform: translateX(-50%) translateY(120px);
  max-width: min(520px, calc(100% - 32px));
  border-radius: var(--radius);
  padding: 13px 16px;
  color: #fff;
  background: #17282c;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: 0.22s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 1020px) {
  .header-main {
    grid-template-columns: 1fr auto;
  }

  .search-box {
    grid-column: 1 / -1;
    order: 3;
    margin-bottom: 14px;
  }

  .hero {
    min-height: 390px;
    background:
      linear-gradient(90deg, color-mix(in srgb, var(--hero-gradient-primary, var(--soft)) 96%, transparent) 0%, color-mix(in srgb, var(--hero-gradient-secondary, var(--soft)) 82%, transparent) 62%, transparent 100%),
      var(--hero-image, linear-gradient(135deg, #e9f6f5, #ffe7ac));
    background-position: center right;
  }

  .advantages,
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .category-grid,
  .product-grid,
  .category-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(auto-fit, minmax(124px, 148px));
    justify-content: center;
  }

  .split-admin,
  .admin-list {
    grid-template-columns: 1fr;
  }

  .promo-layout {
    grid-template-columns: 1fr;
  }

  .promo-visual {
    min-height: 150px;
  }

  .promo-visual span {
    width: 72px;
    height: 72px;
    font-size: 3.2rem;
  }

  .promo-visual strong {
    right: calc(50% - 96px);
    bottom: 24px;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 28px, 1160px);
  }

  .promo-badges {
    position: static;
    flex-direction: column;
    gap: 4px;
  }

  .promo-badges span + span {
    border-left: 0;
    padding-left: 0;
  }

  .site-header {
    top: 0;
  }

  body.search-active #featuredProductsSection {
    margin-top: 18px;
  }

  body.search-active #featuredProductsSection .section-heading {
    margin-bottom: 14px;
  }

  .header-main {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 14px;
  }

  .header-actions {
    justify-content: space-between;
  }

  .hide-mobile {
    display: none;
  }

  .promo-dialog {
    width: min(100% - 24px, 460px);
    border-radius: 16px;
  }

  .promo-layout {
    min-height: auto;
  }

  .promo-visual {
    min-height: 126px;
  }

  .promo-visual strong {
    width: 52px;
    height: 52px;
    right: calc(50% - 82px);
    bottom: 18px;
    font-size: 1.65rem;
  }

  .promo-content {
    gap: 14px;
    padding: 28px 22px 24px;
  }

  .promo-dialog h2 {
    font-size: clamp(1.85rem, 9vw, 2.35rem);
  }

  .promo-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .promo-actions .primary-button,
  .promo-actions .secondary-button {
    width: 100%;
  }

  .hero-copy {
    width: min(100%, 680px);
    padding: 28px;
  }

  .hero-media {
    display: none;
  }

  .advantages,
  .category-grid,
  .product-grid,
  .category-row,
  .inline-banners,
  .footer-banners,
  .footer-main,
  .form-grid,
  .admin-form {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: auto;
    grid-template-columns: 118px 1fr;
    grid-template-rows: auto auto auto;
    align-items: center;
    gap: 14px;
  }

  .product-image {
    grid-row: 1 / span 3;
    height: 150px;
  }

  .add-button {
    grid-column: 1 / -1;
  }

  .banner-card {
    padding: 26px;
  }

  .footer-main {
    gap: 28px;
  }

  .captcha-box,
  .coupon-row {
    grid-template-columns: 1fr;
  }

  .tab-pane,
  .cart-items,
  .checkout-form,
  .cart-summary,
  .coupon-row,
  .orders-list,
  .admin-list {
    padding-inline: 14px;
  }
}

/* Individual product pages share the storefront theme and checkout. */
.product-title a { color: inherit; text-decoration: none; }
.product-title a:hover { text-decoration: underline; }
a.product-image { text-decoration: none; color: inherit; }
.product-detail { padding-top: 28px; padding-bottom: 48px; }
.product-breadcrumb { margin-bottom: 28px; font-size: 14px; }
.product-breadcrumb a, .catalog-links a, .product-detail a { color: var(--primary-dark); }
.product-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; background: white; padding: 32px; border-radius: 16px; }
.product-detail-layout h1 { font-size: clamp(24px, 4vw, 36px); line-height: 1.2; }
.product-detail-image { width: 100%; height: 380px; object-fit: contain; }
.product-detail-placeholder { display: grid; place-items: center; height: 300px; font-size: 100px; color: var(--primary); }
.product-description { margin: 24px 0; line-height: 1.7; white-space: normal; overflow-wrap: anywhere; }
.catalog-links { margin-top: 24px; }
.catalog-links summary { cursor: pointer; }
.catalog-links ul { columns: 3; padding-left: 24px; line-height: 1.8; }
@media (max-width: 700px) {
  .product-detail-layout { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .product-detail-image { height: 260px; }
  .catalog-links ul { columns: 1; }
}
