/* Maxum Mart — base storefront styles. Mobile-first, minimal black/white theme
   matching the existing brand (Montserrat, black CTAs, white background). */

/* Smooth cross-page fade when navigating between pages, in browsers that support it
   (Chrome/Edge 126+). Unsupported browsers simply get a normal, instant navigation —
   nothing breaks either way. */
@view-transition { navigation: auto; }

:root {
  --color-text: #000;
  --color-bg: #fff;
  --color-muted: #6b6b6b;
  --color-border: #e6e6e6;
  --color-accent-light: #0cc0df; /* brand teal — decorative use only, fails WCAG contrast as text/button color on white */
  --color-accent: #067a8f; /* darkened brand teal — passes WCAG AA (~5.5:1) for text and button backgrounds on white */
  --color-accent-button: #067a8f;
  --color-accent-text: #fff;
  --color-dark: #000;
  --color-sale: #d64545;
  --color-success: #1e7e34;
  --radius: 0px;
  --radius-pill: 999px;
  --max-width: 1200px;
  --font-heading: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
p { font-family: var(--font-body); font-weight: 400; }
h1, h2, .font-heading { font-family: var(--font-heading); font-weight: 700; letter-spacing: -0.01em; }
h3, h4, .product-card__title, .pdp-accordion summary { font-family: var(--font-heading); font-weight: 600; }
a { font-family: var(--font-body); font-weight: 500; }
.price, .price--sale { font-family: var(--font-heading); font-weight: 700; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ---------- Announcement bar ---------- */
.announcement-bar {
  background: var(--color-accent-light); color: var(--color-dark); text-align: center;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 8px 16px;
}
.announcement-bar__track { position: relative; height: 1.1em; }
.announcement-bar__track span { position: absolute; left: 0; right: 0; opacity: 0; transition: opacity .4s ease; }
.announcement-bar__track span.is-active { opacity: 1; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--color-border);
  position: sticky; top: 0; background: var(--color-bg); z-index: 50;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; max-width: var(--max-width); margin: 0 auto;
}
.site-header__logo { display: flex; align-items: center; flex-shrink: 0; }
.site-header__logo img { display: block; height: 44px; width: auto; }
@media (min-width: 480px) {
  .site-header__logo img { height: 52px; }
}
.site-nav { display: none; gap: 24px; }
.site-nav a {
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 500; transition: color .15s;
  display: flex; align-items: center; min-height: 44px;
}
.site-nav a:hover { color: var(--color-accent); }
.header-icons { display: flex; gap: 16px; align-items: center; }
.header-icons a {
  display: flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; font-size: 1.15rem;
}
.cart-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; border-radius: 50%;
  background: var(--color-accent); color: var(--color-accent-text);
  font-size: 0.65rem; margin-left: 4px; padding: 0 4px;
}

.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0; border: none; background: none; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--color-text); }

