/* ==========================================================================
   AURENQO UI REFRESH V1 — restrained commercial storefront
   Goal: fewer decorative effects, readable mobile typography, tighter rhythm,
   calmer actions and denser product browsing. Business logic is untouched.
   ========================================================================== */

:root {
  --future-blue: #506577;
  --future-cobalt: #405466;
  --future-cyan: #9bb2bd;
  --future-violet: #6d7888;
  --commerce-orange: #a96a4f;
  --commerce-gold: #c6a36d;
  --commerce-coral: #b45e4b;
  --brand: #506577;
  --brand-dark: #344858;
  --brand-pale: #f2f5f7;
  --accent: #a96a4f;
  --accent-pale: #f7f0ec;
  --canvas: #f7f8fa;
  --ink: #1f2933;
  --ink-soft: #667085;
  --line: #e2e6ea;
  --radius: 14px;
  --radius-lg: 20px;
}

body {
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.section { padding-block: 48px; }
.section-muted { background: #f7f8fa; }
.section-heading { margin-bottom: 18px; gap: 16px; }
.section-heading h2 { color: #202a33; letter-spacing: -.025em; }
.section-heading > a, .text-button, .detail-category { color: #506577; }

/* shell / search */
.utility-bar { background: #f8fafb; color: #667085; }
.utility-controls select {
  min-height: 38px;
  border: 1px solid #e1e6ea;
  border-radius: 10px;
  background: #fff;
  font-size: .86rem;
  padding-inline: 9px 24px;
}
.header-main { background: #fff; }
.global-search,
.hero-search {
  border: 1px solid #dfe4e8;
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}
.global-search button,
.hero-search button,
body[data-page="home"] .hero-search button {
  border: 0;
  background: #4c6070;
  color: #fff;
  box-shadow: none;
}
.ai-search-label { color: #506577; }
.hero-section { background: #f4f6f8; }
.hero-section::before,
.ai-picks-section::before,
.page-hero::after { display: none; }
.hero-image {
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(28, 43, 54, .14);
}
.hero-image::after { background: linear-gradient(180deg, transparent 68%, rgba(20,31,40,.18)); }
.hero-signal {
  border-color: rgba(255,255,255,.42);
  background: rgba(31,47,58,.74);
  box-shadow: 0 8px 22px rgba(20,31,40,.14);
}

/* homepage warehouse entry */
.partner-vip-cta {
  border: 1px solid #d9e0e5;
  border-radius: 14px;
  background: #fff;
  color: #253541;
  box-shadow: 0 6px 18px rgba(31,41,51,.06);
}
.partner-vip-cta:hover,
.partner-vip-cta:focus-visible {
  transform: none;
  border-color: #b9c5cd;
  box-shadow: 0 8px 22px rgba(31,41,51,.08);
}
.partner-vip-cta-mark {
  border-radius: 10px;
  background: #edf2f4;
  color: #425a6b;
}
.partner-vip-cta-copy em { color: #71808c; }
.partner-vip-cta-arrow { color: #71808c; }

/* cards: quiet, readable, dense */
.category-card,
.product-card,
.filters-panel,
.cart-item,
.order-card,
.checkout-section,
.simple-card {
  border-color: #e2e6ea;
  background: #fff;
  box-shadow: none;
}
.product-card {
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(31,41,51,.045);
}
.product-card::before { display: none; }
.product-card:hover {
  transform: translateY(-1px);
  border-color: #d5dbe0;
  box-shadow: 0 8px 22px rgba(31,41,51,.07);
}
.product-media {
  aspect-ratio: 1.22 / 1;
  background-color: #f4f5f6;
}
.product-card-body { padding: 14px; }

/* Remove the low-value "Quick discovery / ★0" strip from cards. */
.product-card-meta { display: none !important; }

.product-card h3 {
  min-height: 2.75em;
  margin: 4px 0 8px;
  color: #26313a;
  font-size: 1rem;
  line-height: 1.38;
  font-weight: 700;
}
.price-row strong,
.detail-price strong {
  color: #b05d49;
  font-weight: 800;
}
.price-row strong { font-size: 1.28rem; }
.stock-line,
.inventory-status-line {
  margin: 8px 0 5px;
  font-size: .8rem;
}
.delivery-line {
  min-height: 0;
  margin: 7px 0 10px;
  color: #667085;
  font-size: .82rem;
  line-height: 1.4;
}
.product-sku {
  margin: 7px 0 5px;
  color: #667085;
  font-size: .78rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.local-delivery-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin: 8px 0 10px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #4f6b61 !important;
  font-size: .82rem !important;
  font-weight: 700;
  box-shadow: none !important;
}

/* If a verified local-delivery fact exists, don't repeat a generic delivery estimate. */
.product-card-body:has(.local-delivery-badge) .delivery-line { display: none; }

/* Product actions: deliberately low contrast and unfilled. */
.product-card-cta { gap: 7px; }
.product-card-cta .btn-primary-soft,
.product-card-cta .btn-buy-now {
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid #cfd6dc !important;
  background: #fff !important;
  color: #344454 !important;
  box-shadow: none !important;
  font-size: .86rem;
  font-weight: 750;
}
.product-card-cta .btn-buy-now {
  border-color: #aeb9c2 !important;
  background: #f7f9fa !important;
  color: #263746 !important;
}
.product-card-cta .btn-primary-soft:hover,
.product-card-cta .btn-buy-now:hover {
  transform: none;
  filter: none;
  background: #f1f4f6 !important;
  border-color: #98a6b1 !important;
}
.icon-button {
  border-radius: 10px;
  border-color: #d6dce1;
  color: #52616d;
}

/* controls / buttons */
.btn-primary,
.btn-secondary,
.btn-primary-soft,
.btn-future {
  border-radius: 10px;
  box-shadow: none;
}
.btn-primary {
  background: #4c6070;
  color: #fff;
}
.btn-primary:hover {
  background: #3f5363;
  transform: none;
  box-shadow: none;
}
.btn-secondary,
.btn-primary-soft {
  border: 1px solid #cfd6dc;
  background: #fff;
  color: #344454;
}
.btn-secondary:hover,
.btn-primary-soft:hover {
  background: #f2f4f6;
  color: #263746;
  transform: none;
}
.btn-future {
  border-color: #bdc8d0;
  background: #f5f7f8;
  color: #344454;
}
.place-order {
  background: #4c6070;
  box-shadow: none;
}
.place-order:hover { background: #3f5363; box-shadow: none; }
.pagination button.active {
  border-color: #506577;
  background: #506577;
}
.discount-badge,
.realtime-tag {
  background: #efe8de;
  color: #6f5734;
  box-shadow: none;
}

/* shop / detail */
.page-hero { background: #f5f7f8; }
.filters-panel { box-shadow: none; }
.shop-search input:focus,
.sort-control select:focus,
.field input:focus,
.field select:focus,
.paste-panel textarea:focus {
  border-color: #aebbc4;
  box-shadow: 0 0 0 3px rgba(80,101,119,.08);
}
.option-chip.active,
.address-mode-switch button.active,
.delivery-options label:has(input:checked) {
  border-color: #9fafba;
  background: #f3f6f7;
  color: #344858;
  box-shadow: none;
}
.detail-gallery { box-shadow: none; }
.smart-parse-label > span,
.checkout-heading > span,
.contact-card > span,
.service-grid article > span {
  background: #edf2f4;
  color: #506577;
  box-shadow: none;
}

/* share + footer */
.partner-share-slot { margin-block: 0 10px; }
.partner-share-button {
  padding: 8px 13px;
  border-color: #d4dce2;
  border-radius: 10px;
  background: #fff;
  color: #506577;
  box-shadow: none;
}
.partner-share-button:hover,
.partner-share-button:focus-visible {
  transform: none;
  border-color: #b9c5cd;
  box-shadow: none;
}
.site-footer {
  padding-block: 42px 22px;
  background: #18222d;
  color: #d8dee4;
}
.footer-grid { gap: 22px; }
.footer-grid h2 {
  margin-bottom: 10px;
  font-size: 1rem;
}
.footer-grid > div:not(.footer-brand) > a {
  margin-bottom: 7px;
  color: #b9c2ca;
  font-size: .9rem;
}
.footer-brand p,
.newsletter p {
  margin-top: 12px;
  color: #aeb8c0;
  font-size: .9rem;
}
.footer-legal {
  margin-top: 24px;
  padding-top: 16px;
  font-size: .8rem;
  color: #929da6;
}

/* mobile */
@media (max-width: 767px) {
  .utility-bar { padding-block: 6px; }
  .utility-bar .utility-controls select {
    min-height: 40px;
    font-size: .88rem;
  }
  .mobile-topbar-title { font-size: 1.05rem; }

  .section { padding-block: 28px; }
  #all-products.section { padding-top: 22px; padding-bottom: 30px; }
  .section-heading { margin-bottom: 14px; }
  .section-heading h2 { font-size: 1.68rem; }
  .section-heading > a { font-size: .95rem; }

  body[data-page="home"] .hero-grid { padding-block: 8px 10px; }
  body[data-page="home"] .hero-image {
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(28,43,54,.12);
  }
  body[data-page="home"] .hero-visual .hero-search-slot { margin-top: 8px; }
  body[data-page="home"] .hero-search,
  .global-search {
    min-height: 52px;
    border-radius: 12px;
  }
  body[data-page="home"] .hero-search .ai-search-label { min-height: 52px; }
  body[data-page="home"] .hero-search input,
  .global-search input { font-size: 1rem; }
  body[data-page="home"] .hero-search button {
    width: 50px;
    min-height: 52px;
    border-radius: 0 11px 11px 0;
  }

  .hero-visual .partner-cta-hero {
    width: 45%;
    padding: 12px;
    border-radius: 14px;
    border-color: rgba(255,255,255,.38);
    background: rgba(31,47,58,.84);
    box-shadow: 0 8px 22px rgba(20,31,40,.18);
    backdrop-filter: blur(6px);
  }
  .partner-cta-hero .partner-cta-hero-badge {
    border-radius: 8px;
    background: #dce5e9;
    color: #344858;
  }
  .partner-cta-hero .partner-cta-hero-sub {
    color: #d2dbe0;
    font-size: .7rem;
  }

  .product-grid,
  .shop-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .product-card { border-radius: 13px; }
  .product-media { aspect-ratio: 1.24 / 1; }
  .product-card-body { padding: 10px 11px 11px; }
  .product-card h3 {
    min-height: 2.8em;
    margin: 4px 0 7px;
    font-size: 1rem;
    line-height: 1.4;
  }
  .price-row strong { font-size: 1.34rem; }
  .stock-line,
  .inventory-status-line,
  .delivery-line,
  .local-delivery-badge {
    font-size: .81rem !important;
  }
  .delivery-line,
  .local-delivery-badge { margin-block: 7px 9px !important; }
  .product-card-cta { gap: 6px; }
  .product-card-cta .btn-primary-soft,
  .product-card-cta .btn-buy-now {
    min-height: 46px;
    padding-inline: 5px;
    border-radius: 9px;
    font-size: .84rem;
  }

  .filters-panel { padding: 14px; }
  .shop-toolbar { gap: 9px; margin-bottom: 14px; }
  .shop-search input,
  .sort-control select {
    min-height: 48px;
    font-size: .95rem;
  }

  .service-section { padding-block: 26px; }
  .service-grid { gap: 14px; }
  .service-grid article > span {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }
  .service-grid h2 { font-size: 1rem; }
  .service-grid p { font-size: .9rem; }

  .site-footer {
    padding-block: 30px calc(82px + env(safe-area-inset-bottom, 0px));
  }
  .footer-grid { gap: 18px; }
  .footer-grid h2 { font-size: 1rem; }
  .footer-grid > div:not(.footer-brand) > a { font-size: .9rem; }
  .brand-logo-footer { height: 48px; max-width: 180px; }
  .footer-legal { gap: 10px; margin-top: 18px; }

  .mobile-bottom-nav { height: 68px; }
  .mobile-bottom-nav a {
    gap: 3px;
    font-size: .78rem;
  }
  .mobile-bottom-nav a > span:first-child { font-size: 1.35rem; }
  .mobile-bottom-nav b { font-size: .68rem; }

  .partner-share-slot { margin-block: 0 6px; }
  .partner-share-button { min-height: 42px; font-size: .88rem; }

  .warehouse-card { border-radius: 14px; box-shadow: none; }
  .warehouse-card p { font-size: .92rem; }
}

@media (max-width: 390px) {
  .product-card h3 { font-size: .96rem; }
  .price-row strong { font-size: 1.26rem; }
  .product-card-cta .btn-primary-soft,
  .product-card-cta .btn-buy-now { font-size: .79rem; }
}


/* Make the homepage share action part of the catalogue transition rather than
   a large isolated white band. */
body[data-page="home"] .partner-share-slot {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 8px 12px 0;
  background: #f7f8fa;
}
body[data-page="home"] .partner-share-slot .partner-share-bar {
  width: min(100%, var(--container));
  margin-inline: auto;
}
@media (max-width: 767px) {
  body[data-page="home"] .partner-share-button {
    min-height: 38px;
    padding: 6px 11px;
    font-size: .84rem;
  }
}
