/* Shop styles — layered on top of the site-wide /styles.css */

.shop-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.shop-bar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.shop-bar .crumbs {
  color: var(--muted);
  font-size: 0.92rem;
}
.shop-bar .crumbs a { color: var(--muted); }

.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
}
.cart-pill:hover { text-decoration: none; border-color: var(--brand); }
.cart-pill.has-items { border-color: var(--brand); background: rgba(10,102,194,0.08); }
.cart-pill .badge {
  min-width: 22px;
  text-align: center;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  font-size: 0.8rem;
  padding: 1px 7px;
}

/* ------------------------------------------------------------- trust strip */

.trust-strip {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.trust-strip ul {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  font-size: 0.9rem;
  color: var(--muted);
}
.trust-strip li::before {
  content: "✓";
  color: #1f9254;
  font-weight: 700;
  margin-right: 8px;
}

.price-note {
  background: #fff8e8;
  border-bottom: 1px solid #ecd9a8;
}
.price-note p {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 24px;
  font-size: 0.88rem;
  color: #6b5320;
}

/* ---------------------------------------------------------------- catalogue */

.shop-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 28px;
  align-items: start;
}

.filters {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 20px;
}
.filters h3 {
  margin: 0 0 6px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
}
.filters .group + .group { margin-top: 20px; }
.filters label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 0.95rem;
  cursor: pointer;
}
.filters .reset {
  margin-top: 20px;
  background: none;
  border: 0;
  padding: 0;
  color: var(--brand-dark);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.list-head .count { color: var(--muted); font-size: 0.95rem; }
.list-head select {
  font: inherit;
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.product-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(10,37,64,0.14); }
.product-card .shot {
  background: linear-gradient(140deg, #eef3f9 0%, #dde6f1 100%);
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card .shot svg { width: 100%; height: auto; max-width: 240px; }
.product-card .body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { margin: 0 0 6px; font-size: 1rem; line-height: 1.35; }
.product-card h3 a { color: var(--brand-deep); }
.product-card .sku { color: var(--muted); font-size: 0.8rem; font-family: monospace; margin-bottom: 10px; }
.product-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.product-card .blurb { color: var(--muted); font-size: 0.92rem; margin: 0 0 16px; }
.product-card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-card .price { font-size: 1.3rem; font-weight: 700; color: var(--brand-deep); }
.product-card .price small { display: block; font-size: 0.72rem; font-weight: 400; color: var(--muted); }

.tag {
  font-size: 0.74rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brand-dark);
  background: rgba(10,102,194,0.09);
  border: 1px solid rgba(10,102,194,0.18);
  border-radius: 999px;
  padding: 3px 9px;
}

.stock { font-size: 0.85rem; font-weight: 600; }
.stock.in { color: #1f9254; }
.stock.low { color: #b26b00; }

.btn-sm { padding: 8px 15px; font-size: 0.9rem; }
.btn-ghost {
  background: #fff;
  color: var(--brand-dark);
  border: 1px solid var(--border);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--bg); color: var(--brand-dark); }

button.btn { border: 0; font-family: inherit; cursor: pointer; }
button.btn-ghost { border: 1px solid var(--border); }

/* ------------------------------------------------------------------ product */

.product-detail {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 32px;
  align-items: start;
}
.product-detail .gallery {
  background: linear-gradient(140deg, #eef3f9 0%, #dde6f1 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.product-detail .gallery svg { width: 100%; height: auto; }
.product-detail h1 { margin: 6px 0 8px; font-size: 1.7rem; line-height: 1.25; color: var(--brand-deep); }
.product-detail .price-block {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 18px 0 6px;
}
.product-detail .price-block .big { font-size: 2.1rem; font-weight: 700; color: var(--brand-deep); }
.product-detail .price-block .note { color: var(--muted); font-size: 0.9rem; }

.qty-row { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}
.qty button {
  border: 0;
  background: none;
  font-size: 1.1rem;
  line-height: 1;
  padding: 10px 14px;
  cursor: pointer;
  color: var(--brand-dark);
}
.qty input {
  width: 46px;
  border: 0;
  text-align: center;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: none;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.spec-table th, .spec-table td {
  text-align: left;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.spec-table th { color: var(--muted); font-weight: 500; width: 44%; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

.fits-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.fits-list li { display: flex; gap: 10px; color: var(--muted); font-size: 0.95rem; }
.fits-list li::before { content: "▸"; color: var(--brand); }

/* --------------------------------------------------------------------- cart */

.checkout-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.cart-line {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.cart-line:last-child { border-bottom: 0; }
.cart-line .thumb {
  background: linear-gradient(140deg, #eef3f9 0%, #dde6f1 100%);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
}
.cart-line .thumb svg { width: 100%; height: auto; }
.cart-line h3 { margin: 0 0 4px; font-size: 1rem; }
.cart-line .sku { font-family: monospace; font-size: 0.8rem; color: var(--muted); }
.cart-line .line-right { text-align: right; display: grid; gap: 10px; justify-items: end; }
.cart-line .line-total { font-weight: 700; font-size: 1.05rem; color: var(--brand-deep); }
.cart-line .remove {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--muted); font: inherit; font-size: 0.85rem; text-decoration: underline;
}

.summary { position: sticky; top: 20px; }
.summary h2 { font-size: 1.1rem; }
.summary .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  font-size: 0.97rem;
}
.summary .row.total {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 14px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand-deep);
}
.summary .row .muted { color: var(--muted); }
.summary .gst-note { color: var(--muted); font-size: 0.82rem; margin: 4px 0 0; text-align: right; }
.summary .btn { width: 100%; justify-content: center; margin-top: 16px; }

.mini-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
  padding: 7px 0;
  color: var(--muted);
}
.mini-line strong { color: var(--ink); font-weight: 600; }

.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-state h2 { color: var(--brand-deep); margin-bottom: 8px; }

/* ----------------------------------------------------------------- checkout */

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.98rem;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(10,102,194,0.14);
}
.field input.invalid { border-color: #c8102e; }
.field .err { display: none; color: #c8102e; font-size: 0.82rem; margin-top: 5px; }
.field.show-err .err { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.steps {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 26px;
  font-size: 0.88rem;
  color: var(--muted);
}
.steps span { display: flex; align-items: center; gap: 8px; }
.steps span::after { content: "›"; margin-left: 6px; color: var(--border); }
.steps span:last-child::after { content: ""; }
.steps .n {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--border); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700;
}
.steps .done .n { background: #1f9254; }
.steps .current { color: var(--brand-deep); font-weight: 600; }
.steps .current .n { background: var(--brand); }

/* ------------------------------------------------------------ eWAY payment */

.eway-page {
  background: #eef2f6;
  min-height: 100vh;
  padding: 0 0 60px;
}
.eway-topbar {
  background: #fff;
  border-bottom: 1px solid #d7dfe8;
  padding: 14px 24px;
}
.eway-topbar-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.eway-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.35rem;
  color: #f47b20;
  letter-spacing: -0.5px;
}
.eway-logo .dot { width: 12px; height: 12px; border-radius: 50%; background: #f47b20; }
.eway-secure {
  display: inline-flex; align-items: center; gap: 7px;
  color: #1f9254; font-size: 0.85rem; font-weight: 600;
}

.eway-wrap { max-width: 860px; margin: 0 auto; padding: 28px 24px 0; }
.eway-card {
  background: #fff;
  border: 1px solid #d7dfe8;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15,40,70,0.10);
  overflow: hidden;
}
.eway-card-head {
  padding: 20px 26px;
  border-bottom: 1px solid #e6ecf2;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.eway-card-head h1 { margin: 0; font-size: 1.2rem; color: #16324f; }
.eway-card-head .amount { font-size: 1.5rem; font-weight: 700; color: #16324f; }
.eway-card-body { padding: 26px; }
.eway-merchant {
  background: #f6f9fc;
  border: 1px solid #e6ecf2;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.9rem;
  color: #48607a;
  margin-bottom: 24px;
  display: grid;
  gap: 4px;
}
.eway-merchant strong { color: #16324f; }

.card-brands { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.card-brands span {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  border: 1px solid #d7dfe8;
  border-radius: 4px;
  padding: 4px 7px;
  color: #6b7f95;
  background: #fff;
}
.card-brands span.on { color: #16324f; border-color: #16324f; }

.eway-foot {
  max-width: 860px;
  margin: 18px auto 0;
  padding: 0 24px;
  color: #6b7f95;
  font-size: 0.8rem;
  text-align: center;
  line-height: 1.7;
}

.demo-banner {
  background: #fff4d6;
  border: 1px solid #e8c96a;
  color: #6b4e00;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.88rem;
  margin-bottom: 22px;
}
.demo-banner strong { color: #4a3600; }

.processing {
  display: none;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 14px;
}
.processing.on { display: flex; }
.spinner {
  width: 20px; height: 20px;
  border: 2.5px solid #d7dfe8;
  border-top-color: #f47b20;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ receipt */

.receipt-head {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 6px;
}
.tick {
  width: 46px; height: 46px; border-radius: 50%;
  background: #1f9254; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex: none;
}
.receipt-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin: 22px 0 6px;
}
.receipt-meta div span {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  margin-bottom: 3px;
}
.receipt-meta div strong { font-family: monospace; font-size: 1rem; color: var(--brand-deep); }

/* -------------------------------------------------------------------- toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  background: var(--brand-deep);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(10,37,64,0.28);
  font-size: 0.94rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .product-detail { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 560px) {
  .cart-line { grid-template-columns: 76px 1fr; }
  .cart-line .line-right { grid-column: 1 / -1; justify-items: start; text-align: left; }
  .field-row { grid-template-columns: 1fr; }
}
