/* Linen & Bay — demo boutique for Webmo Studio. Relative assets only. */
:root {
  --paper: #f3efe7;
  --fog: #e7e2d8;
  --ink: #1c1b18;
  --clay: #c4622d;
  --clay-deep: #a44e22;
  --bay: #2f4a45;
  --bay-deep: #223833;
  --stone: #8a8578;
  --white: #fcfaf6;
  --line: #d8d2c6;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --header-h: 4.25rem;
  --max: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 24px 50px rgba(28, 27, 24, 0.16);
  --drawer-w: 26rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; margin: 0; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--bay); outline-offset: 3px; }

.skip {
  position: absolute;
  left: -999px;
  z-index: 10000;
  background: var(--bay);
  color: #fff;
  padding: 0.6rem 1rem;
  text-decoration: none;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: min(var(--max), calc(100% - 2.4rem)); margin-inline: auto; }

.webmo-ribbon {
  position: fixed;
  z-index: 9999;
  left: 0.85rem;
  bottom: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  background: var(--bay);
  color: var(--paper);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--shadow);
}
.webmo-ribbon::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--clay);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(243, 239, 231, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.logo img { width: 2.6rem; height: 1.3rem; }
.logo-type { display: flex; flex-direction: column; line-height: 1; }
.logo-type strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}
.logo-type span {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 0.2rem;
}
.nav { display: none; align-items: center; gap: 1.5rem; }
.nav a {
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav a:hover { color: var(--clay); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.cart-btn, .nav-toggle {
  border: 1px solid var(--line);
  background: var(--white);
  height: 2.6rem;
  padding: 0 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cart-count {
  min-width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: var(--clay);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0;
}
.nav-toggle { width: 2.6rem; padding: 0; flex-direction: column; justify-content: center; gap: 0.28rem; }
.nav-toggle span { display: block; width: 1.05rem; height: 1.5px; background: var(--ink); }
@media (min-width: 840px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
}
.nav-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 1rem 0 1.25rem;
  background: var(--paper);
}
.nav-panel.is-open { display: block; }
.nav-panel a {
  display: block;
  text-decoration: none;
  padding: 0.7rem 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  text-decoration: none;
  padding: 0.9rem 1.3rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bay);
  color: var(--white);
  transition: background 0.25s var(--ease);
}
.btn:hover { background: var(--bay-deep); }
.btn-clay { background: var(--clay); color: #fff; }
.btn-clay:hover { background: var(--clay-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--fog); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Hero */
.hero {
  padding: 3rem 0 2rem;
}
.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; padding: 1rem 0 2rem; }
}
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.7rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 500;
  margin-bottom: 1rem;
}
.hero .lede { font-size: 1.15rem; color: #4a4740; max-width: 32rem; margin-bottom: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.hero-figure { margin: 0; background: var(--fog); }
.hero-figure img { width: 100%; aspect-ratio: 1/1; max-height: 32rem; object-fit: cover; margin-inline: auto; }

.shop { padding: 2.5rem 0 5rem; }
.shop-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.5rem;
}
.shop-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}
.filters { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.filters button, .sort-wrap select {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0.45rem 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.filters button[aria-pressed="true"] {
  background: var(--bay);
  color: #fff;
  border-color: var(--bay);
}
.sort-wrap label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
}
.result-count { font-size: 0.85rem; color: var(--stone); }

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 0.7rem;
}
@media (min-width: 800px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 1.6rem 1.1rem; }
}
.card { color: inherit; text-decoration: none; display: block; }
.card-img {
  background: var(--fog);
  margin-bottom: 0.7rem;
  overflow: hidden;
}
.card-img img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.card:hover img { transform: scale(1.03); }
.card h3 { font-size: 1.15rem; font-weight: 500; }
.card .meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.2rem;
  font-size: 0.95rem;
}
.card .cat { color: var(--stone); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.card-tag {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.2rem;
}
.empty-msg { grid-column: 1 / -1; padding: 3rem 0; text-align: center; color: var(--stone); }

.about { padding: 0 0 5rem; }
.about-grid {
  display: grid;
  gap: 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.75rem 1.4rem;
}
@media (min-width: 800px) {
  .about-grid { grid-template-columns: 1fr 1fr; padding: 3rem; gap: 3rem; align-items: center; }
}
.about h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.8rem; }
.about p { color: #4a4740; }
.about p + p { margin-top: 0.8rem; }

/* Product page */
.product { padding: 2rem 0 4.5rem; }
.crumb {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 1.5rem;
}
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--clay); }
.product-grid { display: grid; gap: 2rem; }
@media (min-width: 880px) {
  .product-grid { grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; align-items: start; }
}
.product-img { background: var(--fog); }
.product-img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.product-info h1 { font-size: clamp(2rem, 4vw, 3.1rem); margin: 0.3rem 0 0.6rem; }
.product-price { font-size: 1.35rem; margin-bottom: 1rem; }
.product-info .lede { color: #4a4740; margin-bottom: 1.25rem; }
.product-details { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.product-details li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: #4a4740;
}
.qty-row {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin: 1.25rem 0;
}
.qty-row label { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); }
.qty-row input {
  width: 4.5rem;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0.65rem 0.5rem;
  text-align: center;
}
.not-found { padding: 5rem 0; text-align: center; }

