/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }
body { font-family: 'Jost', sans-serif; color: #2a2a2a; background: #fff; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 1px solid #e6e0d8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
}

.logo {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  z-index: 300;
}

nav { display: flex; align-items: center; gap: 32px; }

nav a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

nav a:hover { opacity: 0.5; }

.nav-cart {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: default;
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 300;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #2a2a2a;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

body.nav-open .hamburger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.nav-open .hamburger span:nth-child(2) { opacity: 0; }
body.nav-open .hamburger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1.5px solid #2a2a2a;
  padding: 14px 34px;
  transition: background 0.22s, color 0.22s;
  cursor: pointer;
}

.btn:hover { background: #2a2a2a; color: #fff; }

.btn-white {
  border-color: rgba(255,255,255,0.85);
  color: #fff;
}

.btn-white:hover { background: #fff; color: #2a2a2a; }

/* ===== HOME HERO — full viewport ===== */
.home-hero {
  height: 100vh;
  height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.38) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 40px;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 22px;
}

.home-hero h1 {
  font-size: 72px;
  font-weight: 200;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-bottom: 20px;
  color: #fff;
}

.home-hero .subtitle {
  font-size: 17px;
  font-weight: 300;
  color: rgba(255,255,255,0.82);
  max-width: 480px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

/* ===== HOME INTRO ===== */
.home-intro {
  max-width: 680px;
  margin: 0 auto;
  padding: 80px 48px;
  text-align: center;
}

.home-intro p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.95;
  color: #444;
  margin-bottom: 14px;
}

.home-intro p:last-child { margin-bottom: 0; }

/* ===== CAROUSEL ===== */
.carousel-section { padding: 80px 0; }
.about-carousel { padding: 0 0 100px; }
.carousel-inner { overflow: hidden; }

.carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 48px;
}

.carousel-slide { flex: 0 0 calc(33.333% - 32px); min-width: 0; }
.about-carousel .carousel-slide { flex: 0 0 calc(25% - 28px); }

.slide-img {
  width: 100%;
  aspect-ratio: 3/4;
  background: #d6d1c9;
  overflow: hidden;
  position: relative;
}

.about-carousel .slide-img { aspect-ratio: 2/3; }

.slide-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.placeholder-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b5ada4;
  z-index: 0;
}

.carousel-controls { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }

.carousel-btn {
  width: 44px;
  height: 44px;
  border: 1.5px solid #2a2a2a;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.carousel-btn:hover { background: #2a2a2a; color: #fff; }

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 72px 48px 40px;
  text-align: center;
  border-bottom: 1px solid #e6e0d8;
  margin-bottom: 52px;
}

.page-header h1 { font-size: 42px; font-weight: 300; margin-bottom: 14px; letter-spacing: -0.01em; }
.page-header p { font-size: 14px; font-weight: 300; color: #666; max-width: 520px; margin: 0 auto; line-height: 1.75; }

/* ===== SHOP GRID + HOVER ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 52px 28px;
  padding: 0 48px 100px;
  max-width: 1300px;
  margin: 0 auto;
}

.product-card { display: block; cursor: pointer; }

.product-img-wrap {
  width: 100%;
  aspect-ratio: 1/1;
  background: #d6d1c9;
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
}

/* All shop images fill the square tile; available cards stack two for the hover crossfade */
.product-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.45s ease;
}

.product-img-wrap img { z-index: 1; }
.product-img-wrap .img-hover { z-index: 2; opacity: 0; }
.product-card:hover .img-hover { opacity: 1; }

.product-img-wrap .placeholder-label { z-index: 0; }

.sold-out-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.45);
  z-index: 3;
}

.sold-out-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255,255,255,0.94);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  color: #666;
  z-index: 4;
}

