/* QuiltPatternsPDF.Com — storefront styles (edit colours here, they apply site-wide) */
:root {
  --cream: #faf6ee;
  --cream-dark: #f3ecdd;
  --navy: #26466e;
  --navy-dark: #1d3555;
  --coral: #d9593f;
  --gold-bg: #fff3d6;
  --ink: #222222;
  --grey: #666666;
  --white: #ffffff;
  --radius: 14px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  background: #ffffff;
  color: var(--ink);
  line-height: 1.6;
}
a { color: var(--navy); }
h1, h2, h3 { color: var(--navy); line-height: 1.25; }
h1 { font-size: 2.4rem; margin: 0.2em 0; }
h2 { font-size: 1.7rem; margin-top: 1.6em; }
h3 { font-size: 1.25rem; }

/* Header */
header {
  background: var(--white);
  border-bottom: 3px solid var(--navy);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.logo { height: 56px; width: auto; flex-shrink: 0; }
.brand { font-size: 1.35rem; font-weight: bold; color: var(--navy); text-decoration: none; white-space: nowrap; }
.brand small { display: block; font-size: 0.8rem; color: var(--grey); font-weight: normal; white-space: nowrap; }
nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
nav a { white-space: nowrap; }
nav a { text-decoration: none; font-weight: bold; color: var(--navy); }
nav a:hover { color: var(--coral); }

/* Layout */
main { max-width: 1000px; margin: 0 auto; padding: 20px; }
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  padding: 20px 0 30px;
}
.hero img { width: 100%; border-radius: var(--radius); border: 2px solid var(--navy); }
.tagline { font-size: 1.2rem; color: var(--grey); }
.stripe { height: 10px; display: flex; margin: 0; }
.stripe span { flex: 1; }

