:root {
  --bg: #f5f7f4;
  --surface: #ffffff;
  --surface-soft: #eef7f1;
  --ink: #18201b;
  --muted: #69736c;
  --line: #dde5df;
  --brand: #0f6b57;
  --brand-dark: #0a463a;
  --accent: #e5572f;
  --gold: #c58b2d;
  --shadow: 0 24px 70px rgba(24, 32, 27, 0.12);
  --radius: 8px;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

body.drawer-open {
  overflow: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 247, 244, 0.88);
  border-bottom: 1px solid rgba(221, 229, 223, 0.85);
  backdrop-filter: blur(18px);
}

.navbar {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr minmax(240px, 360px) auto auto;
  gap: 18px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: auto;
  height: 48px;
  max-width: 200px;
  object-fit: contain;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(15, 107, 87, 0.2);
}

.nav-menu {
  display: flex;
  gap: 22px;
  justify-content: center;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.nav-menu a {
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: var(--ink);
}

.menu-overlay,
.mobile-menu-head,
.mobile-menu-note {
  display: none;
}

.search-box {
  display: flex;
  align-items: center;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 8px 6px 18px;
}

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

.search-box button,
.cart-button {
  border: 0;
  display: grid;
  place-items: center;
}

.search-box button {
  width: 36px;
  height: 36px;
  color: #fff;
  background: var(--ink);
  border-radius: 50%;
}

.search-box svg,
.cart-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.cart-button {
  position: relative;
  width: 44px;
  height: 44px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
}
  
.desktop-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 800;
  transition: all 0.2s ease;
}

.desktop-login-btn:hover {
  background: #c84220;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(229, 87, 47, 0.24);
}

.login-button {
  background: #f97316;
  color: #fff;
  border-color: #f97316;
}

.login-button:hover {
  background: #ea580c;
  border-color: #ea580c;
  color: #fff;
}

.hero-actions .secondary-button.login-button,
.nav-menu a.mobile-login-link.login-button {
  background: #f97316;
  border-color: #f97316;
  color: #fff;
}

.hero-actions .secondary-button.login-button:hover,
.nav-menu a.mobile-login-link.login-button:hover {
  background: #ea580c;
  border-color: #ea580c;
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.mobile-login-link {
  display: none;
}

.hero {
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: 56px 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 46px;
  align-items: center;
}

.hero-content {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(
    135deg, 
    var(--brand) 0%, 
    var(--accent) 50%, 
    var(--brand) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  animation: shine 4s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.3;
}

.hero-copy {
  max-width: 560px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.primary-button,
.secondary-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0 22px;
  font-weight: 800;
}

.primary-button {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 16px 34px rgba(15, 107, 87, 0.22);
}

.primary-button.light {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: none;
}

.secondary-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.hero-actions .secondary-button {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 30px rgba(229, 87, 47, 0.22);
}

.hero-actions .secondary-button:hover {
  background: #c84220;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.trust-row span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
}

.hero-visual {
  position: relative;
  min-height: 520px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #eee;
}

.hero-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.slider-track {
  display: flex;
  width: 500%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.slide {
  width: 20%;
  height: 100%;
}

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

.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 10;
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 32, 27, 0.02), rgba(24, 32, 27, 0.35));
  pointer-events: none;
}

.floating-card {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  width: min(260px, calc(100% - 48px));
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(24, 32, 27, 0.18);
}

.floating-card strong,
.floating-card small {
  display: block;
}

.floating-card small {
  margin-top: 5px;
  color: var(--muted);
}

.discount-badge {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.quick-stats,
.section,
.promo-band,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.quick-stats article {
  padding: 24px;
  background: rgba(255, 255, 255, 0.7);
}

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

.quick-stats strong {
  margin-bottom: 6px;
  font-size: 1.35rem;
}

.quick-stats span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.section {
  padding: 86px 0 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

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

.category-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ddd;
  box-shadow: 0 18px 48px rgba(24, 32, 27, 0.08);
}

.category-card img {
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.68));
}

