html[data-theme] body { background-color: var(--t-light); }

html[data-theme] .btn-add,
html[data-theme] .checkout-btn,
html[data-theme] .auth-submit-btn,
html[data-theme] .co-btn:not(.co-alt),
html[data-theme] .request-submit,
html[data-theme] .cl-chip.on,
html[data-theme] .cl-size.on,
html[data-theme] .add-btn,
html[data-theme] .cart-count {
    background: var(--t-accent);
    color: var(--t-on-accent);
    border-color: var(--t-accent);
}

html[data-theme] .btn-add:hover,
html[data-theme] .checkout-btn:hover,
html[data-theme] .auth-submit-btn:hover,
html[data-theme] .add-btn:hover {
    background: var(--t-dark);
    color: #ffffff;
}

html[data-theme] .price { color: var(--t-accent); }
html[data-theme] .main-nav a.active,
html[data-theme] .main-nav a:hover { border-bottom-color: var(--t-accent); }
html[data-theme] .mobile-nav a.active { background: var(--t-accent); border-color: var(--t-accent); color: var(--t-on-accent); }
html[data-theme] .aura-footer { background: var(--t-dark); }
html[data-theme] .home-hero { background-color: var(--t-dark); }
html[data-theme] .home-hero-cta { background: var(--t-accent); color: var(--t-on-accent); }

html[data-theme] header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 3px;
    background: var(--t-stripe);
    pointer-events: none;
}

@media (min-width: 969px) {
    html[data-theme] header { background-color: var(--t-dark); }
}

#theme-fx {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 9990;
}

.theme-particle {
    position: absolute;
    top: -30px;
    display: block;
    line-height: 1;
    opacity: 0.85;
    animation-name: theme-fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes theme-fall {
    0% { transform: translate3d(0, -30px, 0) rotate(0deg); }
    100% { transform: translate3d(var(--drift, 0px), 105vh, 0) rotate(360deg); }
}

#theme-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9995;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    background: var(--t-dark);
    color: #ffffff;
    font-size: 0.8rem;
    text-align: center;
    border-top: 3px solid var(--t-accent);
}

#theme-bar button {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
}

#theme-toggle {
    position: fixed;
    left: 0.8rem;
    bottom: 3.4rem;
    z-index: 9996;
    background: #ffffff;
    color: #1a1a1a;
    border: 1px solid #1a1a1a;
    border-radius: 30px;
    padding: 0.35rem 0.8rem;
    font-family: inherit;
    font-size: 0.7rem;
    cursor: pointer;
    opacity: 0.9;
}

@media (prefers-reduced-motion: reduce) {
    #theme-fx { display: none; }
}
