/* ==========================================================================
   AURENQO UI REFRESH V2 — bright, restrained commerce
   White canvas + black text + clear blue + clear red accents.
   Most surfaces use borders, not filled colour blocks.
   ========================================================================== */

:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-pale: #eef5ff;
  --accent: #e5484d;
  --accent-pale: #fff3f4;
  --future-blue: #2563eb;
  --future-cobalt: #1d4ed8;
  --future-cyan: #60a5fa;
  --future-violet: #3b82f6;
  --commerce-orange: #e5484d;
  --commerce-gold: #f2b8bc;
  --commerce-coral: #e5484d;
  --canvas: #f7f9fc;
  --ink: #111111;
  --ink-soft: #333333;
  --line: #d9e2ec;
  --warning: #e5484d;
}

body {
  background: #ffffff;
  color: #111111;
}

p,
.detail-description,
.delivery-line,
.service-grid p,
.page-hero p:last-child,
.check-row,
.range-label,
.shop-toolbar > span,
.detail-notes p,
.footer-brand p,
.newsletter p {
  color: #333333;
}

.section-muted,
.hero-section,
body[data-page="home"] .partner-share-slot {
  background: #f7f9fc;
}

.section-heading h2,
.product-card h3,
.detail-content h1,
.filter-group-title,
.option-label,
.footer-grid h2 {
  color: #111111;
}

/* Crisp bright blue for active/search/link states; no muted blue-grey fills. */
.section-heading > a,
.text-button,
.detail-category,
.ai-search-label,
.partner-share-button,
.mobile-bottom-nav a.is-active,
.mobile-bottom-nav a[aria-current="page"],
.mobile-bottom-nav a.is-active > span:first-child,
.mobile-bottom-nav a[aria-current="page"] > span:first-child {
  color: #2563eb;
}

.global-search,
.hero-search,
.utility-controls select,
.filters-panel,
.category-card,
.product-card,
.cart-item,
.order-card,
.checkout-section,
.simple-card,
.warehouse-card {
  background: #ffffff;
  border-color: #d9e2ec;
  box-shadow: none;
}

.global-search button,
.hero-search button,
body[data-page="home"] .hero-search button {
  background: #2563eb;
  color: #ffffff;
}

.global-search button:hover,
.hero-search button:hover,
body[data-page="home"] .hero-search button:hover {
  background: #1d4ed8;
}

/* Red is reserved for price / cart / true urgency, not large warm surfaces. */
.price-row strong,
.detail-price strong,
.summary-row.total strong,
.cart-badge,
.mobile-bottom-nav b {
  color: #e5484d;
}

.cart-badge,
.mobile-bottom-nav b {
  background: #e5484d;
  color: #ffffff;
}

/* Quiet line-frame cards. */
.product-card {
  border: 1px solid #d9e2ec;
  border-radius: 14px;
  background: #ffffff;
}
.product-card:hover {
  transform: translateY(-1px);
  border-color: #b9c8d8;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
}
.product-card::before { display: none; }

.product-card h3 {
  color: #111111;
  font-weight: 750;
}

.product-card .delivery-line,
.product-card .local-delivery-badge {
  color: #333333 !important;
}

/* Product card actions: add-to-cart is longer; buy-now is shorter.
   Both remain horizontal and never wrap. */
.product-card-cta.has-buy {
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr) !important;
  gap: 7px;
}
.product-card-cta .btn-primary-soft,
.product-card-cta .btn-buy-now {
  min-width: 0;
  min-height: 44px;
  padding-inline: 7px;
  border-radius: 10px;
  background: #ffffff !important;
  box-shadow: none !important;
  font-weight: 750;
  white-space: nowrap;
  line-height: 1;
}
.product-card-cta .btn-primary-soft {
  border: 1px solid #e5484d !important;
  color: #d9363e !important;
}
.product-card-cta .btn-buy-now {
  border: 1px solid #2563eb !important;
  color: #1d4ed8 !important;
}
.product-card-cta .btn-primary-soft:hover {
  background: #fff6f7 !important;
  border-color: #d9363e !important;
}
.product-card-cta .btn-buy-now:hover {
  background: #f3f7ff !important;
  border-color: #1d4ed8 !important;
}

/* Line-frame treatment for controls instead of coloured slabs. */
.btn-primary,
.btn-secondary,
.btn-primary-soft,
.btn-future,
.option-chip,
.partner-share-button,
.filter-toggle,
.sort-control select {
  box-shadow: none !important;
}

.btn-primary {
  background: #ffffff;
  border: 1px solid #2563eb;
  color: #1d4ed8;
}
.btn-primary:hover {
  background: #f3f7ff;
  color: #1d4ed8;
}
.btn-secondary,
.btn-primary-soft,
.btn-future {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #111111;
}
.btn-secondary:hover,
.btn-primary-soft:hover,
.btn-future:hover {
  background: #f8fafc;
  color: #111111;
}

/* Selected chips use a light cool tint, never a solid slab. */
.option-chip.active,
.address-mode-switch button.active,
.delivery-options label:has(input:checked) {
  border-color: #2563eb;
  background: #eef5ff;
  color: #111111;
  box-shadow: none;
}

