﻿:root {
  --bg: #f6f1ea;
  --ink: #1f1a17;
  --accent: #9b3d1f;
  --muted: #6f655f;
  --card: #fffdf9;
  --line: #d8cbbd;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Sora", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 20%, #e9dccd 0, transparent 35%),
    radial-gradient(circle at 90% 10%, #ead1bf 0, transparent 25%),
    var(--bg);
  line-height: 1.5;
}

img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 5vw;
  background: rgba(246, 241, 234, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  letter-spacing: 0.12rem;
}

.brand-sub {
  font-size: 0.8rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

.cart-btn {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  padding: 0.55rem 0.9rem;
  border-radius: 99px;
  cursor: pointer;
}

main {
  padding: 2rem 5vw 4rem;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 4rem;
}

.hero-copy h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  line-height: 0.95;
  margin: 0 0 1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  font-size: 0.75rem;
  color: var(--accent);
}

.hero-photo img {
  aspect-ratio: 4 / 5;
  border-radius: 1rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.cta {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.3rem;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
}

h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

.gallery-section {
  margin-bottom: 4rem;
}

.masonry {
  columns: 3 220px;
  gap: 1rem;
}

.masonry img {
  border-radius: 0.8rem;
  margin-bottom: 1rem;
  transition: transform 0.25s ease;
}

.masonry img:hover {
  transform: translateY(-4px) scale(1.01);
}

.shop-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 1rem;
}

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

.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  overflow: hidden;
}

.product-card img {
  height: 220px;
}

.product-card-content {
  padding: 0.9rem;
}

.product-card h3 {
  margin: 0;
  font-size: 1rem;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.product-card button {
  width: 100%;
  margin-top: 0.8rem;
  padding: 0.55rem;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
}

.contact-section {
  margin-top: 4rem;
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: min(92vw, 400px);
  height: 100vh;
  background: #fff;
  border-left: 1px solid var(--line);
  z-index: 30;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
}

.cart-panel.open {
  right: 0;
}

.cart-header,
.cart-footer {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header button {
  font-size: 1.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow: auto;
  padding: 1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.9rem;
}

.cart-item img {
  width: 56px;
  height: 56px;
  border-radius: 0.4rem;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.qty-controls button {
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.checkout-btn {
  width: 100%;
  margin-top: 0.6rem;
  padding: 0.7rem;
  border: none;
  border-radius: 0.6rem;
  background: var(--accent);
  color: #fff;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 25;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }
}
