:root {
  --bg: #fdf7f0;
  --surface: #fff9f4;
  --surface-alt: #f8e7d7;
  --text: #2f1f14;
  --muted: #7d5f51;
  --accent: #f27247;
  --accent-strong: #d6542d;
  --accent-soft: #ffc7a6;
  --border: rgba(125, 95, 81, 0.25);
  --shadow: 0 25px 60px rgba(71, 40, 20, 0.12);
  --radius-soft: 18px;
  --radius-pill: 100px;
  font-size: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Inter", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

.page-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(253, 247, 240, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1rem, 3vw, 3rem);
}

.logo {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-link {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:is(:hover, :focus-visible),
.nav-link.is-active {
  background: rgba(242, 114, 71, 0.12);
  color: var(--text);
}

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  padding: 0 0.4rem;
  height: 1.75rem;
  background: var(--text);
  color: white;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
}

.hero {
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 3vw, 3rem) 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: center;
}

.hero-card {
  background: var(--surface);
  border-radius: 32px;
  padding: clamp(1.5rem, 4vw, 3.25rem);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.75rem);
  margin: 0 0 1rem;
}

.hero p {
  margin-bottom: 1.5rem;
  color: var(--muted);
  max-width: 38ch;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-pill);
  border: none;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.hero-stats {
  display: grid;
  gap: 1rem;
}

.stat-card {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-soft);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.stat-card strong {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
}

.section {
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 3vw, 3rem);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.pill-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.pill {
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
  transition: border 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.pill.is-active {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(242, 114, 71, 0.16);
}

.search-field {
  position: relative;
  max-width: 360px;
  flex: 1;
}

.search-field input {
  width: 100%;
  border-radius: var(--radius-pill);
  padding: 0.7rem 1rem 0.7rem 3rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: white;
  outline: none;
}

.search-field svg {
  position: absolute;
  top: 50%;
  left: 1rem;
  width: 1rem;
  height: 1rem;
  transform: translateY(-50%);
  color: var(--muted);
}

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

.product-card {
  border-radius: 24px;
  padding: 1rem;
  background: linear-gradient(180deg, #fff, #fff5eb);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.product-card img {
  border-radius: 20px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 1rem;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

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

.product-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  flex: 1;
}

.price-tag {
  font-weight: 600;
  font-size: 1rem;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
}

.btn {
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: white;
  box-shadow: 0 10px 20px rgba(242, 114, 71, 0.35);
}

.btn-ghost {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text);
}

.btn-secondary {
  background: var(--text);
  color: white;
}

.btn:is(:hover, :focus-visible) {
  transform: translateY(-1px);
}

.story-grid,
.collections-grid,
.contact-grid,
.account-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  padding: 1.5rem;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 15px 35px rgba(48, 22, 5, 0.08);
}

.card h3 {
  margin-top: 0;
}

.tag {
  display: inline-flex;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.06);
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  background: var(--text);
  color: white;
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  z-index: 50;
}

.toast.is-visible {
  transform: translateX(-50%) translateY(0);
}

.cart-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  padding-bottom: 3rem;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  padding: 1rem;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  align-items: center;
}

.cart-item img {
  width: 92px;
  height: 92px;
  border-radius: 18px;
  object-fit: cover;
}

.cart-info h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.cart-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.cart-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  cursor: pointer;
}

.qty-input {
  width: 48px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 0.2rem;
}

.summary-card {
  padding: 1.5rem;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.summary-total {
  font-size: 1.2rem;
  font-weight: 600;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  border: 1px dashed rgba(0, 0, 0, 0.08);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info li {
  list-style: none;
  padding: 0.75rem 1rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  padding: 0.75rem 1rem;
  background: white;
  resize: vertical;
}

.contact-form textarea {
  min-height: 130px;
}

.profile-hero {
  padding: 2rem;
  border-radius: 28px;
  background: linear-gradient(120deg, #ffe0cc, #ffd1cb);
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.avatar {
  width: 92px;
  height: 92px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.4);
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent-strong);
}

.account-grid {
  margin-top: 2rem;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.footer {
  padding: 2rem clamp(1rem, 3vw, 3rem);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--muted);
  text-align: center;
}

.contact-note-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: center;
}

.contact-note-label h4 {
  width: 100px;
}

#contact_note_label_area {
  box-sizing: initial;
  width: 200px;
}

@media (max-width: 960px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-card {
    padding: 1.5rem;
  }

  .cart-item {
    grid-template-columns: 1fr;
  }

  .cart-item img {
    width: 100%;
    height: 220px;
  }

  .cart-controls {
    justify-content: space-between;
  }
}
