/* Brand mark & wordmark styling (Concept 1 light/dark adaptive) */
html body .brand,
html body .site-header .brand {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0 !important;
    overflow: visible !important;
    text-decoration: none !important;
}

html body .brand span {
    font-weight: 400 !important;
}

html body .brand .brand-mark {
    display: block;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    margin-right: 10px !important;
    vertical-align: middle;
    overflow: visible;
}

html body .brand .brand-mark.is-winter {
    width: 37px;
    height: 37px;
    margin: -4px 8px -2px -4px !important;
}

html body .brand-mark path {
    fill-rule: nonzero;
}

html body .brand-mark .brand-mark-mask-on {
    fill: #ffffff !important;
}

html body .brand-mark .brand-mark-mask-off {
    fill: #000000 !important;
}

html body .brand-mark .brand-mark-p {
    fill: #133E29 !important;
}

html body .brand-mark .brand-mark-accent {
    fill: #177549 !important;
}

html body .brand-mark .brand-mark-cutout {
    fill: #ffffff !important;
}

html body .brand-mark .brand-mark-hat-shadow {
    fill: rgba(7, 18, 12, 0.28) !important;
}

html body .brand-mark .brand-mark-hat-tail {
    fill: #a61426 !important;
}

html body .brand-mark .brand-mark-hat-crown {
    fill: #d92638 !important;
}

html body .brand-mark .brand-mark-hat-highlight {
    fill: #f04757 !important;
    opacity: 0.75;
}

html body .brand-mark .brand-mark-hat-fur {
    fill: #ffffff !important;
    stroke: #b8c4d4;
    stroke-width: 1.2;
    stroke-linejoin: round;
}

html body .brand-mark .brand-mark-hat-fur-shade {
    fill: #e6edf5 !important;
}