/* Buttons */
.btn {
  display: inline-block;
  background: #ffdd00;
  color: #111111;
  text-decoration: none;
  font-weight: bold;
  padding: 13px 26px;
  border-radius: 999px;
  margin-top: 10px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
}
.btn:hover { background: #f2d200; }
.btn-secondary { background: var(--navy); }
.btn-secondary:hover { background: var(--coral); }
.price { font-size: 1.8rem; font-weight: bold; color: var(--navy); }

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.card {
  background: var(--white);
  border: 1px solid #e3dcc8;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; }
.card-body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.card-body p { flex: 1; }
.card .price { font-size: 1.3rem; }
.coming-soon { opacity: 0.75; }
.badge {
  display: inline-block;
  background: var(--gold-bg);
  border-left: 4px solid var(--coral);
  padding: 6px 10px;
  font-weight: bold;
  font-size: 0.95rem;
}

/* Product page */
.product { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 30px; align-items: start; }
.product img.main-img { width: 100%; border-radius: var(--radius); border: 2px solid var(--navy); }
.product img.second-img { width: 100%; border-radius: var(--radius); margin-top: 14px; }
table { width: 100%; border-collapse: collapse; margin: 12px 0; }
th { background: var(--navy); color: var(--white); text-align: left; padding: 10px; }
td { padding: 10px; border-bottom: 1px solid #e3dcc8; }
tr:nth-child(even) td { background: var(--cream-dark); }
.check {
  background: var(--gold-bg);
  border-left: 4px solid var(--coral);
  padding: 12px 16px;
  font-weight: bold;
}
.note { background: #eaf0f7; border-left: 4px solid var(--navy); padding: 12px 16px; }

/* Forms */
form { max-width: 560px; }
label { display: block; font-weight: bold; margin-top: 14px; }
input, textarea {
  width: 100%;
  padding: 11px;
  margin-top: 4px;
  border: 1px solid #cbbfa5;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}
button.btn { border: none; cursor: pointer; font-size: 1rem; }
.small { font-size: 0.9rem; color: var(--grey); }

/* Ko-fi-style profile header + shop rows */
.profile-hero {
  text-align: center;
  background: var(--white);
  border: 1px solid #e3dcc8;
  border-radius: var(--radius);
  padding: 28px 20px;
  margin-top: 20px;
}
.avatar {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--navy);
  background: var(--white);
}
.followers { color: var(--grey); font-weight: bold; margin: 0; }
.tabs { display: flex; gap: 24px; border-bottom: 2px solid #e3dcc8; margin-top: 24px; }
.tabs a { text-decoration: none; font-weight: bold; padding: 10px 2px; color: var(--grey); }
.tabs a.active { color: var(--navy); border-bottom: 3px solid var(--coral); }
.shop-list { display: flex; flex-direction: column; gap: 16px; }
.shop-row {
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--white);
  border: 1px solid #e3dcc8;
  border-radius: var(--radius);
  padding: 16px;
}
.shop-row img { width: 140px; height: 140px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.shop-info { flex: 1; }
.shop-info h3 { margin: 0 0 6px; }
.shop-info p { margin: 4px 0; }
.digital-badge {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 0.8rem;
  padding: 2px 10px;
  border-radius: 999px;
  margin-right: 8px;
}
.shop-action { text-align: right; flex-shrink: 0; }
.shop-action .price { display: block; margin-bottom: 8px; }

/* Buy Me a Coffee-style support card */
.coffee-card {
  max-width: 560px;
  margin: 28px auto 0;
  background: var(--white);
  border: 1px solid #e3dcc8;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.coffee-card h2 { margin-top: 0; }
.amount-pills { display: flex; gap: 10px; margin: 12px 0; }
.amount-pills button {
  flex: 1;
  border: 2px solid #e3dcc8;
  background: var(--white);
  border-radius: 999px;
  padding: 11px 0;
  font-size: 1.05rem;
  font-weight: bold;
  cursor: pointer;
}
.amount-pills button.selected { background: #ffdd00; border-color: #111111; }

footer {
  border-top: 3px solid var(--navy);
  margin-top: 40px;
  padding: 20px;
  text-align: center;
  color: var(--grey);
  font-size: 0.95rem;
}
footer a { color: var(--navy); }

@media (max-width: 700px) {
  .hero, .product { grid-template-columns: 1fr; }
  h1 { font-size: 1.9rem; }
  .logo { height: 44px; }
  .brand { font-size: 1.15rem; }
  .brand small { font-size: 0.7rem; }
  nav { margin-left: 0; gap: 14px; }
  .shop-row { flex-direction: column; align-items: stretch; }
  .shop-row img { width: 100%; height: auto; aspect-ratio: 1; }
  .shop-action { text-align: left; }
}

/* ---- v2 shop additions: admin, cart, analytics, affiliate ---- */
.admin-note { background: #fff3d6; border-left: 4px solid #d9593f; padding: 12px 16px; }
.field-hint { font-size: 0.9rem; color: #666; margin-top: 2px; }
.chip { display: inline-block; background: #eaf0f7; border-radius: 999px; padding: 4px 12px; margin: 4px 4px 0 0; font-size: 0.95rem; }
.variant-row { display: grid; grid-template-columns: 1fr 110px 1fr 180px 40px; gap: 8px; align-items: end; margin-top: 8px; }
.variant-row input { margin-top: 0; }
.variant-row button { border: none; background: #eee; border-radius: 8px; cursor: pointer; padding: 11px 0; }
.btn-small { padding: 8px 16px; font-size: 0.9rem; }
.btn-danger { background: #999; }
.btn-disabled { background: #ddd; color: #666; cursor: default; box-shadow: none; }
select { width: 100%; padding: 11px; border: 1px solid #cbbfa5; border-radius: 8px; font-size: 1rem; font-family: inherit; background: #fff; }
.cart-link { position: relative; }
.cart-count {
  display: inline-block; background: #d9593f; color: #fff; border-radius: 999px;
  min-width: 22px; text-align: center; font-size: 0.85rem; padding: 1px 6px; font-weight: bold;
}
.empty-cart { text-align: center; border: 1px solid #e3dcc8; border-radius: 14px; padding: 32px 20px; margin: 20px 0; }
/* Analytics CSS bars (no chart library needed) */
.bar-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.bar-label { width: 110px; flex-shrink: 0; font-size: 0.95rem; }
.bar-track { flex: 1; background: #f3ecdd; border-radius: 999px; height: 18px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: #5b9bd5; }
.bar-value { width: 40px; text-align: right; font-weight: bold; }
@media (max-width: 700px) {
  .variant-row { grid-template-columns: 1fr 110px; }
  .bar-label { width: 90px; }
}
