:root {
  --bg: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: rgba(17, 24, 39, 0.12);
  --surface: #f7f7f8;
  --primary: #1f2937;
  --radius: 10px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

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

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 15;
}

.header-inner {
  min-height: 72px;
  padding: 0.75rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.1;
  text-transform: uppercase;
  min-width: 0;
  flex: 0 0 auto;
}

.nav-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--text);
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius);
  transition: background 0.2s ease;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--surface);
}

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

.text-button {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  cursor: pointer;
}

.text-button:hover,
.text-button:focus-visible {
  border-color: var(--text);
}

.menu-toggle {
  display: none;
}

@media (min-width: 821px) {
  .menu-toggle {
    display: none !important;
  }
}

.menu-toggle {
  display: none;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.icon-button .icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.cart-indicator {
  display: inline-flex;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  justify-content: center;
  align-items: center;
  margin-left: 0.3rem;
}

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

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.35);
  display: none;
  z-index: 12;
}

.overlay.active {
  display: block;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 80vw);
  height: 100vh;
  background: #fff;
  padding: 1.5rem;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.drawer-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.drawer-list a {
  color: var(--text);
  text-transform: none;
}

.drawer a {
  color: var(--text);
  padding: 0.4rem 0;
  text-decoration: none;
}

.search-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 1.75rem;
  border-radius: var(--radius);
  width: min(520px, 90vw);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.search-panel input {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  font-size: 1rem;
}

.search-panel-results {
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.section {
  padding: clamp(2rem, 4vw, 4rem) 0;
}

.section-title {
  font-size: clamp(2rem, 3vw, 2.7rem);
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.subtext {
  color: var(--muted);
  margin: 0;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}

.ratio {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}

.ratio::before {
  content: "";
  display: block;
}

.ratio-16-9::before {
  padding-top: 56.25%;
}

.ratio-21-9::before {
  padding-top: 42.8%;
}

.ratio-16-9-mobile::before {
  padding-top: 56.25%;
}

.ratio-3-2::before {
  padding-top: 66.66%;
}

.ratio-1-1::before {
  padding-top: 100%;
}

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

.grid-6,
.grid-8,
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.category-card,
.product-card,
.collection-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.category-card h3,
.product-card h3,
.collection-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.category-card p,
.product-card p {
  margin: 0;
  color: var(--muted);
}

.product-card .price {
  font-weight: 600;
}

.product-card .card-footer {
  margin-top: auto;
}

.collection-card {
  padding: 0;
}

.collection-card .ratio {
  border-radius: 0;
}

.collection-card .content {
  padding: 1.25rem;
}

.buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.primary {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.75rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
}

.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
}

.secondary:hover,
.primary:hover {
  opacity: 0.85;
}

.newsletter {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--surface);
  display: grid;
  gap: 1rem;
}

.newsletter input {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-size: 1rem;
}

.newsletter form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.newsletter label {
  font-size: 0.85rem;
  color: var(--muted);
}

.newsletter textarea {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  resize: vertical;
}

.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.footer-grid h4 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.footer-grid a {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  text-decoration: none;
}

.filters,
.results-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1rem;
}

.filters select,
.filters input[type="range"] {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
}

.shop-area {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.filter-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--surface);
}

.filter-panel label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.product-card .ratio-1-1 {
  border-radius: var(--radius);
}

.deal-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--surface);
}

.deal-card .price {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}

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

.accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0.6rem;
}

.accordion button {
  width: 100%;
  text-align: left;
  padding: 0.8rem 1rem;
  background: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.accordion-content {
  max-height: 0;
  padding: 0 1rem;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion.open .accordion-content {
  max-height: 200px;
  padding-bottom: 1rem;
}

.quantity {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.quantity button {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.3rem 0.8rem;
  cursor: pointer;
}

.quantity input {
  width: 60px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.3rem;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--surface);
}

.cart-summary {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--surface);
}

.cart-summary .row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    border: 1px solid var(--border);
    background: transparent;
    padding: 0.55rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .icon-button {
    padding: 0.45rem 0.65rem;
  }

  .cart-indicator {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
    margin-left: 0;
  }

  .header-inner {
    padding: 0.5rem 0;
  }

  .brand {
    font-size: clamp(1rem, 4vw, 1.3rem);
  }

  .nav-links a {
    font-size: 0.85rem;
  }
}
