/* ==========================================================================
   META PEPTIDES — additions for the dynamic (Laravel) storefront.
   Uses the existing design tokens from style.css; no visual redesign.
   ========================================================================== */
.announcement-bar { background: var(--blue-600); color: #fff; font-size: 12.5px; font-weight: 600; text-align: center; }
.announcement-bar .container { display: flex; gap: 12px; justify-content: center; align-items: center; padding-block: 8px; flex-wrap: wrap; }
.announcement-bar a { text-decoration: underline; color: #fff; }

.flash-notice { margin: 12px 0 0; }

.listing-form { margin-bottom: 6px; }
.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.price-inputs label { display: grid; gap: 4px; font-size: 12px; color: var(--text-muted); }
.price-inputs .input { min-height: 38px; }
.p-from { font-size: 11px; font-weight: 600; color: var(--text-muted); }
.p-was { font-size: 12px; font-weight: 500; color: var(--text-faint); margin-left: 4px; }
.p-stock { font-size: 11.5px; font-weight: 600; margin-top: 2px; }
.p-stock.is-out { color: var(--red-600); }

.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 22px 0; font-size: 13px; }
.pager-btn { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-weight: 600; background: var(--white); color: var(--text); }
.pager-btn:hover { border-color: var(--blue-600); color: var(--blue-600); }
.pager-btn.is-disabled { opacity: .45; pointer-events: none; }
.pager-info { color: var(--text-muted); }

/* Product page */
.pdp-stock { font-size: 13px; font-weight: 700; color: var(--green-600); margin-top: 4px; }
.pdp-stock.is-out { color: var(--red-600); }
.pdp-qty-row { gap: 12px; flex-wrap: wrap; }
.pdp-add-btn { flex: 1; min-width: 200px; }
.strength-options { display: flex; flex-wrap: wrap; gap: 8px; }
.strength-btn.is-unavailable { opacity: .55; text-decoration: line-through; }
.pdp-sku { font-size: 12px; color: var(--text-muted); margin-top: 8px; }
.pdp-price .p-was { font-size: 16px; }
.prose { font-size: 14px; line-height: 1.65; color: #26364d; }
.prose p + p, .prose ul, .prose ol, .prose h2, .prose h3, .prose h4, .prose table, .prose blockquote { margin-top: 12px; }
.prose ul { list-style: disc; padding-left: 20px; }
.prose ol { list-style: decimal; padding-left: 20px; }
.prose h2 { font-family: var(--font-head); font-size: 18px; font-weight: 800; color: var(--text); }
.prose h3 { font-size: 15px; font-weight: 700; color: var(--text); }
.prose a { color: var(--blue-600); text-decoration: underline; }
.prose table { width: 100%; border-collapse: collapse; font-size: 13px; }
.prose th, .prose td { border-bottom: 1px solid var(--border); padding: 8px 6px; text-align: left; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.theme-dark .prose { color: #dfe7f2; }
.prose-page { padding-bottom: 10px; }
.prose-page .page-title { margin-bottom: 12px; }
.page-hero-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius-md); margin: 10px 0 16px; }

/* Basket & checkout */
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-item .p-thumb { width: 64px; height: 64px; }
.ci-controls { display: flex; align-items: center; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.ci-controls form { display: inline-flex; }
.ci-remove { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-muted); background: none; border: 0; cursor: pointer; }
.ci-remove:hover { color: var(--red-600); }
.summary-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; align-self: start; display: grid; gap: 12px; }
.coupon-form { display: flex; gap: 8px; }
.coupon-form .input { min-height: 36px; }
.coupon-applied { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; background: var(--green-50); padding: 8px 10px; border-radius: var(--radius-sm); }
.coupon-applied button { background: none; border: 0; color: var(--blue-600); cursor: pointer; font-weight: 600; }
.delivery-options { display: grid; gap: 8px; }
.radio-card small { color: var(--text-muted); font-weight: 400; }
.secure-note { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); }
.co-section-title { font-family: var(--font-head); font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 10px; }
.checkout-layout section { padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.checkout-layout section:last-child { border-bottom: 0; }
.mini-item { grid-template-columns: 44px 1fr auto; }
.mini-item img { width: 44px; height: 44px; object-fit: contain; background: var(--grey-50); border-radius: var(--radius-xs); }
.mini-item .mi-qty { position: static; display: inline; background: none; color: var(--text-muted); width: auto; height: auto; font-size: 12px; }
.mini-item small { color: var(--text-muted); }
.check.has-error, .check.has-error a { color: var(--red-600); }
.text-muted { color: var(--text-muted); }
.small { font-size: 12px; }

/* Account */
.account-nav { display: grid; gap: 2px; }
.account-nav a, .account-logout { display: flex; justify-content: space-between; align-items: center; padding: 11px 12px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600; color: var(--text); background: none; border: 0; width: 100%; text-align: left; cursor: pointer; }
.account-nav a.is-active, .account-nav a:hover { background: var(--blue-50); color: var(--blue-600); }
.account-logout { justify-content: flex-start; gap: 8px; color: var(--text-muted); }
.account-user { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; font-size: 13px; }
.account-user .avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-600); color: #fff; font-weight: 800; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.dash-stat { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px; display: grid; gap: 2px; color: var(--text); }
.dash-stat strong { font-size: 22px; }
.dash-stat span { font-size: 12px; color: var(--text-muted); }
.address-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.address-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px; font-size: 13px; display: grid; gap: 6px; align-content: start; }
.auth-alt { margin-top: 16px; font-size: 13px; text-align: center; }
.forgot-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; }

