:root {
  color-scheme: light;
  --bg: #f7efe2;
  --paper: #fffaf1;
  --card: #fffdf8;
  --ink: #241811;
  --muted: #7d6a59;
  --line: #eadbc7;
  --brand: #b5271d;
  --brand-dark: #6f1812;
  --gold: #d8a13a;
  --green: #223d32;
  --green-soft: #edf4ef;
  --section-gap: clamp(14px, 2.4vw, 22px);
  --shadow: 0 14px 36px rgba(82, 45, 20, 0.11);
  --soft-shadow: 0 8px 20px rgba(82, 45, 20, 0.08);
}

* {
  box-sizing: border-box;
}

:focus-visible {
  outline: 3px solid rgba(220, 38, 38, 0.38);
  outline-offset: 3px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background:
    radial-gradient(circle at 8% -6%, rgba(216, 161, 58, 0.34), transparent 26%),
    radial-gradient(circle at 92% 4%, rgba(181, 39, 29, 0.18), transparent 28%),
    linear-gradient(180deg, #fff7eb 0%, var(--bg) 44%, #efe2d1 100%);
}

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

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.app-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px max(16px, calc((100vw - 1220px) / 2));
  background: rgba(255, 250, 241, 0.88);
  border-bottom: 1px solid rgba(234, 219, 199, 0.86);
  backdrop-filter: blur(18px);
}

.app-top__brand,
.app-top__nav a {
  color: inherit;
  text-decoration: none;
}

.app-top__brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  font-weight: 900;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 220, 130, 0.55), transparent 30%),
    linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(181, 39, 29, 0.24);
}

.app-top strong,
.app-top p {
  margin: 0;
}

.app-top p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.app-top__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: auto;
}

.app-top__nav a {
  flex: 0 0 auto;
  padding: 9px 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.app-top__nav .admin-link {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.hero-showcase,
.search-zone,
.catalog-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.55fr);
  gap: 18px;
  padding: 24px 0 18px;
}

.hero-copy,
.hero-panel,
.search-box,
.banner-card,
.catalog-panel,
.loading-card,
.quick-card,
.slogan-card,
.strategy-card,
.package-card,
.trust-card,
.consult-card,
.faq-item,
.filter-card,
.product-card,
.empty-state,
.service-grid article {
  border: 1px solid rgba(234, 219, 199, 0.9);
  box-shadow: var(--shadow);
}

.hero-copy {
  min-height: 300px;
  padding: clamp(22px, 4vw, 38px);
  overflow: hidden;
  position: relative;
  color: #fff;
  background:
    radial-gradient(circle at 80% 8%, rgba(255, 204, 95, 0.42), transparent 24%),
    linear-gradient(135deg, rgba(111, 24, 18, 0.96), rgba(39, 24, 18, 0.9)),
    url("https://images.unsplash.com/photo-1514525253161-7a46d19cd819?auto=format&fit=crop&w=1600&q=80") center / cover;
  border-radius: 34px;
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 216, 128, 0.34), transparent 66%);
}

.eyebrow,
.section-title p,
.hero-panel span,
.quick-card span,
.product-code {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 12px;
  color: #ffd98d;
  font-weight: 800;
}

.hero-copy h1 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 6.2vw, 58px);
  line-height: 1.06;
}

.hero-copy__text {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(255, 248, 230, 0.86);
  font-size: 16px;
  line-height: 1.85;
}

.hero-badges,
.hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badges {
  margin-top: 22px;
}

.hero-badges span {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.hero-badges .safety-badge {
  color: #241811;
  background: #ffd98d;
  border-color: rgba(255, 255, 255, 0.58);
  font-weight: 900;
}

.safety-slogan {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
  max-width: 680px;
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(255, 217, 141, 0.16);
  border: 1px solid rgba(255, 217, 141, 0.36);
  border-radius: 20px;
}

.safety-slogan strong,
.safety-slogan span {
  display: block;
}

.safety-slogan strong {
  color: #ffd98d;
  font-size: 18px;
}

.safety-slogan span {
  color: rgba(255, 248, 230, 0.86);
  font-size: 13px;
  line-height: 1.65;
}

.hero-stats {
  margin-top: 24px;
}

.hero-stats article {
  min-width: 116px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  font-size: 28px;
}

.hero-stats span {
  margin-top: 3px;
  color: rgba(255, 248, 230, 0.78);
  font-size: 12px;
}

.hero-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
  background: var(--paper);
  border-radius: 28px;
}

