* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--color-page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.panel-open { overflow: hidden; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell { min-height: 100vh; padding-bottom: 68px; }

.site-header {
  position: sticky;
  top: 10px;
  z-index: 30;
  width: min(1180px, calc(100% - 20px));
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px auto 0;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(228, 231, 236, 0.96);
  border-bottom-color: rgba(228, 231, 236, 0.72);
  border-radius: 8px 8px 0 0;
  box-shadow: 0 16px 42px rgba(16, 24, 40, 0.09);
  backdrop-filter: blur(18px);
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 0;
}

.brand-mark,
.footer-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--dark), #1d2939 55%, var(--red));
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.18);
}

.brand-copy { display: grid; min-width: 0; max-width: 118px; }
.brand-kicker { font-size: 12px; color: var(--red); font-weight: 800; line-height: 1; }
.brand-name { font-size: 16px; font-weight: 900; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.search-bar {
  display: none;
  align-items: center;
  gap: 10px;
  width: min(440px, 36vw);
  min-width: 240px;
  padding: 0 12px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
}

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

.header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.icon-button,
.small-icon,
.slider-nav {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  display: grid;
  place-items: center;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.icon-button { width: 42px; height: 42px; position: relative; }
.small-icon { width: 36px; height: 36px; }
.slider-nav { width: 40px; height: 40px; }

.icon-button:hover,
.small-icon:hover,
.slider-nav:hover { transform: translateY(-1px); border-color: rgba(215, 25, 63, 0.36); }

.cart-button { color: var(--red); }

.cart-icon {
  width: 22px;
  height: 22px;
}

.cart-icon .cart-accent {
  stroke: var(--amber);
  stroke-width: 2.35;
}

.cart-icon .cart-wheel {
  fill: var(--amber);
  stroke: none;
}

.menu-icon {
  width: 23px;
  height: 23px;
}

.menu-icon path {
  stroke-width: 2.25;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  border: 2px solid #fff;
}

.mobile-search {
  position: sticky;
  top: var(--header-height);
  z-index: 25;
  padding: 8px 14px 10px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}

.mobile-search[hidden] { display: none; }
.search-bar-mobile { display: flex; width: 100%; min-width: 0; }

.hero-section {
  position: relative;
  overflow: hidden;
  width: min(1180px, calc(100% - 20px));
  margin: 0 auto;
  border-radius: 0 0 8px 8px;
  background: var(--dark);
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.14);
}

.hero-slider {
  position: relative;
  aspect-ratio: 4 / 5;
  min-height: auto;
  background: var(--dark);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide picture,
.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-slide img {
  object-fit: cover;
}

.primary-button,
.ghost-button,
.text-button {
  min-height: 44px;
  border-radius: 8px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  font-weight: 900;
}

.primary-button {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  box-shadow: 0 14px 28px rgba(215, 25, 63, 0.25);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.text-button {
  background: transparent;
  color: var(--red);
  padding: 0;
}

.primary-button.full { width: 100%; }

.hero-progress {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  width: min(210px, calc(100% - 42px));
  padding: 7px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.hero-progress-segment {
  flex: 1;
  height: 4px;
  border: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
}

.hero-progress-segment span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--amber), #fff1b6);
  transform: scaleX(0);
  transform-origin: left center;
}

.hero-progress-segment.active span {
  animation: hero-progress 6s linear forwards;
}

@keyframes hero-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.section-wrap {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 30px 0 0;
}

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

.section-head h2,
.panel-head h2,
.footer-col h3,
.footer-map h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: 0;
}

.category-section .section-head h2 {
  font-size: clamp(30px, 8vw, 46px);
  line-height: 1.04;
  max-width: 12ch;
}

.category-section .eyebrow {
  color: var(--red);
  font-size: 13px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.category-section { scroll-margin-top: 92px; }

.category-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(168px, 58vw);
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
  padding: 2px 2px 12px;
}

.category-rail::-webkit-scrollbar { display: none; }

.category-card {
  min-height: 172px;
  scroll-snap-align: start;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
  overflow: hidden;
  text-align: left;
  padding: 0;
  box-shadow: 0 14px 28px rgba(16, 24, 40, 0.055);
  color: var(--ink);
  display: grid;
  align-content: start;
  position: relative;
  isolation: isolate;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: auto 12px 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--red), var(--amber));
  opacity: 0;
  transform: scaleX(0.7);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.category-card:hover { transform: translateY(-2px); }