.category-card span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
}

.category-card:hover img {
  transform: scale(1.06);
}

.product-heading {
  max-width: none;
  display: flex;
  gap: 18px;
  align-items: end;
  justify-content: space-between;
}

.product-heading > div:first-child {
  max-width: 650px;
}

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

.filter-tabs button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 15px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 800;
}

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

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

.product-more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.catalog-page {
  padding-top: 0;
}

.catalog-page .product-section {
  padding-top: 52px;
}

.catalog-search {
  display: flex;
  width: min(440px, 100%);
  min-height: 48px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.catalog-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0 16px;
  color: var(--ink);
  outline: none;
}

.catalog-search button {
  border: 0;
  padding: 0 18px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.catalog-tabs {
  justify-content: flex-start;
  margin-bottom: 22px;
}

.catalog-tabs a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 15px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.catalog-tabs a.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.catalog-pagination {
  margin-top: 28px;
}

.store-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
}

.store-pagination p {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

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

.store-pagination-links a,
.store-pagination-links span {
  min-width: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  background: var(--surface);
  color: var(--brand-dark);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.store-pagination-links .is-active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.store-pagination-links .is-disabled {
  opacity: 0.45;
}

.catalog-empty {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 700;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 48px rgba(24, 32, 27, 0.07);
}

.product-card.is-hidden {
  display: none;
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 0.78;
  overflow: hidden;
  background: #eee;
}

.product-media img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.38s ease;
}

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

.tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.tag.sale {
  background: var(--accent);
}

.product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.product-info > span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
}

.product-desc {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.product-specs small {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--brand-dark);
  font-weight: 800;
}

.rating {
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 800;
}

.rating small {
  color: var(--muted);
  font-weight: 800;
}

.product-bottom {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.product-bottom strong {
  color: var(--ink);
  font-size: 1.24rem;
  line-height: 1.15;
}

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

.product-actions a,
.product-bottom button,
.cart-footer button {
  min-height: 40px;
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  padding: 0 10px;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.product-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-actions .chat-action {
  background: var(--brand);
}

.product-actions .detail-action {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--brand-dark);
}

.promo-band {
  margin-top: 86px;
  padding: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(10, 70, 58, 0.92), rgba(15, 107, 87, 0.78)),
    url("https://images.unsplash.com/photo-1555529669-e69e7aa0ba9a?auto=format&fit=crop&w=1400&q=80");
  background-size: cover;
  background-position: center;
  color: #fff;
}

.promo-band .eyebrow {
  color: #ffd9c9;
}

.promo-band h2 {
  max-width: 720px;
  margin-bottom: 12px;
}

.promo-band p:last-child {
  max-width: 650px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 24px;
  align-items: stretch;
}

.feature-panel,
.testimonial-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.feature-panel {
  padding: 34px;
}

.feature-panel h2 {
  max-width: 760px;
}

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

.feature-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
}

.feature-list span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--accent);
  font-weight: 800;
}

.feature-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.testimonial-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonial-card img {
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-card blockquote {
  margin: 0 0 18px;
  color: #354039;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.65;
}

.testimonial-card span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.9rem;
}

.social-section {
  padding-top: 72px;
}

.social-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) 1.25fr;
  gap: 28px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(24, 32, 27, 0.07);
}

.social-panel h2 {
  max-width: 520px;
}

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

.social-card {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface-soft);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.social-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  box-shadow: 0 14px 28px rgba(24, 32, 27, 0.08);
}

.social-card span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
}

.social-card svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.social-card strong {
  font-size: 0.88rem;
}

