/* Light Commerce shared layer. Loaded after the legacy visual system on customer pages. */
:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-pale: #eff6ff;
  --accent: #2563eb;
  --accent-pale: #eff6ff;
  --canvas: #fff;
  --ink: #0f172a;
  --ink-soft: #475569;
  --line: #e5ecf5;
  --card-shadow: 0 2px 12px rgba(15, 23, 42, .045);
  color-scheme: only light;
}

html, body { background: #fff; color: #0f172a; }
body { min-width: 320px; }

/* The locale utility row is a sibling of .site-header in the shared shell. */
.utility-bar {
  background: #fff;
  background-image: none;
  color: #475569;
  border-bottom: 1px solid #e5ecf5;
}
.utility-bar .utility-message { color: #475569; }
.utility-bar .utility-controls label { color: #475569; }
.utility-bar select {
  color: #0f172a;
  background: #fff;
  border: 1px solid #e5ecf5;
  box-shadow: none;
}
.utility-bar .language-globe { filter: none; }

.site-header,
.site-header .header-main,
.site-header .nav-row,
.mobile-topbar {
  color: #0f172a;
  background: #fff;
  background-image: none;
  box-shadow: none;
}
.site-header { border-bottom: 1px solid #e5ecf5; }
.header-main { min-width: 0; }
.site-header .primary-nav a,
.site-header .header-actions a,
.site-header .header-actions button,
.mobile-topbar-actions a,
.mobile-topbar-actions button { color: #0f172a; }
.site-header .ui-icon,
.mobile-topbar .ui-icon { filter: none; }

.site-header .global-search,
.site-header .global-search input,
.site-header .global-search button {
  box-sizing: border-box;
  min-width: 0;
}
.site-header .global-search {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) 48px;
  grid-template-rows: 44px;
  align-items: center;
  column-gap: 8px;
  width: 100%;
  min-height: 46px;
  height: 46px;
  border: 1px solid #e5ecf5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 5px rgba(15, 23, 42, .035);
}
.site-header .global-search > .ai-search-label { grid-column: 1; grid-row: 1; min-width: 0; white-space: nowrap; }
.site-header .global-search > input { grid-column: 2; grid-row: 1; }
.site-header .global-search > button { grid-column: 3; grid-row: 1; }
.site-header .global-search input {
  width: 100%;
  height: 44px;
  padding-inline: 14px;
  color: #0f172a;
  background: #fff;
  font-size: 16px;
}
.site-header .global-search button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: #2563eb;
  color: #fff;
  line-height: 1;
}
.site-header .global-search button .ui-icon {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0;
  filter: brightness(0) invert(1);
}
.site-header .global-search:focus-within {
  border-color: #93b4fb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

.site-footer {
  color: #0f172a;
  background: #fff;
  background-image: none;
  border-top: 1px solid #e5ecf5;
  box-shadow: none;
}
.site-footer .footer-brand p,
.site-footer .footer-disclosure-content,
.site-footer .footer-disclosure-content p,
.site-footer .footer-legal,
.site-footer .footer-disclosure summary { color: #475569; }
.site-footer .footer-disclosure,
.site-footer .footer-disclosure[open] {
  border: 1px solid #e5ecf5;
  background: #fff;
  box-shadow: none;
}
.site-footer .footer-disclosure summary::after { color: #2563eb; }
.site-footer .footer-disclosure summary:focus-visible { outline-color: #2563eb; }
.site-footer .footer-disclosure-content h2 { color: #0f172a; }
.site-footer .footer-disclosure-content a,
.site-footer .footer-legal a { color: #2563eb; }
.site-footer .footer-newsletter-disclosure input { color: #0f172a; background: #fff; border-color: #e5ecf5; }
.site-footer .arvonelia-footer-brand { background: transparent; }

.page-main,
.page-hero,
.section-muted,
.service-section,
.section { background-color: #fff; }
.page-hero { color: #0f172a; }
.page-hero h1,
.page-hero h2,
.section-heading h2 { color: #0f172a; }
.page-hero p,
.section-heading p { color: #475569; }

.product-card,
.warehouse-card,
.cart-item,
.order-card,
.checkout-section,
.simple-card,
.auth-card,
.auth-panel,
.account-entry-card,
.filters-panel,
.category-card {
  color: #0f172a;
  background: #fff;
  border-color: #e5ecf5;
  box-shadow: 0 2px 12px rgba(15, 23, 42, .045);
}
.product-card h2,
.product-card h3,
.product-card .product-title,
.warehouse-card h2,
.cart-item h2,
.order-card h2 { color: #0f172a; }
.product-card p,
.warehouse-card p,
.cart-item p,
.order-card p { color: #475569; }
.price,
.product-price,
.detail-price { color: #2563eb; }
.product-card .price,
.product-card .product-price,
.product-card .price-row .amount { color: #2563eb; }
.form-control,
.form-select,
input.form-control,
select.form-select,
textarea {
  color: #0f172a;
  background: #fff;
  border-color: #e5ecf5;
}
.btn-primary,
.button-primary,
.btn-primary-soft,
.button-primary-soft { color: #fff; background: #2563eb; border-color: #2563eb; }
.btn-secondary,
.button-secondary { color: #2563eb; background: #fff; border-color: #d5e2f4; }
.mobile-bottom-nav {
  color: #0f172a;
  background: #fff;
  border-top: 1px solid #e5ecf5;
  box-shadow: 0 -2px 10px rgba(15, 23, 42, .035);
}
.mobile-bottom-nav a { color: #475569; }
.mobile-bottom-nav a[aria-current="page"],
.mobile-bottom-nav a.is-active { color: #2563eb; }

/* The paused welcome-coupon page is a customer page too; keep its notice clear
   and neutral while preserving its pause state and return-to-store link. */
body[data-page="coupon-paused"] { background: #fff; color: #0f172a; }
body[data-page="coupon-paused"] .mark { color: #2563eb; }
body[data-page="coupon-paused"] .packet {
  color: #0f172a;
  background: #fff;
  border: 1px solid #e5ecf5;
  box-shadow: 0 2px 12px rgba(15, 23, 42, .045);
}
body[data-page="coupon-paused"] .packet::before { display: none; }
body[data-page="coupon-paused"] .packet h1,
body[data-page="coupon-paused"] .packet .value { color: #0f172a; }
body[data-page="coupon-paused"] .packet .meta,
body[data-page="coupon-paused"] .packet .ready,
body[data-page="coupon-paused"] .note { color: #475569; }
body[data-page="coupon-paused"] .go { color: #fff; background: #2563eb; box-shadow: none; }

@media (min-width: 1200px) {
  .site-header .header-main {
    grid-template-columns: 200px minmax(220px, 1fr) minmax(360px, auto);
    gap: 22px;
  }
  .site-header .header-actions { gap: 12px; min-width: 0; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .site-header .header-main {
    grid-template-columns: 170px minmax(180px, 1fr) minmax(270px, auto);
    gap: 12px;
  }
  .site-header .header-actions { gap: 6px; min-width: 0; }
  .site-header .header-actions a { min-width: 38px; }
}
@media (max-width: 767px) {
  .site-header .header-main { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .site-header .header-main > .global-search { grid-column: 1 / -1; width: 100%; }
  .site-header .header-actions { gap: 6px; }
  .site-header .global-search { grid-template-columns: max-content minmax(0, 1fr) 48px; column-gap: 6px; }
  .site-footer .footer-disclosures { grid-template-columns: minmax(0, 1fr); }
}

/* CJ commerce: mobile customers must be able to favorite every product card. */
@media (max-width: 900px) {
  .product-card-actions { grid-template-columns: minmax(0, 1fr) 40px !important; }
  .product-card-actions .icon-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
  }
}

/* Product details can be favorited even before CJ has filled the SKU. */
.detail-favorite-row { display: flex; justify-content: flex-end; margin-bottom: 4px; }
.detail-favorite-row .icon-button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }

/* CJ real-time SKU options are progressively loaded inside the formal product detail. */
.formal-live-options { margin: 12px 0 18px; min-width: 0; }
.formal-live-options > p { margin: 0 0 8px; color: var(--text-muted, #58657a); }
.formal-live-variants { display: grid; gap: 8px; max-height: 360px; overflow: auto; overscroll-behavior: contain; }
.formal-live-variants .realtime-variant { width: 100%; min-width: 0; text-align: start; }
.formal-live-variants .realtime-variant.active { outline: 2px solid #2563eb; outline-offset: -2px; }

/* ARVONELIA narrow-card action containment.
   Two 4/5-character translated action labels cannot share one row inside a
   2-column phone product card next to the 40px wishlist target. Keep both
   purchase actions readable and tappable, without clipping or overlay. */
@media (max-width: 767px) {
  .product-card-actions .product-card-cta.has-buy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 5px;
    width: 100%;
    min-width: 0;
  }
  .product-card-actions .product-card-cta.has-buy .btn-primary-soft,
  .product-card-actions .product-card-cta.has-buy .btn-buy-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 40px;
    padding-inline: 4px !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    text-align: center;
    line-height: 1.25;
  }
}