.category-card:focus-visible {
  outline: 3px solid rgba(215, 25, 63, 0.24);
  outline-offset: 3px;
}

.category-card.active {
  border-color: rgba(215, 25, 63, 0.56);
  box-shadow: 0 18px 36px rgba(215, 25, 63, 0.14);
}

.category-card.active::after { opacity: 1; transform: scaleX(1); }

.category-card.active .category-count { background: rgba(215, 25, 63, 0.86); }

.category-media {
  height: 106px;
  position: relative;
  overflow: hidden;
  background: var(--soft-2);
}

.category-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 17, 28, 0.05), rgba(11, 17, 28, 0.42)),
    linear-gradient(90deg, rgba(215, 25, 63, 0.38), transparent 54%);
}

.category-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.category-icon {
  position: absolute;
  z-index: 2;
  left: 10px;
  bottom: 10px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 19px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.18);
}

.category-count {
  position: absolute;
  z-index: 2;
  right: 10px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(11, 17, 28, 0.76);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.category-body {
  display: grid;
  gap: 5px;
  padding: 12px 12px 14px;
}

.category-card strong {
  display: block;
  font-size: 15px;
  line-height: 1.18;
}

.category-card small {
  display: block;
  min-height: 32px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product-card {
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
  box-shadow: 0 14px 30px rgba(16, 24, 40, 0.065);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.product-image {
  display: block;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1 / 0.82;
  background: #f0f4f8;
  overflow: hidden;
  position: relative;
  border: 0;
  padding: 0;
}

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

.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(215, 25, 63, 0.96), rgba(255, 176, 32, 0.92));
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 9px;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(215, 25, 63, 0.2);
  backdrop-filter: blur(8px);
}

.product-info {
  min-width: 0;
  padding: 12px;
  display: grid;
  gap: 9px;
  flex: 1;
}

.product-info h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
  min-height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-price {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1.1;
}

.compact-price strong {
  color: var(--red);
  font-size: 17px;
  font-weight: 950;
  white-space: nowrap;
}

.compact-price del {
  color: #7b8494;
  font-size: 11px;
  font-weight: 800;
  text-decoration-thickness: 1.5px;
  white-space: nowrap;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.price-row strong { color: var(--red); font-size: 15px; }
.price-row span { color: var(--teal); font-size: 11px; font-weight: 900; }

.product-actions {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 46px;
  gap: 8px;
  margin-top: auto;
}

.stock-action,
.add-button {
  min-width: 0;
  min-height: 42px;
  border-radius: 7px;
  font-weight: 900;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.stock-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 118, 110, 0.16);
  background: rgba(15, 118, 110, 0.08);
  color: var(--teal);
  font-size: 12px;
  box-shadow: inset 0 -1px 0 rgba(15, 118, 110, 0.06);
}

.add-button {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--red), #c91538);
  border-color: transparent;
  box-shadow: 0 12px 22px rgba(215, 25, 63, 0.22);
}

.add-button:hover {
  transform: translateY(-1px);
}

.add-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.load-wrap {
  display: flex;
  justify-content: center;
  padding: 18px 0 10px;
}

.result-count { color: var(--muted); font-weight: 800; font-size: 13px; }

.site-footer {
  margin-top: 38px;
  padding: 34px 16px 86px;
  background: var(--dark);
  color: #fff;
}

.footer-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