.hero-panel span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.hero-panel strong {
  font-size: 24px;
  line-height: 1.25;
}

.hero-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.notice-list {
  display: grid;
  gap: 9px;
}

.notice-list p {
  padding: 11px 12px;
  color: var(--brand-dark);
  background: #fff4dd;
  border-radius: 16px;
}

.search-zone {
  padding: 2px 0 var(--section-gap);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: var(--card);
  border-radius: 22px;
}

.search-box span {
  color: var(--brand);
  font-weight: 800;
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
}

.search-box button,
.drawer button,
.detail-card button,
.product-card__actions button,
.load-more-wrap button {
  border: 0;
  border-radius: 999px;
}

.search-box button {
  padding: 8px 12px;
  color: var(--muted);
  background: #f4eadb;
}

.banner-list {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.banner-card {
  position: relative;
  min-height: 128px;
  overflow: hidden;
  border-radius: 24px;
}

.banner-card:first-child {
  min-height: 152px;
}

.banner-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.banner-card:hover img {
  transform: scale(1.05);
}

.banner-card div {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background: linear-gradient(180deg, rgba(24, 13, 8, 0.04), rgba(24, 13, 8, 0.78));
}

.banner-card strong,
.banner-card span {
  display: block;
}

.banner-card strong {
  font-size: 20px;
}

.banner-card span {
  margin-top: 5px;
  opacity: 0.88;
  line-height: 1.5;
}

.catalog-shell {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding-bottom: 96px;
}

.category-rail {
  position: sticky;
  top: 82px;
  display: grid;
  gap: 10px;
  max-height: calc(100vh - 96px);
  overflow: auto;
  padding: 2px 2px 8px;
}

.category-tab {
  width: 100%;
  min-height: 60px;
  padding: 10px 12px;
  color: var(--muted);
  background: rgba(255, 250, 241, 0.86);
  border: 1px solid rgba(234, 219, 199, 0.9);
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
}

.category-tab span,
.category-tab small {
  display: block;
}

.category-tab span {
  font-weight: 800;
}

.category-tab small {
  margin-top: 4px;
  font-size: 12px;
}

.category-tab--active {
  color: #fff;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 216, 128, 0.35), transparent 34%),
    linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-color: transparent;
  box-shadow: 0 16px 30px rgba(181, 39, 29, 0.22);
}

.catalog-main {
  min-width: 0;
}

.catalog-panel,
.loading-card {
  display: grid;
  gap: var(--section-gap);
}

.catalog-panel {
  border: 0;
  box-shadow: none;
}

.loading-card {
  padding: 16px;
  background: var(--paper);
  border-radius: 28px;
}

.loading-card span {
  height: 118px;
  border-radius: 24px;
  background: linear-gradient(90deg, #eadbc7, #fffaf1, #eadbc7);
  background-size: 220% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  to {
    background-position: -220% 0;
  }
}

.category-head {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.category-head img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-head__content {
  position: relative;
  min-height: 260px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background:
    radial-gradient(circle at 82% 12%, rgba(216, 161, 58, 0.35), transparent 24%),
    linear-gradient(120deg, rgba(38, 16, 12, 0.12), rgba(38, 16, 12, 0.84));
}

.category-head p,
.category-head h2,
.category-head span,
.category-metrics strong {
  margin: 0;
}

.category-head p {
  align-self: flex-start;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.category-head h2 {
  margin-top: 12px;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.12;
}

.category-head span {
  margin-top: 7px;
  max-width: 680px;
  line-height: 1.75;
}

.category-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.category-metrics strong {
  padding: 10px 14px;
  color: var(--brand-dark);
  background: #fff4dd;
  border-radius: 999px;
}

.category-metrics span {
  color: rgba(255, 248, 230, 0.82);
}

.content-block {
  display: grid;
  gap: 12px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  padding: 0 2px 2px 14px;
  border-left: 4px solid var(--brand);
}

.section-title h2,
.section-title span,
.section-title p {
  margin: 0;
}

.section-title p {
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
}

.section-title h2 {
  margin-top: 3px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.section-title span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: right;
}

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

.sub-category {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(82, 45, 20, 0.07);
}

.sub-category img {
  width: 100%;
  height: 96px;
  object-fit: cover;
  display: block;
}

.sub-category strong,
.sub-category span,
.sub-category em {
  display: block;
  margin: 0 13px;
}

.sub-category strong {
  margin-top: 11px;
}

.sub-category span {
  min-height: 38px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.sub-category em {
  margin-top: 9px;
  margin-bottom: 13px;
  color: var(--brand);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

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

.quick-card,
.filter-card,
.product-card,
.empty-state,
.service-grid article {
  background: var(--card);
  border-radius: 24px;
}

.quick-card {
  padding: 18px 20px;
  box-shadow: 0 8px 20px rgba(82, 45, 20, 0.07);
}

.quick-card span,
.quick-card strong,
.quick-card p {
  display: block;
  margin: 0;
}

.quick-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.quick-card strong {
  margin-top: 8px;
  font-size: 18px;
}

.quick-card p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

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

.slogan-card {
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 8px 20px rgba(82, 45, 20, 0.07);
}

.slogan-card--primary {
  grid-row: span 2;
  color: #fff;
  background:
    radial-gradient(circle at 84% 4%, rgba(255, 216, 128, 0.28), transparent 34%),
    linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.slogan-card strong,
.slogan-card p {
  display: block;
  margin: 0;
}

.slogan-card strong {
  font-size: 19px;
  line-height: 1.35;
}

.slogan-card--primary strong {
  font-size: clamp(26px, 4vw, 38px);
}

.slogan-card p {
  margin-top: 9px;
  color: var(--muted);
  line-height: 1.65;
}

.slogan-card--primary p {
  color: rgba(255, 248, 230, 0.86);
  font-size: 15px;
}

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

.strategy-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  background:
    radial-gradient(circle at 88% 0%, rgba(216, 161, 58, 0.22), transparent 34%),
    var(--card);
  border: 1px solid rgba(234, 219, 199, 0.9);
  border-radius: 22px;
  box-shadow: 0 8px 20px rgba(82, 45, 20, 0.07);
}

.strategy-card:first-child {
  color: #fff;
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 216, 128, 0.26), transparent 35%),
    linear-gradient(135deg, var(--green), #172820);
}

.strategy-card span,
.strategy-card strong,
.strategy-card em {
  display: block;
}

.strategy-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.strategy-card strong {
  margin-top: 8px;
  font-size: 20px;
}

.strategy-card em {
  margin-top: 7px;
  color: var(--brand);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.strategy-card:first-child em {
  color: #ffd98d;
}

.strategy-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.strategy-card:first-child ul {
  color: rgba(255, 248, 230, 0.86);
}

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

.package-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 8px 20px rgba(82, 45, 20, 0.07);
}

.package-card span,
.package-card strong,
.package-card em,
.package-card p {
  display: block;
  margin: 0;
}

.package-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.package-card strong {
  font-size: 18px;
  line-height: 1.35;
}

.package-card em {
  color: var(--brand);
  font-size: 22px;
  font-style: normal;
  font-weight: 900;
}

.package-card ul {
  display: grid;
  gap: 7px;
  min-height: 86px;
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  line-height: 1.45;
}

.package-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.filter-card {
  position: sticky;
  top: 82px;
  z-index: 10;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 253, 248, 0.9);
  border-color: rgba(234, 219, 199, 0.8);
  backdrop-filter: blur(16px);
}

.filter-card strong {
  display: block;
  margin-bottom: 8px;
}

.chip-row {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.chip {
  flex: 0 0 auto;
  padding: 8px 12px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.chip--active {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

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

.product-card {
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(82, 45, 20, 0.09);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(82, 45, 20, 0.13);
}

.product-card__media {
  position: relative;
  height: 184px;
  overflow: hidden;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-card__media img {
  transform: scale(1.05);
}

.product-card__media span {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  color: #fff;
  background: rgba(36, 24, 17, 0.72);
  border-radius: 999px;
}

.product-card__body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.product-card h3,
.product-card p,
.product-card em {
  margin: 0;
}

.product-code {
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
}

.product-card h3 {
  font-size: 18px;
  line-height: 1.35;
}

.product-card p:not(.product-code) {
  min-height: 42px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
}

.tag-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag-list small {
  padding: 5px 8px;
  color: var(--brand-dark);
  background: #f5e6d1;
  border-radius: 999px;
}

.product-card__foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.product-card__foot strong {
  color: var(--brand);
}

.product-card__foot em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.product-card__actions {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 8px;
  margin-top: 2px;
}

.product-card__actions button,
.load-more-wrap button,
.detail-card button {
  padding: 10px 12px;
}

.product-card__actions button:first-child {
  color: var(--green);
  background: var(--green-soft);
}

.product-card__actions button:last-child,
.load-more-wrap button,
.detail-card #detail-add {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.load-more-wrap {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.load-more-wrap p {
  margin: 0;
  color: var(--muted);
}

.empty-state {
  padding: 32px 18px;
  text-align: center;
}

.empty-state h3,
.empty-state p {
  margin: 0;
}

.empty-state p {
  margin-top: 8px;
  color: var(--muted);
}

.service-section {
  display: grid;
  gap: 12px;
}

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

.trust-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 8px 20px rgba(82, 45, 20, 0.06);
}

.trust-card strong,
.trust-card p {
  display: block;
  margin: 0;
}

.trust-card strong {
  color: var(--green);
  font-size: 17px;
}

.trust-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(82, 45, 20, 0.06);
}

.faq-item summary {
  color: var(--ink);
  font-weight: 900;
}

.faq-item p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.consult-card {
  padding: 17px;
  background: #fff8ea;
  border: 1px dashed rgba(181, 39, 29, 0.28);
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(82, 45, 20, 0.06);
}

.consult-card span,
.consult-card p {
  display: block;
  margin: 0;
}

.consult-card span {
  color: var(--brand);
  font-weight: 900;
}

.consult-card p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

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

.service-grid article {
  padding: 18px;
  box-shadow: 0 8px 20px rgba(82, 45, 20, 0.06);
}

.service-grid strong,
.service-grid p {
  display: block;
  margin: 0;
}

.service-grid p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.65;
}

.cart-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  padding: 14px 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), #45675d);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(36, 61, 50, 0.24);
}

.cart-float--active {
  animation: cartPulse 520ms ease;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  justify-content: flex-end;
  background: rgba(30, 18, 12, 0.38);
}

.drawer__panel {
  width: min(460px, 100%);
  height: 100%;
  padding: 20px;
  display: grid;
  grid-template-rows: auto minmax(118px, 0.72fr) minmax(320px, 1.1fr) auto;
  gap: 12px;
  background: var(--paper);
}

.drawer__head,
.drawer__foot,
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.drawer__foot {
  align-items: flex-start;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.drawer__foot > strong {
  padding-top: 9px;
  color: var(--brand);
  font-size: 20px;
}

.drawer__head h2 {
  margin: 0;
}

.drawer__head button,
.drawer__foot button {
  padding: 9px 12px;
  color: var(--muted);
  background: #f2eadf;
}

.drawer__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.drawer__foot .submit-order {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

@keyframes cartPulse {
  0% {
    transform: translateY(0) scale(1);
  }

  45% {
    transform: translateY(-4px) scale(1.05);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

.drawer__foot button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.cart-items {
  overflow: auto;
  display: grid;
  gap: 10px;
  align-content: start;
}

.cart-item {
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(82, 45, 20, 0.05);
}

.cart-item span,
.cart-item small {
  display: block;
}

.cart-item small {
  margin-top: 4px;
  color: var(--muted);
}

.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.cart-item__controls button {
  min-width: 30px;
  height: 30px;
  padding: 0 9px;
  color: var(--green);
  background: var(--green-soft);
  border: 0;
  border-radius: 999px;
}

.order-form {
  display: grid;
  gap: 10px;
  overflow: auto;
  padding: 14px;
  background: linear-gradient(180deg, #fffaf0, #fff7e6);
  border: 1px solid rgba(181, 39, 29, 0.16);
  border-radius: 20px;
}

.order-form__title {
  display: grid;
  gap: 4px;
}

.order-form__title span,
.order-form label span,
.order-form__safety,
.order-status {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.order-form label {
  display: grid;
  gap: 5px;
}

.order-form label span {
  color: var(--ink);
  font-weight: 800;
}

.order-form input,
.order-form select,
.order-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  outline: 0;
}

.order-form input,
.order-form select {
  min-height: 40px;
  padding: 0 11px;
}

.order-form textarea {
  resize: vertical;
  padding: 10px 11px;
}

.order-form__safety,
.order-status {
  margin: 0;
}

.order-status[data-type="success"] {
  color: #1f6b3b;
}

.order-status[data-type="error"] {
  color: var(--brand);
}

.detail-modal {
  width: min(900px, calc(100% - 22px));
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 26px;
}

.detail-modal::backdrop {
  background: rgba(30, 18, 12, 0.45);
}

.detail-card {
  position: relative;
  display: grid;
  grid-template-columns: 42% 1fr;
  background: var(--paper);
}

.detail-card__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
}

.detail-card > img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.detail-card__body {
  display: grid;
  gap: 12px;
  padding: 26px;
}

.detail-card__body p,
.detail-card__body h2,
.detail-card__body span {
  margin: 0;
}

.detail-card__body > p:first-child {
  color: var(--brand);
  font-weight: 800;
}

.detail-card__body > span,
.detail-card__body > p {
  color: var(--muted);
  line-height: 1.75;
}

.detail-card__foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.detail-card__foot strong {
  color: var(--brand);
  font-size: 22px;
}

@media (max-width: 1080px) {
  .hero-showcase,
  .banner-list {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .sub-category-grid,
  .slogan-grid,
  .strategy-grid,
  .package-grid,
  .consult-grid,
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .slogan-card--primary {
    grid-row: auto;
  }

  .filter-card {
    position: static;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .app-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-showcase {
    width: calc(100% - 20px);
    padding-top: 14px;
  }

  .hero-copy {
    min-height: auto;
    border-radius: 28px;
  }

  .catalog-shell {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 10px 96px;
  }

  .search-zone {
    width: calc(100% - 16px);
  }

  .category-tab {
    width: auto;
    min-width: 104px;
    min-height: 58px;
    border-radius: 18px;
  }

  .category-rail {
    position: sticky;
    top: 82px;
    z-index: 12;
    display: flex;
    gap: 8px;
    max-height: none;
    padding: 8px 0;
    background: rgba(247, 239, 226, 0.88);
    backdrop-filter: blur(14px);
  }

  .category-head,
  .category-head__content {
    min-height: 220px;
  }

  .quick-list,
  .slogan-grid,
  .strategy-grid,
  .package-grid,
  .consult-grid,
  .trust-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .detail-card {
    grid-template-columns: 1fr;
  }

  .detail-card > img {
    min-height: 230px;
  }

  .section-title {
    display: grid;
    align-items: start;
  }

  .section-title span {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-stats article {
    min-width: calc(50% - 5px);
  }

  .app-top {
    padding-inline: 12px;
  }

  .hero-showcase,
  .search-zone {
    width: calc(100% - 20px);
  }

  .search-box {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .banner-card,
  .banner-card:first-child {
    min-height: 132px;
  }

  .product-grid,
  .sub-category-grid {
    grid-template-columns: 1fr;
  }

  .sub-category {
    display: grid;
    grid-template-columns: 94px 1fr;
    align-items: center;
  }

  .sub-category img {
    height: 100%;
    min-height: 104px;
  }

  .sub-category strong,
  .sub-category span,
  .sub-category em {
    grid-column: 2;
  }

  .drawer__panel {
    width: 100%;
    padding: 16px;
    grid-template-rows: auto minmax(110px, 0.62fr) minmax(300px, 1fr) auto;
  }

  .drawer__foot {
    display: grid;
  }

  .drawer__actions {
    justify-content: stretch;
  }

  .drawer__actions button {
    flex: 1 1 140px;
  }
}