/* Detail page: collapse the oversized vertical rhythm. */
.product-detail {
  gap: clamp(22px, 4vw, 44px);
}
.detail-content {
  color: #111111;
}
.detail-content h1 {
  margin: 4px 0 8px;
  color: #111111;
  line-height: 1.16;
}
.detail-tags {
  margin-bottom: 7px;
}
.detail-tag {
  border-radius: 8px;
  border-color: #d9e2ec;
  color: #2563eb;
}
.detail-rating {
  margin: 0 0 5px;
  min-height: 0;
  gap: 10px;
}
.detail-price {
  margin: 8px 0 12px;
}
.detail-price strong {
  color: #e5484d;
}
.detail-description {
  margin: 0 0 12px;
  color: #333333;
  line-height: 1.55;
}
.option-group {
  margin-top: 12px;
}
.option-label {
  margin-bottom: 8px;
  color: #111111;
}
.purchase-row {
  margin-block: 14px 10px;
}
.delivery-callout {
  margin: 10px 0 12px;
  padding: 11px 12px;
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  background: #ffffff;
  color: #333333;
}
.detail-actions {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr) !important;
  gap: 9px;
  margin-block: 12px 18px;
}
.detail-actions .btn-primary,
.detail-actions .btn-secondary {
  min-width: 0;
  min-height: 50px;
  border-radius: 11px;
  white-space: nowrap;
  font-size: .98rem;
  font-weight: 800;
}
.detail-actions .btn-primary {
  border: 1px solid #e5484d;
  background: #ffffff;
  color: #d9363e;
}
.detail-actions .btn-secondary {
  border: 1px solid #2563eb;
  background: #ffffff;
  color: #1d4ed8;
}
.detail-notes details {
  padding-block: 12px;
}

/* Footer stays dark enough to anchor the page, but uses neutral near-black,
   not the previous blue-grey. */
.site-footer {
  background: #111827;
  color: #ffffff;
}
.footer-grid > div:not(.footer-brand) > a,
.footer-brand p,
.newsletter p {
  color: #d1d5db;
}

/* Bottom mobile nav: black normal state, blue current state, no heavy top marker. */
.mobile-bottom-nav {
  background: rgba(255,255,255,.98);
  border-top: 1px solid #d9e2ec;
  backdrop-filter: blur(10px);
}
.mobile-bottom-nav a {
  color: #111111;
  font-weight: 700;
}
.mobile-bottom-nav a > span:first-child {
  color: #111111;
}
.mobile-bottom-nav a.is-active::after {
  display: none;
}

/* Page panels stay bright and mostly outlined. */
.page-hero {
  background: #f7f9fc;
}
.partner-vip-cta,
.partner-share-button,
.filters-panel,
.warehouse-card,
.service-grid article {
  background: #ffffff;
  border-color: #d9e2ec;
}

@media (max-width: 767px) {
  .section-heading h2 {
    color: #111111;
  }

  .product-card-body {
    padding: 10px 11px 11px;
  }

  .product-card h3 {
    color: #111111;
    font-size: 1rem;
    line-height: 1.35;
  }

  .price-row strong {
    color: #e5484d;
    font-size: 1.32rem;
  }

  .product-card-cta.has-buy {
    grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr) !important;
  }

  .product-card-cta .btn-primary-soft,
  .product-card-cta .btn-buy-now {
    min-height: 44px;
    padding-inline: 5px;
    font-size: .80rem;
    letter-spacing: -.01em;
    white-space: nowrap;
  }

  /* Old <=420 rule stacked detail actions; V2 intentionally keeps them horizontal. */
  .detail-actions {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr) !important;
    position: sticky;
    inset-block-end: calc(var(--shell-tabbar-h) + var(--shell-safe-bottom) + 8px);
    padding: 7px;
    border: 1px solid #d9e2ec;
    border-radius: 13px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 8px 22px rgba(15,23,42,.08);
  }

  .detail-content h1 {
    margin: 2px 0 7px;
    font-size: 1.78rem;
    line-height: 1.18;
  }

  .detail-price {
    margin: 7px 0 11px;
  }

  .detail-price strong {
    font-size: 1.9rem;
  }

  .detail-description {
    margin-bottom: 10px;
    font-size: .96rem;
  }

  .option-group {
    margin-top: 10px;
  }

  .option-chip {
    min-height: 42px;
    padding: 8px 12px;
    border-radius: 9px;
    color: #111111;
  }

  .mobile-bottom-nav {
    height: 68px;
  }
  .mobile-bottom-nav a {
    color: #111111;
    font-size: .82rem;
    font-weight: 700;
  }
  .mobile-bottom-nav a > span:first-child {
    color: #111111;
    font-size: 1.3rem;
  }
  .mobile-bottom-nav a.is-active,
  .mobile-bottom-nav a.is-active > span:first-child,
  .mobile-bottom-nav a[aria-current="page"],
  .mobile-bottom-nav a[aria-current="page"] > span:first-child {
    color: #2563eb;
  }
}

@media (max-width: 390px) {
  .product-card-cta .btn-primary-soft,
  .product-card-cta .btn-buy-now {
    font-size: .76rem;
    padding-inline: 3px;
  }
  .detail-actions .btn-primary,
  .detail-actions .btn-secondary {
    font-size: .9rem;
  }
}


/* V2 detail-action containment: keep the asymmetric horizontal pair fully
   inside narrow phones; legacy button padding/min-content must not widen it. */
.detail-actions {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.detail-actions > button {
  width: 100%;
  min-width: 0 !important;
  max-width: 100%;
  box-sizing: border-box;
  padding-inline: 10px !important;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}
@media (max-width: 420px) {
  .detail-actions {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) !important;
  }
}


/* Narrow-phone intrinsic-size guard. Some legacy detail children can advertise
   a min-content width wider than the viewport; make the mobile detail grid
   genuinely shrinkable so the two horizontal actions stay fully visible. */
@media (max-width: 767px) {
  .section > .site-container.product-detail,
  .product-detail,
  .detail-content,
  .detail-actions {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  .detail-content {
    width: 100%;
    overflow-x: clip;
  }
  .detail-content .option-group,
  .detail-content .option-group > div,
  .detail-content .purchase-row,
  .detail-content .delivery-callout {
    min-width: 0;
    max-width: 100%;
  }
}