.footer-brand h2 { margin: 12px 0 10px; font-size: 22px; }
.footer-brand p,
.footer-col p,
.footer-bottom { color: rgba(255, 255, 255, 0.76); }
.footer-col h3,
.footer-map h3 { color: #fff; margin-bottom: 12px; }
.footer-col p { margin: 0 0 14px; }
.footer-col a:hover,
.footer-bottom a:hover { color: #fff; }

.footer-map iframe {
  width: 100%;
  height: 210px;
  border: 0;
  border-radius: 8px;
  filter: saturate(0.95) contrast(1.02);
}

.social-col {
  display: grid;
  align-content: start;
  gap: 10px;
}

.social-col a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
}

.social-col span { color: var(--amber); width: 20px; text-align: center; }

.footer-bottom {
  width: min(1180px, 100%);
  margin: 28px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 14px;
}

.footer-bottom nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 12px;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(8, 13, 23, 0.46);
  backdrop-filter: blur(5px);
}

.overlay[hidden] { display: none; }

.menu-panel,
.cart-drawer {
  position: fixed;
  z-index: 50;
  inset: 0 0 0 auto;
  width: min(100%, 430px);
  transform: translateX(105%);
  transition: transform 0.24s ease;
  background: var(--soft);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  padding: 18px;
  overflow-y: auto;
}

.menu-panel.open,
.cart-drawer.open { transform: translateX(0); }

.cart-drawer {
  width: min(100%, 470px);
}

.panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.language-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 4px;
  border-radius: 8px;
  background: var(--soft);
  margin-bottom: 18px;
}

.lang-button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.lang-button.active { background: var(--dark); color: #fff; }

.menu-categories {
  display: grid;
  gap: 8px;
  overflow-y: auto;
  padding-right: 2px;
}

.menu-category {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-weight: 900;
}

.menu-category.active { border-color: var(--red); color: var(--red); background: #fff5f7; }

.cart-helper {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #effaf8);
  box-shadow: 0 14px 32px rgba(16, 24, 40, 0.06);
  margin-bottom: 16px;
}

.cart-helper-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
}

.cart-helper strong { display: block; font-size: 15px; }
.cart-helper p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }

.cart-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.cart-section-title small {
  color: var(--red);
  font-size: 12px;
}

.cart-items {
  display: grid;
  gap: 10px;
  padding-right: 2px;
  min-height: 80px;
}

.cart-empty {
  padding: 18px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  text-align: center;
}

.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(16, 24, 40, 0.06);
}

.cart-thumb {
  position: relative;
  width: 76px;
  height: 76px;
}

.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.cart-thumb span {
  position: absolute;
  right: -7px;
  top: -7px;
  min-width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--dark);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  border: 2px solid #fff;
}

.cart-item-body {
  min-width: 0;
}

.cart-item-body p {
  margin: 0 0 3px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.cart-item h3 {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.25;
}

.cart-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

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

.qty-controls button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 900;
}

.remove-item {
  border: 0;
  background: transparent;
  color: var(--red);
  font-weight: 900;
}

.cart-summary {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(16, 24, 40, 0.08);
  box-shadow: 0 12px 26px rgba(16, 24, 40, 0.06);
}

.cart-summary > div,
.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-summary span {
  color: var(--muted);
  font-weight: 800;
}

.cart-total {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.cart-total strong { color: var(--red); font-size: 22px; }

.order-form {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(16, 24, 40, 0.08);
  box-shadow: 0 12px 26px rgba(16, 24, 40, 0.06);
  margin-bottom: 8px;
}

.order-form label { display: grid; gap: 6px; font-weight: 800; color: var(--ink); }

.order-form input,
.order-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  outline: none;
  resize: vertical;
}

.order-form input:focus,
.order-form textarea:focus { border-color: rgba(215, 25, 63, 0.6); box-shadow: 0 0 0 4px rgba(215, 25, 63, 0.08); }

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: rgba(8, 13, 23, 0.58);
  backdrop-filter: blur(8px);
}

.product-modal.open { display: flex; }

.modal-card {
  width: min(100%, 1040px);
  max-height: min(94vh, 850px);
  overflow: auto;
  overflow-x: hidden;
  position: relative;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: #f6f9fc;
  box-shadow: 0 34px 90px rgba(4, 12, 24, 0.34);
}

