/* ARVONELIA VI system — shared tokens and storefront component layer. */
:root {
  --brand: #0E2747;
  --brand-dark: #17385B;
  --brand-pale: #EAF0F5;
  --accent: #D6A546;
  --accent-pale: #F8EACD;
  --canvas: #F8F7F3;
  --ink: #15283F;
  --ink-soft: #526274;
  --line: #DDE3E9;
  --warning: #916011;
  --ui-focus: #276CF1;
  --ui-danger: #BC3445;
  --control-radius: 10px;
  --card-radius: 16px;
  --card-shadow: 0 6px 20px rgba(14, 39, 71, .08);
  --font-ui: Inter, "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-ui); color: var(--ink); background: #fff; }
button, input, select, textarea { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--ui-focus); outline-offset: 3px;
}

/* Keep the existing shell geometry and business states; normalize its finish. */
.utility-bar { background: var(--brand); color: #fff; }
.utility-bar .utility-controls select { border-radius: var(--control-radius); }
.site-header, .mobile-topbar { background-color: #fff; }
.brand-logo-link, .mobile-topbar-brand { color: var(--brand); }
.arvonelia-wordmark { color: inherit; letter-spacing: .11em; font-weight: 800; }
.brand-logo-link .brand-logo { display:block; width:auto; height:34px; max-width:220px; }
.mobile-topbar-brand .brand-logo { display:block; width:auto; height:29px; max-width:142px; }
.ui-icon { display:inline-block; width:22px; height:22px; flex:0 0 auto; vertical-align:middle; }
.header-actions .ui-icon { width:19px; height:19px; }
.global-search button .ui-icon { width: 22px; height: 22px; filter: brightness(0) invert(1); }
.ai-search-label > .ui-icon { width: 18px; height: 18px; }
.nav-toggle > .ui-icon, .mobile-topbar-back > .ui-icon, .mobile-topbar-forward > .ui-icon { width: 23px; height: 23px; }
.shell-install-icon .ui-icon, .payment-status-icon .ui-icon { width: 21px; height: 21px; }
.utility-bar .language-globe { filter: brightness(0) invert(1); display: inline-block; }
.mobile-bottom-nav .ui-icon { width:22px; height:22px; }
.primary-nav a[aria-current="page"], .header-actions a:hover,
.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: var(--brand);
}
.global-search, .hero-search, .filters-panel, .category-card, .product-card,
.cart-item, .order-card, .checkout-section, .simple-card, .warehouse-card {
  border-color: var(--line); border-radius: var(--card-radius); box-shadow: var(--card-shadow);
}
.global-search input, .hero-search input, input.form-control, select.form-select,
.form-control, .form-select, textarea { border-radius: var(--control-radius); }
button:not(.nav-toggle):not(.mobile-topbar-back):not(.mobile-topbar-forward):not(.btn-link),
.btn, .button, input[type="submit"] {
  border-radius: var(--control-radius);
}
.btn-primary, .button-primary, .global-search button, .hero-search button,
body[data-page="home"] .hero-search button {
  background: var(--brand); border-color: var(--brand); color: #fff;
}
.btn-primary:hover, .button-primary:hover, .global-search button:hover, .hero-search button:hover {
  background: var(--brand-dark); border-color: var(--brand-dark);
}
.btn-secondary, .button-secondary { background: #fff; border: 1px solid var(--brand); color: var(--brand); }
.btn-accent, .badge-accent { background: var(--accent); color: var(--brand); }
.btn-danger, .button-danger { background: #fff; border: 1px solid var(--ui-danger); color: var(--ui-danger); }
.auth-card, .auth-panel, .account-entry-card { border-color:var(--line); border-radius:var(--card-radius); box-shadow:var(--card-shadow); }
.auth-card .card, .auth-panel .card, .account-entry-card .card { border:0; box-shadow:none; }
.form-control:focus, .form-select:focus { border-color:var(--brand); box-shadow:0 0 0 .2rem rgba(14,39,71,.15); }
.single-product .btn, .product-detail .btn, .checkout-actions .btn, .cart-actions .btn { min-height:44px; }
.product-card button[aria-label*="favorite"], .product-card button[aria-label*="收藏"] { min-width:44px; min-height:44px; }
.aurenqo-support-button { background:var(--brand); box-shadow:0 8px 22px rgba(14,39,71,.26); }
.aurenqo-support-head { background:var(--brand); }
.aurenqo-support { inset-block-end:calc(var(--shell-tabbar-h, 0px) + var(--shell-safe-bottom, 0px) + 18px); }
.mobile-bottom-nav { z-index:1100; }
.aurenqo-support { z-index:1110; }
.cart-badge, .mobile-bottom-nav b, [data-shopping-badge] { background:var(--ui-danger); }
.price, .product-price, .detail-price { color: var(--brand); }
.section-muted, .hero-section, body[data-page="home"] .partner-share-slot { background-color: var(--canvas); }
.mobile-bottom-nav { border-color: var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.mobile-bottom-nav a { min-height: 44px; }
.mobile-topbar .visually-hidden {
  position:fixed !important; width:1px !important; height:1px !important;
  padding:0 !important; margin:-1px !important; overflow:hidden !important;
  clip:rect(0,0,0,0) !important; white-space:nowrap !important; border:0 !important;
  inset:0 auto auto 0 !important; right:auto !important; left:0 !important;
  transform:none !important;
}
.support-chat-launcher, .customer-service-fab { inset-block-end: calc(82px + env(safe-area-inset-bottom, 0px)); }

/* Compact footer navigation: full policy and contact content stays available
   inside accessible native disclosures. */
.site-footer { padding-block: 30px 20px; }
.footer-grid {
  grid-template-columns: minmax(180px, .8fr) minmax(0, 2fr);
  gap: 16px 30px;
}
.footer-brand p { color: #d1d9e4; }
.site-footer .brand-light, .site-footer .arvonelia-wordmark { color: #f3f8fb; }
.footer-disclosures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 8px;
}
.footer-disclosure { min-width: 0; border: 1px solid rgba(214,165,70,.32); border-radius: 12px; background: rgba(255,255,255,.035); }
.footer-disclosure summary {
  position: relative;
  display: flex;
  min-height: 46px;
  align-items: center;
  padding: 10px 36px 10px 13px;
  color: #fff;
  cursor: pointer;
  font-size: .87rem;
  font-weight: 750;
  line-height: 1.35;
  list-style: none;
}
.footer-disclosure summary::-webkit-details-marker { display: none; }
.footer-disclosure summary::after { content: "+"; position: absolute; inset-inline-end: 13px; color: #e8c879; font-size: 1.25rem; font-weight: 500; }
.footer-disclosure[open] summary::after { content: "−"; }
.footer-disclosure summary:focus-visible { outline: 2px solid #e8c879; outline-offset: -3px; border-radius: 11px; }
.footer-disclosure-content { display: grid; gap: 8px; padding: 0 13px 14px; color: #e0e6ee; font-size: .84rem; line-height: 1.55; }
.footer-disclosure-content h2 { margin: 2px 0 0; color: #fff; font-size: .88rem; }
.footer-disclosure-content p { margin: 0; color: #e0e6ee; }
.footer-disclosure-content a { width: fit-content; max-width: 100%; color: #f1dca9; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 2px; }
.footer-disclosure-content .newsletter { padding: 0; }
.footer-disclosure-content .newsletter form { margin-top: 3px; }
.footer-disclosure-content .newsletter input { min-width: 0; }
.footer-attribution { padding-top: 8px; border-top: 1px solid rgba(255,255,255,.14); color: #d1d9e4; }
.footer-attribution a { display: inline; }
.footer-socials {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 3px;
}
.footer-socials a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  color: #eef2f7;
  font-size: .76rem;
  font-weight: 700;
  text-decoration: none;
}
.footer-socials a:hover, .footer-socials a:focus-visible { border-color: #e8c879; color: #fff; }
.footer-socials svg { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.footer-legal { color: #b6c2d2; }
.footer-legal > span:last-child:empty { display: none; }
.footer-legal { justify-content: flex-start; flex-wrap: wrap; margin-top: 16px; gap: 8px 20px; }

@media (max-width: 767px) {
  .site-footer { padding-block: 24px 18px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .footer-brand, .footer-disclosures, .footer-socials { grid-column: 1; }
  .footer-brand p { margin-top: 8px; font-size: .82rem; }
  .footer-disclosures { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .footer-disclosure summary { min-height: 44px; font-size: .84rem; }
  .footer-socials { gap: 6px; }
  .footer-socials a { min-height: 40px; gap: 5px; padding: 6px 9px; font-size: .7rem; }
  .footer-socials svg { width: 17px; height: 17px; }
  .footer-legal { margin-top: 11px; font-size: .72rem; }
}

@media (max-width: 900px) {
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
  .support-chat-launcher, .customer-service-fab { inset-inline-end: 12px; inset-block-end: calc(72px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 360px) {
  .site-container { padding-inline: 12px; }
  .mobile-topbar-actions a, .mobile-topbar-actions .nav-toggle { width: 42px; min-width: 42px; }
  .mobile-topbar-brand .brand-logo { max-width:94px; }
}
@media (min-width: 361px) and (max-width: 390px) {
  .mobile-topbar-brand .brand-logo { max-width:110px; }
}
@media (max-width: 480px) {
  .brand-logo-link .brand-logo { height:29px; max-width:174px; }
  .product-card, .cart-item, .order-card, .checkout-section { border-radius:12px; }
}

/* 2026-11-09: Official ARVONELIA / 爱沃家 identity lockups.
   Original three RGB PNG masters are retained untouched. These lightweight
   WebP derivatives integrate the dark navy metallic visual on the white UI. */
.site-header .header-main .brand-logo-link.arvonelia-brand-plate {
  display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center;
  width: 200px; max-width: 200px; height: 40px; min-width: 0;
  overflow: hidden; padding: 0; border-radius: 9px;
  background: #061326;
}
.site-header .header-main .brand-logo-link.arvonelia-brand-plate .brand-logo {
  display: block; width: 200px; max-width: 100%; height: auto; max-height: 40px;
  object-fit: contain;
}
.site-header .mobile-topbar .mobile-topbar-brand.arvonelia-brand-plate {
  align-items: center; justify-content: center; flex: 0 0 auto;
  width: 126px; max-width: 126px; height: 26px; min-height: 26px;
  padding: 0; border-radius: 7px; background: #061326; overflow: hidden;
}
.site-header .mobile-topbar .mobile-topbar-brand.arvonelia-brand-plate .brand-logo {
  display: block; width: 126px; max-width: none; height: auto; object-fit: contain;
}
.site-footer .brand-logo-link.arvonelia-footer-brand {
  display: inline-flex; align-items: center; overflow: hidden; padding: 0;
  background: #061326; border-radius: 10px; max-width: 248px;
}
.site-footer .arvonelia-footer-brand img { display: block; width: 248px; max-width: 100%; height: auto; }
@media (max-width: 390px) {
  .site-header .mobile-topbar .mobile-topbar-brand.arvonelia-brand-plate { width: 110px; max-width: 110px; height: 23px; min-height: 23px; }
  .site-header .mobile-topbar .mobile-topbar-brand.arvonelia-brand-plate .brand-logo { width: 110px; }
}
@media (max-width: 360px) {
  .site-header .mobile-topbar .mobile-topbar-brand.arvonelia-brand-plate { width: 98px; max-width: 98px; height: 21px; min-height: 21px; }
  .site-header .mobile-topbar .mobile-topbar-brand.arvonelia-brand-plate .brand-logo { width: 98px; }
}

/* Pictogram alignment: use actual Lucide SVG files without changing control handlers. */
.category-icon .ui-icon { width: 24px; height: 24px; }
.service-grid article > span .ui-icon { width: 30px; height: 30px; }
.country-mosaic-overlay em .ui-icon, .variant-dimension-change .ui-icon { width: 16px; height: 16px; vertical-align: middle; }
.local-delivery-badge .ui-icon, .shipping-note .ui-icon { width: 19px; height: 19px; vertical-align: middle; }
.empty-state > span .ui-icon { width: 34px; height: 34px; }
.payment-placeholder .ui-icon, .order-confirmation .ui-icon { width: 27px; height: 27px; }
.shop-search-button .ui-icon { width: 22px; height: 22px; }
.partner-share-icon .ui-icon { width: 19px; height: 19px; vertical-align: middle; }
.aurenqo-support-button .ui-icon { width: 26px; height: 26px; filter: brightness(0) invert(1); }
.order-item-placeholder .ui-icon { width: 28px; height: 28px; }

/* 2026-11-09 final readability: selected globe/cart semantics and dark-card contrast. */
.primary-nav a[href="local-warehouse.html"] .ui-icon { width: 18px; height: 18px; margin-inline-end: 6px; vertical-align: -3px; }
.country-mosaic-overlay em .ui-icon { width: 17px; height: 17px; vertical-align: -3px; filter: brightness(0) invert(1); }
.ai-search-label > img.ui-icon { filter: invert(34%) sepia(95%) saturate(2162%) hue-rotate(214deg) brightness(102%) contrast(98%); }

/* Notification bell alignment: unread badge must float above the icon, not
   become a second grid row. Applies to mobile and desktop shopping headers. */
.mobile-topbar-actions a[href="notifications.html"],
.header-actions a[href="notifications.html"] {
  position: relative;
}
.mobile-topbar-actions a[href="notifications.html"] > [data-shopping-badge],
.header-actions a[href="notifications.html"] > [data-shopping-badge] {
  position: absolute;
  inset-block-start: 2px;
  inset-inline-end: 2px;
  display: grid;
  place-items: center;
  width: auto;
  min-width: 18px;
  height: 18px;
  padding-inline: 4px;
  box-sizing: border-box;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  z-index: 1;
  pointer-events: none;
}
.mobile-topbar-actions [data-shopping-badge]:empty,
.header-actions [data-shopping-badge]:empty {
  display: none !important;
}
