/* Shared storefront palette. Gold is decorative; purchase actions use navy. */
:root,
body.retail-theme {
  --shop-cream: #f8f5ef;
  --shop-white: #ffffff;
  --shop-navy: #0e2f5a;
  --shop-navy-hover: #082343;
  --shop-gold: #b49552;
  --shop-ink: #292623;
  --shop-muted: #665f57;
  --shop-line: #e4ddd1;
  --shop-control: #81796c;
  --shop-green: #1f5a46;
  --shop-green-soft: #eaf3ed;
  --retail-page: var(--shop-cream);
  --retail-surface: var(--shop-white);
  --retail-navy: var(--shop-navy);
  --retail-ink: var(--shop-ink);
  --retail-muted: var(--shop-muted);
  --retail-copper: var(--shop-navy);
  --retail-copper-hover: var(--shop-navy-hover);
  --retail-tint: var(--shop-cream);
  --retail-line: var(--shop-line);
  --retail-control: var(--shop-control);
  --retail-gold: var(--shop-gold);
  --retail-gold-light: var(--shop-cream);
  --retail-green: var(--shop-green);
  --retail-green-bg: var(--shop-green-soft);
  --brand-action: var(--shop-navy);
  --brand-action-hover: var(--shop-navy-hover);
  --sales-green: var(--shop-navy);
  --sales-soft: var(--shop-cream);
  --ink: var(--shop-ink);
  --text: var(--shop-ink);
  --navy: var(--shop-navy);
  --cream: var(--shop-cream);
  --paper: var(--shop-white);
  --ivory: var(--shop-cream);
  --warm: var(--shop-cream);
  --gold: var(--shop-gold);
  --muted: var(--shop-muted);
  --line: var(--shop-line);
  --buy: var(--shop-navy);
}

body.retail-theme,
body.product-detail-page {
  background: var(--shop-cream);
  color: var(--shop-ink);
}
.retail-theme :is(.catalog-card, .sales-product, .sales-product-photo, .home-categories, .shop-header),
#shop-coffrets .catalog-card.sales-product,
.product-detail-page :is(header, .hero, .product-purchase) {
  background-color: var(--shop-white);
  border-color: var(--shop-line);
}
.retail-theme :is(h1, h2, h3, .product-name, .sales-price),
#shop-coffrets .sales-price,
.product-detail-page :is(h1, h2, .brand, .price, .purchase-total strong) {
  color: var(--shop-navy);
}
.retail-theme :is(.sales-product-summary, .sales-content-select, .sales-box-count-label),
#shop-coffrets :is(.sales-product-summary, .sales-box-count-label),
.product-detail-page :is(.description, .purchase-intro, .purchase-perks, .purchase-same, .eyebrow) {
  color: var(--shop-muted);
}

/* A single primary treatment from the product card through checkout. */
.retail-theme :is(.sales-add, .primary, .btn-primary, .detail-add, .commerce-primary),
.retail-theme .shop-header .cart-button,
.retail-theme .sales-cart-bar [data-sales-checkout],
.retail-theme #commerce-dialog :is(.primary, .checkout-next, #commerce-pay),
.retail-theme #purchase-dock :is(.primary, .dock-add, .purchase-add-fallback),
.retail-theme #panier .native-pay,
.product-detail-page .choose.purchase-add {
  background: var(--shop-navy);
  border-color: var(--shop-navy);
  color: var(--shop-white);
}
.retail-theme :is(.sales-add, .primary, .btn-primary, .detail-add, .commerce-primary):not(:disabled):hover,
.retail-theme .sales-cart-bar [data-sales-checkout]:hover,
.retail-theme #commerce-dialog :is(.primary, .checkout-next, #commerce-pay):not(:disabled):hover,
.retail-theme #purchase-dock :is(.primary, .dock-add):not(:disabled):hover,
.product-detail-page .choose.purchase-add:not(:disabled):hover {
  background: var(--shop-navy-hover);
  border-color: var(--shop-navy-hover);
}
.retail-theme :is(.sales-add, .primary, .commerce-primary):disabled,
.retail-theme #commerce-dialog :is(.primary, .checkout-next, #commerce-pay):disabled,
.product-detail-page .choose.purchase-add:disabled {
  background: #e8e2d9;
  border-color: #c9c1b4;
  color: var(--shop-muted);
}

