:root {
  --bg: #fbf7f2;
  --ink: #1f1611;
  --muted: #6f5c4e;
  --line: #e7ded4;
  --primary: #765c48;
  --secondary: #b59268;
  --accent: #caa472;
  --surface: #ffffff;
  --surface-2: #fffaf4;
  --hover: #f5efe7;
  --canvas-bg: #f5efe7;
  --overlay: rgba(31, 22, 17, 0.55);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  scrollbar-gutter: stable;
}

@supports not (scrollbar-gutter: stable) {
  html {
    overflow-y: scroll;
  }
}

body {
  margin: 0;
  font-family: "Google Sans Flex", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 40, "wght" 420;
}

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

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.panel,
.content-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: block;
  object-fit: contain;
}

.brand h1 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 28, "wght" 780;
}

.brand small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  font-variation-settings: "opsz" 22, "wght" 450;
}

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

nav a {
  font-size: 14px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 12px;
  transition: background 0.15s ease, color 0.15s ease;
}

nav a:hover {
  background: #f3f4f6;
  color: var(--ink);
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
  justify-content: flex-end;
}

.pillBtn,
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform 0.08s ease, background 0.15s ease;
}

.pillBtn,
.back-to-top,
.btn,
.social-button {
  cursor: pointer;
}

.pillBtn:hover,
.back-to-top:hover {
  background: #f9fafb;
}

.pillBtn:active,
.back-to-top:active {
  transform: translateY(1px);
}

.badge {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #fff;
  background: var(--primary);
}

.pageSection {
  padding: 46px 0 62px;
}

.page-header {
  text-align: center;
  margin-bottom: 42px;
}

.page-header--lined {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.page-header h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.06em;
  font-variation-settings: "opsz" 56, "wght" 900;
}

.page-header p {
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  font-variation-settings: "opsz" 24, "wght" 430;
  max-width: 58ch;
}

.content-panel {
  padding: 32px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.08s ease, filter 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  font-variation-settings: "opsz" 22, "wght" 760;
}

.btn:active {
  transform: translateY(1px);
}

.btnPrimary {
  background: var(--primary);
  color: #fff;
  font-variation-settings: "opsz" 24, "wght" 820;
}

.btnPrimary:hover {
  filter: brightness(1.05);
}

.btnSecondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.btnSecondary:hover {
  background: #f9fafb;
}

.legal-content {
  padding: 32px;
}

.legal-section {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.legal-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.legal-section h2 {
  margin: 0 0 16px;
  font-size: 18px;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 28, "wght" 860;
  color: var(--ink);
}

.legal-section p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  font-variation-settings: "opsz" 24, "wght" 430;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section strong {
  font-variation-settings: "opsz" 24, "wght" 680;
  color: var(--ink);
}

.legal-section a {
  color: var(--primary);
  font-variation-settings: "opsz" 24, "wght" 680;
  text-decoration: none;
  transition: color 0.15s ease;
}

.legal-section a:hover {
  color: #5f4939;
}

footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  color: var(--muted);
  font-size: 12px;
  background: #fff;
}

.footer-content {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.back-to-top {
  justify-self: start;
  color: var(--ink);
  font-size: 13px;
  font-variation-settings: "opsz" 22, "wght" 760;
}

.footer-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.footer-column {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px;
}

.footer-column h3 {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 24, "wght" 840;
}

.social-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.social-button {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  transition: background 0.15s ease, transform 0.08s ease;
}

.social-button:hover {
  background: #f3f4f6;
}

.social-button:active {
  transform: translateY(1px);
}

.social-button img {
  width: 20px;
  height: 20px;
  display: block;
  opacity: 0.9;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
  transition: background 0.15s ease, color 0.15s ease;
}

.footer-links a:hover {
  background: #f3f4f6;
  color: var(--ink);
}

.footer-copy {
  margin: 0;
  line-height: 1.5;
  color: var(--muted);
}

#cartLayer {
  position: relative;
}

#cartLayer .cart-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 60;
}

#cartLayer .cart-menu {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  height: 100vh;
  width: min(420px, 92vw);
  background: var(--surface);
  border-left: 1px solid var(--line);
  transform: translateX(102%);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
  display: grid;
  grid-template-rows: auto 1fr auto;
  z-index: 70;
}

body.cart-open #cartLayer .cart-overlay {
  opacity: 1;
  visibility: visible;
}

body.cart-open #cartLayer .cart-menu {
  transform: translateX(0);
}

#cartLayer .cart-head {
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#cartLayer .cart-head h2 {
  margin: 0;
  font-size: 16px;
  font-variation-settings: "opsz" 26, "wght" 860;
}

#cartLayer .cart-close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
}

#cartLayer .cart-close:hover {
  background: var(--hover);
}

#cartLayer .cart-items {
  padding: 14px 16px;
  overflow: auto;
}

#cartLayer .cart-empty {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 0;
}

#cartLayer .cart-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  grid-template-areas:
    "thumb title controls"
    "thumb info controls";
  gap: 10px 12px;
  align-items: start;
  background: var(--surface);
}

#cartLayer .item-thumb {
  grid-area: thumb;
}

#cartLayer .item-title {
  grid-area: title;
  font-size: 14px;
  font-variation-settings: "opsz" 24, "wght" 820;
}

#cartLayer .item-info {
  grid-area: info;
}

#cartLayer .item-controls {
  grid-area: controls;
  display: grid;
  gap: 10px;
  justify-items: end;
}

#cartLayer .cart-thumb {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid var(--line);
  object-fit: cover;
  display: block;
  background: var(--canvas-bg);
}

#cartLayer .cart-item-options {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
  margin-bottom: 6px;
}

#cartLayer .cart-item-price {
  font-size: 13px;
  font-variation-settings: "opsz" 22, "wght" 780;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  display: inline-block;
  background: var(--surface-2);
}

#cartLayer .item-quantity input {
  width: 56px;
  height: 34px;
  text-align: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  outline: none;
  background: var(--surface);
}

#cartLayer .item-quantity input:focus {
  border-color: rgba(118, 92, 72, 0.75);
  box-shadow: 0 0 0 4px rgba(118, 92, 72, 0.18);
}

#cartLayer .item-delete {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  cursor: pointer;
  user-select: none;
  background: var(--surface);
}

#cartLayer .item-delete:hover {
  background: var(--hover);
}

#cartLayer .cart-foot {
  border-top: 1px solid var(--line);
  padding: 14px 16px 16px;
  display: grid;
  gap: 12px;
}

#cartLayer .cart-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 14px;
}

#cartLayer .checkout {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 14px;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  font-variation-settings: "opsz" 22, "wght" 820;
}

#cartLayer .checkout:hover {
  filter: brightness(1.05);
}

@media (max-width: 980px) {
  nav {
    display: none;
  }

  .actions {
    min-width: unset;
  }

  .content-panel {
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .content-panel,
  .legal-content {
    padding: 20px;
  }

  .legal-section {
    padding-bottom: 24px;
    margin-bottom: 24px;
  }
}

@media (max-width: 860px) {
  .footer-sections {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pillBtn,
  .btn,
  nav a,
  .back-to-top,
  .social-button,
  .footer-links a {
    transition: none;
  }
}
