/* ---------- Colour bands + subtle silhouettes ---------- */
.band { width: 100%; position: relative; overflow: hidden; }
.band-blue { background: var(--section-blue); }
.band-pink { background: var(--section-pink); }
.band-yellow { background: var(--section-yellow); }

.band > section, .band > .founder, .band > .testimonial, .band > .press-strip, .band > .story {
  position: relative;
  z-index: 1;
}

.band-yellow::before {
  content: '';
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 220px;
  height: 220px;
  background-repeat: no-repeat;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg fill='%23C6567A' fill-opacity='0.10'%3E%3Ccircle cx='100' cy='60' r='35'/%3E%3Ccircle cx='140' cy='100' r='35'/%3E%3Ccircle cx='100' cy='140' r='35'/%3E%3Ccircle cx='60' cy='100' r='35'/%3E%3Ccircle cx='100' cy='100' r='25'/%3E%3C/g%3E%3C/svg%3E");
}

.band-blue::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 10px;
  width: 240px;
  height: 120px;
  background-repeat: no-repeat;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='120' viewBox='0 0 240 120'%3E%3Cpath d='M10,60 Q60,10 110,60 T210,60' stroke='%238A9A70' stroke-opacity='0.25' stroke-width='3' fill='none' stroke-dasharray='6,6'/%3E%3Cellipse cx='220' cy='60' rx='8' ry='14' fill='none' stroke='%238A9A70' stroke-opacity='0.3' stroke-width='3'/%3E%3C/svg%3E");
}

.band-pink::before {
  content: '';
  position: absolute;
  right: 20px;
  top: -20px;
  width: 180px;
  height: 180px;
  background-repeat: no-repeat;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg fill='%23D9A441' fill-opacity='0.10'%3E%3Ccircle cx='100' cy='60' r='30'/%3E%3Ccircle cx='135' cy='95' r='30'/%3E%3Ccircle cx='100' cy='130' r='30'/%3E%3Ccircle cx='65' cy='95' r='30'/%3E%3Ccircle cx='100' cy='95' r='20'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Design tokens ---------- */
:root {
  --bg: #FDFBF6;
  --ink: #2E2429;
  --rose: #C6567A;
  --rose-dark: #A83F60;
  --sage: #8A9A70;
  --mustard: #D9A441;
  --card-bg: #FFFFFF;
  --section-blue: #E3EFF3;
  --section-pink: #F7E4E9;
  --section-yellow: #FBF1DC;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Lora', serif;
  font-weight: 600;
  margin: 0 0 0.5em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h1 em { font-style: italic; font-weight: 500; color: var(--rose); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); text-align: center; margin-bottom: 1em; }
h3 { font-size: 1.15rem; }

p { max-width: 60ch; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85em 1.8em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--rose);
  color: #fff;
}
.btn-primary:hover { background: var(--rose-dark); }

.btn-outline {
  border: 2px solid var(--ink);
  color: var(--ink);
  display: block;
  width: fit-content;
  margin: 2.5rem auto 0;
}
.btn-outline:hover { background: var(--ink); color: var(--bg); }

/* ---------- Placeholder images ---------- */
.placeholder-img {
  background: repeating-linear-gradient(
    135deg,
    #EFE2D2,
    #EFE2D2 10px,
    #E7D6C1 10px,
    #E7D6C1 20px
  );
  border: 2px dashed var(--sage);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #6B5D52;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 1rem;
  min-height: 220px;
}
.placeholder-img::before {
  content: attr(data-label);
  max-width: 80%;
}

/* ---------- Promo bar ---------- */
.promo-bar {
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  letter-spacing: 0.01em;
}

/* ---------- Icon nav (account / cart) ---------- */
.icon-nav { display: flex; align-items: center; gap: 1.1rem; }
.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}
.icon-link .dot { color: var(--sage); }
.cart-count {
  background: var(--rose);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Press / as-seen strip ---------- */
.press-strip {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.press-strip p {
  margin: 0 auto 1.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #8A7A6E;
}
.press-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.2rem;
  font-family: 'Lora', serif;
  font-weight: 600;
  color: #8A7A6E;
  font-size: 1.05rem;
}

/* ---------- Testimonial ---------- */
.testimonial {
  max-width: 700px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  text-align: center;
}
.testimonial blockquote {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  margin: 0 0 1rem;
}
.testimonial cite { font-size: 0.85rem; font-weight: 700; opacity: 0.7; font-style: normal; }

/* ---------- Founder / brand story block ---------- */
.founder {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}
.founder-quote { font-size: 1.1rem; }

/* ---------- Auth card (login/signup) ---------- */
.auth-wrap {
  max-width: 460px;
  margin: 3.5rem auto;
  padding: 0 1.5rem;
}
.auth-card {
  background: var(--card-bg);
  border-radius: 18px;
  padding: 2.2rem;
  border: 1px solid rgba(59,42,46,0.08);
}
.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.6rem;
  border-bottom: 2px solid rgba(59,42,46,0.1);
}
.auth-tab {
  flex: 1;
  text-align: center;
  padding: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
}
.auth-tab.active { color: var(--rose-dark); border-bottom-color: var(--rose); }
.auth-panel { display: none; }
.auth-panel.active { display: block; }
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 0.4rem; }
.form-field input {
  width: 100%;
  padding: 0.75em 1em;
  border-radius: 10px;
  border: 2px solid rgba(59,42,46,0.15);
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
}
.form-field input:focus { outline: 2px solid var(--rose); outline-offset: 1px; }
.form-wide { width: 100%; text-align: center; }
.auth-note { text-align: center; font-size: 0.85rem; margin-top: 1rem; opacity: 0.75; }

