/* Feather Red's storefront — cream + red brand. No external dependencies. */
:root {
  --cream: #faf2e7;
  --cream-dark: #f3e7d3;
  --red: #a51c20;
  --red-bright: #d2262a;
  --ink: #141414;
  --ink-soft: #4a443c;
  --white: #fffdf9;
  --line: #e4d6c0;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system,
    sans-serif;
  line-height: 1.5;
}

a { color: var(--red); }

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

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
header.site {
  background: var(--white);
  border-bottom: 3px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 10;
}
header.site .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 52px; height: 52px; border-radius: 50%; }
.brand .name { font-weight: 900; font-size: 1.35rem; letter-spacing: 0.02em; }
.brand .tag { font-size: 0.8rem; color: var(--ink-soft); }
nav.site { margin-left: auto; display: flex; gap: 4px; align-items: center; }
nav.site a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
}
nav.site a:hover { background: var(--cream-dark); }
.cart-link { position: relative; }
.cart-count {
  display: inline-block;
  min-width: 20px;
  text-align: center;
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  font-size: 0.75rem;
  padding: 1px 5px;
  margin-left: 4px;
}

/* Hero */
.hero { text-align: center; padding: 48px 20px 32px; }
.hero img.logo-big { width: 150px; height: 150px; margin: 0 auto 16px; border-radius: 50%; }
.hero h1 { font-size: 2.6rem; margin: 0 0 8px; line-height: 1.1; }
.hero h1 em { color: var(--red); font-style: normal; }
.hero p.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 560px; margin: 0 auto 20px; }

.offer-banner {
  background: var(--red);
  color: #fff;
  border-radius: var(--radius);
  padding: 14px 20px;
  font-weight: 800;
  font-size: 1.05rem;
  text-align: center;
  margin: 0 auto 28px;
  max-width: 720px;
}
.offer-banner small { display: block; font-weight: 500; font-size: 0.85rem; opacity: 0.92; }

.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px 26px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.btn:hover { background: var(--red-bright); }
.btn:disabled { opacity: 0.55; cursor: wait; }
.btn.ghost { background: transparent; color: var(--red); border: 2px solid var(--red); }
.btn.ghost:hover { background: var(--red); color: #fff; }
.btn.block { display: block; width: 100%; }

/* Filters + grid */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 20px; }
.filters button {
  border: 2px solid var(--red);
  background: transparent;
  color: var(--red);
  border-radius: 999px;
  padding: 7px 16px;
  font-weight: 700;
  cursor: pointer;
}
.filters button.active { background: var(--red); color: #fff; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; background: var(--cream-dark); }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 1.02rem; line-height: 1.3; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card .meta { color: var(--ink-soft); font-size: 0.88rem; }
.card .price { font-weight: 900; font-size: 1.15rem; }
.card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 3px 9px;
  text-transform: uppercase;
}
.badge.soft { background: var(--cream-dark); color: var(--red); }

/* Product detail */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 32px 0 48px; }
@media (max-width: 760px) { .detail { grid-template-columns: 1fr; } }
.detail img.main { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.detail h1 { margin: 0 0 4px; font-size: 1.7rem; line-height: 1.2; }
.detail .price-big { font-size: 1.6rem; font-weight: 900; margin: 8px 0; }
.detail .blank { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 12px; }
.size-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.size-btn {
  min-width: 52px;
  border: 2px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  padding: 9px 12px;
  font-weight: 800;
  cursor: pointer;
}
.size-btn.selected { border-color: var(--red); background: var(--red); color: #fff; }
.size-note { font-size: 0.88rem; color: var(--ink-soft); background: #fff8e6; border: 1px solid #ecd9a0; border-radius: 8px; padding: 8px 10px; margin: 4px 0 12px; }
.qty-row { display: flex; align-items: center; gap: 10px; margin: 12px 0 16px; }
.qty-row button { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--red); background: #fff; color: var(--red); font-size: 1.2rem; font-weight: 800; cursor: pointer; }
.qty-row span { font-weight: 800; font-size: 1.1rem; min-width: 24px; text-align: center; }
.offer-box {
  background: var(--white);
  border: 2px dashed var(--red);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-top: 18px;
}
.offer-box h4 { margin: 0 0 4px; color: var(--red); }
.offer-box p { margin: 0; font-size: 0.93rem; }

/* Cart / forms */
table.cart { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; }
table.cart th, table.cart td { padding: 12px; text-align: left; border-bottom: 1px solid var(--line); }
table.cart img { width: 64px; border-radius: 8px; }
.totals { text-align: right; font-size: 1.1rem; margin: 16px 0; }
.totals strong { font-size: 1.35rem; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; margin-bottom: 4px; }
.field input, .field select {
  width: 100%;
  padding: 11px 12px;
  border: 2px solid var(--line);
  border-radius: 10px;
  font-size: 1rem;
  background: #fff;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.notice { background: #fff8e6; border: 1px solid #ecd9a0; border-radius: 10px; padding: 12px 14px; margin: 14px 0; }
.error { background: #fdecea; border: 1px solid #f5b5b0; color: #7a1a17; border-radius: 10px; padding: 12px 14px; margin: 14px 0; }
.success-box { background: #e9f7ee; border: 1px solid #a8d9b8; border-radius: var(--radius); padding: 18px; margin: 18px 0; }

section.block { padding: 28px 0; }
section.block h2 { font-size: 1.5rem; margin: 0 0 10px; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .how { grid-template-columns: 1fr; } }
.how .step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.how .step .num { font-size: 1.8rem; font-weight: 900; color: var(--red); }
.code-box {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  background: var(--white);
  border: 2px dashed var(--red);
  border-radius: 10px;
  padding: 12px 16px;
  text-align: center;
  margin: 10px 0;
  word-break: break-all;
}

footer.site { border-top: 3px solid var(--red); background: var(--white); padding: 28px 0 40px; color: var(--ink-soft); font-size: 0.92rem; }
footer.site a { color: var(--red); }