/* Checkout */
.checkout { padding: 2rem 0 5rem; }
.checkout-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) {
  .checkout-grid { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: start; }
}
form.checkout-form, .summary, .demo-pay, .success-card, .empty-cart {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.4rem;
}
@media (min-width: 600px) {
  form.checkout-form, .summary, .demo-pay, .success-card, .empty-cart { padding: 1.8rem; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
}
label.field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.9rem;
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0.7rem 0.8rem;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--bay);
  outline-offset: 0;
  border-color: var(--bay);
}
input:disabled, .pay-disabled {
  opacity: 0.7;
  cursor: not-allowed;
  background: var(--fog);
}
.demo-banner {
  background: #f6e4d6;
  border: 1px solid #e2b08a;
  color: #6a3414;
  padding: 0.75rem 0.9rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.summary h2, .checkout h1, .success-card h1 { margin-bottom: 0.8rem; }
.summary-line, .cart-line {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.summary-line img, .cart-line img { width: 3.5rem; aspect-ratio: 1; object-fit: cover; background: var(--fog); }
.summary-total, .cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  padding-top: 1rem;
  font-size: 1.05rem;
}
.success-card { text-align: center; max-width: 34rem; margin: 2rem auto; padding: 3rem 1.6rem; }
.success-card p { color: #4a4740; margin: 0.6rem 0 1.4rem; }

/* Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 27, 24, 0.45);
  z-index: 120;
}
.drawer-backdrop[hidden], .cart-drawer[hidden] { display: none; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 130;
  width: min(var(--drawer-w), 100%);
  background: var(--white);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.drawer-head, .drawer-foot {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.drawer-foot {
  border-bottom: 0;
  border-top: 1px solid var(--line);
  flex-direction: column;
  align-items: stretch;
}
.drawer-body {
  overflow: auto;
  padding: 0.5rem 1.15rem 1rem;
  flex: 1;
}
.icon-btn {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.2rem;
}
.cart-line { grid-template-columns: 3.5rem 1fr auto; }
.cart-line h3 { font-size: 1rem; font-family: var(--font-sans); font-weight: 600; }
.qty-mini { display: flex; align-items: center; gap: 0.35rem; margin-top: 0.35rem; }
.qty-mini button {
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid var(--line);
  background: var(--paper);
}
.qty-mini button:disabled { opacity: 0.4; cursor: not-allowed; }
.remove {
  border: 0;
  background: none;
  color: var(--stone);
  font-size: 0.75rem;
  text-decoration: underline;
  padding: 0;
}
.drawer-empty { padding: 2rem 0; text-align: center; color: var(--stone); }

.site-footer {
  background: var(--bay-deep);
  color: #c9d4d0;
  padding: 2.5rem 0 6rem;
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
}
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