/* ---------- Shop grid / filters ---------- */
.shop-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 1rem;
  text-align: center;
}
.shop-grid-wrap { max-width: var(--max-width); margin: 0 auto; padding: 1rem 1.5rem 4rem; }

/* ---------- Product detail ---------- */
.product-detail {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.product-detail-img { min-height: 460px; }
.product-detail-info .price { font-size: 1.4rem; margin: 0.6rem 0 1.2rem; }
.qty-row { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; }
.qty-row input {
  width: 60px;
  padding: 0.5em;
  text-align: center;
  border-radius: 10px;
  border: 2px solid rgba(59,42,46,0.15);
}

/* ---------- Cart page ---------- */
.cart-page { max-width: var(--max-width); margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto auto;
  gap: 1.2rem;
  align-items: center;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(59,42,46,0.1);
}
.cart-item .placeholder-img { min-height: 100px; border-radius: 10px; font-size: 0.65rem; }
.cart-summary {
  max-width: 380px;
  margin-left: auto;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px dashed rgba(138,154,112,0.5);
}
.cart-summary .total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.15rem;
  margin: 1rem 0 1.5rem;
}

/* ---------- Admin layout ---------- */
.admin-body { background: #F7F5F2; }
.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: var(--ink);
  color: var(--bg);
  padding: 1.8rem 1.4rem;
}
.admin-sidebar .logo { color: var(--bg); display: block; margin-bottom: 2.2rem; }
.admin-nav { display: flex; flex-direction: column; gap: 0.3rem; }
.admin-nav a {
  padding: 0.65em 0.8em;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  opacity: 0.8;
}
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,0.1); opacity: 1; }
.admin-main { padding: 2.2rem 2.5rem; }
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.admin-topbar h1 { margin: 0; font-size: 1.6rem; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.stat-card {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  border: 1px solid rgba(59,42,46,0.08);
}
.stat-card .stat-label { font-size: 0.82rem; font-weight: 700; opacity: 0.65; margin-bottom: 0.4rem; }
.stat-card .stat-value { font-family: 'Lora', serif; font-size: 1.8rem; font-weight: 600; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(59,42,46,0.08);
}
.data-table th, .data-table td {
  text-align: left;
  padding: 0.9rem 1.2rem;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(59,42,46,0.08);
}
.data-table th { font-size: 0.78rem; text-transform: none; opacity: 0.6; font-weight: 700; }
.status-pill {
  display: inline-block;
  padding: 0.25em 0.8em;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.status-pending { background: #FBEBD1; color: #96690F; }
.status-shipped { background: #E4EBDD; color: #4E5C3F; }
.status-delivered { background: #E8DEEC; color: #5B3A70; }
.admin-menu-toggle { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
  border-bottom: 1px solid rgba(59,42,46,0.1);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--rose-dark);
}
.main-nav {
  display: flex;
  gap: 1.8rem;
  font-weight: 700;
  font-size: 0.95rem;
}
.main-nav a:hover { color: var(--rose); }
.nav-account { color: var(--sage); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-sub { margin: 1.2rem 0 1.8rem; }
.hero-image { min-height: 280px; }

/* ---------- Stitch divider ---------- */
.stitch-divider {
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 2px dashed rgba(138,154,112,0.5);
}

/* ---------- Featured products ---------- */
.featured {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  text-align: center;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: left;
}
.product-card { display: flex; flex-direction: column; gap: 0.6rem; }
.product-thumb { min-height: 260px; }
.price { color: var(--rose-dark); font-weight: 700; margin: 0; }

/* ---------- Story / steps ---------- */
.story {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.step { text-align: center; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mustard);
  color: #fff;
  font-family: 'Lora', serif;
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.step p { margin: 0 auto; }

/* ---------- Newsletter ---------- */
.newsletter {
  max-width: 640px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  text-align: center;
}
.newsletter-form {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input {
  flex: 1 1 240px;
  padding: 0.85em 1.2em;
  border-radius: 999px;
  border: 2px solid rgba(59,42,46,0.2);
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
}
.newsletter-form input:focus {
  outline: 2px solid var(--rose);
  outline-offset: 2px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding: 2.5rem 1.5rem 1.5rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.footer-logo { font-family: 'Lora', serif; font-size: 1.2rem; margin: 0; }
.footer-nav, .footer-social { display: flex; gap: 1.3rem; font-weight: 700; font-size: 0.9rem; }
.footer-copy {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 2rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 2.5rem; }
  .hero-image { order: -1; min-height: 260px; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .product-detail { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar {
    display: none;
  }
  .admin-sidebar.open { display: block; }
  .admin-menu-toggle {
    display: inline-block;
    background: var(--ink);
    color: var(--bg);
    border: none;
    border-radius: 8px;
    padding: 0.6em 1em;
    font-weight: 700;
  }
  .stat-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1.2rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(59,42,46,0.1);
    display: none;
  }
  .main-nav.open { display: flex; }
  .menu-toggle { display: flex; }
  .product-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 70px 1fr; row-gap: 0.5rem; }
  .cart-item .qty-row, .cart-item .item-price { grid-column: 2; }
  .data-table { font-size: 0.82rem; }
  .admin-main { padding: 1.5rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
