[hidden]{display:none!important}
/* Storefront palette: all editable colors are supplied by the admin CMS. */
:root {
  --orange: var(--cms-primary, #252525);
  --paper: var(--cms-background, #f5f6f7);
  --brown: var(--cms-text, #202124);
  --muted: var(--cms-muted, #6b7280);
  --line: var(--cms-border, #e5e7eb);
  --surface: var(--cms-surface, #ffffff);
  --cream: color-mix(in srgb, var(--cms-background, #f5f6f7) 58%, var(--cms-surface, #ffffff));
}

html[data-custom-theme] body,
html[data-custom-theme] .app-shell {
  background: var(--cms-background);
  color: var(--cms-text);
}

/* Main surfaces and containers. */
html[data-custom-theme] :is(
  .soft-button, .search, .product-card, .bundle-card, .testimonial-card,
  .detail-list, .bottom-nav, .shop-dialog, .shop-dialog .dialog-head,
  .shop-dialog .dialog-footer, .shop-dialog .cart-line,
  .shop-dialog .variant-option, .shop-dialog .stepper,
  .shop-dialog .stepper input, .shop-dialog form input:not([type=checkbox]):not([type=radio]),
  .shop-dialog form select, .shop-dialog form textarea,
  .info-contents, .footer-socials>a:not(.footer-info-link),
  .review-arrows button, .bundle-arrows button, .carousel-arrow,
  .category-thumb, .card-quantity, .bundle-quantity, .card-manage
) {
  background-color: var(--cms-surface);
  border-color: var(--cms-border);
}

html[data-custom-theme] :is(
  .app-shell, .product-card, .bundle-card, .testimonial-card, .detail-list,
  .shop-dialog, .shop-dialog .dialog-head, .shop-dialog .dialog-footer,
  .shop-dialog .cart-line, .shop-dialog .variant-option, .shop-dialog .stepper,
  .shop-dialog form input:not([type=checkbox]):not([type=radio]),
  .shop-dialog form select, .shop-dialog form textarea, .search,
  .bottom-nav, .footer-socials>a:not(.footer-info-link), .review-arrows button,
  .bundle-arrows button, .carousel-arrow, .card-quantity, .bundle-quantity,
  .card-manage, .contact-symbol, .info-store-intro img
) {
  border-color: var(--cms-border);
}

html[data-custom-theme] :is(
  .shop-identity .brand-copy, .section-top h2, .section-heading h2,
  .product-info h3, .price, .detail-list summary, .testimonial-person h3,
  .footer-brand>span, .dialog-head h2, .cart-detail h3,
  .dialog-subtotal strong, .info-reading-section h3,
  .card-quantity output, .bundle-quantity output, .shop-dialog .cart-detail strong,
  .shop-dialog .variant-preview h3, .shop-dialog .dialog-subtotal strong
) {
  color: var(--cms-text);
}

html[data-custom-theme] :is(
  .shop-identity small, .product-info p, .product-meta, .price small,
  .section-description, .section-footnote, .testimonial-card blockquote p,
  .testimonial-person>div>span, .detail-content, .store-footer>p,
  .footer-bottom>small, .footer-contact>div>span, .footer-contact a,
  .footer-contact p, .footer-contact .contact-empty, .info-reading-copy,
  .info-store-intro p, .info-store-intro span, .shop-dialog .dialog-head p,
  .shop-dialog .dialog-subtotal, .shop-dialog .footer-hint,
  .shop-dialog .variant-description, .shop-dialog .quantity-row p,
  .shop-dialog .cart-detail p, .shop-dialog .cart-quantity>span,
  .shop-dialog .cart-help, .shop-dialog .checkout-summary small,
  .shop-dialog .optional, .shop-dialog .cart-empty p,
  .shop-dialog .admin-settings>p
) {
  color: var(--cms-muted);
}

/* Primary color is used consistently for action and selected states. */
html[data-custom-theme] :is(
  .cart-button b, .add-button:not(:disabled), .button.primary,
  .hero-slide .hero-slide-cta, .bundle-bottom>button:not(:disabled),
  .card-quantity button:not(:first-child):not(:disabled),
  .bundle-quantity button:not(:first-child):not(:disabled),
  .mobile-cart strong, .nav-order-icon, .shop-dialog .primary,
  .shop-dialog .stepper button:not(:disabled), .shop-dialog .dialog-footer .button,
  .swatch-preview button
) {
  background: var(--cms-primary);
  color: var(--cms-on-primary, #fff);
  border-color: var(--cms-primary);
}

html[data-custom-theme] :is(
  .brand-heart, .header-info i, .product-category, .section-top>button,
  .nav-item.active, .nav-order, .detail-list details[open] summary,
  .detail-link, .footer-info-link, .cart-total b, .cart-detail strong,
  .shop-dialog .modal-category, .shop-dialog .modal-save,
  .shop-dialog .cart-line>.remove, .shop-dialog .checkout-summary>summary span:after,
  .info-contents button, .info-reading-copy .detail-link, #info-dialog .info-footer>a
) {
  color: var(--cms-primary);
}

html[data-custom-theme] :is(
  .category.active .category-thumb, .nav-item.active,
  .shop-dialog .variant-option:has(input:checked),
  .shop-dialog .checkout-summary, .shop-dialog .checkout-note,
  .shop-dialog .info-note, .admin-note, .dummy-label
) {
  background: color-mix(in srgb, var(--cms-primary) 9%, var(--cms-surface));
  border-color: color-mix(in srgb, var(--cms-primary) 38%, var(--cms-border));
}

html[data-custom-theme] :is(
  .product-bottom, .bundle-bottom, .detail-list details+details,
  .footer-bottom, .store-footer, .shop-dialog .dialog-head,
  .shop-dialog .dialog-footer, .shop-dialog .quantity-row,
  .shop-dialog .cart-quantity, .shop-dialog .checkout-summary li,
  .info-contents, .info-reading-section
) {
  border-color: var(--cms-border);
}

html[data-custom-theme] :is(
  .tag, .shop-dialog .stepper button:first-child,
  .card-quantity button:first-child, .bundle-quantity button:first-child,
  .shop-dialog .dialog-footer .button .ui-arrow, .button .ui-arrow
) {
  background: color-mix(in srgb, var(--cms-primary) 12%, var(--cms-surface));
  color: var(--cms-primary);
}

html[data-custom-theme] :is(
  .search input, .shop-dialog form input:not([type=checkbox]):not([type=radio]),
  .shop-dialog form select, .shop-dialog form textarea,
  .shop-dialog .stepper input
) {
  color: var(--cms-text);
  caret-color: var(--cms-primary);
}

html[data-custom-theme] :is(.search input, .shop-dialog form input, .shop-dialog form textarea)::placeholder {
  color: var(--cms-muted);
  opacity: .78;
}

/* The hero keeps its image, while the editable primary color controls its overlay. */
html[data-custom-theme] :is(.hero-slide, .hero-slide-1, .hero-slide-2) {
  background: var(--cms-primary);
  border-color: var(--cms-primary);
  color: var(--cms-on-primary, #fff);
}
html[data-custom-theme] :is(.hero-slide:after, .hero-slide-1:after, .hero-slide-2:after) {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--cms-primary) 96%, #000 4%) 0%,
    color-mix(in srgb, var(--cms-primary) 91%, #000 9%) 34%,
    color-mix(in srgb, var(--cms-primary) 72%, transparent) 62%,
    transparent 100%
  );
}
html[data-custom-theme] :is(
  .hero-slide-copy, .hero-slide-copy h1, .hero-slide-copy h2,
  .hero-slide-copy p, .hero-slide .hero-label
) {
  color: var(--cms-on-primary, #fff);
}
html[data-custom-theme] .hero-slide .hero-label {
  background: color-mix(in srgb, var(--cms-on-primary, #fff) 12%, transparent);
  border-color: color-mix(in srgb, var(--cms-on-primary, #fff) 28%, transparent);
}
html[data-custom-theme] .hero-slide .hero-slide-cta {
  background: var(--cms-surface);
  color: var(--cms-text);
  border-color: var(--cms-surface);
}
html[data-custom-theme] .hero-slide .hero-slide-cta>span {
  background: color-mix(in srgb, var(--cms-primary) 12%, var(--cms-surface));
  color: var(--cms-primary);
}

/* A neutral CTA panel lets the selected palette remain the visual identity. */
html[data-custom-theme] .final-cta {
  background: var(--cms-surface);
  border-color: var(--cms-border);
  color: var(--cms-text);
}
html[data-custom-theme] .final-cta p { color: var(--cms-muted); }
html[data-custom-theme] .final-cta>a { color: var(--cms-primary); }

/* Dialogs, forms, checkout and information popup follow the same palette. */
html[data-custom-theme] .shop-dialog,
html[data-custom-theme] #info-dialog {
  background: var(--cms-surface);
  color: var(--cms-text);
  border-color: var(--cms-border);
}
html[data-custom-theme] .shop-dialog .dialog-head,
html[data-custom-theme] .shop-dialog .dialog-footer { background: var(--cms-surface); }
html[data-custom-theme] .shop-dialog .variant-option:has(input:checked) {
  box-shadow: inset 0 0 0 1px var(--cms-primary);
}
html[data-custom-theme] .shop-dialog .empty-bag,
html[data-custom-theme] .contact-symbol,
html[data-custom-theme] .testimonial-avatar {
  background: color-mix(in srgb, var(--cms-primary) 10%, var(--cms-surface));
  color: var(--cms-primary);
  border-color: var(--cms-border);
}
html[data-custom-theme] .footer-socials>a:not(.footer-info-link) {
  color: var(--cms-primary);
}

/* Focus states stay visible using the selected accent. */
html[data-custom-theme] :is(
  button, a, input, select, textarea, .testimonial-track
):focus-visible {
  outline-color: color-mix(in srgb, var(--cms-primary) 75%, transparent);
}

html[data-custom-theme] .toast {
  background: var(--cms-primary);
  color: var(--cms-on-primary, #fff);
}

.bundle-copy-note,.cart-package-note{font:400 12px/1.6 'DM Sans',sans-serif;color:var(--muted);white-space:pre-line}
.bundle-copy-note{margin:0 0 12px}
.cart-package-note{display:block;margin:5px 0}
.bundle-compare{display:block;font:400 12px/1.5 'DM Sans',sans-serif;color:var(--muted);margin-bottom:3px}

/* Remaining storefront labels and secondary controls. */
html[data-custom-theme] .soft-button { background: var(--cms-surface); }
html[data-custom-theme] :is(
  .po-note, .result-line, .result-line select, .catalog-end, .empty,
  .eyebrow, .section-kicker, .bundle-content>p, .bundle-content li,
  .testimonial-disclaimer, .testimonial-status, .review-status,
  .section-footnote, .footer-brand small, .footer-links,
  .footer-bottom>small, .card-variant-name, .bundle-bottom>b small,
  .bundle-cart-state>span, .footer-contact .contact-empty,
  .shop-dialog .cart-package-contents li, .shop-dialog .checkout-note,
  .shop-dialog .info-reading-copy, .info-reading-section h3>span,
  .info-reading-copy ol li:before, .info-reading-copy .detail-note
) { color: var(--cms-muted); }
html[data-custom-theme] :is(
  .po-note b, .section-kicker, .tiny-mark, .detail-number, .detail-plus,
  .reviews-section .section-heading svg, .quote-symbol, .footer-info-link
) { color: var(--cms-primary); }
html[data-custom-theme] :is(
  .product-photo, .bundle-pictures, .contact-symbol, .testimonial-avatar,
  .shop-dialog .variant-preview>img, .shop-dialog .cart-line>img,
  .shop-dialog .empty-bag, .shop-dialog .info-reading-copy ol li:before
) {
  background-color: color-mix(in srgb, var(--cms-primary) 7%, var(--cms-surface));
}
html[data-custom-theme] :is(
  .category-thumb, .card-favorite, .review-arrows button,
  .bundle-arrows button, .po-note button, .footer-socials>a:not(.footer-info-link),
  .shop-dialog .icon-button, .shop-dialog .cart-back
) {
  color: var(--cms-primary);
  border-color: var(--cms-border);
}
html[data-custom-theme] :is(.category.active .category-thumb, .card-favorite.is-saved) {
  color: var(--cms-primary);
  background: color-mix(in srgb, var(--cms-primary) 12%, var(--cms-surface));
  border-color: color-mix(in srgb, var(--cms-primary) 45%, var(--cms-border));
}
html[data-custom-theme] :is(.tag, .card-quantity button:not(:first-child):not(:disabled), .bundle-quantity button:not(:first-child):not(:disabled)) {
  background: var(--cms-primary);
  color: var(--cms-on-primary, #fff);
}
html[data-custom-theme] :is(.card-quantity button:first-child, .bundle-quantity button:first-child, .shop-dialog .stepper button:first-child) {
  background: var(--cms-surface);
  color: var(--cms-primary);
}
html[data-custom-theme] :is(.add-button:disabled, .bundle-bottom>button:disabled, .card-quantity button:disabled, .bundle-quantity button:disabled, .shop-dialog .stepper button:disabled) {
  background: color-mix(in srgb, var(--cms-muted) 12%, var(--cms-surface));
  color: var(--cms-muted);
  border-color: var(--cms-border);
}
html[data-custom-theme] .mobile-cart {
  background: var(--cms-surface);
  color: var(--cms-text);
  border-color: var(--cms-border);
}
html[data-custom-theme] .mobile-cart small { color: var(--cms-muted); }
html[data-custom-theme] .detail-list details[open] summary { color: var(--cms-primary); }
html[data-custom-theme] .shop-dialog .checkout-summary { border-color: var(--cms-border); }

html[data-custom-theme] :is(.card-favorite, .card-manage, .shop-dialog .icon-button, .shop-dialog .cart-back) {
  background: var(--cms-surface);
}
html[data-custom-theme] .shop-dialog form .stepper input {
  background: var(--cms-surface) !important;
  color: var(--cms-text) !important;
}
html[data-custom-theme] :is(.cart-button b, .nav-order-icon) {
  border-color: var(--cms-surface);
}
html[data-custom-theme] .shop-dialog .info-reading-section h3,
html[data-custom-theme] .shop-dialog .info-store-intro h3 {
  color: var(--cms-text);
}
html[data-custom-theme] .shop-dialog .info-contents button,
html[data-custom-theme] .shop-dialog .info-reading-copy .detail-link {
  color: var(--cms-primary);
}

/* --------------------------------------------------------------------------
   Complete storefront color coverage
   These rules intentionally change colors only; component geometry is untouched.
   -------------------------------------------------------------------------- */
html[data-custom-theme] {
  color-scheme: light;
  --cms-primary-soft: color-mix(in srgb, var(--cms-primary) 12%, var(--cms-surface));
  --cms-primary-subtle: color-mix(in srgb, var(--cms-primary) 7%, var(--cms-surface));
  --cms-primary-border: color-mix(in srgb, var(--cms-primary) 42%, var(--cms-border));
  --cms-muted-surface: color-mix(in srgb, var(--cms-muted) 10%, var(--cms-surface));
}

/* Page canvas, header, search and floating navigation. */
html[data-custom-theme] body,
html[data-custom-theme] .app-shell {
  background-color: var(--cms-background);
  color: var(--cms-text);
}
.app-header { background: var(--cms-background, var(--paper)); }
html[data-custom-theme] :is(.soft-button, .cart-button, .search,
  .bottom-nav, .mobile-cart) {
  background: var(--cms-surface);
  border-color: var(--cms-border);
}
html[data-custom-theme] .shop-identity small,
html[data-custom-theme] .search input::placeholder,
html[data-custom-theme] .search input {
  color: var(--cms-muted);
}
html[data-custom-theme] .cart-button b {
  background: var(--cms-primary);
  border-color: var(--cms-surface);
  color: var(--cms-on-primary);
}
html[data-custom-theme] .bottom-nav .nav-item {
  color: var(--cms-muted);
  background: transparent;
}
html[data-custom-theme] .bottom-nav .nav-item.active {
  color: var(--cms-primary);
  background: var(--cms-primary-soft);
}
html[data-custom-theme] .bottom-nav .nav-item svg {
  color: currentColor;
  stroke: currentColor;
}
html[data-custom-theme] .bottom-nav .nav-order {
  color: var(--cms-primary);
}
html[data-custom-theme] .bottom-nav .nav-order-icon {
  background: var(--cms-primary);
  border-color: var(--cms-surface);
  color: var(--cms-on-primary);
}
html[data-custom-theme] .mobile-cart {
  color: var(--cms-text);
  border-color: var(--cms-border);
}
html[data-custom-theme] .mobile-cart small { color: var(--cms-muted); }
html[data-custom-theme] .mobile-cart strong {
  background: var(--cms-primary);
  color: var(--cms-on-primary);
}
html[data-custom-theme] .mobile-cart strong .ui-arrow {
  background: var(--cms-primary-soft);
  color: var(--cms-primary);
}

/* Hero, its pagination dots, and the pre-order strip. */
html[data-custom-theme] .hero-carousel,
html[data-custom-theme] .hero-track,
html[data-custom-theme] .hero-slide {
  background-color: var(--cms-primary);
}
html[data-custom-theme] .hero-slide,
html[data-custom-theme] .hero-slide-1,
html[data-custom-theme] .hero-slide-2 {
  border-color: var(--cms-primary);
}
html[data-custom-theme] .hero-slide:after,
html[data-custom-theme] .hero-slide-1:after,
html[data-custom-theme] .hero-slide-2:after {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--cms-primary) 96%, #000 4%) 0%,
    color-mix(in srgb, var(--cms-primary) 90%, #000 10%) 34%,
    color-mix(in srgb, var(--cms-primary) 72%, transparent) 62%,
    transparent 100%
  );
}
html[data-custom-theme] .hero-slide-copy,
html[data-custom-theme] .hero-slide-copy :is(h1, h2, p),
html[data-custom-theme] .hero-slide .hero-label {
  color: var(--cms-on-primary);
}
html[data-custom-theme] .hero-slide .hero-label {
  background: color-mix(in srgb, var(--cms-on-primary) 12%, transparent);
  border-color: color-mix(in srgb, var(--cms-on-primary) 28%, transparent);
}
html[data-custom-theme] .hero-slide .hero-slide-cta {
  background: var(--cms-surface);
  border-color: var(--cms-surface);
  color: var(--cms-text);
}
html[data-custom-theme] .hero-slide .hero-slide-cta > span {
  background: var(--cms-primary-soft);
  color: var(--cms-primary);
}
html[data-custom-theme] .carousel-dots button > span {
  background: color-mix(in srgb, var(--cms-muted) 48%, var(--cms-surface));
}
html[data-custom-theme] .carousel-dots button.selected > span {
  background: var(--cms-primary);
}
html[data-custom-theme] .carousel-dots button:focus-visible {
  outline-color: var(--cms-primary);
}
html[data-custom-theme] .carousel-arrow {
  background: var(--cms-surface);
  border-color: var(--cms-border);
  color: var(--cms-primary);
}
html[data-custom-theme] .hero-position { color: var(--cms-muted); }
html[data-custom-theme] .po-note { color: var(--cms-muted); }
html[data-custom-theme] .po-note > b { color: var(--cms-primary); }
html[data-custom-theme] .po-note button {
  background: var(--cms-surface);
  border-color: var(--cms-border);
  color: var(--cms-primary);
}

/* Category chips, section headings, view-all link, and sort control. */
html[data-custom-theme] .category { color: var(--cms-muted); }
html[data-custom-theme] .category-thumb {
  background: var(--cms-surface);
  border-color: var(--cms-border);
}
html[data-custom-theme] .category.active { color: var(--cms-primary); }
html[data-custom-theme] .category.active .category-thumb {
  background: var(--cms-primary-soft);
  border-color: var(--cms-primary-border);
  color: var(--cms-primary);
}
html[data-custom-theme] .category-thumb.category-all { color: var(--cms-primary); }
html[data-custom-theme] .category-thumb img { border-color: var(--cms-border); }
html[data-custom-theme] .section-top h2,
html[data-custom-theme] .section-heading h2,
html[data-custom-theme] .catalog h2 { color: var(--cms-text); }
html[data-custom-theme] .section-top > button,
html[data-custom-theme] .section-top > button span,
html[data-custom-theme] .section-top > button svg {
  color: var(--cms-primary);
  stroke: currentColor;
}
html[data-custom-theme] .result-line,
html[data-custom-theme] .result-line > label {
  color: var(--cms-muted);
}
html[data-custom-theme] .result-line select {
  background: var(--cms-surface);
  color: var(--cms-text);
  border-color: var(--cms-border);
}
html[data-custom-theme] .result-line select:focus-visible {
  outline-color: var(--cms-primary);
}

/* Product cards, product labels, actions, favorites, and quantities. */
html[data-custom-theme] :is(.product-card, .bundle-card, .testimonial-card,
  .detail-list, .review-placeholder) {
  background: var(--cms-surface);
  border-color: var(--cms-border);
  color: var(--cms-text);
}
html[data-custom-theme] .product-photo,
html[data-custom-theme] .bundle-pictures,
html[data-custom-theme] .product-photo .tag,
html[data-custom-theme] .bundle-pictures > span {
  background-color: var(--cms-primary-subtle);
}
html[data-custom-theme] .product-category,
html[data-custom-theme] .product-info .product-category,
html[data-custom-theme] .product-category a {
  color: var(--cms-primary);
}
html[data-custom-theme] .product-info h3,
html[data-custom-theme] .product-bottom .price,
html[data-custom-theme] .price,
html[data-custom-theme] .product-info .price {
  color: var(--cms-text);
}
html[data-custom-theme] .product-info p,
html[data-custom-theme] .product-meta,
html[data-custom-theme] .price small,
html[data-custom-theme] .catalog-end,
html[data-custom-theme] .empty,
html[data-custom-theme] .card-variant-name {
  color: var(--cms-muted);
}
html[data-custom-theme] .tag,
html[data-custom-theme] .product-photo .tag {
  background: var(--cms-primary);
  color: var(--cms-on-primary);
}
html[data-custom-theme] .product-bottom,
html[data-custom-theme] .bundle-bottom {
  border-color: var(--cms-border);
}
html[data-custom-theme] .add-button:not(:disabled),
html[data-custom-theme] .bundle-bottom > button:not(:disabled),
html[data-custom-theme] .card-quantity button:not(:first-child):not(:disabled),
html[data-custom-theme] .bundle-quantity button:not(:first-child):not(:disabled) {
  background: var(--cms-primary);
  border-color: var(--cms-primary);
  color: var(--cms-on-primary);
}
html[data-custom-theme] :is(.add-button:disabled, .bundle-bottom > button:disabled,
  .card-quantity button:disabled, .bundle-quantity button:disabled) {
  background: var(--cms-muted-surface);
  border-color: var(--cms-border);
  color: var(--cms-muted);
}
html[data-custom-theme] :is(.card-quantity, .bundle-quantity, .card-manage) {
  background: var(--cms-surface);
  border-color: var(--cms-border);
  color: var(--cms-text);
}
html[data-custom-theme] :is(.card-quantity button:first-child,
  .bundle-quantity button:first-child) {
  background: var(--cms-primary-soft);
  color: var(--cms-primary);
}
html[data-custom-theme] :is(.card-quantity output, .bundle-quantity output) {
  color: var(--cms-text);
}
html[data-custom-theme] .card-manage,
html[data-custom-theme] .card-another-variant {
  color: var(--cms-primary);
}
html[data-custom-theme] .card-favorite {
  background: var(--cms-surface);
  border-color: var(--cms-border);
  color: var(--cms-primary);
}
html[data-custom-theme] .card-favorite.is-saved {
  background: var(--cms-primary-soft);
  border-color: var(--cms-primary-border);
  color: var(--cms-primary);
}
html[data-custom-theme] .card-favorite.is-saved svg {
  fill: color-mix(in srgb, var(--cms-primary) 18%, transparent);
  stroke: currentColor;
}
html[data-custom-theme] .in-cart { border-color: var(--cms-primary); }

/* Bundles, testimonials, information accordion, CTA, and footer. */
html[data-custom-theme] .bundle-pictures img,
html[data-custom-theme] .product-photo img { border-color: var(--cms-surface); }
html[data-custom-theme] .bundle-content h3,
html[data-custom-theme] .testimonial-person h3,
html[data-custom-theme] .review-placeholder > p,
html[data-custom-theme] .detail-list summary { color: var(--cms-text); }
html[data-custom-theme] :is(.bundle-copy-note, .bundle-content > p,
  .bundle-content li, .bundle-bottom > b small, .bundle-cart-state > span,
  .bundle-content .bundle-compare, .section-description, .section-footnote,
  .testimonial-disclaimer, .testimonial-person > div > span,
  .testimonial-card blockquote p, .review-status, .testimonial-status,
  .detail-content, .detail-note, .store-footer > p, .footer-brand small,
  .footer-links, .footer-bottom > small, .footer-contact > div > span,
  .footer-contact a, .footer-contact p, .footer-contact .contact-empty) {
  color: var(--cms-muted);
}
html[data-custom-theme] :is(.bundle-content li:before, .tiny-mark,
  .reviews-section .section-heading svg, .quote-symbol, .detail-number,
  .detail-plus, .detail-list details[open] summary, .detail-link,
  .footer-info-link, .footer-links a) {
  color: var(--cms-primary);
}
html[data-custom-theme] .bundle-quantity {
  background: var(--cms-surface);
  border-color: var(--cms-border);
}
html[data-custom-theme] .bundle-quantity button:first-child {
  background: var(--cms-primary-soft);
  color: var(--cms-primary);
}
html[data-custom-theme] .testimonial-avatar,
html[data-custom-theme] .contact-symbol {
  background: var(--cms-primary-soft);
  border-color: var(--cms-border);
  color: var(--cms-primary);
}
html[data-custom-theme] .dummy-label {
  background: var(--cms-primary-soft);
  border-color: var(--cms-primary-border);
  color: var(--cms-primary);
}
html[data-custom-theme] .detail-list details + details,
html[data-custom-theme] .footer-bottom,
html[data-custom-theme] .store-footer,
html[data-custom-theme] .info-contents,
html[data-custom-theme] .info-reading-section {
  border-color: var(--cms-border);
}
html[data-custom-theme] .final-cta {
  background: var(--cms-surface);
  border-color: var(--cms-border);
  color: var(--cms-text);
}
html[data-custom-theme] .final-cta p { color: var(--cms-muted); }
html[data-custom-theme] .final-cta > a { color: var(--cms-primary); }
html[data-custom-theme] .footer-socials > a:not(.footer-info-link) {
  background: var(--cms-surface);
  border-color: var(--cms-border);
  color: var(--cms-primary);
}
.footer-bottom .footer-admin {
  background: transparent;
  color: var(--muted);
}

/* Product picker and all dialog controls, including native radio/checkbox marks. */
html[data-custom-theme] .shop-dialog,
html[data-custom-theme] #info-dialog {
  background: var(--cms-surface);
  border-color: var(--cms-border);
  color: var(--cms-text);
}
html[data-custom-theme] .shop-dialog .dialog-head,
html[data-custom-theme] .shop-dialog .dialog-footer {
  background: var(--cms-surface);
  border-color: var(--cms-border);
}
html[data-custom-theme] .shop-dialog .dialog-head h2,
html[data-custom-theme] .shop-dialog .dialog-subtotal strong,
html[data-custom-theme] .shop-dialog .variant-preview h3,
html[data-custom-theme] .shop-dialog .cart-detail h3,
html[data-custom-theme] .shop-dialog .cart-detail strong,
html[data-custom-theme] .shop-dialog .variant-option b,
html[data-custom-theme] .shop-dialog .info-reading-section h3 {
  color: var(--cms-text);
}
html[data-custom-theme] .shop-dialog .dialog-head p,
html[data-custom-theme] .shop-dialog .dialog-subtotal,
html[data-custom-theme] .shop-dialog .footer-hint,
html[data-custom-theme] .shop-dialog .variant-description,
html[data-custom-theme] .shop-dialog .variant-preview p,
html[data-custom-theme] .shop-dialog .quantity-row p,
html[data-custom-theme] .shop-dialog .cart-detail p,
html[data-custom-theme] .shop-dialog .cart-quantity > span,
html[data-custom-theme] .shop-dialog .cart-help,
html[data-custom-theme] .shop-dialog .checkout-summary small,
html[data-custom-theme] .shop-dialog .optional,
html[data-custom-theme] .shop-dialog .cart-empty p,
html[data-custom-theme] .shop-dialog .admin-settings > p,
html[data-custom-theme] .shop-dialog .info-reading-copy,
html[data-custom-theme] .shop-dialog .info-store-intro p,
html[data-custom-theme] .shop-dialog .info-store-intro span {
  color: var(--cms-muted);
}
html[data-custom-theme] .shop-dialog .icon-button,
html[data-custom-theme] .shop-dialog .cart-back {
  background: var(--cms-surface);
  border-color: var(--cms-border);
  color: var(--cms-primary);
}
html[data-custom-theme] .shop-dialog .primary,
html[data-custom-theme] .shop-dialog .dialog-footer .button,
html[data-custom-theme] .shop-dialog .button.primary {
  background: var(--cms-primary);
  border-color: var(--cms-primary);
  color: var(--cms-on-primary);
}
html[data-custom-theme] .shop-dialog .modal-category,
html[data-custom-theme] .shop-dialog .modal-save,
html[data-custom-theme] .shop-dialog .cart-line > .remove,
html[data-custom-theme] .shop-dialog .info-contents button,
html[data-custom-theme] .shop-dialog .info-reading-copy .detail-link,
html[data-custom-theme] #info-dialog .info-footer > a {
  color: var(--cms-primary);
}
html[data-custom-theme] .shop-dialog .variant-preview > img,
html[data-custom-theme] .shop-dialog .cart-line > img {
  background: var(--cms-primary-subtle);
  border-color: var(--cms-border);
}
html[data-custom-theme] .shop-dialog .variant-option {
  background: var(--cms-surface);
  border-color: var(--cms-border);
  color: var(--cms-text);
}
html[data-custom-theme] .shop-dialog .variant-option:has(input:checked) {
  background: var(--cms-primary-soft);
  border-color: var(--cms-primary);
  box-shadow: inset 0 0 0 1px var(--cms-primary);
}
html[data-custom-theme] .shop-dialog input[type="radio"],
html[data-custom-theme] .shop-dialog input[type="checkbox"],
html[data-custom-theme] form input[type="radio"],
html[data-custom-theme] form input[type="checkbox"] {
  accent-color: var(--cms-primary);
}
html[data-custom-theme] .shop-dialog form label,
html[data-custom-theme] .shop-dialog .quantity-row label {
  color: var(--cms-text);
}
html[data-custom-theme] .shop-dialog form input:not([type="checkbox"]):not([type="radio"]),
html[data-custom-theme] .shop-dialog form select,
html[data-custom-theme] .shop-dialog form textarea {
  background: var(--cms-surface);
  border-color: var(--cms-border);
  color: var(--cms-text);
  caret-color: var(--cms-primary);
}
html[data-custom-theme] .shop-dialog form input::placeholder,
html[data-custom-theme] .shop-dialog form textarea::placeholder {
  color: var(--cms-muted);
  opacity: .78;
}
html[data-custom-theme] .shop-dialog .quantity-row,
html[data-custom-theme] .shop-dialog .cart-quantity,
html[data-custom-theme] .shop-dialog .cart-line,
html[data-custom-theme] .shop-dialog .checkout-summary li,
html[data-custom-theme] .shop-dialog .admin-settings {
  border-color: var(--cms-border);
}
html[data-custom-theme] .shop-dialog .stepper {
  background: var(--cms-surface);
  border-color: var(--cms-border);
}
html[data-custom-theme] .shop-dialog .stepper button:first-child {
  background: var(--cms-primary-soft);
  color: var(--cms-primary);
}
html[data-custom-theme] .shop-dialog .stepper button:not(:first-child):not(:disabled) {
  background: var(--cms-primary);
  color: var(--cms-on-primary);
}
html[data-custom-theme] .shop-dialog .stepper button:disabled {
  background: var(--cms-muted-surface);
  color: var(--cms-muted);
}
html[data-custom-theme] .shop-dialog .stepper input {
  background: var(--cms-surface) !important;
  color: var(--cms-text) !important;
  caret-color: var(--cms-primary);
}
html[data-custom-theme] .shop-dialog .checkout-summary,
html[data-custom-theme] .shop-dialog .checkout-note,
html[data-custom-theme] .shop-dialog .info-note,
html[data-custom-theme] .shop-dialog .admin-note {
  background: var(--cms-primary-subtle);
  border-color: var(--cms-primary-border);
  color: var(--cms-muted);
}
html[data-custom-theme] .shop-dialog .checkout-summary > summary span:after,
html[data-custom-theme] .shop-dialog .empty-bag,
html[data-custom-theme] .shop-dialog .info-reading-copy ol li:before {
  color: var(--cms-primary);
}
html[data-custom-theme] .shop-dialog .empty-bag,
html[data-custom-theme] .shop-dialog .info-reading-copy ol li:before {
  background: var(--cms-primary-soft);
}
html[data-custom-theme] .shop-dialog .dialog-footer .button .ui-arrow,
html[data-custom-theme] .button .ui-arrow {
  background: var(--cms-primary-soft);
  color: var(--cms-primary);
  stroke: currentColor;
}
html[data-custom-theme] .shop-dialog .cart-line {
  background: var(--cms-surface);
}
html[data-custom-theme] .shop-dialog .cart-line .stepper button:first-child {
  background: var(--cms-primary-soft);
  color: var(--cms-primary);
}
html[data-custom-theme] .shop-dialog .cart-line .stepper button:not(:first-child):not(:disabled) {
  background: var(--cms-primary);
  color: var(--cms-on-primary);
}
html[data-custom-theme] .shop-dialog .admin-item button {
  border-color: var(--cms-border);
}
html[data-custom-theme] .shop-dialog :is(button, a, input, select, textarea):focus-visible,
html[data-custom-theme] :is(button, a, input, select, textarea):focus-visible {
  outline-color: color-mix(in srgb, var(--cms-primary) 78%, transparent);
}

/* Keep all small arrows, icons and control outlines tied to their text color. */
html[data-custom-theme] :is(.ui-arrow, .category-all-icon, .nav-item svg,
  .carousel-arrow svg, .bundle-arrows svg, .review-arrows svg) {
  stroke: currentColor;
}
html[data-custom-theme] .toast {
  background: var(--cms-primary);
  color: var(--cms-on-primary);
}
html[data-custom-theme] .skip-link {
  background: var(--cms-primary);
  color: var(--cms-on-primary);
}
html[data-custom-theme] :is(button, a, input, select, textarea):focus-visible {
  outline-color: color-mix(in srgb, var(--cms-primary) 78%, transparent);
}

/* --------------------------------------------------------------------------
   Follow-up polish from storefront review (v4)
   Fix active accents, category label specificity, order icon and checkout notes.
   -------------------------------------------------------------------------- */
html[data-custom-theme] .category.active > span:last-child {
  color: var(--cms-primary);
}
html[data-custom-theme] #view-all,
html[data-custom-theme] #view-all > span,
html[data-custom-theme] #view-all .ui-arrow {
  color: var(--cms-primary);
  stroke: currentColor;
  text-decoration-color: currentColor;
}

/* Active outlines use the selected brand color, never the legacy brown. */
html[data-custom-theme] .search {
  border-color: var(--cms-primary-border);
}
html[data-custom-theme] .search:focus-within {
  border-color: var(--cms-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cms-primary) 14%, transparent),
    0 4px 8px color-mix(in srgb, var(--cms-primary) 10%, transparent);
}
html[data-custom-theme] .product-card {
  border-color: var(--cms-primary-border);
}
html[data-custom-theme] .product-card:focus-within,
html[data-custom-theme] .product-card.in-cart {
  border-color: var(--cms-primary);
}
html[data-custom-theme] :is(.card-quantity, .card-manage) {
  border-color: var(--cms-primary);
  background: var(--cms-primary-soft);
}
html[data-custom-theme] .card-quantity button:first-child {
  background: var(--cms-surface);
  color: var(--cms-primary);
}
html[data-custom-theme] .card-quantity button:not(:first-child):not(:disabled) {
  background: var(--cms-primary);
  color: var(--cms-on-primary);
}
html[data-custom-theme] .card-quantity output,
html[data-custom-theme] .card-manage {
  color: var(--cms-text);
}
html[data-custom-theme] .shop-dialog .stepper {
  border-color: var(--cms-primary);
}
html[data-custom-theme] .shop-dialog .stepper:focus-within {
  border-color: var(--cms-primary);
  outline: 2px solid color-mix(in srgb, var(--cms-primary) 22%, transparent);
  outline-offset: 2px;
}
html[data-custom-theme] .shop-dialog .stepper button:first-child {
  background: var(--cms-primary-soft);
  color: var(--cms-primary);
}
html[data-custom-theme] .shop-dialog .stepper button:not(:first-child):not(:disabled) {
  background: var(--cms-primary);
  color: var(--cms-on-primary);
}

/* The checkout note and the customer's optional note field share the palette. */
html[data-custom-theme] .shop-dialog .checkout-note {
  background: color-mix(in srgb, var(--cms-primary) 14%, var(--cms-surface));
  border: 1px solid var(--cms-primary-border);
  border-left: 3px solid var(--cms-primary);
  color: var(--cms-text);
}
html[data-custom-theme] .shop-dialog #checkout-form textarea[name="notes"] {
  background: var(--cms-surface);
  border-color: var(--cms-primary-border);
  color: var(--cms-text);
}
html[data-custom-theme] .shop-dialog #checkout-form textarea[name="notes"]:focus {
  border-color: var(--cms-primary);
  outline-color: var(--cms-primary);
}

/* Keep the center order shortcut visually consistent with the round nav. */
html[data-custom-theme] .bottom-nav .nav-order-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 4px solid var(--cms-surface);
  border-radius: 50%;
  background: var(--cms-primary);
  color: var(--cms-on-primary);
  box-shadow: 0 3px 10px color-mix(in srgb, var(--cms-primary) 22%, transparent);
}
html[data-custom-theme] .bottom-nav .nav-order-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}



/* --------------------------------------------------------------------------
   Active state correction (v5)
   Keep focus/selected rings fully tied to the CMS primary color.
   -------------------------------------------------------------------------- */
html[data-custom-theme] .search:focus-within {
  border-color: var(--cms-primary);
  outline: 3px solid color-mix(in srgb, var(--cms-primary) 78%, transparent);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cms-primary) 14%, transparent),
    0 4px 8px color-mix(in srgb, var(--cms-primary) 10%, transparent);
}
html[data-custom-theme] .product-card:focus-within {
  border-color: var(--cms-primary);
  outline: 2px solid color-mix(in srgb, var(--cms-primary) 78%, transparent);
  outline-offset: 3px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--cms-primary) 28%, transparent),
    0 4px 10px color-mix(in srgb, var(--cms-primary) 10%, transparent);
}
html[data-custom-theme] .product-card.in-cart {
  border: 2px solid var(--cms-primary);
  outline-color: var(--cms-primary);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cms-primary) 70%, transparent),
    0 4px 10px color-mix(in srgb, var(--cms-primary) 12%, transparent);
}

.detail-content .detail-note,
.shop-dialog .info-reading-copy .detail-note {
  margin: 12px 0 0;
  padding: 12px 14px;
  background: var(--cream);
  border: 0;
  border-inline-start: 3px solid var(--orange);
  border-radius: 12px;
  color: var(--brown);
  font-size: .92em;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
html[data-custom-theme] .detail-content .detail-note,
html[data-custom-theme] .shop-dialog .info-reading-copy .detail-note {
  background: var(--cms-primary-subtle);
  border-inline-start-color: var(--cms-primary);
  color: var(--cms-text);
}