.pwa-install__mark {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.pwa-install__mark img {
    object-fit: contain !important;
}

/* Theme toggle button */
html .storefront-theme-toggle:not([hidden]) {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: var(--ui-ink);
    background: var(--ui-surface);
    border: 1px solid var(--ui-line-strong);
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.storefront-theme-toggle:hover {
    background: var(--ui-surface-2);
    border-color: var(--ui-blue);
}

.storefront-theme-toggle:active {
    transform: scale(0.96);
}

.storefront-theme-toggle svg {
    width: 19px;
    height: 19px;
}

.storefront-theme-sun,
html[data-theme="dark"] .storefront-theme-moon {
    display: none;
}

html[data-theme="dark"] .storefront-theme-sun {
    display: block;
}

.auth-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Dark theme tokens & elevation */
html[data-theme="dark"] {
    color-scheme: dark;
    --ui-page: #0f1621;
    --ui-surface: #16202e;
    --ui-surface-2: #1d2a3d;
    --ui-line: #2d3e54;
    --ui-line-strong: #465b78;
    --ui-ink: #eef4ff;
    --ui-ink-2: #c6d4e6;
    --ui-muted: #9eb0c6;
    --ui-blue: #7eb3ff;
    --ui-blue-hover: #a8cdff;
    --ui-blue-soft: #1f3352;
    --ui-green: #8ee2b2;
    --ui-green-soft: #1c3a32;
    --ui-purple: #cbb4ff;
    --ui-purple-soft: #352b52;
    --ui-amber: #ffd096;
    --ui-amber-soft: #473521;
    --ui-red: #ff9ead;
    --ui-red-soft: #492634;
    --ui-shadow: 0 2px 6px rgba(4, 9, 18, 0.45);
    --ui-shadow-m: 0 14px 34px rgba(4, 9, 18, 0.65);
    --storefront-blue-fill: #235ee0;
    --storefront-blue-fill-hover: #2f6ef5;
    --storefront-cta-top: #3170f2;
    --storefront-cta-bottom: #2157cc;
    --storefront-cta-hover-top: #3f7cf7;
    --storefront-cta-hover-bottom: #2a65e0;
    --storefront-cta-active: #1b4ab3;
    --storefront-cta-border: rgba(147, 197, 253, 0.45);
    --storefront-cta-shadow: 0 6px 18px rgba(15, 45, 115, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    --storefront-cta-shadow-hover: 0 10px 24px rgba(29, 78, 216, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.24);
    --storefront-secondary-bg: #1c293b;
    --storefront-secondary-hover: #25364e;
    --storefront-secondary-border: #3d526e;
    --storefront-secondary-hover-border: #6f9cf0;
    --storefront-on-accent: #ffffff;
    --action: #235ee0;
    --action-hover: #2f6ef5;
    --action-border: rgba(147, 197, 253, 0.45);
    --action-text: #ffffff;
    --action-soft: #1d2a3d;
    --action-focus: #8cbcff;
    --accessibility-focus: #8cbcff;
}

html[data-theme="dark"] body .brand-mark .brand-mark-p {
    fill: #185738 !important;
}

html[data-theme="dark"] body .brand-mark .brand-mark-accent {
    fill: #218A56 !important;
}

html[data-theme="dark"] body .brand-mark .brand-mark-cutout {
    fill: #ffffff !important;
}

html[data-theme="dark"] body .brand-mark .brand-mark-hat-fur {
    stroke: #cbd5e1;
}

/* Header & mobile navigation */
html[data-theme="dark"] body .site-header {
    background: rgba(22, 32, 46, 0.92) !important;
    border-color: var(--ui-line) !important;
    backdrop-filter: blur(12px);
}

html[data-theme="dark"] body .mobile-tabbar {
    background: rgba(22, 32, 46, 0.96) !important;
    border-top-color: var(--ui-line) !important;
    backdrop-filter: blur(12px);
}

html[data-theme="dark"] body .site-header .header-search input {
    background-color: var(--ui-surface-2) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239eb0c6' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5'/%3E%3C/svg%3E") !important;
    border-color: var(--ui-line) !important;
    color: var(--ui-ink) !important;
}

html[data-theme="dark"] body .site-header .header-search input:focus {
    background-color: #25364d !important;
    border-color: var(--ui-blue) !important;
}

html[data-theme="dark"] body .currency-dropdown .currency-dropdown-panel {
    color: var(--ui-ink);
    background: var(--ui-surface);
    border-color: var(--ui-line-strong);
}

html[data-theme="dark"] body .currency-dropdown > summary,
html[data-theme="dark"] body .storefront-theme-toggle:not([hidden]) {
    color: var(--ui-ink) !important;
    background: var(--storefront-secondary-bg) !important;
    border-color: var(--storefront-secondary-border) !important;
}

html[data-theme="dark"] body .currency-dropdown > summary:hover,
html[data-theme="dark"] body .storefront-theme-toggle:not([hidden]):hover {
    color: #ffffff !important;
    background: var(--storefront-secondary-hover) !important;
    border-color: var(--storefront-secondary-hover-border) !important;
}

html[data-theme="dark"] body .currency-dropdown-panel button:hover {
    color: var(--ui-ink);
    background: var(--ui-surface-2);
}

/* Unified focus rings */
html[data-theme="dark"] body:not(.admin-shell) :where(a[href], button, input:not([type="hidden"]), select, textarea, summary, [tabindex]):focus-visible {
    outline: 2px solid var(--accessibility-focus) !important;
    outline-offset: 2px;
}

/* Primary & CTA controls across all storefront & auth pages */
html[data-theme="dark"] body :is(
    .button.primary,
    .button.gold,
    .btn-primary,
    button.primary,
    .btn-card-action,
    .age-card-enter,
    .pdp-add,
    .pdp-sticky button,
    .tp-button,
    .cart-widget-launcher,
    .advisor-action-link,
    .home-advisor-intro .advisor-action-link,
    .brand-directory-action > a,
    .home-seed-shopping .home-seed-shopping-all,
    .header-search button
),
html[data-theme="dark"] body main .button.gold,
html[data-theme="dark"] body .giveaway-campaign .button.primary,
html[data-theme="dark"] body .giveaway-hub .button.primary {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
    background-color: var(--storefront-blue-fill) !important;
    background-image: linear-gradient(180deg, var(--storefront-cta-top), var(--storefront-cta-bottom)) !important;
    border: 1px solid var(--storefront-cta-border) !important;
    box-shadow: var(--storefront-cta-shadow) !important;
}

html[data-theme="dark"] body :is(
    .button.primary,
    .button.gold,
    .btn-primary,
    button.primary,
    .btn-card-action,
    .age-card-enter,
    .pdp-add,
    .pdp-sticky button,
    .tp-button,
    .cart-widget-launcher,
    .advisor-action-link,
    .home-advisor-intro .advisor-action-link,
    .brand-directory-action > a,
    .home-seed-shopping .home-seed-shopping-all,
    .header-search button
) :is(span, strong, b, svg),
html[data-theme="dark"] body main .button.gold :is(span, strong, b, svg),
html[data-theme="dark"] body .giveaway-campaign .button.primary :is(span, strong, b, svg),
html[data-theme="dark"] body .giveaway-hub .button.primary :is(span, strong, b, svg) {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
}

html[data-theme="dark"] body :is(
    .button.primary,
    .button.gold,
    .btn-primary,
    button.primary,
    .btn-card-action,
    .age-card-enter,
    .pdp-add,
    .pdp-sticky button,
    .tp-button,
    .cart-widget-launcher,
    .advisor-action-link,
    .home-advisor-intro .advisor-action-link,
    .brand-directory-action > a,
    .home-seed-shopping .home-seed-shopping-all,
    .header-search button
):hover,
html[data-theme="dark"] body main .button.gold:hover,
html[data-theme="dark"] body .giveaway-campaign .button.primary:hover,
html[data-theme="dark"] body .giveaway-hub .button.primary:hover {
    color: #ffffff !important;
    background-color: var(--storefront-blue-fill-hover) !important;
    background-image: linear-gradient(180deg, var(--storefront-cta-hover-top), var(--storefront-cta-hover-bottom)) !important;
    border-color: rgba(186, 218, 255, 0.72) !important;
    box-shadow: var(--storefront-cta-shadow-hover) !important;
}

html[data-theme="dark"] body :is(
    .button.primary,
    .button.gold,
    .btn-primary,
    button.primary,
    .btn-card-action,
    .age-card-enter,
    .pdp-add,
    .pdp-sticky button,
    .tp-button,
    .cart-widget-launcher,
    .advisor-action-link,
    .home-advisor-intro .advisor-action-link,
    .brand-directory-action > a,
    .home-seed-shopping .home-seed-shopping-all,
    .header-search button
):active,
html[data-theme="dark"] body main .button.gold:active,
html[data-theme="dark"] body .giveaway-campaign .button.primary:active,
html[data-theme="dark"] body .giveaway-hub .button.primary:active {
    background-color: var(--storefront-cta-active) !important;
    background-image: none !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body :is(
    .button.primary,
    .button.gold,
    .btn-primary,
    button.primary,
    .pdp-add,
    .pdp-sticky button
):is(:disabled, [disabled]),
html[data-theme="dark"] body main .button.gold:is(:disabled, [disabled]) {
    color: #8ea1b8 !important;
    -webkit-text-fill-color: #8ea1b8;
    background-color: #233043 !important;
    background-image: none !important;
    border-color: #34465e !important;
    box-shadow: none !important;
    opacity: 0.78;
    cursor: not-allowed;
}

html[data-theme="dark"] body :is(.pdp-add, .pdp-sticky button) {
    --pdp-cta: var(--storefront-blue-fill);
    --pdp-cta-hover: var(--storefront-blue-fill-hover);
}

html[data-theme="dark"] body :is(.pdp-brand, .tp-link, .tp-empty a, .tp-story a) {
    color: var(--ui-blue) !important;
}

/* Secondary, ghost, category pills & utility controls */
html[data-theme="dark"] body :is(
    .pdp-button-ghost,
    .button.ghost,
    .button.secondary,
    .btn-ghost,
    .btn-secondary,
    .button:not(.primary, .gold, .danger),
    .age-card-exit,
    .brand-search-reset,
    .home-seed-shopping a:not(.home-seed-shopping-all),
    .strain-hub-jump a,
    .home-taste-rail-control,
    .scroll-top,
    .filter-panel__toggle,
    .mobile-filter-toggle,
    .catalog-mobile-filter-toggle,
    .blog-audio-toggle,
    .blog-audio-stop,
    .blog-share-action,
    .site-header .cart-link,
    .site-header .menu-toggle,
    .cart-widget-close,
    .ps-filter-close
) {
    color: var(--ui-ink) !important;
    background: var(--storefront-secondary-bg) !important;
    border: 1px solid var(--storefront-secondary-border) !important;
    box-shadow: 0 2px 6px rgba(4, 9, 18, 0.25) !important;
}

html[data-theme="dark"] body :is(
    .pdp-button-ghost,
    .button.ghost,
    .button.secondary,
    .btn-ghost,
    .btn-secondary,
    .button:not(.primary, .gold, .danger),
    .age-card-exit,
    .brand-search-reset,
    .home-seed-shopping a:not(.home-seed-shopping-all),
    .strain-hub-jump a,
    .home-taste-rail-control,
    .scroll-top,
    .filter-panel__toggle,
    .mobile-filter-toggle,
    .catalog-mobile-filter-toggle,
    .blog-audio-toggle,
    .blog-audio-stop,
    .blog-share-action,
    .site-header .cart-link,
    .site-header .menu-toggle,
    .cart-widget-close,
    .ps-filter-close
):is(:hover, :focus-visible) {
    color: #ffffff !important;
    background: var(--storefront-secondary-hover) !important;
    border-color: var(--storefront-secondary-hover-border) !important;
}

html[data-theme="dark"] body .strain-hub-jump a span {
    color: var(--ui-ink-3);
    opacity: 1;
}

/* Product card & blog article CTAs */
html[data-theme="dark"] body main .product-grid .product-card .product-card-cta,
html[data-theme="dark"] body main [data-catalog-results="grid"] .product-card-cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: #b4d4ff !important;
    background-color: #192d4f !important;
    background-image: none !important;
    border: 1px solid rgba(126, 179, 255, 0.36) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body main .product-grid .product-card:hover .product-card-cta,
html[data-theme="dark"] body main .product-grid .product-card .product-card-cta:hover,
html[data-theme="dark"] body main [data-catalog-results="grid"] .product-card:hover .product-card-cta {
    color: #ffffff !important;
    background-color: var(--storefront-blue-fill) !important;
    background-image: linear-gradient(180deg, var(--storefront-cta-top), var(--storefront-cta-bottom)) !important;
    border-color: rgba(147, 197, 253, 0.55) !important;
}

html[data-theme="dark"] body :is(.blog-product-cta, .blog-article-cta) {
    color: var(--ui-ink) !important;
    background: rgba(35, 94, 224, 0.18) !important;
    border: 1px solid rgba(126, 179, 255, 0.4) !important;
}

html[data-theme="dark"] body :is(.blog-product-cta, .blog-article-cta):hover {
    color: #ffffff !important;
    background: linear-gradient(180deg, var(--storefront-cta-top), var(--storefront-cta-bottom)) !important;
    border-color: rgba(147, 197, 253, 0.6) !important;
}

/* Destructive, logout & remove actions */
html[data-theme="dark"] body .button.danger {
    color: var(--ui-red) !important;
    background: rgba(220, 38, 68, 0.16) !important;
    border: 1px solid rgba(251, 113, 133, 0.42) !important;
}

html[data-theme="dark"] body .button.danger:hover {
    color: #ffe4e8 !important;
    background: rgba(220, 38, 68, 0.28) !important;
    border-color: #fb7185 !important;
}

html[data-theme="dark"] body .account-logout-button {
    color: var(--ui-ink-2) !important;
    border: 1px solid transparent;
}

html[data-theme="dark"] body .account-logout-button:hover {
    color: var(--ui-red) !important;
    background: rgba(220, 38, 68, 0.16) !important;
    border-color: rgba(251, 113, 133, 0.35) !important;
}

html[data-theme="dark"] body :is(.cart-widget-item-remove, .bag-remove .text-button, .text-button.danger-text) {
    color: var(--ui-muted) !important;
}

html[data-theme="dark"] body :is(.cart-widget-item-remove, .bag-remove .text-button, .text-button.danger-text):hover {
    color: var(--ui-red) !important;
}

/* Quantity steppers & advisor / filter pills */
html[data-theme="dark"] body :is(.pdp-qty, .bag-qty) {
    background: var(--ui-surface) !important;
    border-color: var(--storefront-secondary-border) !important;
}

html[data-theme="dark"] body :is(.pdp-qty button, .bag-qty button, .cart-widget-item-qty button:not(.cart-widget-item-remove)) {
    color: var(--ui-ink) !important;
    background: var(--storefront-secondary-bg) !important;
    border-color: var(--storefront-secondary-border) !important;
}

html[data-theme="dark"] body :is(.pdp-qty button, .bag-qty button, .cart-widget-item-qty button:not(.cart-widget-item-remove)):hover:not(:disabled) {
    color: #ffffff !important;
    background: var(--storefront-secondary-hover) !important;
    border-color: var(--storefront-secondary-hover-border) !important;
}

html[data-theme="dark"] body .advisor-field-clear {
    color: #a9ceff !important;
    background: rgba(35, 94, 224, 0.18) !important;
    border: 1px solid rgba(126, 179, 255, 0.34);
}

html[data-theme="dark"] body .advisor-field-clear:hover {
    color: #ffffff !important;
    background: rgba(35, 94, 224, 0.34) !important;
    border-color: rgba(147, 197, 253, 0.55);
}

html[data-theme="dark"] body :is(.advisor-choice-grid, .advisor-chip-grid) input:checked + .advisor-option,
html[data-theme="dark"] body .checkout-steps :is(.radio-card, .payment-choice):has(input:checked),
html[data-theme="dark"] body main :is(.gift-card, .radio-card):has(input:checked) {
    border-color: #60a5fa !important;
    background: rgba(35, 94, 224, 0.16) !important;
    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.45) !important;
}

html[data-theme="dark"] body .blog-topic-nav a {
    background: var(--storefront-secondary-bg) !important;
    border-color: var(--ui-line) !important;
    color: var(--ui-blue) !important;
}

html[data-theme="dark"] body .blog-topic-nav a:is(:hover, :focus-visible) {
    background: var(--storefront-secondary-hover) !important;
    border-color: var(--storefront-secondary-hover-border) !important;
    color: #ffffff !important;
}

html[data-theme="dark"] body .home-giveaway-link {
    background: rgba(11, 17, 27, 0.88) !important;
    border-color: rgba(147, 197, 253, 0.38) !important;
    color: #ffffff !important;
}

html[data-theme="dark"] body .home-giveaway-link b {
    background: var(--storefront-blue-fill) !important;
    color: #ffffff !important;
}

/* Product cards, badges, list rows & tables */
html[data-theme="dark"] body main .product-grid > .product-card:not([data-catalog-results="list"] *, .taxonomy-directory-hero *, .taxonomy-directory-summary *) {
    background: var(--ui-surface) !important;
    border-color: var(--ui-line) !important;
}

html[data-theme="dark"] body main .product-grid > .product-card:not([data-catalog-results="list"] *, .taxonomy-directory-hero *, .taxonomy-directory-summary *):hover {
    border-color: var(--ui-line-strong) !important;
    box-shadow: var(--ui-shadow-m) !important;
}

html[data-theme="dark"] body .product-card :is(.product-action-badge, .product-variety-badge) {
    color: var(--ui-ink) !important;
    background: rgba(15, 22, 33, 0.88) !important;
    border-color: var(--ui-line-strong) !important;
    backdrop-filter: blur(8px);
}

html[data-theme="dark"] body .product-card .product-action-saving {
    color: #ffffff !important;
    background: #d62843 !important;
    border-color: #f45c72 !important;
}

html[data-theme="dark"] body [data-catalog-results="list"] .product-card:hover,
html[data-theme="dark"] body .admin-main tbody tr:hover {
    background: var(--ui-surface-2) !important;
}

/* PDP gallery & pack selection */
html[data-theme="dark"] body .pdp-gallery-main {
    background: var(--ui-surface) !important;
}

html[data-theme="dark"] body .pdp-pack:is(.is-selected, :has(input:checked)) {
    background: rgba(35, 94, 224, 0.16) !important;
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25) !important;
}

html[data-theme="dark"] body .pdp-pack-check {
    background: var(--storefront-blue-fill) !important;
    color: #ffffff !important;
}

html[data-theme="dark"] body .pdp-pack :is(.pdp-pack-name, .pdp-pack-price) {
    color: var(--ui-ink) !important;
}

html[data-theme="dark"] body .pdp-pack-tag {
    color: #06281a !important;
    background: var(--ui-green) !important;
}

html[data-theme="dark"] body .pdp-pack-tag.is-bonus {
    color: #ffffff !important;
    background: #0f766e !important;
}

html[data-theme="dark"] body :is(
    .catalog-view-toggle button[aria-pressed="true"],
    .catalog-mobile-filter-toggle b,
    .mobile-filter-toggle > b
),
html[data-theme="dark"] body .site-header .cart-link [data-cart-count]:not([hidden]),
html[data-theme="dark"] body :is(.pagination, .blog-pagination) a[aria-current="page"],
html[data-theme="dark"] body .pager-number.is-current,
html[data-theme="dark"] body .brand-profile-pagination a.active,
html[data-theme="dark"] body .ticket-filters a:is(.active, [aria-current]) {
    color: #ffffff !important;
    background: var(--storefront-blue-fill) !important;
    border-color: var(--storefront-cta-border) !important;
}

html[data-theme="dark"] body :is(.pager-number, .pager-step, .pagination a, .blog-pagination a, .brand-profile-pagination a, .ticket-filters a) {
    color: var(--ui-ink) !important;
    background: var(--storefront-secondary-bg) !important;
    border-color: var(--storefront-secondary-border) !important;
}

html[data-theme="dark"] body :is(.pager-number, .pager-step, .pagination a, .blog-pagination a, .brand-profile-pagination a, .ticket-filters a):not([aria-current="page"], .active, .is-current, .is-disabled):hover {
    color: #ffffff !important;
    background: rgba(35, 94, 224, 0.22) !important;
    border-color: var(--storefront-secondary-hover-border) !important;
}

html[data-theme="dark"] body .cart-widget-launcher-count {
    color: #0b1628 !important;
    background: #9ec5ff !important;
}

/* Landing page sections & cards */
html[data-theme="dark"] body .home-new {
    background: color-mix(in srgb, var(--ui-surface) 52%, var(--ui-page));
    box-shadow: 0 0 0 100vmax color-mix(in srgb, var(--ui-surface) 52%, var(--ui-page));
}

html[data-theme="dark"] body .home-proof {
    background: color-mix(in srgb, var(--ui-surface) 60%, transparent);
}

html[data-theme="dark"] body .home-taste-carousel-hero .home-taste-pill,
html[data-theme="dark"] body .home-taste-rail-control,
html[data-theme="dark"] body .home-advisor-intro .advisor-action-card,
html[data-theme="dark"] body .advisor-collapsed .advisor-collapsed-info,
html[data-theme="dark"] body .home-fire-promo > a,
html[data-theme="dark"] body .home-giveaway-banner > a,
html[data-theme="dark"] body .home-brand-grid > a,
html[data-theme="dark"] body .seed-type-group,
html[data-theme="dark"] body .seed-type-products > a {
    background: var(--ui-surface);
    border-color: var(--ui-line);
}

html[data-theme="dark"] body .home-taste-carousel-hero .home-taste-pill:hover,
html[data-theme="dark"] body .home-brand-grid > a:hover,
html[data-theme="dark"] body .seed-type-products > a:hover {
    background: var(--ui-surface-2);
    border-color: var(--ui-line-strong);
}

html[data-theme="dark"] body .home-taste-carousel-hero .home-taste-pill-icon {
    background: var(--ui-surface-2);
    border-color: var(--ui-line);
    box-shadow: inset 0 0 0 5px rgba(15, 22, 33, 0.35);
}

html[data-theme="dark"] body .home-brand-media {
    background: #eaf0f6;
    border-color: var(--ui-line);
}

html[data-theme="dark"] body .home-brand-media > .brand-placeholder {
    color: #334155;
}

/* Secondary pages (Actions, Giveaways, Blog) */
html[data-theme="dark"] body :is(.metric-card, .offer-card, .filter-bar, .info-section__intro, .giveaway-card, .blog-card) {
    background: var(--ui-surface);
    border-color: var(--ui-line);
}

html[data-theme="dark"] body .metric-card--primary {
    border-color: #6b5a2e;
    background: linear-gradient(135deg, #272217, var(--ui-surface));
}

html[data-theme="dark"] body .offer-card:hover,
html[data-theme="dark"] body .offer-card:focus-within {
    border-color: var(--ui-line-strong);
    box-shadow: var(--ui-shadow-m);
}

/* PWA install toast */
html[data-theme="dark"] body .pwa-install {
    border-color: var(--ui-line);
    background: rgba(22, 32, 46, 0.96);
}

html[data-theme="dark"] body .pwa-install::after {
    background: var(--ui-surface);
}

html[data-theme="dark"] body .pwa-install__action {
    border-color: var(--storefront-cta-border) !important;
    background: linear-gradient(180deg, var(--storefront-cta-top), var(--storefront-cta-bottom)) !important;
    color: #ffffff !important;
    box-shadow: var(--storefront-cta-shadow) !important;
}

html[data-theme="dark"] body .pwa-install__action:hover {
    background: linear-gradient(180deg, var(--storefront-cta-hover-top), var(--storefront-cta-hover-bottom)) !important;
    border-color: rgba(186, 218, 255, 0.72) !important;
}

html[data-theme="dark"] body .pwa-install__close {
    background: var(--storefront-secondary-bg) !important;
    border-color: var(--storefront-secondary-border) !important;
    color: var(--ui-ink) !important;
}

/* Dark mode harmony for live app-cro-ui.css components */
html[data-theme="dark"] body .ps-trust-bar {
    background: #0a1019;
    border-bottom: 1px solid var(--ui-line);
}

html[data-theme="dark"] body .cart-widget-footer {
    background: var(--ui-surface-2) !important;
    border-top-color: var(--ui-line) !important;
}

html[data-theme="dark"] body .cart-widget-reward {
    background: var(--ui-blue-soft);
    border-bottom-color: var(--ui-line);
    color: var(--ui-ink);
}

html[data-theme="dark"] body .cart-widget-reward.is-unlocked,
html[data-theme="dark"] body .pdp-reward.is-unlocked,
html[data-theme="dark"] body .bag-reward-progress.is-unlocked {
    background: var(--ui-green-soft) !important;
    border-color: #2f6b58 !important;
    color: var(--ui-green) !important;
}

html[data-theme="dark"] body .pdp-reward.is-unlocked .pdp-reward-top,
html[data-theme="dark"] body .pdp-reward.is-unlocked strong {
    color: var(--ui-green) !important;
}

html[data-theme="dark"] body .pdp-sticky {
    box-shadow: 0 -10px 24px rgba(4, 9, 18, 0.72);
}

html[data-theme="dark"] body.product-page .pdp-gallery-main {
    background: var(--ui-surface) !important;
    border-color: var(--ui-line) !important;
}

html[data-theme="dark"] body .pdp-faq-item,
html[data-theme="dark"] body .ps-faq-cards > article,
html[data-theme="dark"] body .brand-strain-index > summary {
    background: var(--ui-surface) !important;
    border-color: var(--ui-line) !important;
    color: var(--ui-ink) !important;
}

html[data-theme="dark"] body .pdp-faq-item h3,
html[data-theme="dark"] body .ps-faq-cards > article h3,
html[data-theme="dark"] body .tp-faq h2,
html[data-theme="dark"] body .ps-dir-faq h2 {
    color: var(--ui-ink) !important;
}

html[data-theme="dark"] body .pdp-faq-item p,
html[data-theme="dark"] body .ps-faq-cards > article p {
    color: var(--ui-ink-2) !important;
}

html[data-theme="dark"] body .ps-pay-pill {
    background: var(--ui-surface-2);
    border-color: var(--ui-line);
    color: var(--ui-ink-2);
}

html[data-theme="dark"] body.giveaway-hub-page .giveaway-current-media.has-banner-art {
    background: var(--ui-surface-2) !important;
}

html[data-theme="dark"] body main .winter-promotion a {
    color: #fff9ef;
}

html[data-theme="dark"] ::selection {
    color: var(--storefront-on-accent);
    background: var(--ui-blue);
}

@media (max-width: 1023px) {
    html body .site-header .main-nav {
        z-index: 25;
    }
}

@media (prefers-reduced-motion: reduce) {
    html .storefront-theme-toggle:not([hidden]) {
        transition: none;
    }
}

@media (max-width: 600px) {
    html body .brand .brand-mark.is-winter {
        width: 34px;
        height: 34px;
        margin: 0 8px 0 0 !important;
    }
}

@media (max-width: 420px) {
    html body .site-header .header-actions {
        gap: 5px;
    }

    html .storefront-theme-toggle:not([hidden]) {
        width: 36px;
        height: 36px;
    }
}

/* Accessibility, contrast & touch-target floor refinements */
html body :is(.home-fire-saving, .badge-discount) {
    background: #b91c1c !important;
    border-color: rgba(255, 255, 255, 0.24) !important;
    color: #ffffff !important;
}

html[data-theme="dark"] body :is(.taxonomy-directory-page, .brands-page, .tastes-page, .effects-page, .terpenes-page, .pdp, .pdp-section) :is(p, dd, li, .pdp-card-head, .pdp-section-head, .pdp-faq-item, .ps-faq-cards) a:not(.button, .btn, .pdp-button, .pdp-button-ghost, .promotion-product-card, .product-card-cta),
html[data-theme="dark"] body.product-page :is(.pdp, .pdp-section, .pdp-section-head) :is(.pdp-brand, .pdp-links a, .pdp-card-head a, .pdp-section-head a, .pdp-faq-item a, > a:not(.button, .pdp-button, .pdp-button-ghost)) {
    color: var(--ui-blue) !important;
}

html[data-theme="dark"] body .pager-status {
    color: var(--ui-muted) !important;
}

html body :is(.home-text-link, .catalog-filter-head a, .site-footer .footer-contact a, .ps-trust-bar a) {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
}

html body main .auth-card input:focus-visible,
html body .auth-card input:focus-visible {
    outline: 2px solid var(--accessibility-focus, var(--ui-blue, #0b63e5));
    outline-offset: 2px;
}

@media (max-width: 768px) {
    html body:not(.admin-shell) :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="hidden"]), select, textarea) {
        font-size: max(1rem, 16px) !important;
    }
}

/* Global unslop chrome refinements across bundled & unbundled storefront routes */
html body .site-header {
    border-bottom: 1px solid color-mix(in srgb, var(--ui-line, var(--border)), transparent 10%) !important;
}

html body .site-header::before,
html body .site-header::after {
    content: none !important;
}

html body :is(.home-proof, .home-loyalty)::before {
    background: var(--ui-line, var(--border)) !important;
    box-shadow: none !important;
}

html body .home-taste-carousel-hero {
    border-block: 1px solid var(--ui-line, var(--border)) !important;
    background-image: none !important;
    box-shadow: none !important;
}

html body :is(.home-fire-promo > a:hover img, .home-fire-promo > a:focus-visible img, .offer-card:hover .card-media img, .offer-card:focus-within .card-media img) {
    transform: none !important;
}

html body .advisor-intro-status,
html body .advisor-label {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

html body .advisor-intro-status > span {
    display: none !important;
}

html body :is(.advisor-page-hero h1, .advisor-panel-head h2, .advisor-step-head h3) {
    font-family: var(--font-display, system-ui, sans-serif) !important;
}

html body .advisor-page-workspace .advisor-panel-head > strong[data-advisor-selection-summary],
html body [data-advisor-selection-summary] {
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--ui-muted, var(--muted)) !important;
}

html[data-theme="dark"] body .auth-card input {
    border-color: var(--ui-line-strong) !important;
}

html[data-theme="dark"] body .advisor-progress button[aria-selected="true"] > span {
    background: var(--ui-blue-soft) !important;
    border-color: var(--ui-blue) !important;
    color: #ffffff !important;
}

html body .auth-intro li {
    padding-left: 18px !important;
}

html body .auth-intro li::before {
    content: "\2013" !important;
    top: 0 !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--ui-blue, var(--accent)) !important;
    font-weight: 700 !important;
}

html body .pwa-install::before,
html body .pwa-install::after {
    content: none !important;
}

html body .pwa-install {
    border-radius: 12px !important;
    animation: none !important;
    backdrop-filter: none !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28) !important;
}