@media (max-width: 859px) {
  .site-nav {
    display: none; position: fixed; top: var(--header-h, 61px); right: 0; bottom: 0; left: 0; background: var(--color-bg);
    flex-direction: column; gap: 0; padding: 8px 20px; z-index: 60;
    border-top: 1px solid var(--color-border); overflow-y: auto;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { border-bottom: 1px solid var(--color-border); font-size: 1.05rem; }
}
@media (min-width: 860px) {
  .site-nav { display: flex; }
  .nav-toggle { display: none; }
}

/* ---------- Hero carousel ---------- */
.hero-carousel { position: relative; overflow: hidden; background: #111; }
.hero-carousel__track { position: relative; aspect-ratio: 2000 / 848; }
@media (max-width: 700px) { .hero-carousel__track { aspect-ratio: 900 / 1613; } }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; pointer-events: none;
}
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 38px; height: 38px; border-radius: 50%; border: none; background: rgba(255,255,255,0.85);
  font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.hero-carousel__arrow--prev { left: 12px; }
.hero-carousel__arrow--next { right: 12px; }
.hero-carousel__dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 5; }
.hero-carousel__dots button {
  width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,0.5); padding: 0; cursor: pointer;
}
.hero-carousel__dots button.is-active { background: #fff; }

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 36px; text-align: center; background: linear-gradient(180deg, #f3fcfd 0%, #fff 100%);
}
.hero .eyebrow {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-accent); margin-bottom: 12px;
}
.hero h1 { font-size: 2.1rem; margin: 0 0 12px; line-height: 1.15; }
.hero p { color: var(--color-muted); max-width: 640px; margin: 0 auto 20px; font-size: 1rem; }
@media (min-width: 700px) {
  .hero h1 { font-size: 3rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 28px; border-radius: var(--radius-pill);
  background: var(--color-accent-button); color: var(--color-accent-text);
  font-family: var(--font-body); font-weight: 600; font-size: 0.92rem; border: 1px solid var(--color-accent-button);
  cursor: pointer; text-align: center; transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--color-dark); border-color: var(--color-dark); color: #fff; }
.btn--outline { background: transparent; color: var(--color-dark); border-color: var(--color-dark); }
.btn--outline:hover { background: var(--color-dark); color: #fff; }
.btn--full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Sort/filter bar ---------- */
.sort-bar {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 10px 0; margin-bottom: 14px; border-bottom: 1px solid var(--color-border);
  font-size: 0.85rem; color: var(--color-muted);
}
.sort-bar__controls { display: flex; align-items: center; gap: 16px; }
.sort-bar__checkbox { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.sort-bar select {
  padding: 8px 10px; border: 1px solid var(--color-border); border-radius: 6px;
  font-family: var(--font-body); font-size: 0.85rem; background: #fff;
}

/* ---------- Product grid ---------- */
.section { padding: 32px 0; }
.section__title { font-size: 1.7rem; margin: 0 0 22px; text-align: center; }
.product-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 960px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.product-slider { position: relative; }
.product-slider__arrow { display: none; }
@media (min-width: 960px) {
  .product-slider__track {
    display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 20px;
    scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth;
  }
  .product-slider__track::-webkit-scrollbar { display: none; }
  .product-slider__track .product-card { flex: 0 0 calc(25% - 15px); scroll-snap-align: start; }
  .product-slider__arrow {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--color-border);
    background: #fff; cursor: pointer; font-size: 1.1rem; box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .product-slider__arrow:hover { background: var(--color-dark); color: #fff; border-color: var(--color-dark); }
  .product-slider__arrow--prev { left: -22px; }
  .product-slider__arrow--next { right: -22px; }
}

.product-card {
  border: 1px solid var(--color-border);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
  transition: box-shadow .15s ease, transform .15s ease;
}
.product-card:hover { box-shadow: 0 10px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }
.product-card__image { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #f5f5f5; position: relative; }
.product-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.product-card:hover .product-card__image img { transform: scale(1.04); }
.product-card__quickadd {
  position: absolute; right: 8px; bottom: 8px; opacity: 0; transition: opacity .15s ease;
}
.product-card:hover .product-card__quickadd,
.product-card:focus-within .product-card__quickadd { opacity: 1; }
@media (max-width: 640px) { .product-card__quickadd { opacity: 1; } }
.product-card__quickadd button {
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: var(--color-dark); color: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.product-card__quickadd button:hover { background: var(--color-accent); }
.product-card__badge {
  position: absolute; top: 10px; left: 10px; background: var(--color-sale);
  color: #fff; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.03em; padding: 4px 10px; border-radius: var(--radius-pill);
}
.product-card__body { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card__title { font-size: 0.9rem; font-weight: 600; min-height: 2.6em; }
.product-card__reviews { font-size: 0.75rem; color: var(--color-muted); }
.product-card__price { display: flex; gap: 8px; align-items: baseline; margin-top: auto; }
.price { font-weight: 700; }
.price--sale { color: var(--color-sale); }
.price--compare { text-decoration: line-through; color: var(--color-muted); font-size: 0.82rem; font-weight: 400; }

.empty-state { text-align: center; color: var(--color-muted); padding: 40px 20px; }

/* ---------- Trust strip ---------- */
.trust-strip { background: #f0fdf4; border-top: 1px solid #bbf7d0; border-bottom: 1px solid #bbf7d0; }
.trust-strip__inner {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px;
  padding: 10px 20px; font-size: 0.82rem; font-weight: 600; color: #166534;
}

/* ---------- Category cards ---------- */
.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 700px) { .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
.category-card { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; }
.category-card__image { width: 100%; height: 100%; background: #f5f5f5; }
.category-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.category-card:hover .category-card__image img { transform: scale(1.06); }
.category-card::after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%);
}
.category-card__title {
  position: absolute; left: 16px; bottom: 14px; color: #fff; font-size: 1.15rem; z-index: 1;
}

/* ---------- Quantity/purchase tiers ---------- */
.tier-list { display: flex; flex-direction: column; gap: 10px; }
.tier-card {
  position: relative; display: block; border: 2px solid var(--color-border); border-radius: 10px;
  padding: 12px 14px; cursor: pointer; transition: border-color .15s;
}
.tier-card:has(input:checked) { border-color: var(--color-accent); background: #f7fdfe; }
.tier-card--highlighted { border-color: var(--color-sale); }
.tier-card--highlighted:has(input:checked) { border-color: var(--color-sale); background: #fff7f5; }
.tier-card input[type="radio"] { position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; }
.tier-card__badge {
  display: inline-block; background: var(--color-sale); color: #fff; font-size: 0.68rem; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; margin-bottom: 8px;
}
.tier-card__row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding-right: 26px; }
.tier-card__thumbs { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.tier-card__thumbs img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.tier-card__thumbs span { font-size: 0.9rem; color: var(--color-muted); }
.tier-card__info { flex: 1; min-width: 0; }
.tier-card__title { font-weight: 600; font-size: 0.92rem; }
.tier-card__sub { font-size: 0.75rem; color: var(--color-muted); }
.tier-card__price { text-align: right; white-space: nowrap; }
.tier-card__price .price--compare { display: block; font-size: 0.75rem; }

/* ---------- PDP accordion ---------- */
.pdp-accordion { border-top: 1px solid var(--color-border); padding: 14px 0; }
.pdp-accordion summary {
  cursor: pointer; font-size: 1.05rem; font-weight: 700; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.pdp-accordion summary::-webkit-details-marker { display: none; }
.pdp-accordion summary::after {
  content: '\002B'; font-size: 1.2rem; color: var(--color-accent);
  display: inline-block; transition: transform .2s ease;
}
.pdp-accordion[open] summary::after { transform: rotate(135deg); }
.pdp-accordion__body { padding-top: 10px; color: #333; animation: pdp-accordion-in .2s ease; }
@keyframes pdp-accordion-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.pdp-accordion__body h3 { font-size: 1rem; }
.pdp-accordion__body table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.pdp-accordion__body table td, .pdp-accordion__body table th { border: 1px solid var(--color-border); padding: 6px 10px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--color-border); margin-top: 48px; padding: 36px 0; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.footer-grid h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 10px; }
.footer-logo { display: inline-block; margin-bottom: 14px; }
.footer-logo img { display: block; }
.footer-grid a { display: block; font-size: 0.88rem; color: var(--color-muted); margin-bottom: 8px; }
.footer-bottom { text-align: center; color: var(--color-muted); font-size: 0.8rem; margin-top: 28px; }

/* ---------- Generic content pages (About, policies) ---------- */
.page-hero {
  background: linear-gradient(135deg, #eafcff 0%, #f7fdfe 100%);
  border-bottom: 1px solid #d9f1f5; padding: 40px 20px 36px; text-align: center;
}
.page-hero__eyebrow { font-family: var(--font-body); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent); }
.page-hero__title { font-size: 2rem; margin: 8px 0 0; }
.page-content { padding: 40px 20px 60px; max-width: 720px; }
.page-content__body { font-size: 0.98rem; line-height: 1.85; color: #222; }
.page-content__body p { margin: 0 0 16px; }
.page-content__body ul, .page-content__body ol { margin: 0 0 16px; padding-left: 22px; }
.page-content__body li { margin-bottom: 6px; }
.page-content__body h2 { font-family: var(--font-heading); font-size: 1.2rem; margin: 28px 0 12px; }
.page-content__body a { color: var(--color-accent); text-decoration: underline; }

/* ---------- Contact page ---------- */
.contact-page { padding: 28px 20px 60px; max-width: 1000px; }
.contact-page__title { text-align: left; margin-bottom: 8px; }
.contact-page__hint { color: var(--color-muted); font-size: 0.95rem; margin: 0 0 28px; }
.contact-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 780px) { .contact-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; } }
.contact-form { border: 1px solid var(--color-border); padding: 22px 20px; }
.contact-form .field { margin-bottom: 16px; }
.contact-form label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--color-border); font-family: var(--font-body); font-size: 0.94rem;
  transition: border-color .15s, box-shadow .15s;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(6,122,143,0.12);
}
.contact-form textarea { resize: vertical; }
.contact-submit { background: #25D366; border-color: #25D366; }
.contact-submit:hover { background: #1ea952; border-color: #1ea952; }
.contact-info__card { border: 1px solid var(--color-border); padding: 22px 20px; position: sticky; top: 84px; }
.contact-info__card h3 { margin-top: 0; margin-bottom: 16px; }
.contact-info__row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; font-size: 0.88rem; color: var(--color-muted); }
.contact-info__row:last-child { margin-bottom: 0; }
.contact-info__row strong { color: var(--color-text); }
.contact-info__icon { font-size: 1.3rem; flex-shrink: 0; }

/* ---------- Track / cancel order ---------- */
.track-page { padding: 28px 20px 60px; max-width: 480px; }
.track-page__title { text-align: left; margin-bottom: 8px; }
.track-page__hint { color: var(--color-muted); font-size: 0.9rem; margin: 0 0 22px; }
.track-form .field { margin-bottom: 14px; }
.track-form label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.track-form input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--color-border); font-family: var(--font-body); font-size: 0.94rem;
}
.track-form input:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(6,122,143,0.12); }
.track-alert { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; padding: 12px 14px; margin-top: 18px; font-size: 0.88rem; }
.track-result { border: 1px solid var(--color-border); padding: 22px 20px; margin-top: 22px; }
.track-result__row { display: flex; justify-content: space-between; font-size: 0.9rem; padding: 6px 0; }
.track-result__status {
  font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; margin: 6px 0 4px;
}
.track-result__status--cancelled, .track-result__status--returned { color: var(--color-sale); }
.track-result__status--delivered { color: var(--color-success); }
.track-result__desc { color: var(--color-muted); font-size: 0.88rem; margin: 0 0 14px; }
.track-cancel-form { margin-top: 16px; }
.track-cancel-btn { color: var(--color-sale); border-color: var(--color-sale); width: 100%; }
.track-cancel-btn:hover { background: var(--color-sale); border-color: var(--color-sale); color: #fff; }
.track-result__note { font-size: 0.8rem; color: var(--color-muted); margin: 10px 0 0; }

/* ---------- Cart ---------- */
.cart-page { padding: 28px 20px 60px; max-width: 800px; }
.cart-page__title { text-align: left; margin-bottom: 20px; }
.cart-empty-link { color: var(--color-accent); font-weight: 600; }

.cart-ship-banner { background: #f7fdfe; border: 1px solid #d9f1f5; padding: 12px 14px; margin-bottom: 20px; }
.cart-ship-banner p { margin: 0 0 8px; font-size: 0.85rem; font-weight: 600; }
.cart-ship-banner__track { height: 8px; background: #e0f2f5; overflow: hidden; }
.cart-ship-banner__fill { height: 100%; background: var(--color-accent); transition: width .3s; }

.cart-row {
  display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--color-border);
}
.cart-row__img { width: 64px; height: 64px; object-fit: cover; flex-shrink: 0; }
.cart-row__info { flex: 1; min-width: 0; }
.cart-row__title { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-row__unit { color: var(--color-muted); font-size: 0.85rem; }
.cart-row__qty { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.cart-row__qty input { width: 50px; padding: 8px 6px; border: 1px solid var(--color-border); text-align: center; }
.cart-row__qty .btn--outline { padding: 8px 12px; font-size: 0.78rem; }
.cart-row__total { width: 80px; text-align: right; font-weight: 700; flex-shrink: 0; }
.cart-row__remove button {
  background: none; border: none; color: var(--color-sale); cursor: pointer; font-size: 1.4rem;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
@media (max-width: 560px) {
  .cart-row { flex-wrap: wrap; }
  .cart-row__info { flex-basis: 100%; order: 1; }
  .cart-row__img { order: 0; }
  .cart-row__remove { order: 0; margin-left: auto; }
  .cart-row__qty, .cart-row__total { order: 2; }
  .cart-row__total { text-align: left; }
}

.cart-upsells { margin: 28px 0; }
.cart-upsells__title { font-size: 1.05rem; margin-bottom: 12px; }

.cart-totals { margin-top: 8px; }
.cart-totals__row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 0.95rem; color: var(--color-muted); }
.cart-totals__row--final {
  font-size: 1.1rem; font-weight: 700; color: var(--color-text);
  border-bottom: 1px solid var(--color-border); margin-bottom: 16px; padding-bottom: 20px;
}
.cart-checkout-btn { font-size: 1rem; padding: 15px 28px; }

/* ---------- Checkout ---------- */
.checkout-page { padding: 28px 20px 60px; max-width: 1100px; }
.checkout-page__title { text-align: left; margin-bottom: 24px; }
.checkout-alert {
  background: #fef2f2; color: #991b1b; border: 1px solid #fecaca;
  padding: 12px 16px; margin-bottom: 20px; font-size: 0.9rem;
}
.checkout-grid { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .checkout-grid { grid-template-columns: 1.35fr 1fr; } }

.checkout-card, .checkout-summary {
  background: #fff; border: 1px solid var(--color-border); padding: 22px 20px;
}
.checkout-card__title { font-size: 1.05rem; margin: 0 0 18px; }

.checkout-form .field { margin-bottom: 16px; }
.checkout-form .field:last-child { margin-bottom: 0; }
.checkout-form label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; font-family: var(--font-body); }
.checkout-form input, .checkout-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--color-border);
  font-family: var(--font-body); font-size: 0.94rem; background: #fff; color: var(--color-text);
  transition: border-color .15s, box-shadow .15s;
}
.checkout-form input:focus, .checkout-form textarea:focus {
  outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(6,122,143,0.12);
}
.checkout-form input:invalid:not(:placeholder-shown) { border-color: var(--color-sale); }
.checkout-form textarea { resize: vertical; min-height: 48px; }
.field__hint { font-size: 0.78rem; color: var(--color-muted); margin: 6px 0 0; }
.field__hint--error { color: var(--color-sale); }

.checkout-submit { margin-top: 20px; font-size: 1rem; padding: 15px 28px; }
.checkout-trust { text-align: center; font-size: 0.78rem; color: var(--color-muted); margin: 10px 0 0; }

.checkout-summary { position: sticky; top: 84px; }
.checkout-summary__items { border-bottom: 1px solid var(--color-border); padding-bottom: 8px; margin-bottom: 8px; }
.checkout-summary__row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.88rem; padding: 5px 0; }
.checkout-summary__row--discount { color: var(--color-success); }
.checkout-summary__row--total {
  font-weight: 700; font-size: 1.05rem; font-family: var(--font-heading);
  border-top: 1px solid var(--color-border); margin-top: 8px; padding-top: 12px;
}
.checkout-summary__free { color: var(--color-success); font-weight: 600; }
.checkout-summary__trust {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--color-border);
}
.checkout-summary__trust p { font-size: 0.82rem; color: var(--color-muted); margin: 0 0 8px; line-height: 1.5; }
.checkout-summary__trust p:last-child { margin-bottom: 0; }

/* ---------- Frequently Bought Together ---------- */
.fbt-section { padding: 8px 20px 40px; }
.fbt-card { border: 1px solid var(--color-border); padding: 20px; }
.fbt-card__title { margin: 0 0 4px; font-size: 1.05rem; }
.fbt-card__hint { color: var(--color-muted); font-size: 0.85rem; margin: 0 0 16px; }
.fbt-items { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 16px; }
.fbt-item { text-align: center; width: 90px; cursor: pointer; }
.fbt-item img {
  width: 70px; height: 70px; object-fit: cover; border-radius: 8px; border: 1px solid var(--color-border);
  margin: 0 auto;
}
.fbt-item:not(.fbt-item--fixed) img { border-color: var(--color-accent); border-width: 2px; }
.fbt-item__title { font-size: 0.72rem; margin-top: 6px; line-height: 1.25; }
.fbt-item__price { font-size: 0.74rem; font-weight: 700; margin-top: 2px; }
.fbt-item input[type="checkbox"] { margin-top: 4px; }
.fbt-plus { font-size: 1.3rem; color: var(--color-muted); flex-shrink: 0; }
.fbt-summary { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.fbt-summary__pricing { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 0.9rem; }
.fbt-summary__original { color: var(--color-muted); text-decoration: line-through; font-size: 0.85rem; }
.fbt-summary__total { font-size: 1.15rem; }
.fbt-summary__badge {
  background: #f0fdf4; color: #166534; font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}

/* ---------- Floating WhatsApp button ---------- */
.whatsapp-float {
  position: fixed; right: 18px; bottom: 20px; z-index: 65;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
/* On product pages the sticky add-to-cart bar sits at the bottom on mobile — lift the button clear of it */
body:has(#sticky-atc) .whatsapp-float { bottom: 90px; }
@media (min-width: 860px) {
  .whatsapp-float { bottom: 24px; }
  body:has(#sticky-atc) .whatsapp-float { bottom: 24px; }
}

/* ---------- Scroll reveal ---------- */
.reveal-on-scroll { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal-on-scroll.is-revealed { opacity: 1; transform: translateY(0); }

/* ---------- Skip link / a11y ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; background: #000; color: #fff; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 10px; top: 10px; }