/* Personal composition and navigation remain secondary to adding to basket. */
.retail-theme .sales-product-body > .sales-personal,
.retail-theme .sales-different,
.retail-theme :is(.btn-outline, .commerce-secondary, .dock-cart),
#shop-entry .shop-compose-link,
.product-detail-page .product-heading .purchase-custom,
.product-detail-page .purchase-cart {
  background: var(--shop-white);
  color: var(--shop-navy);
  border-color: var(--shop-navy);
}
.retail-theme .sales-product-body > .sales-personal:not(:disabled):hover,
.retail-theme .sales-different:not(:disabled):hover,
#shop-entry .shop-compose-link:hover,
.product-detail-page :is(.product-heading .purchase-custom, .purchase-cart):hover {
  background: var(--shop-cream);
  border-color: var(--shop-navy);
  color: var(--shop-navy);
}
.retail-theme .cart-recommendation-grid :is(strong, span),
.product-detail-page .back {
  color: var(--shop-navy);
}
/* The discovery stylesheet marks this link color important. */
.retail-theme .product-sheet-link {
  color: var(--shop-navy) !important;
}
.retail-theme .cart-recommendation-grid button {
  background: var(--shop-white);
  border-color: var(--shop-navy);
  color: var(--shop-navy);
}

/* Clear selection cues retain contrast; assortment illustrations keep their colors. */
#shop-coffrets :is(.shop-main-filters, .shop-coffret-filters) button[aria-pressed=true],
.product-detail-page .purchase-assortments input:checked + span {
  background: var(--shop-navy);
  border-color: var(--shop-navy);
  color: var(--shop-white);
}
#shop-coffrets .shop-coffret-filters,
#shop-coffrets .shop-pro-invite,
.retail-theme .home-gift-finder,
.retail-theme .shop-hours-strip,
.product-detail-page footer {
  background: var(--shop-cream);
}
.retail-theme .home-gift-finder :is(h2, button),
.retail-theme .shop-hours-intro h2 {
  color: var(--shop-navy);
}
.retail-theme .home-gift-finder button {
  border-color: var(--shop-control);
  background-color: var(--shop-white);
}
.retail-theme :is(.sales-stepper button, .sales-stepper input),
.product-detail-page :is(.purchase-stepper button, .purchase-stepper input, .purchase-field select) {
  color: var(--shop-navy);
}
.product-detail-page .thumbs button[aria-pressed=true] {
  border-color: var(--shop-navy);
}
.product-detail-page .product-cart-link b {
  background: var(--shop-navy);
  color: var(--shop-white);
}

/* Green communicates stock, successful actions and basket status. */
.retail-theme .stock-badge.stock-in,
#shop-coffrets .stock-badge.stock-in,
.product-detail-page .stock.in,
.retail-theme .sales-in-basket,
.product-detail-page .sales-in-basket {
  color: var(--shop-green);
  background: var(--shop-green-soft);
  border-color: #d1e3d7;
}
.retail-theme .stock-in .stock-dot {
  background: var(--shop-green);
}
/* Cream surfaces and small gold rules carry the gift presentation. */
.retail-theme .rule {
  background: var(--shop-gold);
}
#accueil .home-hero-primary {
  background: var(--shop-cream);
  border-color: var(--shop-gold);
  color: var(--shop-navy);
}
#accueil .home-hero-primary:hover {
  background: #ece3d1;
  border-color: var(--shop-gold);
}
#accueil .home-hero-copy .home-overline,
#accueil .home-discovery-heading .home-overline,
#accueil .home-photo-card .home-overline {
  color: var(--shop-cream);
}
.retail-theme :is(.home-overline, .home-section-intro .home-overline),
#accueil .home-section-intro .home-overline {
  color: var(--shop-navy);
}
.retail-theme .shop-footer {
  background: var(--shop-navy);
}

/* The same palette continues into the basket without changing its layout. */
.retail-theme #commerce-dialog,
.retail-theme #panier.preview-screen {
  background: var(--shop-cream);
  color: var(--shop-ink);
}
.retail-theme #commerce-dialog :is(.commerce-head, .checkout-block, .onepage-order, .cart-line, .cart-dock),
.retail-theme #commerce-dialog #checkout-order-summary {
  background: var(--shop-white);
  border-color: var(--shop-line);
}
.retail-theme #commerce-dialog #checkout-order-summary {
  border-top-color: var(--shop-gold);
}
.retail-theme #commerce-dialog :is(#commerce-order-totals, .commerce-pickup),
.retail-theme #commerce-dialog #checkout-order-summary .commerce-total-row.final {
  background: var(--shop-cream);
  border-color: var(--shop-line);
  color: var(--shop-navy);
}
.retail-theme #commerce-dialog :is(.commerce-total-row.final strong, .cart-dock strong) {
  color: var(--shop-navy);
}
.retail-theme #commerce-dialog #checkout-order-summary #free-shipping-progress[data-complete=true] {
  background: var(--shop-green-soft);
  color: var(--shop-green);
  border-color: #d1e3d7;
}
.retail-theme :is(button, a, summary, input, select, textarea):focus-visible,
.product-detail-page :is(button, a, input, select):focus-visible {
  outline-color: var(--shop-navy);
}
#accueil .home-hero-actions :focus-visible {
  outline-color: var(--shop-white);
}