.modal-close {
  position: sticky;
  top: 10px;
  margin: 10px 10px 0 auto;
  z-index: 4;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.16);
}

.detail-layout {
  min-width: 0;
  display: grid;
  gap: 14px;
  padding: 0 14px 14px;
}

.detail-media-panel {
  display: grid;
  gap: 9px;
  align-content: start;
}

.detail-media-panel > img {
  width: 100%;
  aspect-ratio: 1 / 0.78;
  object-fit: cover;
  border-radius: 8px;
  background: var(--soft);
  box-shadow: 0 18px 42px rgba(16, 24, 40, 0.09);
}

.detail-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 58px;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.detail-gallery::-webkit-scrollbar { display: none; }

.detail-gallery button {
  border: 1px solid rgba(16, 24, 40, 0.09);
  border-radius: 8px;
  padding: 3px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.06);
}

.detail-gallery button.active {
  border-color: rgba(215, 25, 63, 0.74);
  box-shadow: 0 0 0 3px rgba(215, 25, 63, 0.08);
}

.detail-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.detail-copy {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(16, 24, 40, 0.06);
}

.detail-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.detail-kicker span {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  color: var(--muted);
  background: var(--soft);
  font-size: 11px;
  font-weight: 950;
}

.detail-kicker span:first-child {
  color: #fff;
  background: var(--dark);
}

.detail-copy h2 {
  margin: 0 0 7px;
  font-size: clamp(22px, 7vw, 34px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.detail-summary {
  color: var(--muted);
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
}

.detail-buy-card {
  display: grid;
  gap: 10px;
  padding: 10px;
  margin: 12px 0;
  border: 1px solid rgba(215, 25, 63, 0.11);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(215, 25, 63, 0.06), rgba(255, 176, 32, 0.05)),
    #fff;
}

.detail-cart-button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #d7193f;
  color: #fff;
  font-weight: 950;
  opacity: 1;
  box-shadow: 0 14px 26px rgba(215, 25, 63, 0.2);
}

.detail-price-card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 9px;
}

.detail-price-card div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.detail-price-card strong {
  color: var(--red);
  font-size: 25px;
  line-height: 1;
  white-space: nowrap;
}

.detail-price-card del {
  color: #7b8494;
  font-weight: 800;
  white-space: nowrap;
}

.detail-price-card span,
.detail-chips span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.09);
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  padding: 7px 9px;
  white-space: normal;
}

.detail-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 10px 0 12px;
}

.detail-trust-strip span {
  min-width: 0;
  display: grid;
  min-height: 48px;
  place-items: center;
  text-align: center;
  padding: 7px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 8px;
  background: rgba(15, 118, 110, 0.07);
  color: var(--teal);
  font-size: 11px;
  font-weight: 950;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.detail-chips span {
  background: var(--soft);
  color: var(--muted);
}

.variant-block,
.highlight-panel {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
}

.variant-block > p,
.highlight-panel h3 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
}

.variant-group {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 8px;
  background: #fff;
}

.variant-group strong { font-size: 13px; }

.variant-group div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.variant-group span {
  border: 1px solid rgba(215, 25, 63, 0.18);
  border-radius: 8px;
  padding: 8px 9px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  background: rgba(215, 25, 63, 0.04);
}

.variant-group span.selected {
  border-color: rgba(215, 25, 63, 0.5);
  color: var(--red);
  background: rgba(215, 25, 63, 0.08);
}

.highlight-grid {
  display: grid;
  gap: 8px;
}

.highlight-grid span {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px;
  border: 1px solid rgba(16, 24, 40, 0.07);
  border-radius: 8px;
  background: #f8fbfd;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.highlight-grid i {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--teal);
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
}

.feature-list {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  font-weight: 700;
}

.rich-list {
  margin: 0;
}

.detail-sections {
  display: grid;
  gap: 9px;
  padding: 0 14px 14px;
}

