:root {
  color-scheme: light;
  --ink: #182028;
  --muted: #60727f;
  --sky: #dceef2;
  --cloud: #f7f4ef;
  --sand: #efe7dc;
  --teal: #227d86;
  --teal-dark: #0d3f45;
  --coral: #e7866c;
  --shadow: 0 18px 36px rgba(12, 24, 31, 0.12);
  --radius: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Work Sans", "Trebuchet MS", sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: radial-gradient(circle at top, #ffffff 0%, var(--cloud) 50%, var(--sand) 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(var(--sky) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(12, 24, 31, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 6vw;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--teal-dark);
  color: #fdf7f0;
  font-weight: 700;
  letter-spacing: 1px;
}

.brand-name {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.2rem;
}

.brand-tag {
  font-size: 0.9rem;
  color: var(--muted);
}

.header-actions {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  font-weight: 600;
}

.header-link {
  color: var(--muted);
  transition: color 0.2s ease;
}

.header-link:hover {
  color: var(--teal-dark);
}

.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(12, 24, 31, 0.15);
  background: #ffffff;
  font-weight: 700;
  color: var(--teal-dark);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  align-items: center;
  padding: 4.2rem 6vw 2.5rem;
}

.hero-copy h1 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(2.3rem, 4vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.78rem;
  color: var(--teal);
  margin-bottom: 0.8rem;
}

.hero-subtitle {
  max-width: 520px;
  color: var(--muted);
}

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(12, 24, 31, 0.15);
}

.btn-primary {
  background: var(--teal-dark);
  color: #fdf7f0;
}

.btn-ghost {
  background: transparent;
  border-color: var(--teal-dark);
  color: var(--teal-dark);
}

.hero-panel {
  position: relative;
  min-height: 300px;
  display: grid;
  place-items: center;
}

.hero-swatch {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 42% 58% 60% 40%;
  background: linear-gradient(140deg, var(--coral), #f4c37f);
  opacity: 0.88;
  animation: float 6s ease-in-out infinite;
}

.hero-carousel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.hero-carousel-image {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
  animation: fadeInOut 5s ease-in-out infinite;
}

.hero-card {
  background: #ffffff;
  padding: 1.2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex: 1;
  min-width: 0;
  animation: fadeInOut 5s ease-in-out infinite;
}

.hero-card-title {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  color: var(--teal);
  margin-bottom: 0.4rem;
}

.hero-card-name {
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.section {
  padding: 3.5rem 6vw;
}

.section-alt {
  background: #f1e8db;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  color: var(--teal);
}

.section-subtitle {
  margin-top: 0.5rem;
  color: var(--muted);
}

.product-list {
  display: grid;
  gap: 2rem;
}

.product-card {
  display: grid;
  gap: 1.4rem;
  padding: 1.6rem;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.js-enabled .product-card {
  opacity: 0;
  transform: translateY(18px);
}

.js-enabled .product-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.product-media {
  display: grid;
  place-items: center;
  padding: 1.2rem;
  border-radius: 16px;
  background: #f7f7f7;
}

.product-media img {
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
  display: block;
  object-fit: cover;
}

.product-title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.3rem;
}

.product-meta {
  color: var(--muted);
}

.product-story {
  margin-top: 0.4rem;
  color: var(--ink);
  font-size: 0.95rem;
  white-space: pre-line;
  line-height: 1.7;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #f5f2ed;
  border-radius: 999px;
  padding: 0.6rem 0.8rem 0.6rem 1.2rem;
}

.price-row span {
  font-weight: 700;
  color: var(--teal-dark);
}

.price-row button {
  border: none;
  background: var(--teal);
  color: #ffffff;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.contact-card {
  display: grid;
  gap: 1rem;
  background: #ffffff;
  padding: 1.8rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-note {
  color: var(--muted);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.contact-info {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--teal-dark);
  font-weight: 600;
}

.site-footer {
  padding: 2rem 6vw;
  text-align: center;
  background: var(--teal-dark);
  color: #fdf7f0;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
  }
  10%, 85% {
    opacity: 1;
  }
  95%, 100% {
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

/* Image Modal */
.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  cursor: zoom-out;
  padding: 20px;
}

.image-modal.active {
  display: flex;
}

.image-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  cursor: default;
}

.image-modal-content img {
  width: 100%;
  height: 100%;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.image-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 8px 16px;
  transition: opacity 0.2s;
}

.image-modal-close:hover {
  opacity: 0.7;
}

.image-modal-caption {
  color: white;
  text-align: center;
  margin-top: 12px;
  font-size: 1rem;
}

.product-media img {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.product-media img:hover {
  transform: scale(1.02);
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .hero {
    padding-top: 3rem;
  }

  .price-row {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 18px;
  }
  
  .image-modal-close {
    top: -35px;
    font-size: 1.5rem;
  }
}