.product-name { font-size: 13px; font-weight: 500; letter-spacing: 0.02em; margin-bottom: 5px; }
.product-price { font-size: 13px; font-weight: 300; color: #666; }
.product-price.sold-price { color: #aaa; }

/* ===== PRODUCT PAGE ===== */
.product-page {
  display: grid;
  grid-template-columns: 1fr 440px;
  min-height: calc(100vh - 64px);
}

.product-gallery {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow: hidden;
  background: #ede9e3;
}

.product-gallery .main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.thumb-strip {
  position: absolute;
  bottom: 28px;
  left: 28px;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.thumb {
  width: 64px;
  height: 64px;
  overflow: hidden;
  cursor: pointer;
  border: 1.5px solid transparent;
  background: rgba(255,255,255,0.6);
  transition: border-color 0.2s;
}

.thumb.active { border-color: #2a2a2a; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info {
  padding: 64px 52px 80px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #e6e0d8;
}

.product-info h1 {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  line-height: 1.2;
}

.product-info .price {
  font-size: 17px;
  font-weight: 300;
  color: #666;
  margin-bottom: 36px;
}

.product-info .desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.85;
  color: #444;
  margin-bottom: 8px;
}

.product-info .specs {
  font-size: 13px;
  font-weight: 300;
  color: #999;
  margin-bottom: 48px;
}

.btn-add-cart {
  display: block;
  width: 100%;
  padding: 16px;
  background: #2a2a2a;
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-bottom: 16px;
  text-align: center;
}

.btn-add-cart:hover { opacity: 0.75; }

.back-to-shop {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aaa;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.back-to-shop:hover { color: #2a2a2a; }

/* ===== CART PAGE ===== */
.cart-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 48px 100px;
}

.cart-page h1 {
  font-size: 36px;
  font-weight: 300;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.cart-page .cart-count-label {
  font-size: 13px;
  font-weight: 300;
  color: #999;
  margin-bottom: 48px;
}

.cart-empty {
  font-size: 15px;
  font-weight: 300;
  color: #888;
  padding: 48px 0;
}

.cart-empty a {
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.cart-empty a:hover { opacity: 0.5; }

.cart-header-row {
  display: grid;
  grid-template-columns: 80px 1fr 130px 90px 32px;
  gap: 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e6e0d8;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #aaa;
}

.cart-row {
  display: grid;
  grid-template-columns: 80px 1fr 130px 90px 32px;
  gap: 0 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid #e6e0d8;
}

.cart-img {
  width: 80px;
  height: 80px;
  overflow: hidden;
  background: #d6d1c9;
  flex-shrink: 0;
}

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

.cart-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.cart-unit {
  font-size: 12px;
  font-weight: 300;
  color: #999;
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #ddd;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.qty-btn:hover { border-color: #2a2a2a; }

.qty-num {
  font-size: 14px;
  font-weight: 400;
  min-width: 20px;
  text-align: center;
}

.cart-line {
  font-size: 14px;
  font-weight: 500;
  text-align: right;
}

.cart-remove {
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.cart-remove:hover { color: #2a2a2a; }

.cart-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 40px;
  gap: 20px;
}

.cart-total-row {
  font-size: 18px;
  font-weight: 400;
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.cart-total-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999;
}

.btn-checkout {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: #2a2a2a;
  color: #fff;
  border: none;
  padding: 16px 40px;
  cursor: pointer;
  transition: opacity 0.2s;
  text-align: center;
}

.btn-checkout:hover { opacity: 0.75; }

.cart-note {
  font-size: 12px;
  font-weight: 300;
  color: #aaa;
  max-width: 360px;
  text-align: right;
  line-height: 1.7;
}

/* ===== ABOUT PAGE ===== */
.about-body { max-width: 760px; margin: 0 auto; padding: 80px 48px 60px; }
.about-body h1 { font-size: 48px; font-weight: 200; line-height: 1.15; margin-bottom: 48px; letter-spacing: -0.01em; }
.about-body p { font-size: 15px; font-weight: 300; line-height: 1.95; color: #333; margin-bottom: 22px; }
.about-body ul { margin: 4px 0 22px 24px; list-style: disc; }
.about-body ul li { font-size: 15px; font-weight: 300; line-height: 2.1; color: #333; }
.section-divider { border: none; border-top: 1px solid #e6e0d8; margin: 48px 0; }

/* ===== CONTACT PAGE ===== */
.contact-body { max-width: 620px; margin: 0 auto; padding: 96px 48px 120px; }
.contact-body h1 { font-size: 56px; font-weight: 200; line-height: 1.05; margin-bottom: 40px; letter-spacing: -0.01em; }
.contact-body p { font-size: 15px; font-weight: 300; line-height: 1.9; color: #444; margin-bottom: 22px; }
.contact-link { display: inline-block; font-size: 15px; font-weight: 400; text-decoration: underline; text-underline-offset: 4px; margin-top: 8px; margin-bottom: 12px; transition: opacity 0.2s; }
.contact-link:hover { opacity: 0.5; }
.contact-details { margin-top: 36px; padding-top: 36px; border-top: 1px solid #e6e0d8; }
.contact-details p { margin-bottom: 8px; }

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid #e6e0d8;
  padding: 26px 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

footer a { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; transition: opacity 0.2s; }
footer a:hover { opacity: 0.5; }


/* ===== TABLET (≤ 960px) ===== */
@media (max-width: 960px) {
  header { padding: 0 24px; }
  nav { gap: 20px; }
  .home-hero h1 { font-size: 52px; }
  .home-intro { padding: 60px 24px; }
  .carousel-track { padding: 0 24px; }
  .carousel-slide { flex: 0 0 calc(50% - 16px); }
  .about-carousel .carousel-slide { flex: 0 0 calc(50% - 16px); }
  .page-header { padding: 52px 24px 32px; margin-bottom: 36px; }
  .page-header h1 { font-size: 34px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); padding: 0 24px 80px; gap: 40px 20px; }
  .product-page { grid-template-columns: 1fr 360px; }
  .product-info { padding: 48px 36px 60px; }
  .about-body { padding: 60px 24px 48px; }
  .about-body h1 { font-size: 36px; }
  .contact-body { padding: 72px 24px 100px; }
  .contact-body h1 { font-size: 42px; }
  footer { padding: 22px 24px; gap: 28px; }
}


/* ===== MOBILE (≤ 768px) ===== */
@media (max-width: 768px) {

  /* Header */
  header { padding: 0 20px; height: 56px; }
  .hamburger { display: flex; }

  nav {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    z-index: 250;
    border-top: 1px solid #e6e0d8;
  }

  body.nav-open nav { display: flex; }
  body.nav-open { overflow: hidden; }
  nav a { font-size: 15px; font-weight: 500; letter-spacing: 0.16em; }
  .nav-cart { display: none; }

  /* Hero */
  .home-hero h1 { font-size: 38px; }
  .home-hero .subtitle { font-size: 15px; margin-bottom: 32px; }
  .hero-eyebrow { font-size: 10px; margin-bottom: 14px; }
  .hero-content { padding: 0 24px; }

  /* Carousel */
  .carousel-section { padding: 56px 0; }
  .about-carousel { padding: 0 0 64px; }
  .carousel-track { padding: 0 20px; gap: 12px; }
  .carousel-slide { flex: 0 0 82%; }
  .about-carousel .carousel-slide { flex: 0 0 68%; }
  .carousel-controls { margin-top: 20px; }

  /* Home intro */
  .home-intro { padding: 44px 20px; }
  .home-intro p { font-size: 14px; }

  /* Page header */
  .page-header { padding: 40px 20px 24px; margin-bottom: 28px; }
  .page-header h1 { font-size: 28px; }
  .page-header p { font-size: 13px; }

  /* Shop */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; padding: 0 16px 56px; }
  .product-name { font-size: 12px; }
  .product-price { font-size: 12px; }
  .sold-out-badge { font-size: 9px; padding: 4px 7px; top: 10px; left: 10px; }

  /* Product page — stacked on mobile */
  .product-page { grid-template-columns: 1fr; }

  .product-gallery {
    position: relative;
    top: 0;
    height: 80vw;
    max-height: 460px;
  }

  .thumb-strip { bottom: 16px; left: 16px; }
  .thumb { width: 52px; height: 52px; }

  .product-info {
    padding: 32px 20px 60px;
    border-left: none;
    border-top: 1px solid #e6e0d8;
  }

  .product-info h1 { font-size: 22px; margin-bottom: 10px; }
  .product-info .price { font-size: 15px; margin-bottom: 24px; }
  .product-info .desc { font-size: 13px; }
  .product-info .specs { font-size: 12px; margin-bottom: 32px; }

  /* About */
  .about-body { padding: 44px 20px 36px; }
  .about-body h1 { font-size: 28px; margin-bottom: 28px; }
  .about-body p { font-size: 14px; line-height: 1.8; }
  .about-body ul li { font-size: 14px; line-height: 1.9; }
  .section-divider { margin: 32px 0; }

  /* Contact */
  .contact-body { padding: 52px 20px 72px; }
  .contact-body h1 { font-size: 36px; margin-bottom: 28px; }
  .contact-body p { font-size: 14px; }
  .contact-link { font-size: 14px; }
  .contact-details { margin-top: 28px; padding-top: 28px; }

  /* Footer */
  footer { padding: 20px; gap: 24px; }

  /* Cart */
  .cart-page { padding: 40px 20px 72px; }
  .cart-page h1 { font-size: 28px; margin-bottom: 8px; }
  .cart-header-row { display: none; }
  .cart-row { grid-template-columns: 68px 1fr 32px; grid-template-rows: auto auto; gap: 12px 16px; padding: 20px 0; }
  .cart-img { width: 68px; height: 68px; }
  .cart-qty { grid-column: 2; }
  .cart-line { display: none; }
  .cart-summary { align-items: stretch; }
  .cart-total-row { justify-content: space-between; }
  .cart-note { text-align: left; max-width: 100%; }
  .btn-checkout { width: 100%; padding: 16px; text-align: center; }
}