.detail-section {
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.04);
}

.detail-section summary {
  cursor: pointer;
  list-style: none;
  padding: 13px 14px;
  color: var(--ink);
  font-weight: 950;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-section summary::-webkit-details-marker { display: none; }

.detail-section summary::after {
  content: "+";
  color: var(--red);
  font-size: 18px;
  line-height: 1;
}

.detail-section[open] summary::after { content: "-"; }

.detail-table {
  display: grid;
  margin: 0;
  border-top: 1px solid rgba(16, 24, 40, 0.08);
}

.detail-table div {
  display: grid;
  grid-template-columns: minmax(104px, 0.42fr) 1fr;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(16, 24, 40, 0.06);
}

.detail-table div:last-child { border-bottom: 0; }

.detail-table dt {
  color: var(--muted);
  font-weight: 900;
  font-size: 12px;
}

.detail-table dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.35;
}

.detail-section .rich-list {
  padding: 0 14px 14px;
  border-top: 1px solid rgba(16, 24, 40, 0.08);
}

.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 78px;
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  background: var(--dark);
  color: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  width: min(calc(100% - 28px), 420px);
  text-align: center;
  font-weight: 800;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.bottom-actions {
  position: fixed;
  z-index: 35;
  left: 10px;
  right: auto;
  bottom: 10px;
  width: min(360px, calc(100vw - 20px));
  height: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(228, 231, 236, 0.92);
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.18);
  backdrop-filter: blur(18px);
}

.bottom-action {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 900;
  font-size: 13px;
  min-width: 0;
}

.bottom-action svg { width: 18px; height: 18px; }
.bottom-action .cart-icon { width: 20px; height: 20px; }
.bottom-action .menu-icon { width: 20px; height: 20px; }
.bottom-action span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bottom-action:nth-child(2) { background: var(--red); color: #fff; }

@media (max-width: 759px) {
  .site-header { display: grid; grid-template-columns: 154px max-content; justify-content: start; padding-inline: 10px; gap: 8px; }
  .site-header > .search-bar { display: none; }
  .brand { width: 154px; max-width: 100%; }
  .brand-mark { width: 40px; height: 40px; flex-basis: 40px; }
  .brand-copy { max-width: 100px; }
  .brand-name { font-size: 15px; }
  .brand-kicker { font-size: 11px; }
  .header-actions { justify-self: start; gap: 6px; }
  .icon-button { width: 38px; height: 38px; }
  .cart-count { top: -7px; right: -7px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-trust-strip span:last-child { grid-column: 1 / -1; }
}

@media (min-width: 560px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-rail { grid-auto-columns: 214px; }
}

@media (min-width: 760px) {
  .app-shell { padding-bottom: 0; }
  .site-header { padding: 11px 14px; }
  .brand { flex: 0 0 auto; }
  .brand-copy { max-width: none; }
  .brand-name { font-size: 18px; }
  .search-bar { display: flex; }
  .search-toggle { display: none; }
  .hero-slider { aspect-ratio: 16 / 7; }
  .hero-progress { bottom: 18px; width: 240px; }
  .section-wrap { width: min(1180px, calc(100% - 44px)); padding-top: 42px; }
  .category-rail { grid-auto-columns: 232px; gap: 14px; }
  .category-card { min-height: 188px; }
  .category-media { height: 112px; }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .footer-grid { grid-template-columns: 1.15fr 1fr 1.25fr 0.85fr; align-items: start; }
  .site-footer { padding-bottom: 34px; }
  .bottom-actions { display: none; }
  .product-modal { align-items: center; padding: 24px; }
  .detail-layout { grid-template-columns: 1.08fr 0.92fr; align-items: start; padding: 0 24px 24px; }
  .detail-sections { padding: 0 24px 24px; }
  .detail-buy-card { grid-template-columns: 1fr 154px; align-items: center; }
  .highlight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal-close { top: 16px; margin: 16px 16px 0 auto; }
}

@media (min-width: 1040px) {
  .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
