/* LUPON global UI polish — consistent typography and gentle interface transitions. */
:root {
  --lupon-type-body: 16px;
  --lupon-type-reading: 15px;
  --lupon-type-ui: 14px;
  --lupon-type-meta: 12px;
  --lupon-ui-ease: cubic-bezier(.22, .68, .28, 1);
  --lupon-ui-fast: 160ms;
  --lupon-ui-base: 220ms;
}

html { font-size: 100%; }
body {
  font-size: var(--lupon-type-body);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Navigation and primary actions */
.topbar { font-size: 12px; line-height: 1.5; }
.nav-links, .customer-nav-links { font-size: var(--lupon-type-ui); }
.nav-links a, .customer-nav-links a { transition: color var(--lupon-ui-base) ease, opacity var(--lupon-ui-base) ease; }
.nav-cta, .button, .result-actions a, .result-actions button { font-size: var(--lupon-type-ui); }
.brand-name { font-size: 18px; }
.brand-sub { font-size: 11px; }
.nav-count { font-size: 11px; min-width: 20px; height: 20px; }

/* Readable hierarchy across all page families */
p { line-height: 1.72; }
.hero-copy, .cart-hero p, .customer-hero p, .listing-heading p,
.section-head > p, .story-copy > p, .contact-intro > p,
.customer-card p, .order-card p, .ticket-card p, .return-card p,
.faq-list details p, .result-message { font-size: var(--lupon-type-reading); }
h1 { line-height: 1.08; }
h2 { line-height: 1.16; }
h3 { line-height: 1.28; }
.eyebrow { font-size: 12px; letter-spacing: .14em; }
.text-link, .detail-btn, .product-info .detail-btn,
.footer-links a, .order-actions a, .reco-card-actions a,
.catalog-menu-card a { font-size: 13px; }

/* Labels and supporting copy: avoid the very small 8–10px text used in older layouts. */
.topbar, .brand-sub, .hero-note, .product-category, .product-tag, .product-badge,
.product-bottom, .catalog-meta, .sort-box, .filter-btn, .listing-heading-count,
.listing-catalog-shortcuts, .wishlist-category-label, .wishlist-list-summary,
.wishlist-results-bar, .cart-steps span, .cart-steps b, .cart-item-count,
.cart-line-category, .cart-line-variant, .cart-line-stock, .cart-line-price,
.cart-line-total, .cart-remove, .cart-continue-link, .cart-coupon-hint,
.cart-coupon-content > p, .cart-section-title p, .cart-subheading > span,
.cart-choice-main strong, .cart-choice-main small, .cart-choice-price,
.cart-payment-copy strong, .cart-payment-copy small, .cart-card-brands,
.cart-payment-info, .cart-summary-note, .cart-secure-note, .cart-terms,
.customer-note, .customer-status, .customer-form .field,
.customer-card small, .catalog-menu-card small, .customer-row p,
.customer-row small, .customer-row strong, .promo-card p, .status-badge,
.timeline li strong, .timeline li small, .timeline li time,
.reco-card p, .reco-card strong, .reco-card-actions button,
.field-optional, .return-field-hint, .returns-policy-footnote,
.support-status, .result-eyebrow, .result-order, .result-footnote {
  font-size: var(--lupon-type-meta);
}

/* Inputs and touch targets */
input, select, textarea, button { font-family: inherit; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  font-size: 14px;
}
label, .field label, .customer-form .field, .cart-form-grid .field {
  font-size: 13px;
}
button, [role="button"] { touch-action: manipulation; }
.button, .nav-cta, .filter-btn, .listing-category-tabs button,
.wishlist-category-tabs button, .cart-quantity button, .cart-remove,
.cart-payment-card, .cart-choice-card, .reco-card-actions button {
  -webkit-tap-highlight-color: transparent;
}

/* Make checkout information especially easy to scan. */
.cart-line-title { font-size: 19px; }
.cart-line-price, .cart-line-total { font-size: 14px; }
.cart-quantity strong { font-size: 13px; }
.cart-quantity button { width: 34px; height: 34px; }
.cart-remove { font-size: 12px; }
.cart-choice-main strong, .cart-payment-copy strong { font-size: 13px; }
.cart-choice-main small, .cart-payment-copy small, .cart-payment-info { font-size: 12px; }
.cart-card-brands { font-size: 10px; }
.cart-summary-panel, .cart-panel { line-height: 1.65; }

/* Quiet, consistent response to hover, focus, selection and opening/closing. */
a, button, input, select, textarea, summary,
.product-card, .listing-card, .catalog-product-card, .recommendation-card,
.reco-card, .catalog-menu-card, .customer-card, .promo-card,
.order-card, .ticket-card, .return-card, .cart-panel,
.cart-choice-card, .cart-payment-card, .wishlist-editorial-tile,
.catalog-entry-card, .campaign-card {
  transition-timing-function: var(--lupon-ui-ease);
}
.button, .nav-cta, .result-actions a, .result-actions button {
  transition: transform var(--lupon-ui-base) var(--lupon-ui-ease),
    background-color var(--lupon-ui-base) ease, box-shadow var(--lupon-ui-base) ease;
}
.button:hover, .nav-cta:hover, .result-actions a:hover, .result-actions button:hover {
  box-shadow: 0 8px 20px rgba(44, 54, 39, .12);
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid rgba(105, 118, 94, .72);
  outline-offset: 2px;
}
.cart-panel, .customer-panel, .cart-summary-panel {
  transition: box-shadow var(--lupon-ui-base) ease, border-color var(--lupon-ui-base) ease;
}
.cart-choice-card:hover, .cart-payment-card:hover { box-shadow: 0 8px 22px rgba(40, 47, 34, .07); }

/* Mobile navigation animates instead of abruptly appearing. */
@media (max-width: 1000px) {
  .customer-nav-links {
    display: flex;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity var(--lupon-ui-base) ease, transform var(--lupon-ui-base) var(--lupon-ui-ease), visibility var(--lupon-ui-base);
  }
  .customer-nav-links.open {
    display: flex;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

/* Gentle cross-page fallback. Native cross-document View Transitions are defined in motion.css. */
.lupon-page-enter main { animation: lupon-content-enter 280ms var(--lupon-ui-ease) both; }
.lupon-page-exit main { animation: lupon-content-exit 130ms ease both; }
@keyframes lupon-content-enter {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes lupon-content-exit {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-4px); }
}

@media (max-width: 650px) {
  :root { --lupon-type-body: 15.5px; --lupon-type-reading: 14px; --lupon-type-ui: 14px; --lupon-type-meta: 12px; }
  .topbar { font-size: 11px; }
  .eyebrow { font-size: 11px; }
  .cart-line-title { font-size: 17px; }
  .cart-panel { padding: 18px; }
  .cart-steps span, .cart-steps b { font-size: 11px; }
  .product-category, .product-tag, .product-badge { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .lupon-page-enter main, .lupon-page-exit main { animation: none !important; }
  .customer-nav-links { transition: none !important; }
}

/* Additional legacy page components brought onto the shared reading scale. */
.listing-hero p, .favorites-page-hero p, .wishlist-hero-copy > p,
.catalog-hero-copy p, .story-copy > p, .campaign-featured p,
.cart-hero p, .customer-hero p { font-size: var(--lupon-type-reading); }
.listing-heading p, .listing-card-body > p, .listing-empty p,
.listing-detail-content > p:not(.listing-detail-stock):not(.listing-detail-disclaimer),
.listing-notice, .listing-detail-stock, .listing-detail-specs dt,
.listing-detail-specs dd, .listing-variant-fields .field,
.listing-detail-support, .listing-detail-disclaimer,
.favorites-breadcrumb, .wishlist-hero-note, .wishlist-editorial-main figcaption span,
.wishlist-editorial-tile figcaption, .wishlist-benefit-grid small,
.wishlist-section-head p, .wishlist-list-summary strong, .wishlist-list-summary small,
.wishlist-category-label, .wishlist-category-tabs button, .wishlist-select-field,
.wishlist-select-field select, .wishlist-reset, .wishlist-advanced-filters summary,
.wishlist-advanced-filters summary small, .wishlist-advanced-grid label,
.wishlist-results-bar, .wishlist-clear, .catalog-breadcrumb,
.catalog-page-heading p, .catalog-page-count, .catalog-page-tools label,
.catalog-page-tools select, .catalog-page-tools input[type="search"],
.catalog-page-tools .reset-filters, .catalog-page-meta, .catalog-product-tag,
.catalog-product-body small, .catalog-product-body p, .catalog-product-price span,
.catalog-product-buttons button, .catalog-compare-panel strong,
.catalog-compare-panel span, .category-compare-chip, .catalog-help-strip span,
.catalog-dialog-info > p, .catalog-dialog-info dt, .catalog-dialog-info dd,
.catalog-dialog-info .field, .catalog-dialog-stock,
.catalog-review-section > div > p, .catalog-review-item p, .catalog-review-item small,
.catalog-review-form .field, .catalog-review-form p, .catalog-restock-form p,
.catalog-restock-form strong, .customer-card p, .customer-card small,
.customer-row p, .customer-row small, .promo-card p, .order-card p,
.ticket-card p, .return-card p, .reco-card p, .reco-card-actions button {
  font-size: 12px;
}
.listing-card-body > p, .catalog-product-body p, .catalog-hero-copy p,
.wishlist-hero-copy > p, .wishlist-section-head p { font-size: 13px; }
.listing-category-tabs button, .listing-filters > label:not(.listing-search):not(.listing-range),
.listing-filters select, .listing-search input, .listing-range,
.listing-range strong, .reset-filters, .listing-card-tag,
.listing-detail-button, .catalog-product-buttons button,
.wishlist-search input, .wishlist-advanced-grid select { font-size: 13px; }

@media (max-width: 650px) {
  .wishlist-hero-copy > p, .listing-hero p, .catalog-hero-copy p { font-size: 13px; }
  .favorites-page-shell .listing-card-body > p,
  .favorites-page-shell .listing-card-meta span,
  .favorites-page-shell .listing-detail-button { font-size: 11px; }
}
