/* PPS Environmental storefront theme — see reference_pps_brand memory */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pps-deep:    #3D1E6D;
  --pps-mid:     #6B3FA0;
  --pps-lav:     #9B7FC4;
  --pps-pale:    #B8A4D9;
  --pps-tint:    #F4EFFA;
  --pps-charcoal:#222222;
  --pps-grey-1:  #6B7280;
  --pps-grey-2:  #E5E7EB;
  --pps-bg:      #FAF9FB;
  --radius:      10px;
  --shadow:      0 2px 10px rgba(61,30,109,0.08);
  --font-body:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-head:   'Literata', Georgia, serif;
}

html { font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--pps-charcoal);
  background: var(--pps-bg);
  min-height: 100vh;
}
h1, h2, h3, .brand-mark { font-family: var(--font-head); }
a { color: var(--pps-mid); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pps-deep); }

/* ── Top nav ──────────────────────────────────────────────────────────────── */
.store-nav {
  background: #fff;
  border-bottom: 1px solid var(--pps-grey-2);
  position: sticky; top: 0; z-index: 50;
}
.store-nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 0.85rem 1.25rem;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.store-brand {
  font-weight: 700; font-size: 1.15rem; color: var(--pps-deep); text-decoration: none;
  white-space: nowrap;
}
.store-brand:hover { color: var(--pps-mid); }
.store-menu { list-style: none; display: flex; gap: 1.1rem; flex-wrap: wrap; flex: 1; }
.store-menu a {
  color: var(--pps-charcoal); text-decoration: none; font-size: 0.9rem; font-weight: 500;
}
.store-menu a:hover { color: var(--pps-deep); }
.store-basket-link {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--pps-tint); border: 1px solid var(--pps-pale);
  border-radius: 999px; padding: 0.4rem 0.9rem; text-decoration: none;
  color: var(--pps-deep); font-size: 0.85rem; font-weight: 600; white-space: nowrap;
}
.store-basket-link:hover { background: var(--pps-pale); }

/* ── Layout shell ─────────────────────────────────────────────────────────── */
.store-main { max-width: 1080px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.store-footer {
  text-align: center; color: var(--pps-grey-1); font-size: 0.8rem;
  padding: 2rem 1rem; border-top: 1px solid var(--pps-grey-2); margin-top: 2rem;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.store-hero { text-align: center; padding: 1.5rem 0 2.5rem; }
.store-hero h1 { font-size: 2rem; color: var(--pps-deep); margin-bottom: 0.5rem; }
.store-hero p { color: var(--pps-grey-1); font-size: 1rem; }

/* ── Category tiles ───────────────────────────────────────────────────────── */
.category-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem;
}
.category-card {
  background: #fff; border: 1px solid var(--pps-grey-2); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--pps-charcoal);
  box-shadow: var(--shadow); transition: transform 0.15s ease;
}
.category-card:hover { transform: translateY(-3px); }
.category-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--pps-tint); }
.category-card-label { padding: 0.85rem 1rem; font-weight: 600; font-size: 0.95rem; }

/* ── Product grid ─────────────────────────────────────────────────────────── */
.breadcrumb { font-size: 0.85rem; color: var(--pps-grey-1); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--pps-mid); }
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem;
}
.product-card {
  background: #fff; border: 1px solid var(--pps-grey-2); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.product-card img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--pps-tint); padding: 1rem; }
.product-card-body { padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.product-card-title { font-weight: 600; font-size: 0.95rem; }
.product-card-title a { color: var(--pps-charcoal); text-decoration: none; }
.product-card-title a:hover { color: var(--pps-deep); }
.product-card-price { color: var(--pps-deep); font-weight: 700; font-size: 1.05rem; margin-top: auto; }
.product-card-form { display: flex; gap: 0.5rem; align-items: center; }

/* ── Product detail ───────────────────────────────────────────────────────── */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.product-detail img { width: 100%; border-radius: var(--radius); background: var(--pps-tint); padding: 1.5rem; }
.product-detail h1 { font-size: 1.5rem; color: var(--pps-deep); margin-bottom: 0.5rem; }
.product-detail-price { font-size: 1.4rem; font-weight: 700; color: var(--pps-deep); margin: 0.75rem 0 1.25rem; }
.product-detail-desc { color: var(--pps-charcoal); line-height: 1.6; margin-bottom: 1.5rem; }
@media (max-width: 640px) {
  .product-detail { grid-template-columns: 1fr; }
}

/* ── Forms & inputs ───────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--pps-charcoal); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.65rem 0.75rem; border: 1px solid var(--pps-grey-2);
  border-radius: 8px; font-size: 0.9rem; font-family: var(--font-body); background: #fff;
  color: var(--pps-charcoal);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--pps-mid); box-shadow: 0 0 0 3px rgba(107,63,160,0.15);
}
.qty-input { width: 64px; text-align: center; padding: 0.5rem; border: 1px solid var(--pps-grey-2); border-radius: 8px; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.65rem 1.15rem; border-radius: 6px; font-size: 0.9rem; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; font-family: var(--font-body);
}
.btn-primary { background: var(--pps-deep); color: #fff; }
.btn-primary:hover { background: var(--pps-mid); }
.btn-secondary { background: #fff; border-color: var(--pps-deep); color: var(--pps-deep); }
.btn-secondary:hover { background: var(--pps-tint); }
.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.8rem; }
.btn-full { width: 100%; }
.btn-lg { padding: 0.85rem 1.5rem; font-size: 1rem; }

/* ── Cards / page shells (details, quote, confirmation) ──────────────────── */
.store-card {
  background: #fff; border: 1px solid var(--pps-grey-2); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 2rem; max-width: 560px; margin: 0 auto;
}
.store-card h1 { color: var(--pps-deep); font-size: 1.4rem; margin-bottom: 0.4rem; text-align: center; }
.store-card p.subtitle { color: var(--pps-grey-1); text-align: center; margin-bottom: 1.5rem; font-size: 0.9rem; }

/* ── Basket / order tables ────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.store-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.store-table th {
  text-align: left; padding: 0.6rem 0.75rem; border-bottom: 2px solid var(--pps-grey-2);
  color: var(--pps-grey-1); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em;
}
.store-table td { padding: 0.75rem; border-bottom: 1px solid var(--pps-grey-2); vertical-align: middle; }
.totals-table { width: 100%; margin-top: 1rem; font-size: 0.95rem; }
.totals-table td { padding: 0.35rem 0; }
.totals-table td:last-child { text-align: right; }
.totals-table tr.grand-total td { font-weight: 700; font-size: 1.2rem; border-top: 1px solid var(--pps-grey-2); padding-top: 0.75rem; color: var(--pps-deep); }

/* ── Alerts / flash ───────────────────────────────────────────────────────── */
.alert { padding: 0.75rem 1rem; border-radius: 8px; font-size: 0.875rem; margin-bottom: 1rem; }
.alert-error { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }
.alert-success { background: var(--pps-tint); color: var(--pps-deep); border: 1px solid var(--pps-pale); }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1.5rem; }
.text-muted { color: var(--pps-grey-1); }
