:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #6b6b6b;
  --line: #e8e8e8;
  --sale: #d21f3c;
  --announcement: #2f352b;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --header-h: 72px;
  --announce-h: 40px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

img {
  max-width: 100%;
  display: block;
}

.announcement {
  height: var(--announce-h);
  background: var(--announcement);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0 16px;
}

.announcement a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  height: var(--header-h);
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}

.brand img,
.brand svg {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-text span {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav a:hover {
  opacity: 0.65;
}

.nav .sale {
  color: var(--sale);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  position: relative;
}

.icon-btn:hover {
  background: #f5f5f5;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.cart-count {
  position: absolute;
  top: 6px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  display: grid;
  place-items: center;
}

.menu-toggle {
  display: none;
}

/* Hero — mahabis split */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--header-h) - var(--announce-h));
  max-height: 920px;
  position: relative;
  background: #111;
}

.hero-pane {
  position: relative;
  overflow: hidden;
  min-height: 520px;
}

.hero-pane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 24px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.28) 0%,
    rgba(0, 0, 0, 0.18) 50%,
    rgba(0, 0, 0, 0.28) 100%
  );
  pointer-events: none;
}

.hero-overlay > * {
  pointer-events: auto;
}

.hero-overlay h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  max-width: 10ch;
}

.hero-overlay p {
  margin: 14px 0 0;
  font-size: 15px;
  opacity: 0.92;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  background: #fff;
  color: #111;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid #fff;
  transition: 0.2s ease;
}

.btn:hover {
  background: transparent;
  color: #fff;
}

.btn-dark {
  background: #111;
  color: #fff;
  border-color: #111;
}

.btn-dark:hover {
  background: #fff;
  color: #111;
}

.btn-block {
  width: 100%;
}

.hero-cta {
  margin-top: 22px;
}

/* Category strip — 4 tiles like mahabis */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 8px;
}

.cat-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #ece7e0;
  color: #fff;
}

.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.cat-card:hover img {
  transform: scale(1.04);
}

.cat-card span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px;
  font-family: var(--serif);
  font-size: 22px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}

/* Product rail */
.section {
  padding: 64px 28px;
  max-width: 1440px;
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
}

.section-head a {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 14px;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #f3f1ee;
  overflow: hidden;
}

.product-media img,
.product-media video,
.product-media .ph,
.gallery-main img,
.gallery-main video,
.story-media video,
.thumbs video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-main video {
  background: #111;
}

.badge-video {
  left: auto;
  right: 12px;
}

.product-media .ph {
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: #8a8178;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background:
    linear-gradient(135deg, #f7f4f0, #e8e0d6 55%, #d9cfc3);
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #111;
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 8px;
}

.product-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-meta h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.product-meta .price {
  font-size: 13px;
  color: var(--muted);
}

/* Story band */
.story {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 560px;
  background: #f6f4f1;
}

.story-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px clamp(28px, 6vw, 96px);
  gap: 18px;
}

.story-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  max-width: 12ch;
}

.story-copy p {
  margin: 0;
  max-width: 42ch;
  color: #444;
  line-height: 1.6;
  font-size: 15px;
}

.story-media {
  min-height: 420px;
}

.story-media img,
.story-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-contact {
  font-size: 14px;
}

.story-contact a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Shop page */
.page-hero {
  padding: 48px 28px 24px;
  max-width: 1440px;
  margin: 0 auto;
}

.page-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 28px 24px;
  max-width: 1440px;
  margin: 0 auto;
}

.chip {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.chip.active,
.chip:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* PDP */
.pdp {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 28px 80px;
}

.gallery {
  display: grid;
  gap: 10px;
}

.gallery-main {
  aspect-ratio: 4 / 5;
  background: #f3f1ee;
  overflow: hidden;
}

.gallery-main img,
.gallery-main .ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.thumbs button {
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid transparent;
  background: #f3f1ee;
  padding: 0;
}

.thumbs button.active,
.thumbs button:hover {
  border-color: #111;
}

.thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdp-info h1 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.5vw, 44px);
  line-height: 1.1;
}

.pdp-price {
  font-size: 18px;
  margin-bottom: 20px;
}

.pdp-info p {
  color: #444;
  line-height: 1.65;
  font-size: 15px;
}

.detail-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  border-top: 1px solid var(--line);
}

.detail-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.qty-row {
  display: flex;
  gap: 10px;
  margin: 24px 0 12px;
  align-items: center;
}

.qty {
  display: inline-flex;
  border: 1px solid var(--line);
  height: 48px;
}

.qty button {
  width: 42px;
}

.qty span {
  width: 42px;
  display: grid;
  place-items: center;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.note {
  font-size: 12px;
  color: var(--muted);
}

/* Cart drawer */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 80;
}

.overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  background: #fff;
  z-index: 90;
  transform: translateX(100%);
  transition: transform 0.28s ease, visibility 0.28s ease;
  display: flex;
  flex-direction: column;
  visibility: hidden;
  pointer-events: none;
}

.drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.drawer-head h2 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.drawer-body {
  flex: 1;
  overflow: auto;
  padding: 18px 22px;
}

.cart-empty {
  color: var(--muted);
  font-size: 14px;
  padding: 24px 0;
}

.cart-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line img,
.cart-line .ph {
  width: 72px;
  height: 90px;
  object-fit: cover;
  background: #f3f1ee;
}

.cart-line h4 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 500;
}

.cart-line p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.drawer-foot {
  border-top: 1px solid var(--line);
  padding: 18px 22px 28px;
}

.drawer-foot .row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 14px;
}

/* Footer */
.site-footer {
  background: #111;
  color: #fff;
  padding: 64px 28px 28px;
  margin-top: 40px;
}

.footer-grid {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}

.site-footer h3 {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}

.site-footer p,
.site-footer a {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  max-width: 1440px;
  margin: 48px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.mobile-nav {
  display: none;
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .brand {
    justify-self: center;
  }

  .hero {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .hero-pane:last-child {
    display: none;
  }

  .cat-grid,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .story,
  .pdp,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .thumbs {
    grid-template-columns: repeat(4, 1fr);
  }

  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px 28px 28px;
    border-top: 1px solid var(--line);
    background: #fff;
  }

  .mobile-nav.hidden {
    display: none;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .section,
  .page-hero,
  .filters,
  .pdp {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand-text {
    display: none;
  }

  .product-grid {
    gap: 14px 10px;
  }
}
