@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;700;800&display=swap');

.storefront {
  --bg: #f3f5fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #7c3aed;
  --brand-2: #ec4899;
  --brand-rgb: 124, 58, 237;
  --brand-2-rgb: 236, 72, 153;
  --shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
  font-family: 'Heebo', Arial, sans-serif;
  background:
    radial-gradient(1200px 540px at 0% -10%, rgba(var(--brand-rgb), 0.10), transparent 50%),
    radial-gradient(900px 500px at 100% -20%, rgba(var(--brand-2-rgb), 0.10), transparent 50%),
    var(--bg);
  color: var(--text);
}

.storefront .site-header {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.20);
  position: sticky;
  top: 0;
  z-index: 100;
}

.storefront .site-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 72px;
}

.storefront .site-nav__start {
  justify-self: start;
}

.storefront .site-nav__logo {
  justify-self: center;
  text-align: center;
  max-width: min(420px, 70vw);
}

.storefront .site-nav__logo img {
  margin: 0 auto;
}

.storefront .site-nav__end {
  justify-self: end;
}

.storefront .site-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.storefront .site-menu-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.12);
}

.storefront .site-menu-toggle__icon {
  display: block;
}

.storefront .site-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  z-index: 140;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}

body.storefront.site-menu-open .site-menu-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.storefront .site-menu-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: min(340px, 90vw);
  max-width: 100%;
  background: var(--surface);
  z-index: 150;
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .28s ease, visibility .28s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body.storefront.site-menu-open .site-menu-panel {
  transform: translateX(0);
  visibility: visible;
}

.storefront .site-menu-panel__inner {
  padding: 16px 16px 28px;
}

.storefront .site-menu-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.storefront .site-menu-panel__title {
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
}

.storefront .site-menu-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.18);
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.storefront .site-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.storefront .site-menu-nav__home {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(var(--brand-rgb), 0.12), rgba(var(--brand-2-rgb), 0.10));
  margin-bottom: 8px;
}

.storefront .site-menu-nav__home:hover {
  opacity: 0.92;
}

.storefront .site-menu-category {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
  overflow: hidden;
}

.storefront .site-menu-category__summary {
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.storefront .site-menu-category__summary::-webkit-details-marker {
  display: none;
}

.storefront .site-menu-category__summary::after {
  content: '';
  width: 8px;
  height: 8px;
  border-left: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
  flex-shrink: 0;
  opacity: 0.75;
}

.storefront .site-menu-category[open] .site-menu-category__summary::after {
  transform: rotate(135deg);
  margin-top: 4px;
}

.storefront .site-menu-category__body {
  padding: 4px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid rgba(226, 232, 240, 0.85);
}

.storefront .site-menu-category__body a {
  display: block;
  padding: 8px 8px;
  border-radius: 8px;
  font-size: 14px;
  color: #334155;
}

.storefront .site-menu-category__body a:hover {
  background: rgba(124, 58, 237, 0.08);
}

.storefront .site-menu-category__all {
  font-weight: 700;
  color: var(--brand) !important;
}

.storefront .site-menu-category__empty {
  margin: 6px 4px 4px;
  color: var(--muted);
}

body.site-menu-open {
  overflow: hidden;
}

.storefront .container { width: min(1180px, 92%); }
.storefront .logo img { max-height: 108px; }

.storefront .site-cart-link {
  border: 1px solid #d8def0;
  background: var(--surface);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.10);
  transition: transform .2s ease, box-shadow .2s ease;
}

.storefront .site-cart-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.14);
}

.storefront .cart-count {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.storefront .hero-slider,
.storefront .hero {
  border-radius: 0 0 24px 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.storefront .hero-overlay {
  min-height: 430px;
  background:
    linear-gradient(120deg, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.35));
}

.storefront .hero h1 { font-size: clamp(34px, 6vw, 62px); margin-bottom: 10px; }
.storefront .hero p { max-width: 620px; font-size: 18px; opacity: .95; }

.storefront .btn {
  border-radius: 12px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 24px rgba(var(--brand-rgb), 0.34);
  transition: transform .2s ease, box-shadow .2s ease;
}

.storefront .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(var(--brand-rgb), 0.40);
}

.storefront .hero-dot { background: rgba(255, 255, 255, .5); }
.storefront .hero-dot.is-active { background: #fff; }

.storefront .section { padding: 28px 0; }
.storefront h2 { margin: 0 0 16px; font-size: 29px; }
.storefront .products-title { text-align: center; }

.storefront .stories-edge {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to left, transparent 0, #000 42px, #000 calc(100% - 42px), transparent 100%);
  mask-image: linear-gradient(to left, transparent 0, #000 42px, #000 calc(100% - 42px), transparent 100%);
}

.storefront .stories-slider {
  gap: 16px;
  padding: 10px 12px 16px;
  margin: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  scrollbar-width: none;
  cursor: grab;
}
.storefront .stories-slider::-webkit-scrollbar { display: none; }
.storefront .stories-slider.is-dragging { cursor: grabbing; }
.storefront .story-item { flex: 0 0 auto; }

.storefront .story-ring {
  width: 126px;
  height: 126px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2), var(--brand));
  box-shadow: 0 10px 20px rgba(var(--brand-rgb), 0.25);
}

.storefront .story-name {
  font-size: 13px;
  color: #1f2937;
  font-weight: 700;
}

.storefront .cards {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.storefront .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(var(--brand-rgb), 0.13);
  transition: transform .2s ease, box-shadow .2s ease;
  overflow: hidden;
}

.storefront .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(var(--brand-rgb), 0.20);
}

.storefront .card img { height: 230px; }
.storefront .card .body { padding: 18px 18px 20px; }
.storefront .card .body h3 { margin: 0 0 10px; }
.storefront .price { color: var(--brand); font-size: 18px; }
.storefront .card .body .price { margin: 0 0 14px; }

.storefront .site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  margin-top: 20px;
}

@media (max-width: 760px) {
  .storefront .section { padding: 22px 0; }
  .storefront .hero-overlay { min-height: 360px; }
  .storefront .hero h1 { font-size: clamp(28px, 8vw, 42px); }
  .storefront .hero p { font-size: 16px; }
  .storefront .logo img { max-height: 82px; }
  .storefront .story-ring { width: 114px; height: 114px; }
  .storefront .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .storefront .card img { height: 170px; }
  .storefront .card .body { padding: 14px 14px 16px; }
}
