:root {
  --ink: #141414;
  --paper: #ffffff;
  --line: #e4e4e4;
  --muted: #6b6b6b;
  --max: 1400px;
}

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

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Header ---------- */
.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 32px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav {
  position: absolute;
  left: 32px;
  display: flex;
  gap: 22px;
  font-size: 14px;
}

.nav a { color: #000000; transition: color .15s ease; }
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.wordmark {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* ---------- Mobile menu ---------- */
.menu-btn {
  display: none;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height .2s ease;
}

.mobile-nav.open { max-height: 300px; border-bottom: 1px solid var(--line); }

.mobile-nav a {
  padding: 14px 20px;
  font-size: 15px;
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .menu-btn { display: flex; }
  .mobile-nav { display: flex; }
}

/* ---------- Grid page ---------- */
.grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 32px 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: #ffffff;
}

.card {
  background: var(--paper);
  display: flex;
  flex-direction: column;
}

.card-image {
  aspect-ratio: 3 / 4.5;
  overflow: hidden;
  background: #f4f4f4;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.card:hover .card-image img { transform: scale(1.03); }

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 4px 24px;
  font-size: 14px;
}

.card-meta .name { max-width: 75%; line-height: 1.3; }
.card-meta .price { color: var(--ink); white-space: nowrap; }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; padding-left: 20px; padding-right: 20px; }
  .nav { display: none; }
  
}

/* ---------- Product page ---------- */
.product {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 32px 80px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 60px;
}

.gallery {
  position: relative;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 3 / 4.5;
  object-fit: cover;
  background: #f4f4f4;
  display: block;
}

.gallery-main,
.gallery-thumbs {
  display: none;
}




.details { padding-top: 12px; }

.details h1 {
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 10px;
}

.details .price {
  font-size: 18px;
  font-weight: 300;
  margin: 0 0 28px;
}

.color-label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.swatch {
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  margin-bottom: 28px;
}

.buy-btn {
  display: block;
  width: 100%;
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 18px 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
}

.buy-btn:hover { background: #000; }

.buy-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 18px 0 30px;
}

.accordion { border-top: 1px solid var(--line); }

.accordion-item { border-bottom: 1px solid var(--line); }

.accordion-item button {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--ink);
}

.accordion-item .panel {
  max-height: 0;
  overflow: hidden;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  transition: max-height .2s ease;
}

.accordion-item.open .panel {
  max-height: 500px;
  padding-bottom: 16px;
}

.panel ul {
  margin: 0;
  padding-left: 18px;
}

.panel li { margin-bottom: 6px; }

.size-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4px;
}

.size-table th,
.size-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.size-table th {
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.size-table td { color: var(--ink); font-weight: 600; }

.size-note {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 0;
}

@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; gap: 20px; }
  .gallery-grid { display: none; } 
  .gallery-main { display: block; width: 100%; aspect-ratio: 3 / 3.8; object-fit: cover; background: #f4f4f4; }
  .gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .gallery-thumbs::-webkit-scrollbar { display: none; }
  .gallery-thumb { width: 56px; height: 56px; object-fit: cover; cursor: pointer; flex-shrink: 0; opacity: 0.55; border: 2px solid transparent; background: #f4f4f4; transition: opacity 0.15s, border-color 0.15s; }
  .gallery-thumb.active { opacity: 1; border-color: var(--ink); }
  .details h1 { font-size: 19px; }
  .details .price { font-size: 14px; margin-bottom: 14px; }
}

/* ---------- Footer ---------- */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 60px 32px 40px;
  text-align: center;
}

.newsletter-label {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 30px;
}

.newsletter-form input {
  border: none;
  border-bottom: 1px solid var(--ink);
  background: none;
  padding: 4px 0;
  width: 260px;
  font-size: 14px;
}

.newsletter-form button {
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--ink);
  z-index: 1000;
}

.cookie-banner-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cookie-banner-text h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 0 0 6px;
}

.cookie-banner-text p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  max-width: 600px;
}

.cookie-banner-text a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-btn-outline,
.cookie-btn-fill {
  border: 1px solid var(--ink);
  padding: 12px 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  white-space: nowrap;
}

.cookie-btn-outline {
  background: #fff;
  color: var(--ink);
}

.cookie-btn-outline:hover { background: #f4f4f4; }

.cookie-btn-fill {
  background: var(--ink);
  color: #fff;
}

.cookie-btn-fill:hover { background: #000; }

.cookie-banner-panel {
  display: none;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px 24px;
  border-top: 1px solid var(--line);
}

.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.cookie-option-text strong {
  font-size: 13px;
  display: block;
  margin-bottom: 4px;
}

.cookie-option-text p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.cookie-toggle input { opacity: 0; width: 0; height: 0; }

.cookie-toggle span {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--line);
  transition: .2s;
  border-radius: 22px;
}

.cookie-toggle span:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: .2s;
  border-radius: 50%;
}

.cookie-toggle input:checked + span { background-color: var(--ink); }
.cookie-toggle input:checked + span:before { transform: translateX(18px); }
.cookie-toggle.disabled span { opacity: 0.5; cursor: not-allowed; }

#cookie-save { margin-top: 16px; }

@media (max-width: 900px) {
  .cookie-banner-main { padding: 20px; flex-direction: column; align-items: flex-start; }
  .cookie-banner-buttons { width: 100%; }
  .cookie-btn-outline, .cookie-btn-fill { flex: 1; text-align: center; }
  .cookie-banner-panel { padding: 0 20px 20px; }
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.explore-more {
  max-width: var(--max);
  margin: 80px auto 0;
  padding: 0 32px 60px;
}

.explore-more-title {
  font-size: 22px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 20px;
}

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

.explore-card {
  display: block;
  color: var(--ink);
}

.explore-card-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f4f4f4;
  margin-bottom: 10px;
}

.explore-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.explore-card:hover .explore-card-image img {
  transform: scale(1.03);
}

.explore-card-name {
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.3;
  margin-bottom: 4px;
}

.explore-card-price {
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .explore-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .explore-more-title { font-size: 17px; }
}