:root {
  --cream: #f6efe4;
  --cream-deep: #efe4d4;
  --paper: #fffaf3;
  --ink: #243128;
  --muted: #5d6a60;
  --green: #1f3d2b;
  --green-soft: #2f5740;
  --pink: #e7b7bd;
  --pink-deep: #c98993;
  --line: rgba(31, 61, 43, 0.12);
  --shadow: 0 24px 50px rgba(36, 49, 40, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.sr-only,
.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--green);
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 239, 228, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  color: var(--pink-deep);
  font-size: 1.3rem;
}

.logo-text {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav a:hover {
  color: var(--green);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-button,
.menu-toggle,
.icon-close,
.filter-chip,
.btn {
  cursor: pointer;
  border: 0;
}

.cart-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
}

.cart-icon {
  width: 20px;
  height: 20px;
}

.cart-icon svg {
  width: 100%;
  height: 100%;
}

.cart-count {
  background: var(--pink);
  color: var(--green);
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: transparent;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--green);
}

.menu-toggle span:nth-child(1) {
  top: 14px;
}

.menu-toggle span:nth-child(2) {
  top: 20px;
}

.menu-toggle span:nth-child(3) {
  top: 26px;
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  place-items: end start;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background: linear-gradient(180deg, rgba(31, 61, 43, 0.15) 0%, rgba(31, 61, 43, 0.62) 100%);
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 48px));
  margin: 0 0 72px 6vw;
  color: #fff;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  color: var(--pink);
  margin-bottom: 12px;
}

.hero h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 1.1;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  max-width: 12ch;
  margin-bottom: 18px;
}

.hero-copy {
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 28px;
}

.hero-actions,
.btn {
  display: inline-flex;
  align-items: center;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 500;
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green-soft);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.notice {
  padding: 18px 16px 0;
}

.notice-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  background: #f8e6e8;
  border: 1px solid rgba(201, 137, 147, 0.4);
  border-radius: 18px;
  padding: 18px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--green);
}

.notice-icon {
  color: var(--pink-deep);
  font-size: 1.2rem;
}

.categories,
.catalog,
.order,
.atelier,
.contact {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 84px 0 0;
}

.section-heading {
  max-width: 640px;
  margin-bottom: 36px;
}

.section-heading .eyebrow {
  color: var(--pink-deep);
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin-bottom: 12px;
}

.lede,
.atelier-copy p,
.contact-card p {
  color: var(--muted);
}

.category-grid,
.product-grid {
  display: grid;
  gap: 18px;
}

.category-grid {
  grid-template-columns: repeat(4, 1fr);
}

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 220px;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.5s ease;
}

.category-card:hover img {
  transform: scale(1.06);
}

.category-card span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  color: #fff;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  z-index: 1;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, rgba(31, 61, 43, 0.7));
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-chip {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--green);
  border-radius: 999px;
  padding: 8px 16px;
}

.filter-chip.is-active,
.filter-chip:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.product-grid {
  grid-template-columns: repeat(4, 1fr);
}

.product-card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.product-card img {
  height: 240px;
  width: 100%;
  object-fit: cover;
}

.product-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-cat {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink-deep);
}

.product-card h3 {
  font-size: 1.55rem;
}

.product-card p {
  color: var(--muted);
  font-size: 0.94rem;
  flex: 1;
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.price {
  font-weight: 600;
  color: var(--green);
}

.product-foot .btn {
  padding: 9px 14px;
  font-size: 0.9rem;
}

.atelier {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.atelier-image img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 30px;
}

.atelier-copy ul {
  margin-top: 20px;
  padding-left: 18px;
  color: var(--muted);
}

.atelier-copy li + li {
  margin-top: 8px;
}

.order-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  padding-bottom: 20px;
}

.order-summary,
.order-form,
.contact-card,
.contact-form {
  background: var(--paper);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.order-summary h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.order-total,
.cart-total {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 1.1rem;
}

.order-hint,
.cart-note,
.form-notice,
.optional {
  color: var(--muted);
  font-size: 0.9rem;
}

.form-notice {
  background: #f8e6e8;
  border-radius: 14px;
  padding: 12px 14px;
}

.order-form,
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.order-form label,
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.92rem;
}

.order-form .full,
.contact-form label {
  grid-column: 1 / -1;
}

input,
textarea {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--ink);
}

input:focus,
textarea:focus {
  outline: 2px solid var(--pink);
  border-color: transparent;
}

.order-form .btn,
.contact-form .btn {
  justify-self: start;
}

.contact {
  padding-bottom: 90px;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.contact-list {
  list-style: none;
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.contact-list span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink-deep);
}

.contact-list a,
.contact-list address,
.contact-list p {
  font-style: normal;
  text-decoration: none;
}

.site-footer {
  padding: 28px 16px 40px;
  text-align: center;
  color: var(--muted);
}

.cart-drawer {
  position: fixed;
  inset: 0;
  background: rgba(36, 49, 40, 0.42);
  z-index: 40;
}

.cart-panel {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(420px, 100%);
  background: var(--cream);
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.icon-close {
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  color: var(--green);
}

.cart-items {
  flex: 1;
  overflow: auto;
  margin: 18px 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
}

.remove-item {
  background: transparent;
  border: 0;
  color: var(--pink-deep);
  cursor: pointer;
}

.qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.qty button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.empty-cart {
  color: var(--muted);
  padding: 24px 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: var(--green);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  z-index: 50;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 980px) {
  .category-grid,
  .product-grid,
  .atelier,
  .order-layout,
  .contact-card {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 16px 22px 22px;
    border-bottom: 1px solid var(--line);
    gap: 14px;
  }

  .nav.is-open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .cart-label {
    display: none;
  }

  .hero-content {
    margin: 0 0 48px 20px;
  }

  .category-grid,
  .product-grid,
  .atelier,
  .order-layout,
  .contact-card,
  .order-form {
    grid-template-columns: 1fr;
  }

  .atelier-image img {
    height: 280px;
  }
}

.hero-cta {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 30px;
  border-radius: 999px;
  background: #d98c9a;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.hero-cta:hover {
  background: #c9737f;
  transform: translateY(-2px);
}

.hero-actions .hero-cta {
  margin-top: 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn:disabled {
  opacity: 0.7;
  cursor: progress;
}

.order-form,
.contact-form {
  position: relative;
}

.toast {
  max-width: calc(100% - 32px);
  width: max-content;
  text-align: center;
  border-radius: 18px;
}
