.store-header {
  background: var(--awning-green);
  color: var(--on-primary);
}
.store-header-stripe {
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--mustard) 0px, var(--mustard) 28px,
    var(--brick) 28px, var(--brick) 56px
  );
}
.store-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.1em 1.5em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
}
.store-brand {
  display: flex;
  align-items: center;
  gap: 0.7em;
}
.store-brand img { height: 42px; width: 42px; object-fit: cover; border-radius: 8px; }
.store-brand-text .store-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--on-primary);
  margin: 0;
}
.store-brand-text .store-tagline {
  font-size: 0.85rem;
  color: #E4EEDF;
  margin: 0;
}
.store-nav { display: flex; align-items: center; gap: 1.4em; }
.store-nav a { color: var(--on-primary); font-weight: 500; }
.store-nav a:hover { text-decoration: none; opacity: 0.85; }
.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: rgba(255,255,255,0.12);
  padding: 0.5em 0.9em;
  border-radius: 999px;
}
.cart-count {
  background: var(--brick);
  color: var(--on-accent);
  border-radius: 999px;
  min-width: 1.4em;
  height: 1.4em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0 0.3em;
}

.store-banner {
  background: var(--mustard);
  color: var(--on-highlight);
  text-align: center;
  padding: 0.55em 1em;
  font-weight: 600;
  font-size: 0.9rem;
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3.5em 1.5em 2.5em;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  max-width: 14ch;
}
.hero p {
  color: var(--ink-soft);
  max-width: 60ch;
  font-size: 1.1rem;
}

.category-row {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5em 1.5em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
}
.category-chip {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0.4em 1em;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.category-chip.active {
  background: var(--awning-green);
  border-color: var(--awning-green);
  color: var(--white);
}

.product-grid {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5em 4em;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.6em;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card-media {
  aspect-ratio: 1 / 1;
  background: var(--paper-dim);
  position: relative;
  overflow: hidden;
}
.product-card-media img { width: 100%; height: 100%; object-fit: cover; }
.product-card-media .no-image {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 1.2rem;
}
.product-card-media .badge { position: absolute; top: 0.7em; left: 0.7em; }
.product-card-body { padding: 1em 1.1em 1.2em; display: flex; flex-direction: column; gap: 0.4em; flex: 1; }
.product-card-body h3 { font-size: 1.1rem; }
.product-card-body .category-label { font-size: 0.78rem; color: var(--ink-soft); }
.price-row { display: flex; align-items: baseline; gap: 0.5em; margin-top: auto; padding-top: 0.5em; }
.price-current { font-weight: 700; font-size: 1.15rem; }
.price-was { text-decoration: line-through; color: var(--ink-soft); font-size: 0.9rem; }
.product-card-body form { margin-top: 0.6em; }

.product-detail {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5em 1.5em 4em;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3em;
}
@media (max-width: 780px) {
  .product-detail { grid-template-columns: 1fr; gap: 2em; }
}
.product-gallery-main {
  aspect-ratio: 1/1;
  background: var(--paper-dim);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery-thumbs { display: flex; gap: 0.6em; margin-top: 0.8em; flex-wrap: wrap; }
.product-gallery-thumbs img {
  width: 68px; height: 68px; object-fit: cover; border-radius: 6px;
  border: 1px solid var(--line); cursor: pointer;
}
.product-detail-info .category-label { color: var(--ink-soft); font-size: 0.85rem; }
.product-detail-info h1 { font-size: 2.1rem; margin-top: 0.2em; }
.product-detail-price { font-size: 1.7rem; font-weight: 700; margin: 0.5em 0; }
.product-detail-desc { color: var(--ink-soft); line-height: 1.7; margin-bottom: 1.5em; }
.qty-form { display: flex; align-items: center; gap: 1em; }
.qty-form input[type=number] { width: 80px; margin-bottom: 0; }
.stock-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.8em; }

.cart-page, .checkout-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5em 1.5em 4em;
}
.cart-line {
  display: grid;
  grid-template-columns: 72px 1fr auto auto;
  gap: 1em;
  align-items: center;
  padding: 1em 0;
  border-bottom: 1px solid var(--line);
}
.cart-line img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--paper-dim); }
.cart-line-name { font-weight: 600; }
.cart-line-meta { color: var(--ink-soft); font-size: 0.85rem; }
.cart-qty-input { width: 60px; margin-bottom: 0; }
.cart-summary {
  margin-top: 2em;
  padding-top: 1.5em;
  border-top: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4em;
}
.cart-summary-row { display: flex; justify-content: space-between; width: 260px; }
.cart-summary-total { font-weight: 700; font-size: 1.3rem; }
.cart-actions { display: flex; justify-content: space-between; margin-top: 2em; }

.checkout-steps { display: flex; gap: 0.5em; margin-bottom: 2em; font-size: 0.85rem; color: var(--ink-soft); }
.checkout-steps .step.active { color: var(--awning-green-dark); font-weight: 700; }

.checkout-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3em; }
@media (max-width: 780px) { .checkout-grid { grid-template-columns: 1fr; } }
.order-summary-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5em; height: fit-content; }
.order-summary-line { display: flex; justify-content: space-between; padding: 0.4em 0; font-size: 0.92rem; }
.order-summary-total { display: flex; justify-content: space-between; padding-top: 0.8em; margin-top: 0.5em; border-top: 1px solid var(--line); font-weight: 700; }

.empty-state {
  text-align: center;
  padding: 4em 1.5em;
  color: var(--ink-soft);
}
.empty-state h2 { color: var(--ink); }

.confirmation-box {
  max-width: 640px;
  margin: 3em auto;
  padding: 2.5em;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.confirmation-box .checkmark {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--awning-green); color: var(--on-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin: 0 auto 1em;
}

.redirect-box {
  max-width: 480px;
  margin: 5em auto;
  text-align: center;
  padding: 2em;
}
.redirect-spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 4px solid var(--line); border-top-color: var(--awning-green);
  margin: 0 auto 1.2em;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.store-footer {
  border-top: 1px solid var(--line);
  padding: 2.5em 1.5em;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
}