.social-card.instagram span {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.social-card.tiktok span {
  background: #111;
}

.social-card.youtube span {
  background: #ff0033;
}

.social-card.facebook span {
  background: #1877f2;
}

.social-card.shopee span {
  background: #ee4d2d;
}

.social-card.tokopedia span {
  background: #03ac0e;
}

.social-card.lazada span {
  background: #1a2f8f;
}

.site-footer {
  margin-top: 86px;
  padding: 38px 0 28px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(180px, 0.75fr) minmax(190px, 0.8fr) minmax(260px, 1.25fr);
  gap: 26px;
  align-items: start;
}

.footer-brand p {
  max-width: 360px;
  margin-top: 14px;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.footer-social a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 13px;
  background: var(--surface);
  color: var(--brand-dark);
  font-size: 0.84rem;
  font-weight: 800;
}

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

.footer-info ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
  line-height: 1.55;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  color: var(--muted);
  font-weight: 700;
}

.footer-map {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 42px rgba(24, 32, 27, 0.08);
}

.footer-map iframe {
  width: 100%;
  height: 220px;
  display: block;
  border: 0;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 35;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 16px 36px rgba(15, 107, 87, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

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

.detail-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 46px;
}

.detail-shell {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
  gap: 34px;
  align-items: start;
}

.detail-gallery {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-main {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.gallery-main img {
  aspect-ratio: 1 / 0.88;
  object-fit: cover;
  width: 100%;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px;
}

.gallery-thumbs img {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.2s ease;
  background: #eee;
}

.gallery-thumbs img:hover,
.gallery-thumbs img.active {
  border-color: var(--brand);
}

.related-section {
  margin-top: 56px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.detail-stock {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.detail-summary {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
}

.detail-summary h1 {
  margin-bottom: 14px;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
}

.detail-desc {
  color: var(--muted);
  line-height: 1.7;
}

.detail-price-row {
  margin: 24px 0;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.detail-price-row strong {
  font-size: 1.65rem;
}

.detail-price-row span {
  color: var(--brand-dark);
  font-weight: 800;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

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

.detail-spec-grid div,
.detail-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.detail-spec-grid div {
  padding: 14px;
}

.detail-spec-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.detail-spec-grid strong {
  line-height: 1.45;
}

.detail-extra {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.detail-panel {
  padding: 22px;
}

.detail-panel h2 {
  margin-bottom: 16px;
  font-size: 1.25rem;
}

.detail-panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.detail-panel p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.detail-footer .footer-main {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  justify-content: flex-end;
  background: rgba(24, 32, 27, 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.cart-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cart-panel {
  width: min(420px, 100%);
  min-height: 100%;
  padding: 22px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  transform: translateX(100%);
  transition: transform 0.24s ease;
}

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

.cart-header,
.cart-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cart-header span,
.cart-footer span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 700;
}

.cart-header button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
}

.cart-empty {
  margin: 28px 0;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  line-height: 1.6;
}

.cart-empty p {
  margin: 0;
}

.cart-items {
  flex: 1;
  margin: 22px 0;
  display: grid;
  align-content: start;
  gap: 12px;
  overflow-y: auto;
}

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

.cart-item img {
  width: 58px;
  height: 58px;
  border-radius: var(--radius);
  object-fit: cover;
}

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

.cart-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.cart-item small {
  color: var(--brand);
  font-weight: 800;
}

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

@media (max-width: 1024px) {
  .navbar {
    grid-template-columns: auto auto 1fr auto;
    gap: 14px;
  }

  .desktop-login-btn {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 80;
    width: min(320px, calc(100vw - 56px));
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 0 22px 22px 0;
    background: var(--surface);
    box-shadow: var(--shadow);
    transform: translateX(-105%);
    pointer-events: none;
    transition: transform 0.24s ease;
  }

  .nav-menu.is-open {
    transform: translateX(0);
    pointer-events: auto;
  }

  .menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 79;
    display: block;
    background: rgba(24, 32, 27, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
  }

  .menu-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
  }

  .mobile-menu-head button {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-soft);
    color: var(--ink);
    font-size: 1.45rem;
    line-height: 1;
  }

  .nav-menu a {
    padding: 14px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(245, 247, 244, 0.7);
    color: var(--ink);
  }

  .nav-menu a.mobile-login-link {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    background: var(--accent);
    color: #fff;
    border: 0;
    text-align: center;
    font-weight: 800;
  }

  .mobile-menu-note {
    display: grid;
    gap: 5px;
    margin-top: auto;
    padding: 15px;
    border-radius: 16px;
    background: var(--brand);
    color: #fff;
  }

  .mobile-menu-note span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 42px;
  }

  .hero-content {
    max-width: 760px;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 430px;
  }

  .category-grid,
  .quick-stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .product-heading,
  .promo-band,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-tabs {
    justify-content: flex-start;
  }

  .split-section {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-map {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .site-header {
    padding: 8px 0;
    background: rgba(245, 247, 244, 0.94);
    box-shadow: 0 12px 34px rgba(24, 32, 27, 0.08);
  }

  .navbar {
    width: min(100% - 24px, 1180px);
    min-height: auto;
    grid-template-columns: auto 1fr auto auto;
    gap: 8px;
    justify-content: stretch;
    padding: 10px;
    border: 1px solid rgba(221, 229, 223, 0.9);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 42px rgba(24, 32, 27, 0.1);
  }

  .brand {
    min-width: 0;
    gap: 8px;
    font-size: 0.98rem;
    justify-self: start;
  }

  .brand img {
    width: auto !important;
    height: 36px !important;
    max-width: 160px;
    object-fit: contain;
    display: block;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 0.78rem;
    flex: 0 0 auto;
  }

  .cart-button,
  .menu-toggle {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: var(--surface-soft);
  }

  .cart-button {
    grid-column: 3;
    order: 2;
  }

  .menu-toggle {
    grid-column: 4;
    order: 3;
  }

  .search-box {
    grid-column: 1 / -1;
    order: 4;
    width: 100%;
    margin-top: 2px;
    margin-bottom: 0;
    padding-left: 14px;
    box-shadow: inset 0 0 0 1px rgba(221, 229, 223, 0.5);
  }

  .nav-menu {
    inset: 0 auto 0 0;
    width: min(84vw, 340px);
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0 22px 22px 0;
  }

  .hero,
  .quick-stats,
  .section,
  .promo-band,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    padding-top: 22px;
    gap: 18px;
  }

  h1 {
    margin-bottom: 12px;
    font-size: clamp(2.12rem, 11vw, 3.2rem);
    line-height: 1;
  }

  h2 {
    font-size: clamp(1.55rem, 7.5vw, 2.1rem);
  }

  .eyebrow {
    margin-bottom: 8px;
    font-size: 0.7rem;
  }

  .hero-copy {
    margin-bottom: 18px;
    font-size: 0.95rem;
    line-height: 1.55;
  }

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

  .hero-actions {
    gap: 8px;
    margin-bottom: 14px;
  }

  .primary-button,
  .secondary-button {
    min-height: 44px;
  }

  .trust-row {
    gap: 7px;
    font-size: 0.78rem;
  }

  .trust-row span {
    padding: 7px 9px;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 255px;
  }

  .hero-visual {
    border-radius: 18px;
  }

  .floating-card {
    padding: 13px;
  }

  .floating-card strong {
    font-size: 0.9rem;
  }

  .floating-card small {
    font-size: 0.78rem;
  }

  .quick-stats,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .product-more {
    margin-top: 20px;
  }

  .catalog-page {
    padding-top: 0;
  }

  .catalog-page .product-section {
    padding-top: 34px;
  }

  .catalog-search {
    width: 100%;
  }

  .catalog-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .catalog-tabs a {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.78rem;
  }

  .store-pagination {
    align-items: flex-start;
  }

  .store-pagination-links {
    width: 100%;
  }

  .store-pagination-links a,
  .store-pagination-links span {
    min-width: 34px;
    min-height: 34px;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 0.78rem;
  }

  .quick-stats article {
    padding: 14px;
  }

  .quick-stats strong {
    font-size: 1.04rem;
  }

  .quick-stats span {
    font-size: 0.78rem;
  }

  .section {
    padding-top: 42px;
  }

  .section-heading {
    margin-bottom: 18px;
  }

  .category-card,
  .category-card img {
    min-height: 150px;
  }

  .category-card span {
    left: 12px;
    bottom: 12px;
    font-size: 0.9rem;
  }

  .filter-tabs {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-tabs button {
    width: auto;
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 13px;
    font-size: 0.78rem;
  }

  .product-media {
    aspect-ratio: 1 / 0.95;
  }

  .product-info {
    padding: 11px;
  }

  .product-info > span {
    margin-bottom: 6px;
    font-size: 0.68rem;
  }

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

  .product-desc {
    display: none;
  }

  .product-specs {
    gap: 5px;
    margin-bottom: 9px;
  }

  .product-specs small {
    padding: 4px 7px;
    font-size: 0.66rem;
  }

  .rating {
    font-size: 0.72rem;
  }

  .rating small {
    display: none;
  }

  .product-bottom {
    gap: 8px;
    padding-top: 10px;
  }

  .product-bottom strong {
    font-size: 1rem;
  }

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

  .product-actions a,
  .product-bottom button {
    min-height: 34px;
    width: 100%;
    padding: 0 8px;
    font-size: 0.72rem;
  }

  .product-bottom button {
    grid-column: 1 / -1;
  }

  .promo-band {
    margin-top: 42px;
    padding: 22px;
  }

  .social-section {
    padding-top: 42px;
  }

  .social-panel {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }

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

  .social-card {
    min-height: 76px;
    padding: 12px;
  }

  .social-card span {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .social-card svg {
    width: 20px;
    height: 20px;
  }

  .promo-band h2 {
    margin-bottom: 10px;
  }

  .promo-band p:last-child {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .feature-panel,
  .testimonial-card {
    padding: 20px;
  }

  .feature-list {
    margin-top: 20px;
    gap: 10px;
  }

  .feature-list li {
    grid-template-columns: 34px 1fr;
    gap: 10px;
  }

  .feature-list span {
    width: 34px;
    height: 34px;
    font-size: 0.76rem;
  }

  .feature-list p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .testimonial-card img {
    width: 50px;
    height: 50px;
    margin-bottom: 14px;
  }

  .testimonial-card blockquote {
    margin-bottom: 12px;
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .site-footer {
    margin-top: 42px;
    padding: 26px 0 22px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-info h3 {
    margin-bottom: 8px;
  }

  .footer-info ul {
    gap: 7px;
    font-size: 0.9rem;
  }

  .footer-brand p {
    margin-top: 10px;
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .footer-social {
    margin-top: 12px;
  }

  .footer-links {
    margin-top: 12px;
  }

  .footer-map iframe {
    height: 178px;
  }

  .footer-bottom {
    margin-top: 20px;
    padding-top: 16px;
    flex-direction: column;
    gap: 6px;
    font-size: 0.78rem;
  }

  .back-to-top {
    right: 14px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }

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

  .detail-back-link {
    width: 100%;
  }

  .detail-page {
    width: min(100% - 24px, 1180px);
    padding-top: 24px;
  }

  .detail-shell {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .detail-gallery {
    position: relative;
    top: auto;
  }

  .detail-gallery img {
    aspect-ratio: 1 / 0.82;
  }

  .detail-summary {
    padding: 20px;
  }

  .detail-summary h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .detail-desc {
    font-size: 0.94rem;
    line-height: 1.6;
  }

  .detail-price-row {
    margin: 18px 0;
    padding: 14px;
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-price-row strong {
    font-size: 1.35rem;
  }

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

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

  .detail-extra {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .detail-panel {
    padding: 18px;
  }

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

@media (max-width: 420px) {
  .navbar {
    width: min(100% - 20px, 1180px);
  }

  .brand span:last-child {
    display: inline;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .floating-card {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
  }

  .cart-panel {
    padding: 18px;
  }
}
