/* ------------------------------------------------------------------
   Golden Age Peptide — static build additions
   Layered on top of the original store-premium / store-header sheets.
------------------------------------------------------------------- */

:root {
  --gap-radius: 10px;
}

/* breadcrumbs ---------------------------------------------------- */
.breadcrumb-bar {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  padding: 12px 0;
  font-size: .84rem;
}
.breadcrumb-bar a { color: var(--muted); text-decoration: none; }
.breadcrumb-bar a:hover { color: var(--green); }
.breadcrumb-bar span { color: var(--ink); font-weight: 600; }
.breadcrumb-bar .crumb-sep { margin: 0 10px; color: var(--line); font-weight: 400; }

/* cart badge ----------------------------------------------------- */
.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  margin-left: 8px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
}

/* catalog toolbar ------------------------------------------------ */
.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) minmax(220px, 1.4fr) auto;
  gap: 16px;
  align-items: end;
  margin: 0 0 26px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--gap-radius);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}
.catalog-toolbar-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.catalog-toolbar .form-select,
.catalog-toolbar .form-control {
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--ink);
}
.catalog-toolbar .form-select:focus,
.catalog-toolbar .form-control:focus {
  background: var(--soft);
  color: var(--ink);
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15, 143, 100, .18);
}
.catalog-toolbar-count { color: var(--muted); font-size: .86rem; white-space: nowrap; padding-bottom: 10px; }
.catalog-toolbar-count strong { color: var(--ink); }

@media (max-width: 991px) {
  .catalog-toolbar { grid-template-columns: 1fr 1fr; }
  .catalog-toolbar-search { grid-column: 1 / -1; }
}
@media (max-width: 575px) {
  .catalog-toolbar { grid-template-columns: 1fr; }
}

.catalog-empty {
  padding: 46px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--gap-radius);
  color: var(--muted);
  text-align: center;
}

/* pagination rendered by site.js reuses the original .pagination styles */

/* search page ---------------------------------------------------- */
.search-panel {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--gap-radius);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}
.search-panel .form-control {
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--ink);
}
.search-panel .form-control:focus {
  background: var(--soft);
  color: var(--ink);
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15, 143, 100, .18);
}

/* product detail tweaks ------------------------------------------ */
.price-stack { display: block; }
#product-original-price { margin-left: 10px; color: var(--muted); }
.product-disclaimer {
  padding: 12px 14px;
  border-left: 3px solid var(--green);
  border-radius: 6px;
  background: color-mix(in srgb, var(--surface) 88%, var(--green) 12%);
  color: var(--muted);
  font-size: .86rem;
}
.product-image { border: 1px solid var(--line); background: var(--surface); }

/* cart ----------------------------------------------------------- */
.cart-empty {
  padding: 60px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--gap-radius);
  text-align: center;
  color: var(--muted);
}
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.cart-table th {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: left;
}
.cart-thumb {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.cart-name { color: var(--ink); font-weight: 700; text-decoration: none; }
.cart-name:hover { color: var(--green); }
.cart-sub { color: var(--muted); font-size: .8rem; }
.cart-qty { max-width: 92px; }
.cart-remove {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: .82rem;
  text-decoration: underline;
  cursor: pointer;
}
.cart-remove:hover { color: #ff6b6b; }
.cart-summary {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--gap-radius);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  color: var(--muted);
  font-size: .92rem;
}
.cart-summary-row.total {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 800;
}

/* toast ---------------------------------------------------------- */
.gap-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1080;
  max-width: 320px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .32);
  font-size: .9rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease;
}
.gap-toast.show { opacity: 1; transform: translateY(0); }

/* coa viewer ----------------------------------------------------- */
.coa-preview-image {
  width: 100%;
  max-width: 900px;
  border: 1px solid var(--line);
  border-radius: var(--gap-radius);
  background: #fff;
}
.coa-preview-shell { display: flex; justify-content: center; padding: 24px 0 40px; }

/* legal ---------------------------------------------------------- */
.legal-body { max-width: 880px; }
.legal-body h2 { margin-top: 1.8rem; font-size: 1.2rem; }
.legal-body p, .legal-body li { color: var(--muted); }
.legal-body a { color: var(--green); }

/* forms on light-surface panels ---------------------------------- */
.p-4.bg-white { color: #121b20; }
.p-4.bg-white a { color: #0f8f64; }

/* keep the theme toggle label readable */
.theme-toggle { min-width: 74px; }

/* auth (login / register) ---------------------------------------- */
.auth-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--gap-radius);
  padding: 1.6rem;
}
.auth-error {
  background: rgba(220, 53, 69, .12);
  border: 1px solid rgba(220, 53, 69, .4);
  color: #dc3545;
  border-radius: 10px;
  padding: .6rem .9rem;
  font-size: .9rem;
  margin-bottom: 1rem;
}
[data-theme="light"] .auth-error { background: #fdecef; }
.auth-panel .form-label { font-size: .85rem; color: var(--muted); }
.auth-note { font-size: .8rem; color: var(--muted); }

/* checkout -------------------------------------------------------- */
.checkout-summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--gap-radius); padding: 1.4rem; }
.checkout-row { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.checkout-row img { width: 42px; height: 42px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.checkout-row:last-of-type { border-bottom: 0; }
.checkout-row .co-label { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.checkout-row .co-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checkout-total { display: flex; justify-content: space-between; font-size: 1.15rem; font-weight: 700; padding-top: .8rem; margin-top: .4rem; border-top: 2px solid var(--line); }
.pay-note { display: flex; gap: .6rem; align-items: flex-start; background: rgba(37, 211, 102, .1); border: 1px solid rgba(37, 211, 102, .35); border-radius: 10px; padding: .7rem .9rem; font-size: .85rem; margin-bottom: 1rem; }

/* orders ---------------------------------------------------------- */
.order-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--gap-radius); padding: 1.1rem 1.3rem; margin-bottom: 1rem; }
.order-head { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; }
.order-status { font-size: .75rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: #b8860b; background: rgba(255, 193, 7, .14); border: 1px solid rgba(255, 193, 7, .4); border-radius: 999px; padding: .18rem .7rem; }
.order-item { display: flex; align-items: center; gap: .7rem; padding: .5rem 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.order-item img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.order-item em { margin-left: auto; font-style: normal; color: var(--muted); white-space: nowrap; }
.lookup-result { max-width: 640px; }

/* nav action buttons: never squeeze onto two lines ------------------ */
/* keep every control in the header action row at its natural width
   and on a single line, so the search box absorbs the squeeze instead */
.store-nav-actions .btn,
.store-nav-actions .currency-switcher { flex: 0 0 auto !important; }
.store-nav .btn { white-space: nowrap !important; }
@media (max-width: 1199px) {
  /* relax the search input's hard 420px floor so the row still fits
     on narrower desktop widths once the buttons stop shrinking */
  .nav-search { grid-template-columns: minmax(220px, 760px) auto !important; }
}