/* Home extras */
.promo-banner { display: grid; grid-template-columns: minmax(0, 1fr); border-radius: var(--radius-md); overflow: hidden; background: var(--navy-850); color: #fff; position: relative; }
.promo-banner img { width: 100%; max-height: 260px; object-fit: cover; }
.promo-text { display: grid; gap: 6px; padding: 16px; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.testimonial { border: 1px solid var(--dark-border); border-radius: var(--radius-md); padding: 16px; font-size: 13.5px; }
.theme-light .testimonial { border-color: var(--border); }
.testimonial figcaption { margin-top: 8px; font-weight: 700; font-size: 12px; }
.faq-list { display: grid; gap: 0; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.blog-card { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--white); }
.blog-card img { width: 100%; height: 170px; object-fit: cover; }
.blog-card-body { padding: 14px; display: grid; gap: 6px; }
.blog-card h2 { font-size: 16px; font-weight: 800; }

/* Footer extras */
.footer-contact { margin-top: 10px; font-size: 13px; }
.footer-contact a { color: inherit; }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; font-size: 12.5px; }
.footer-social a { color: inherit; text-decoration: underline; }
.footer-legal { font-size: 11.5px; opacity: .8; }

/* Consent + age gate */
.cookie-banner { position: fixed; left: 12px; right: 12px; bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 12px); z-index: 500; background: var(--navy-900); color: #fff; border-radius: var(--radius-md); padding: 14px 16px; box-shadow: var(--shadow-lg); display: grid; gap: 10px; font-size: 13px; max-width: 640px; margin: 0 auto; }
.cookie-banner[hidden] { display: none; }
.cookie-banner .link { color: var(--cyan-400); }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.age-gate { position: fixed; inset: 0; z-index: 600; background: rgba(3, 11, 23, .92); display: grid; place-items: center; padding: 20px; }
.age-gate[hidden] { display: none; }
.age-card { background: var(--white); color: var(--text); border-radius: var(--radius-lg); padding: 24px; max-width: 420px; text-align: center; display: grid; gap: 12px; }

@media (min-width: 768px) {
  .promo-banner { grid-template-columns: 1fr 1fr; align-items: center; }
  .cookie-banner { bottom: 16px; }
}
@media (min-width: 1024px) {
  .cart-layout, .checkout-layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .account-layout { grid-template-columns: 240px minmax(0, 1fr); }
  .contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* Product imagery: never crop packshots */
.product-card .p-thumb { background: #fff; }
.product-card .p-thumb img, .pdp-main-img img, .mini-item img, .cart-item .p-thumb img { object-fit: contain !important; background: #fff; }
.pdp-main-img { background: #fff; }
.product-card .p-thumb { position: relative; }
.product-card .p-thumb > a { position: absolute; inset: 0; display: block; }

/* Legal / policy pages */
.legal-head { padding: 6px 0 18px; border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.legal-updated { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.legal-lead { margin-top: 12px; padding: 14px 16px; background: var(--blue-50); border-left: 3px solid var(--blue-600); border-radius: var(--radius-sm); font-size: 14px; color: #1d3557; max-width: 820px; }
.legal-layout { display: grid; gap: 24px; }
.legal-aside { display: grid; gap: 16px; align-content: start; }
.legal-toc { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 16px; background: var(--white); }
.legal-aside-title { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.legal-toc ol, .legal-toc ul { display: grid; gap: 6px; font-size: 13px; padding-left: 18px; }
.legal-toc ol { list-style: none; padding-left: 0; }
.legal-toc a { color: var(--text); }
.legal-toc a:hover, .legal-toc a[aria-current="page"] { color: var(--blue-600); font-weight: 600; }
.legal-body { max-width: 820px; }
.legal-body h2 { scroll-margin-top: 120px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 17px; }
.legal-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-body mark { background: #fff3cd; color: #7a5400; padding: 0 4px; border-radius: 3px; font-weight: 600; }
@media (min-width: 1024px) {
  .legal-layout { grid-template-columns: 260px minmax(0, 1fr); }
  .legal-aside { position: sticky; top: 120px; max-height: calc(100vh - 140px); overflow: auto; }
}

/* Home: category cards (3) + trust banner */
.cat-cards.cols-3 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .cat-cards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cat-card.is-cyan { background: linear-gradient(135deg, #0b5d74 0%, #0a3a56 55%, #07182c 100%); }
.cat-card.is-cyan .cc-icon { color: #5fe0ff; }
.trust-banner { display: block; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg, 0 10px 30px rgba(0,0,0,.25)); }
.trust-banner img { display: block; width: 100%; height: auto; }
.cat-cards.cols-3 .cc-desc { display: none; }

/* Home: why trust us */
.why-trust { padding-top: 8px; }
.trust-banner picture, .trust-banner img { display: block; width: 100%; height: auto; }
.why-head { text-align: center; max-width: 720px; margin: 34px auto 22px; }
.why-eyebrow { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-600, #1563ff); background: rgba(21, 99, 255, .08); padding: 5px 12px; border-radius: 999px; margin-bottom: 10px; }
.why-head p { color: var(--text-muted); font-size: 14.5px; line-height: 1.65; margin-top: 8px; }
.why-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.why-card { position: relative; padding: 22px 20px; border: 1px solid var(--border); border-radius: var(--radius-md, 14px); background: linear-gradient(180deg, #fff 0%, #f6f9ff 100%); transition: transform .2s, box-shadow .2s, border-color .2s; overflow: hidden; }
.why-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, #1563ff, #22c3ff); opacity: .85; }
.why-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(7, 24, 44, .10); border-color: rgba(21, 99, 255, .35); }
.why-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, #0d3a8a, #07182c); color: #5fd0ff; margin-bottom: 14px; box-shadow: 0 6px 16px rgba(13, 58, 138, .25); }
.why-icon svg { width: 22px; height: 22px; }
.why-card h3 { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 6px; }
.why-card p { font-size: 13.5px; line-height: 1.6; color: var(--text-muted); }
.why-cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }

/* Product page: reference-style price box + option groups */
.pdp-price-box { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--grey-50); }
.pdp-price-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.pdp-price-note { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.pdp-stock:empty { display: none; }
.pdp-field .field-label .opt-chosen { font-weight: 700; color: var(--text); }
.strength-btn { cursor: pointer; }
.strength-btn:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.pdp-coa-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; }
@media (max-width: 767px) {
  .strength-btn { min-height: 40px; }
  .pdp-qty-row { flex-wrap: wrap; }
  .pdp-add-btn { min-width: 0; }
}

/* Product page: free gift (vials & disposable pens), as on the reference store */
.pdp-gift { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) 22px; gap: 12px; align-items: center; margin-top: 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--white); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.pdp-gift:hover { border-color: var(--blue-600); }
.pdp-gift-check { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pdp-gift-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--grey-50); color: var(--blue-600); }
.pdp-gift-text { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.pdp-gift-text strong { font-size: 13.5px; line-height: 1.3; color: var(--text); }
.pdp-gift-text small { font-size: 12px; color: var(--text-muted); }
.pdp-gift-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--blue-600); color: #fff; font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pdp-gift-tick { width: 20px; height: 20px; border: 2px solid var(--border-strong); border-radius: 50%; background: var(--white); transition: border-color .2s, background .2s; }
.pdp-gift:has(.pdp-gift-check:checked) { border-color: var(--blue-600); box-shadow: 0 0 0 1px var(--blue-600); }
.pdp-gift-check:checked ~ .pdp-gift-tick { border-color: var(--blue-600); background: var(--blue-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.pdp-gift-check:focus-visible ~ .pdp-gift-tick { outline: 2px solid var(--blue-600); outline-offset: 2px; }
.ci-gift, .mi-gift { font-size: 12px; font-weight: 600; color: var(--green-600); }

/* Product cards: trust labels under the price (reference style). Sized to the card so they sit on one line where space allows. */
.product-card { container-type: inline-size; }
.product-card .p-badges { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 3px 0; padding: 7px 0 1px; border-top: 1px solid var(--border); font-size: clamp(8px, 3.05cqi, 10px); font-weight: 600; letter-spacing: .01em; text-transform: uppercase; color: var(--text-muted); line-height: 1.25; }
.product-card .p-badges li { display: inline-flex; align-items: center; gap: .3em; padding: 0 clamp(3px, 1.6cqi, 7px); white-space: nowrap; }
.product-card .p-badges li + li { border-left: 1px solid var(--border-strong); }
.product-card .p-badges .icon { width: 1.25em; height: 1.25em; flex: none; }
/* narrower cards: two labels on the first line, the third centred below (no stray divider) */
@container (max-width: 300px) { .product-card .p-badges li:nth-child(3) { flex-basis: 100%; justify-content: center; border-left: 0; } }
@container (max-width: 200px) { .product-card .p-badges .icon { display: none; } }
