/* DS v6.0 – Header UI overrides (Dark-first, premium, store-optimized)
   Intention:
   - Icons smaller + cleaner
   - Badges crisp and centered
   - Searchbar as segmented control (category | input | submit)
   - Submit stays transparent (no red), only hover/focus accents
   Notes:
   - Uses targeted specificity + !important only where theme buttons override. */

/* -------------------------
   ICON CLUSTER (right side)
-------------------------- */
body[data-theme="dark"] {
    --ds-bg-page: #0B0F14;
    --ds-bg-card: #11171E;
    --ds-bg-elevated: #151C24;
    --ds-bg-overlay: #0B0F14;
    --ds-text-primary: #FFFFFF;
    --ds-text-secondary: rgba(255,255,255,0.65);
    --ds-text-muted: rgba(255,255,255,0.45);
}

body[data-theme] .header-icon-cluster {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

body[data-theme] .header-icon-cluster > :is(a, button),
body[data-theme] .header-icon-btn {
    align-items: center;
    background-color: transparent;
    border: 1px solid var(--ds-border-1);
    border-radius: 10px;
    color: var(--ds-text-2);
    display: inline-flex;
    flex: 0 0 auto;
    height: 34px;
    justify-content: center;
    margin: 0;
    position: relative;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    width: 34px;
}

body[data-theme="dark"] .header-icon-cluster > :is(a, button),
body[data-theme="dark"] .header-icon-btn {
    background-color: rgba(255,255,255,0.02);
}

body[data-theme] .header-icon-cluster :is(i, svg),
body[data-theme] .header-icon-btn :is(i, svg) {
    font-size: 14px !important;
    line-height: 1;
}

body[data-theme] .header-icon-cluster svg,
body[data-theme] .header-icon-btn svg {
    fill: none;
    stroke: currentColor;
}

body[data-theme] .header-icon-cluster > :is(a, button):hover,
body[data-theme] .header-icon-btn:hover {
    background-color: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.14);
    box-shadow: var(--ds-shadow-1);
    color: var(--ds-text-1);
    transform: translateY(-1px);
}

body[data-theme] .header-icon-cluster > :is(a, button):focus-visible,
body[data-theme] .header-icon-btn:focus-visible,
body[data-theme] .navigation-bar__list a:focus-visible,
body[data-theme] :is(button, .btn, a, input, select, textarea):focus-visible {
    outline: 2px solid var(--ds-accent);
    outline-offset: 2px;
}

/* Badge counters – crisp, centered, premium */
body[data-theme] :is(.header-icon-cluster .tp-product-count, .header-icon-cluster .tp-product-compare-count, .header-icon-cluster .tp-product-wishlist-count, .header-cart .tp-product-count, .header-cart .tp-product-compare-count, .header-cart .tp-product-wishlist-count) {
    align-items: center;
    background-color: var(--ds-accent);
    border: none !important;
    border-radius: 999px;
    box-shadow: none !important;
    color: var(--ds-accent-contrast);
    display: inline-flex;
    font-size: 10px;
    font-weight: 700;
    height: 16px;
    justify-content: center;
    line-height: 1;
    min-width: 16px;
    padding: 0 4px;
    position: absolute;
    right: -10px;
    top: -6px;
}

body[data-theme="dark"] :is(.header-icon-cluster .tp-product-count, .header-icon-cluster .tp-product-compare-count, .header-icon-cluster .tp-product-wishlist-count, .header-cart .tp-product-count, .header-cart .tp-product-compare-count, .header-cart .tp-product-wishlist-count) {
    border-color: transparent;
}


/* -------------------------
   LOGO SWITCH (light/dark mode)
-------------------------- */
body[data-theme] .site-logo {
    display: inline-flex;
    align-items: center;
}

body[data-theme] .site-logo .logo-image {
    display: block;
}

body[data-theme] .site-logo .logo-image--light,
body[data-theme] .site-logo .logo-image--dark {
    display: none;
}

body[data-theme="light"] .site-logo .logo-image--light,
body[data-theme="dark"] .site-logo .logo-image--dark {
    display: block;
}

/* -------------------------
   HEADER BACKGROUND (light/dark aware)
-------------------------- */
body[data-theme="light"] :is(.main-header, #header-sticky) {
    background-color: #ffffff !important;
    color: var(--ds-text-1);
}

body[data-theme="dark"] :is(.main-header, #header-sticky) {
    background-color: #121419 !important;
    color: var(--ds-text-1);
}

/* ─────────────────────────────────────────────────────
   TOP HERO MODE — header floats over hero with blur overlay
───────────────────────────────────────────────────── */
body.has-top-hero .main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    background-color: rgba(10, 12, 16, 0.72) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    transition: background-color 0.3s ease;
}

body.has-top-hero :is(#header-sticky, #header-tab-sticky) {
    background-color: rgba(10, 12, 16, 0.88) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

body.has-top-hero .ds-mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    background-color: rgba(10, 12, 16, 0.88) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

body.has-top-hero .tp-hero-area.has-top-hero-section {
    padding-top: 0 !important;
    margin-top: 0 !important;
}


/* -------------------------
   HEADER CATEGORIES BUTTON
-------------------------- */
body[data-theme] .main-header .cat-menu__category > .tp-cat-toggle,
body[data-theme] #header-sticky .cat-menu__category > .tp-cat-toggle {
    background-color: var(--ds-accent);
    border-color: var(--ds-accent);
    color: var(--ds-text-1) !important;
    font-family: "Jost", sans-serif;
}

body[data-theme] .main-header .cat-menu__category > .tp-cat-toggle i,
body[data-theme] #header-sticky .cat-menu__category > .tp-cat-toggle i {
    color: var(--ds-text-1);
}

body[data-theme] .main-header .cat-menu__category > .tp-cat-toggle:hover,
body[data-theme] #header-sticky .cat-menu__category > .tp-cat-toggle:hover {
    color: var(--ds-text-1) !important;
}

/* -------------------------
   SEARCHBAR (segmented)
-------------------------- */
body[data-theme] .ds-header-search .ds-header-search__control {
    align-items: center;
    background-color: rgba(255,255,255,0.02);
    border: 1px solid var(--ds-border-1);
    border-radius: 12px;
    display: flex;
    gap: 0;
    height: 46px;
    min-height: 46px;
    padding: 0 8px;
    position: relative;
}

body[data-theme="dark"] .ds-header-search .ds-header-search__control {
    background-color: rgba(255,255,255,0.03);
}

/* segments */
body[data-theme] .ds-header-search .ds-header-search__seg {
    align-items: center;
    display: inline-flex;
    height: 38px;
    min-height: 38px;
}

/* divider between segments (category|input|submit) */
body[data-theme] .ds-header-search .ds-header-search__seg--category,
body[data-theme] .ds-header-search .ds-header-search__seg--submit {
    position: relative;
}

body[data-theme] .ds-header-search .ds-header-search__seg--category::after {
    background-color: var(--ds-divider, var(--ds-border-1));
    content: "";
    height: 22px;
    opacity: 0.75;
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
}

body[data-theme] .ds-header-search .ds-header-search__seg--input {
    flex: 1 1 auto;
    min-width: 180px;
    padding-inline: 10px;
}

body[data-theme] .ds-header-search .ds-header-search__seg--submit {
    flex: 0 0 auto;
    width: 42px;
    justify-content: center;
    margin-left: 6px;
}

/* Category segment */
body[data-theme] .ds-header-search .ds-header-search__seg--category {
    background-color: transparent !important;
    border-radius: 10px;
    flex: 0 0 auto;
    margin-inline-end: 10px;
    padding-inline: 8px 12px;
    width: 220px;
}

body[data-theme] .ds-header-search .ds-header-search__category-label {
    align-items: center;
    color: var(--ds-text-1);
    cursor: pointer;
    display: inline-flex;
    gap: 8px;
    height: 38px;
    margin: 0;
    padding: 0 8px;
    user-select: none;
    width: 100%;
}

body[data-theme] .ds-header-search .product-category-label__text {
    display: inline-block;
    flex: 1 1 auto;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body[data-theme] .ds-header-search .ds-header-search__category-label i {
    font-size: 12px;
    opacity: 0.9;
}


body[data-theme] .ds-header-search .ds-header-search__seg--category:hover,
body[data-theme] .ds-header-search .ds-header-search__seg--category:focus-within {
    background-color: transparent !important;
}

body[data-theme] .ds-header-search .ds-header-search__seg--category:hover .ds-header-search__category-label,
body[data-theme] .ds-header-search .ds-header-search__seg--category:hover .ds-header-search__category-label i {
    color: var(--ds-text-1);
}

/* Keep select clickable but invisible */
body[data-theme] .ds-header-search .ds-header-search__category-select {
    appearance: none;
    cursor: pointer;
    inset: 0;
    opacity: 0;
    position: absolute;
}

body[data-theme] .ds-header-search .ds-header-search__category-select,
body[data-theme] .ds-header-search .ds-header-search__category-select option {
    font-family: "Jost", sans-serif;
}

/* -------------------------
   PRODUCT LISTING FILTERS + VIEW SWITCH (premium)
-------------------------- */
body[data-theme] .bb-shop-sidebar .bb-product-filter {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--ds-border-1);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(18, 24, 36, 0.06);
    margin-bottom: 16px;
    padding: 18px 16px;
}

body[data-theme="dark"] .bb-shop-sidebar .bb-product-filter {
    background: var(--ds-bg-card);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

body[data-theme] .bb-shop-sidebar .bb-product-filter-title {
    border-bottom-color: var(--ds-border-1);
    margin-bottom: 14px;
    padding-bottom: 12px;
}

body[data-theme="dark"] .bb-shop-sidebar .bb-product-filter-title {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body[data-theme] .bb-shop-sidebar .bb-product-filter-items {
    gap: 8px;
}

body[data-theme] .bb-shop-sidebar .bb-product-filter-item {
    border-radius: 10px;
    padding: 6px 8px;
}

body[data-theme="dark"] .bb-shop-sidebar .bb-product-filter-item {
    background: rgba(255, 255, 255, 0.02);
}

body[data-theme] .bb-shop-sidebar .price-slider,
body[data-theme] .bb-shop-sidebar .ui-widget.ui-widget-content {
    border-radius: 999px;
}

body[data-theme] .product-filter-nav .nav-tabs {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--ds-border-1);
    border-radius: 12px;
    gap: 6px;
    padding: 4px;
}

body[data-theme="dark"] .product-filter-nav .nav-tabs {
    background: var(--ds-bg-elevated);
    border-color: rgba(255, 255, 255, 0.08);
}

body[data-theme] .product-filter-nav .nav-tabs .nav-link {
    align-items: center;
    border: 0;
    border-radius: 8px;
    color: var(--ds-text-3);
    display: inline-flex;
    height: 30px;
    justify-content: center;
    padding: 0 10px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

body[data-theme="dark"] .product-filter-nav .nav-tabs .nav-link {
    color: var(--ds-text-secondary);
}

body[data-theme] .product-filter-nav .nav-tabs .nav-link.active {
    background: rgba(255, 255, 255, 0.86);
    color: var(--ds-text-1);
}

body[data-theme="dark"] .product-filter-nav .nav-tabs .nav-link.active {
    background: color-mix(in srgb, var(--ds-bg-elevated) 84%, #FFFFFF 16%);
    color: var(--ds-text-primary);
}

/* Input */
body[data-theme] .ds-header-search .ds-header-search__input {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--ds-text-1) !important;
    height: 38px !important;
    min-height: 38px !important;
    outline: none !important;
    padding: 0 !important;
    width: 100%;
}

body[data-theme] .ds-header-search .ds-header-search__input::placeholder {
    color: var(--ds-text-3);
    opacity: 1;
}

/* Submit button MUST stay transparent (override theme button styles) */
body[data-theme] .ds-header-search button.ds-header-search__seg--submit {
    background: transparent !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
    color: var(--ds-text-2) !important;
    padding: 0 !important;
    border-radius: 10px !important;
}

body[data-theme] .ds-header-search button.ds-header-search__seg--submit i {
    font-size: 14px;
    line-height: 1;
}

body[data-theme] .ds-header-search button.ds-header-search__seg--submit:hover {
    background-color: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.14) !important;
    box-shadow: var(--ds-shadow-1) !important;
    color: var(--ds-accent) !important;
    transform: translateY(-1px);
}

body[data-theme] .ds-header-search .ds-header-search__control:focus-within {
    border-color: var(--ds-accent);
    box-shadow: 0 0 0 2px rgba(207,239,65,0.18);
}

/* Prevent older theme padding hacks from interfering */
body[data-theme] .ds-header-search input.has-category-select {
    padding-inline-start: 0 !important;
}

/* Responsive */
@media (max-width: 767px) {
    body[data-theme] .ds-header-search .ds-header-search__seg--category {
        width: 170px;
    }

    body[data-theme] .ds-header-search .ds-header-search__seg--input {
        min-width: 120px;
    }
}

/* -------------------------
   BLOG SECTION (homepage featured posts)
-------------------------- */
body[data-theme] .ds-blog {
    color: var(--ds-text-1);
}

body[data-theme] .ds-blog__cta {
    align-items: center;
    border: 1px solid var(--ds-border-1);
    border-radius: 999px;
    color: var(--ds-text-1);
    display: inline-flex;
    font-size: 13px;
    font-weight: 600;
    gap: 8px;
    line-height: 1;
    padding: 10px 16px;
    transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease;
}

body[data-theme] .ds-blog__cta:hover {
    background-color: var(--ds-accent);
    border-color: var(--ds-accent);
    color: var(--ds-accent-contrast);
    transform: translateY(-1px);
}

body[data-theme] .ds-blog-card {
    background-color: var(--ds-surface-1);
    border: 1px solid var(--ds-border-1);
    border-radius: 14px;
    box-shadow: var(--ds-shadow-1);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

body[data-theme] .ds-blog-card:hover {
    border-color: var(--ds-accent);
    box-shadow: var(--ds-shadow-2);
    transform: translateY(-2px);
}

body[data-theme] .ds-blog-card__thumb {
    aspect-ratio: 16 / 10;
    display: block;
    overflow: hidden;
}

body[data-theme] .ds-blog-card__thumb img {
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
    width: 100%;
}

body[data-theme] .ds-blog-card:hover .ds-blog-card__thumb img {
    transform: scale(1.03);
}

body[data-theme] .ds-blog-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 16px 18px 18px;
}

body[data-theme] .ds-blog-card__meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 8px;
}

body[data-theme] .ds-blog-card__meta-item {
    color: var(--ds-text-3);
    line-height: 1.4;
}

body[data-theme] .ds-blog-card__meta-item--link {
    color: var(--ds-text-2);
    font-weight: 500;
}

body[data-theme] .ds-blog-card__meta-item--link:hover {
    color: var(--ds-accent);
}

body[data-theme] .ds-blog-card__title {
    font-size: 20px;
    line-height: 1.35;
    margin: 0;
}

body[data-theme] .ds-blog-card__title a {
    color: inherit;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

body[data-theme] .ds-blog-card__title a:hover {
    color: var(--ds-accent);
}

body[data-theme] .ds-blog-rail {
    background-color: var(--ds-surface-1);
    border: 1px solid var(--ds-border-1);
    border-radius: 14px;
    box-shadow: var(--ds-shadow-1);
    overflow: hidden;
    padding: 10px 16px;
}

body[data-theme] .ds-blog-rail__item {
    align-items: center;
    display: flex;
    gap: 12px;
    padding: 12px 0;
}

body[data-theme] .ds-blog-rail__item--divider {
    border-bottom: 1px solid var(--ds-border-1);
}

body[data-theme] .ds-blog-rail__thumb {
    border-radius: 10px;
    flex: 0 0 76px;
    height: 76px;
    overflow: hidden;
}

body[data-theme] .ds-blog-rail__thumb img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

body[data-theme] .ds-blog-rail__date {
    color: var(--ds-text-3);
    display: block;
    font-size: 12px;
    line-height: 1.2;
    margin-bottom: 6px;
}

body[data-theme] .ds-blog-rail__title {
    font-size: 16px;
    line-height: 1.35;
    margin: 0;
}

body[data-theme] .ds-blog-rail__title a {
    color: var(--ds-text-1);
}

body[data-theme] .ds-blog-rail__title a:hover {
    color: var(--ds-accent);
}

@media (max-width: 991px) {
    body[data-theme] .ds-blog-rail {
        padding: 8px 14px;
    }
}

/* Blog shortcode list override (central managed cards) */
.ds-blog-list {
    color: var(--ds-text-1);
}

.ds-blog-list__heading {
    margin-bottom: 22px;
}

.ds-blog-list__title {
    font-size: clamp(28px, 3vw, 36px);
    line-height: 1.15;
    margin: 0;
}

.ds-blog-list__subtitle {
    color: var(--ds-text-3);
    margin: 8px 0 0;
    max-width: 640px;
}

.ds-blog-list__description {
    color: var(--ds-text-2);
    margin: 10px 0 0;
    max-width: 760px;
}

#blog-posts-section {
    scroll-margin-top: 120px;
}

.ds-blog-list__card {
    height: 100%;
}

.ds-blog-list__excerpt {
    color: var(--ds-text-2);
    line-height: 1.6;
    margin: 0;
}

.ds-blog-list__pagination {
    margin-top: 26px;
}

/* Fallback if data-theme attribute is not present */
body:not([data-theme]) .ds-blog-card {
    background-color: #fff;
    border: 1px solid rgba(20, 26, 36, 0.12);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(12, 18, 26, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body:not([data-theme]) .ds-blog-card__thumb {
    aspect-ratio: 16 / 10;
    display: block;
    overflow: hidden;
}

body:not([data-theme]) .ds-blog-card__thumb img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

body:not([data-theme]) .ds-blog-card__body {
    padding: 16px 18px 18px;
}

body:not([data-theme]) .ds-blog-card__meta {
    color: #5c6573;
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 8px;
    margin-bottom: 10px;
}

body:not([data-theme]) .ds-blog-card__title {
    font-size: 20px;
    line-height: 1.35;
    margin: 0 0 10px;
}

/* -------------------------
   FAQ SECTION (design-system tokens, dark-mode aware)
-------------------------- */
body[data-theme] .ds-faq {
    color: var(--ds-text-1);
    font-family: var(--ds-font-family-body);
}

body[data-theme] .ds-faq__category-title {
    color: var(--ds-text-1);
    font-family: var(--ds-font-family-heading);
}

body[data-theme] .ds-faq__category-description {
    color: var(--ds-text-2);
}

body[data-theme] .ds-faq .accordion-wrap-three .accordion-item.ds-faq__item {
    background-color: var(--ds-surface-1);
    border: 1px solid var(--ds-border-1);
    border-radius: var(--ds-radius-2);
    overflow: hidden;
}

body[data-theme] .ds-faq .accordion-wrap-three .accordion-button.ds-faq__button {
    background-color: var(--ds-surface-1);
    color: var(--ds-text-1);
    font-family: var(--ds-font-family-body);
    font-size: var(--ds-font-size-base);
    font-weight: 600;
}

body[data-theme] .ds-faq .accordion-wrap-three .accordion-button.ds-faq__button::after {
    filter: var(--ds-faq-icon-filter, none);
}

body[data-theme] .ds-faq .accordion-wrap-three .accordion-button.ds-faq__button:not(.collapsed) {
    background-color: var(--ds-surface-2);
    color: var(--ds-text-1);
}

body[data-theme] .ds-faq .accordion-wrap-three .accordion-body.ds-faq__body {
    background-color: var(--ds-surface-1);
    border-top: 1px solid var(--ds-border-1);
    color: var(--ds-text-2);
    font-family: var(--ds-font-family-body);
}

body[data-theme="dark"] .ds-faq .accordion-wrap-three .accordion-button.ds-faq__button::after {
    --ds-faq-icon-filter: brightness(0) saturate(100%) invert(94%) sepia(10%) saturate(81%) hue-rotate(193deg) brightness(101%) contrast(90%);
}

/* -------------------------
   CART + CHECKOUT EVOLUTION (dark-first, mobile-first)
-------------------------- */
body[data-theme] :is(.ds-cart-page, .ds-checkout-page),
body[data-theme].ds-checkout-page {
    --ds-bg-page: var(--ds-bg-page, #0B0F14);
    --ds-bg-base: var(--ds-bg-page);
    --ds-bg-card: var(--ds-bg-card, #11171E);
    --ds-bg-elevated: var(--ds-bg-elevated, #151C24);
    --ds-bg-overlay: var(--ds-bg-overlay, #0B0F14);
    --ds-border-soft: rgba(255,255,255,0.08);
    --ds-divider: rgba(255,255,255,0.12);
    --ds-primary: var(--ds-primary, #A8C819);
    --ds-success: #6EDC5F;
    --ds-error: #FF5A5A;
    --ds-text-primary: var(--ds-text-primary, #FFFFFF);
    --ds-text: var(--ds-text-primary);
    --ds-text-secondary: var(--ds-text-secondary, rgba(255,255,255,0.65));
    --ds-text-muted: var(--ds-text-muted, rgba(255,255,255,0.45));
    --ds-input-bg: #0F141A;
    --ds-shadow-soft: 0 10px 30px rgba(0,0,0,0.40);
    --ds-radius-card: 12px;
    --ds-radius-elevated: 14px;
    --ds-radius-input: 10px;
    --ds-space-1: 8px;
    --ds-space-2: 12px;
    --ds-space-3: 16px;
    --ds-space-4: 20px;
    --ds-space-5: 24px;
    --ds-font-size-12: 12px;
    --ds-font-size-14: 14px;
    --ds-font-size-16: 16px;
    --ds-font-size-18: 18px;
    --ds-font-size-24: 24px;
}

body[data-theme="dark"] .ds-cart-page {
    background: var(--ds-bg-base);
    color: var(--ds-text);
    padding-bottom: 50px;
}

body[data-theme="dark"] .ds-cart-page__container {
    margin: 0 auto;
    max-width: 1200px;
}

body[data-theme="dark"] .ds-cart-header {
    background: none;
    border: none;
    margin-bottom: 24px;
    padding: 0;
}

body[data-theme="dark"] .ds-cart-header__copy,
body[data-theme="dark"] .ds-cart-header__chips,
body[data-theme="dark"] .ds-cart-header__eyebrow {
    display: none;
}

body[data-theme="dark"] .ds-cart-header__title {
    font-size: 28px;
    font-weight: 600;
}

body[data-theme="dark"] .ds-cart-grid {
    align-items: start;
    display: grid;
    gap: 40px;
    grid-template-columns: 2fr 1fr;
}

body[data-theme="dark"] .ds-cart-item,
body[data-theme="dark"] .ds-cart-summary,
body[data-theme="dark"] .ds-cart-coupon,
body[data-theme="dark"] .ds-cart-timer {
    background: var(--ds-bg-card);
    border: 1px solid var(--ds-border-soft);
    border-radius: var(--ds-radius-card);
    box-shadow: var(--ds-shadow-soft);
}

body[data-theme="dark"] .ds-cart-item {
    align-items: center;
    background: var(--ds-bg-card);
    border-radius: 14px;
    display: grid;
    gap: 20px;
    grid-template-columns: 90px 1fr 160px;
    padding: 20px;
}

body[data-theme="dark"] .ds-cart-item__media {
    border-radius: 10px;
    height: 90px;
    overflow: hidden;
    width: 90px;
}

body[data-theme="dark"] .ds-cart-item__media img {
    border-radius: 10px;
    height: 90px;
    object-fit: cover;
    width: 90px;
}

body[data-theme="dark"] .ds-cart-item__title {
    color: var(--ds-text);
    font-size: var(--ds-font-size-16);
    font-weight: 600;
    line-height: 1.3;
}

body[data-theme="dark"] .ds-cart-item__eyebrow,
body[data-theme="dark"] .ds-cart-item__variant,
body[data-theme="dark"] .ds-cart-item__meta,
body[data-theme="dark"] .ds-cart-item__unit-price span,
body[data-theme="dark"] .ds-cart-summary__row span,
body[data-theme="dark"] .ds-cart-summary > small,
body[data-theme="dark"] .ds-cart-timer__hint {
    color: var(--ds-text-secondary);
}

body[data-theme="dark"] .ds-cart-item__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

body[data-theme="dark"] .ds-cart-item__eyebrow,
body[data-theme="dark"] .ds-cart-item__eyebrow span {
    font-size: 12px;
    opacity: 0.6;
}

body[data-theme="dark"] .ds-cart-item__actions {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body[data-theme="dark"] .ds-qty {
    align-items: center;
    background: var(--ds-input-bg);
    border: 1px solid var(--ds-border-soft);
    border-radius: var(--ds-radius-input);
    display: grid;
    grid-template-columns: 36px minmax(70px, 1fr) 36px;
    min-height: 36px;
    overflow: hidden;
}

body[data-theme="dark"] .ds-qty__btn,
body[data-theme="dark"] .ds-qty__input {
    background: transparent;
    border: 0;
    color: var(--ds-text);
    min-height: 36px;
    text-align: center;
    transition: background-color 150ms ease-out, color 150ms ease-out;
}

body[data-theme="dark"] .ds-qty__btn:hover,
body[data-theme="dark"] .ds-qty__btn:focus-visible {
    background: rgba(255,255,255,0.08);
}

body[data-theme="dark"] .ds-cart-item__unit-price span {
    font-size: 12px;
    opacity: 0.6;
}

body[data-theme="dark"] .ds-cart-item__unit-price strong {
    font-size: 16px;
}

body[data-theme="dark"] .ds-cart-item__line-total {
    color: var(--ds-primary);
    font-size: var(--ds-font-size-18);
    font-weight: 600;
    margin: 0;
}

body[data-theme="dark"] .ds-cart-item__remove {
    align-items: center;
    border: 1px solid var(--ds-border-soft);
    border-radius: 999px;
    color: var(--ds-text-muted);
    display: inline-flex;
    height: 36px;
    justify-content: center;
    width: 36px;
}

body[data-theme="dark"] .ds-cart-item__remove:hover {
    border-color: var(--ds-error);
    color: var(--ds-error);
}

body[data-theme="dark"] .ds-cart-coupon {
    margin-top: var(--ds-space-3);
    padding: var(--ds-space-3);
}

body[data-theme="dark"] .ds-cart-coupon > summary {
    color: var(--ds-text);
    cursor: pointer;
    font-size: var(--ds-font-size-14);
    font-weight: 600;
}

body[data-theme="dark"] .ds-cart-coupon__body {
    display: grid;
    gap: var(--ds-space-2);
    margin-top: var(--ds-space-2);
}

body[data-theme="dark"] .ds-cart-coupon .input-text {
    background: var(--ds-input-bg);
    border: 1px solid var(--ds-border-soft);
    border-radius: var(--ds-radius-input);
    color: var(--ds-text);
    min-height: 46px;
    padding: 0 14px;
}

body[data-theme="dark"] .ds-cart-summary {
    background: var(--ds-bg-elevated);
    border-radius: 16px;
    padding: 28px;
    position: sticky;
    top: 120px;
}

body[data-theme="dark"] .ds-cart-summary__row {
    align-items: center;
    display: flex;
    font-size: var(--ds-font-size-14);
    justify-content: space-between;
    margin-bottom: var(--ds-space-2);
}

body[data-theme="dark"] .ds-cart-summary__row strong { color: var(--ds-text); }

body[data-theme="dark"] .ds-cart-summary__total {
    align-items: baseline;
    border-top: 1px solid var(--ds-divider);
    display: flex;
    justify-content: space-between;
    margin-top: var(--ds-space-3);
    padding-top: var(--ds-space-3);
}

body[data-theme="dark"] .ds-cart-summary__total span {
    color: var(--ds-text-secondary);
    font-size: var(--ds-font-size-14);
    font-weight: 600;
    letter-spacing: .04em;
}

body[data-theme="dark"] .ds-cart-summary__total strong {
    color: var(--ds-primary);
    font-size: 24px;
    font-weight: 700;
}

body[data-theme="dark"] .ds-cart-timer {
    background: var(--ds-bg-card);
    border-radius: 12px;
    margin-bottom: 24px;
    padding: 16px;
}

body[data-theme="dark"] .ds-cart-timer__time {
    color: var(--ds-text);
    font-size: var(--ds-font-size-18);
    font-weight: 600;
}

body[data-theme="dark"] .ds-cart-timer__bar-wrap {
    background: rgba(255,255,255,0.1);
    border-radius: 999px;
    height: 4px;
}

body[data-theme="dark"] .ds-cart-timer__bar {
    background: var(--ds-primary);
    border-radius: inherit;
}

body[data-theme="dark"] .ds-cart-sticky-bar {
    background: color-mix(in srgb, var(--ds-bg-overlay) 96%, transparent);
    border-top: 1px solid var(--ds-divider);
    bottom: 0;
    display: grid;
    gap: 10px;
    left: 0;
    padding: 12px;
    position: fixed;
    right: 0;
    z-index: 40;
}

body[data-theme="dark"] .ds-cart-sticky-bar__total {
    align-items: baseline;
    display: flex;
    justify-content: space-between;
}

body[data-theme="dark"] .ds-cart-sticky-bar__total span { color: var(--ds-text-secondary); font-size: 12px; }
body[data-theme="dark"] .ds-cart-sticky-bar__total strong { color: var(--ds-primary); font-size: 20px; font-weight: 700; }
body[data-theme="dark"] .ds-cart-sticky-bar__cta { min-height: 48px; }

/* -------------------------
   GLOBAL DARK MODE FORM SYSTEM
   Covers: checkout, auth (login/register/password/account), contact, all storefront forms.
   Checkout adds a higher-specificity override below.
-------------------------- */

/* Base inputs */
body[data-theme="dark"] .form-control,
body[data-theme="dark"] .form-select {
    background-color: #12181F;
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--ds-text-1);
}

body[data-theme="dark"] .form-control:focus,
body[data-theme="dark"] .form-select:focus {
    background-color: #12181F;
    border-color: var(--ds-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ds-accent, #A8C819) 28%, transparent);
    color: var(--ds-text-1);
    outline: none;
}

body[data-theme="dark"] .form-control::placeholder,
body[data-theme="dark"] .form-select::placeholder {
    color: var(--ds-text-3);
    opacity: 1;
}

/* Labels */
body[data-theme="dark"] .form-label,
body[data-theme="dark"] label.col-form-label {
    color: var(--ds-text-1);
}

/* Validation states */
body[data-theme="dark"] .form-control.is-invalid,
body[data-theme="dark"] .form-select.is-invalid {
    border-color: var(--ds-danger);
}

body[data-theme="dark"] .form-control.is-invalid:focus,
body[data-theme="dark"] .form-select.is-invalid:focus {
    border-color: var(--ds-danger);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ds-danger, #FF5C5C) 28%, transparent);
}

body[data-theme="dark"] .form-control.is-valid {
    border-color: var(--ds-success);
}

body[data-theme="dark"] .invalid-feedback,
body[data-theme="dark"] .field-error {
    color: var(--ds-danger);
}

/* Nice-select (enhanced dropdowns) */
body[data-theme="dark"] .nice-select {
    background-color: #12181F;
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--ds-text-1);
}

body[data-theme="dark"] .nice-select.open,
body[data-theme="dark"] .nice-select:focus {
    border-color: var(--ds-accent);
}

body[data-theme="dark"] .nice-select .list {
    background-color: var(--ds-surface-1);
    border-color: rgba(255, 255, 255, 0.12);
}

body[data-theme="dark"] .nice-select .option {
    color: var(--ds-text-1);
}

body[data-theme="dark"] .nice-select .option:hover,
body[data-theme="dark"] .nice-select .option.selected {
    background-color: color-mix(in srgb, var(--ds-accent, #A8C819) 12%, var(--ds-surface-1, #262626));
    color: var(--ds-accent, #A8C819);
}

/* Input groups (phone, grouped fields) */
body[data-theme="dark"] .input-group > .form-control,
body[data-theme="dark"] .input-group > .form-select,
body[data-theme="dark"] .input-group-text {
    background-color: #12181F;
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--ds-text-1);
}

body[data-theme="dark"] .input-group > .form-control:focus {
    background-color: #12181F;
    border-color: var(--ds-accent);
    color: var(--ds-text-1);
    z-index: 3;
}

/* Auth forms (.track-area wrapper) */
body[data-theme="dark"] .track-area {
    color: var(--ds-text-1);
}

body[data-theme="dark"] .track-area .form-control,
body[data-theme="dark"] .track-area .form-select {
    background-color: #12181F;
    border-color: rgba(255, 255, 255, 0.16);
    color: var(--ds-text-1);
}

body[data-theme="dark"] .track-area .form-control:focus {
    border-color: var(--ds-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ds-accent, #A8C819) 28%, transparent);
}

body[data-theme="dark"] .track-area .form-label {
    color: var(--ds-text-2);
}

/* Select2 dark overrides */
body[data-theme="dark"] .select2-container--default .select2-selection--single {
    background-color: #12181F;
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--ds-text-1);
    height: 40px;
}

body[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--ds-text-1);
    line-height: 38px;
    padding-left: 12px;
}

body[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
}

body[data-theme="dark"] .select2-container--default.select2-container--open .select2-selection--single,
body[data-theme="dark"] .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--ds-accent);
    outline: none;
}

body[data-theme="dark"] .select2-dropdown {
    background-color: #12181F;
    border-color: rgba(255, 255, 255, 0.12);
}

body[data-theme="dark"] .select2-container--default .select2-results__option {
    color: var(--ds-text-1);
    background-color: transparent;
}

body[data-theme="dark"] .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: rgba(168, 200, 25, 0.15);
    color: var(--ds-accent, #A8C819);
}

body[data-theme="dark"] .select2-container--default .select2-results__option[aria-selected=true] {
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--ds-text-1);
}

body[data-theme="dark"] .select2-search--dropdown .select2-search__field {
    background-color: #0F141A;
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--ds-text-1);
}

/* Autofill suppression — prevents browser from overriding dark input bg */
body[data-theme="dark"] input:-webkit-autofill,
body[data-theme="dark"] input:-webkit-autofill:hover,
body[data-theme="dark"] input:-webkit-autofill:focus,
body[data-theme="dark"] textarea:-webkit-autofill,
body[data-theme="dark"] select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #12181F inset !important;
    -webkit-text-fill-color: var(--ds-text-1, #EFEFEF) !important;
    caret-color: var(--ds-text-1, #EFEFEF);
}

body[data-theme="dark"].ds-checkout-page input:-webkit-autofill,
body[data-theme="dark"].ds-checkout-page input:-webkit-autofill:hover,
body[data-theme="dark"].ds-checkout-page input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #0F141A inset !important;
    -webkit-text-fill-color: var(--ds-text-1, #EFEFEF) !important;
    caret-color: var(--ds-text-1, #EFEFEF);
}

/* .select--arrow wrapper used in checkout address form */
body[data-theme="dark"] .select--arrow {
    position: relative;
}

body[data-theme="dark"] .select--arrow::after {
    border-color: rgba(255, 255, 255, 0.45) transparent transparent transparent;
    border-style: solid;
    border-width: 5px 4px 0;
    content: '';
    pointer-events: none;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%) translateY(1px);
}

body[data-theme="dark"] .select--arrow select.form-control {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 32px;
}

/* -------------------------
   CHECKOUT DARK MODE (overrides global above — body has .ds-checkout-page class)
-------------------------- */
body[data-theme="dark"].ds-checkout-page {
    background: var(--ds-bg-base);
    color: var(--ds-text);
}

body[data-theme="dark"] .ds-checkout-panel,
body[data-theme="dark"] .ds-checkout-orderbar,
body[data-theme="dark"] .ds-checkout-panel__summary {
    background: var(--ds-bg-card);
    border: 1px solid var(--ds-border-soft);
    border-radius: var(--ds-radius-elevated);
    box-shadow: var(--ds-shadow-soft);
}

body[data-theme="dark"] .ds-checkout-panel__title,
body[data-theme="dark"] .ds-checkout-accordion__title {
    color: var(--ds-text);
    font-size: var(--ds-font-size-18);
    font-weight: 600;
}

body[data-theme="dark"] .ds-checkout-panel__body {
    display: grid;
    gap: var(--ds-space-4);
}

body[data-theme="dark"].ds-checkout-page .form-control,
body[data-theme="dark"].ds-checkout-page .nice-select {
    background-color: var(--ds-input-bg) !important;
    border: 1px solid var(--ds-border-soft) !important;
    border-radius: var(--ds-radius-input) !important;
    color: var(--ds-text) !important;
    min-height: 48px;
}

body[data-theme="dark"].ds-checkout-page .form-control:focus,
body[data-theme="dark"].ds-checkout-page .nice-select:focus,
body[data-theme="dark"].ds-checkout-page .form-control:focus-visible {
    border-color: var(--ds-primary) !important;
    box-shadow: 0 0 0 3px rgba(168, 200, 25, 0.25) !important;
    outline: none;
}

body[data-theme="dark"].ds-checkout-page .form-control.is-valid {
    border-color: var(--ds-success) !important;
    padding-right: 40px;
}

body[data-theme="dark"].ds-checkout-page .invalid-feedback,
body[data-theme="dark"].ds-checkout-page .form-control.is-invalid ~ .error-help,
body[data-theme="dark"].ds-checkout-page .field-error {
    color: var(--ds-error) !important;
    font-size: 12px;
    margin-top: 6px;
}

body[data-theme="dark"].ds-checkout-page .payment-method-item {
    background: var(--ds-bg-card);
    border: 1px solid var(--ds-border-soft);
    border-radius: var(--ds-radius-card);
    margin-bottom: var(--ds-space-2);
    padding: var(--ds-space-3);
    position: relative;
    transition: border-color 150ms ease-out, box-shadow 150ms ease-out, background-color 150ms ease-out;
}

body[data-theme="dark"].ds-checkout-page :is(.payment-method-item .border-pay-row, .payment-method-item .border-pay-row .border-pay-col, .payment-method-item .payment-content-item, .payment-content-item) {
    background: var(--ds-bg-card) !important;
    color: var(--ds-text-primary);
}

body[data-theme="dark"].ds-checkout-page :is(.payment-method-item .border-pay-row, .payment-method-item .border-pay-row .border-pay-col, .payment-content-item > td) {
    border-color: var(--ds-border-soft) !important;
}

body[data-theme="dark"].ds-checkout-page .nice-select .list {
    background-color: var(--ds-bg-elevated);
    border: 1px solid var(--ds-border-soft);
}

body[data-theme="dark"].ds-checkout-page .payment-method-item:has(.js_payment_method:checked) {
    background: color-mix(in srgb, var(--ds-primary) 10%, var(--ds-bg-card));
    border-color: var(--ds-primary);
    box-shadow: var(--ds-shadow-soft);
}

body[data-theme="dark"].ds-checkout-page .payment-method-item .form-label {
    color: var(--ds-text);
    cursor: pointer;
    display: block;
    margin-bottom: 0;
    padding-left: 28px;
}

body[data-theme="dark"].ds-checkout-page .payment-method-item .js_payment_method {
    margin-top: 2px;
    position: absolute;
}

body[data-theme="dark"].ds-checkout-page .checkout-order-info-price,
body[data-theme="dark"].ds-checkout-page .checkout-order-info-total,
body[data-theme="dark"].ds-checkout-page .checkout-order-info .total-amount,
body[data-theme="dark"].ds-checkout-page .checkout-order-info .amount {
    color: var(--ds-primary) !important;
    font-size: var(--ds-font-size-24);
    font-weight: 700;
}

body[data-theme="dark"] .ds-checkout-panel__summary {
    position: sticky;
    top: 20px;
}

body[data-theme="dark"] .ds-cart-page :is(button, .tp-btn, a, input, select, textarea):focus-visible,
body[data-theme="dark"].ds-checkout-page :is(button, .tp-btn, a, input, select, textarea):focus-visible {
    outline: 2px solid var(--ds-primary);
    outline-offset: 2px;
}


@media (max-width: 991px) {
    body[data-theme="dark"] .ds-cart-grid {
        gap: 24px;
        grid-template-columns: 1fr;
    }

    body[data-theme="dark"] .ds-cart-item {
        grid-template-columns: 90px minmax(0, 1fr);
    }

    body[data-theme="dark"] .ds-cart-item__actions {
        align-items: flex-start;
        flex-direction: row;
        grid-column: 1 / -1;
        justify-content: space-between;
        width: 100%;
    }

    body[data-theme="dark"] .ds-cart-summary {
        position: static;
    }
}

@media (min-width: 992px) {
    body[data-theme="dark"] .ds-cart-sticky-bar { display: none; }

    body[data-theme="dark"] .ds-checkout-panel__body {
        align-items: start;
        gap: 32px;
        grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    }
}

body[data-theme="dark"] .ds-checkout-accordion__item {
    background: var(--ds-bg-card);
    border: 1px solid var(--ds-border-soft);
    border-radius: var(--ds-radius-card);
    margin-bottom: var(--ds-space-3);
    overflow: hidden;
}

body[data-theme="dark"] .ds-checkout-accordion__item > summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: var(--ds-space-2);
    list-style: none;
    min-height: 52px;
    padding: var(--ds-space-3);
}

body[data-theme="dark"] .ds-checkout-accordion__item > summary::-webkit-details-marker { display: none; }
body[data-theme="dark"] .ds-checkout-accordion__item > :not(summary) {
    border-top: 1px solid var(--ds-divider);
    padding: var(--ds-space-3);
}

body[data-theme="dark"] .ds-checkout-accordion__step {
    align-items: center;
    background: color-mix(in srgb, var(--ds-primary) 22%, transparent);
    border: 1px solid color-mix(in srgb, var(--ds-primary) 38%, transparent);
    border-radius: 999px;
    color: var(--ds-primary);
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    height: 24px;
    justify-content: center;
    width: 24px;
}

body[data-theme="dark"] .ds-checkout-accordion__status {
    color: var(--ds-text-muted);
    font-size: 12px;
    margin-left: auto;
}

/* -------------------------
   CHECKOUT — FLOATING LABEL DARK FIX
   Plugin sets background: #fff on ALL floating labels via multiple selectors
   (.checkout-content-wrap, .checkout-form, .form-checkout,
    .customer-address-payment-form, .billing-address-form-wrapper, etc.)
   This blanket override covers ALL of them.
-------------------------- */

/* ALL floating labels in any checkout form — base state (inside input) */
body[data-theme="dark"] .form-input-wrapper label,
body[data-theme="dark"] .phone-input-wrapper label {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.40) !important;
}

/* ALL floating labels — floated state (above border, needs background) */
body[data-theme="dark"] .form-input-wrapper .form-control:not(:placeholder-shown) + label,
body[data-theme="dark"] .form-input-wrapper .form-control:focus + label,
body[data-theme="dark"] .form-input-wrapper .form-control.has-value + label,
body[data-theme="dark"] .form-input-wrapper .form-control:-webkit-autofill + label,
body[data-theme="dark"] .form-input-wrapper .form-control.is-valid + .invalid-feedback + label,
body[data-theme="dark"] .form-input-wrapper .form-control.is-invalid + .invalid-feedback + label,
body[data-theme="dark"] .form-input-wrapper select.form-control + label,
body[data-theme="dark"] .form-input-wrapper.select--arrow label,
body[data-theme="dark"] .form-input-wrapper.select--arrow .select2-container + label,
body[data-theme="dark"] .phone-input-wrapper label {
    background: #0F141A !important;
    color: rgba(255, 255, 255, 0.50) !important;
}

/* NUCLEAR: kill ALL white label backgrounds in checkout — plugin uses inline styles */
body[data-theme="dark"].ds-checkout-page label,
body[data-theme="dark"].ds-checkout-page .form-input-wrapper label,
body[data-theme="dark"].ds-checkout-page .phone-input-wrapper label,
body[data-theme="dark"].ds-checkout-page .checkout-content-wrap label,
body[data-theme="dark"].ds-checkout-page .checkout-form label,
body[data-theme="dark"].ds-checkout-page .form-checkout label,
body[data-theme="dark"].ds-checkout-page .customer-address-payment-form label,
body[data-theme="dark"].ds-checkout-page .billing-address-form-wrapper label {
    background: transparent !important;
    background-color: transparent !important;
    color: rgba(255, 255, 255, 0.50) !important;
}

/* Floated labels in checkout need matching input bg, not transparent */
body[data-theme="dark"].ds-checkout-page .form-input-wrapper .form-control:not(:placeholder-shown) + label,
body[data-theme="dark"].ds-checkout-page .form-input-wrapper .form-control:focus + label,
body[data-theme="dark"].ds-checkout-page .form-input-wrapper .form-control.has-value + label,
body[data-theme="dark"].ds-checkout-page .form-input-wrapper .form-control:-webkit-autofill + label,
body[data-theme="dark"].ds-checkout-page .form-input-wrapper .form-control.is-valid + .invalid-feedback + label,
body[data-theme="dark"].ds-checkout-page .form-input-wrapper .form-control.is-invalid + .invalid-feedback + label,
body[data-theme="dark"].ds-checkout-page .form-input-wrapper select.form-control + label,
body[data-theme="dark"].ds-checkout-page .form-input-wrapper.select--arrow label,
body[data-theme="dark"].ds-checkout-page .form-input-wrapper.select--arrow .select2-container + label,
body[data-theme="dark"].ds-checkout-page .phone-input-wrapper label {
    background: #0F141A !important;
    background-color: #0F141A !important;
    color: rgba(255, 255, 255, 0.55) !important;
}

/* Checkout acceptance message / terms disclaimer box (has inline styles) */
body[data-theme="dark"].ds-checkout-page .alert,
body[data-theme="dark"].ds-checkout-page .alert-info {
    background-color: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
    color: rgba(255, 255, 255, 0.55) !important;
}

/* Select (Country/City) dark bg */
body[data-theme="dark"] .select--arrow select.form-control,
body[data-theme="dark"] .checkout-content-wrap select.form-control,
body[data-theme="dark"] .checkout-form select.form-control,
body[data-theme="dark"] .form-checkout select.form-control {
    background-color: #0F141A !important;
    color: var(--ds-text-1) !important;
}

/* Checkbox labels */
body[data-theme="dark"] .form-check-label {
    color: rgba(255, 255, 255, 0.60) !important;
}

/* -------------------------
   CHECKOUT — FULL DARK BACKGROUND FIX
   Bootstrap .list-group-item, form wrappers, textareas, and section
   containers all default to white/light backgrounds.
   This blanket override forces dark backgrounds across the entire checkout.
-------------------------- */

/* List-group items (shipping options + payment methods rows) */
body[data-theme="dark"].ds-checkout-page .list-group-item,
body[data-theme="dark"] .list_payment_method .list-group-item {
    background-color: #0F141A !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
    color: var(--ds-text-1, #EFEFEF) !important;
}

/* Highlight selected/checked shipping or payment option */
body[data-theme="dark"].ds-checkout-page .list-group-item:has(input:checked),
body[data-theme="dark"] .list_payment_method .list-group-item:has(input:checked) {
    background-color: color-mix(in srgb, var(--ds-primary, #A8C819) 8%, #0F141A) !important;
    border-color: var(--ds-primary, #A8C819) !important;
}

/* Labels inside shipping/payment rows */
body[data-theme="dark"].ds-checkout-page .list-group-item label,
body[data-theme="dark"] .list_payment_method .list-group-item label {
    color: var(--ds-text-1, #EFEFEF) !important;
}

/* Textarea (Bestellhinweis / order notes) */
body[data-theme="dark"].ds-checkout-page textarea,
body[data-theme="dark"].ds-checkout-page textarea.form-control {
    background-color: #0F141A !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: var(--ds-text-1, #EFEFEF) !important;
}

/* Checkout form section wrappers */
body[data-theme="dark"].ds-checkout-page .checkout-content-wrap,
body[data-theme="dark"].ds-checkout-page .checkout-form,
body[data-theme="dark"].ds-checkout-page .form-checkout,
body[data-theme="dark"].ds-checkout-page .customer-address-payment-form,
body[data-theme="dark"].ds-checkout-page .billing-address-form-wrapper,
body[data-theme="dark"].ds-checkout-page .payment-checkout-form,
body[data-theme="dark"].ds-checkout-page .shipping-method-wrapper {
    background-color: transparent !important;
    color: var(--ds-text-1, #EFEFEF) !important;
}

/* Section titles (h5.checkout-payment-title) */
body[data-theme="dark"].ds-checkout-page .checkout-payment-title {
    color: var(--ds-text-1, #EFEFEF) !important;
}

/* Form-group wrappers */
body[data-theme="dark"].ds-checkout-page .form-group {
    color: var(--ds-text-1, #EFEFEF);
}

/* Generic anchors + links in checkout */
body[data-theme="dark"].ds-checkout-page a:not(.btn) {
    color: var(--ds-primary, #A8C819);
}

/* Company invoice checkbox area */
body[data-theme="dark"].ds-checkout-page .form-check {
    color: rgba(255, 255, 255, 0.60);
}

/* Terms/disclaimer text at bottom */
body[data-theme="dark"].ds-checkout-page .checkout-terms,
body[data-theme="dark"].ds-checkout-page .checkout-note,
body[data-theme="dark"].ds-checkout-page .text-muted {
    color: rgba(255, 255, 255, 0.45) !important;
}

/* -------------------------
   MOBILE PREMIUM POLISH (PLP + plugin + header/footer)
-------------------------- */
body[data-theme="dark"] .ds-product-grid {
    --bs-gutter-x: 10px;
    --bs-gutter-y: 10px;
}

body[data-theme="dark"] .ds-product-grid__item {
    display: flex;
}

body[data-theme="dark"] .ds-product-card {
    background: var(--ds-bg-card);
    border: 1px solid var(--ds-border-soft);
    border-radius: var(--ds-radius-card);
    display: flex;
    min-height: 100%;
    overflow: hidden;
    width: 100%;
}

body[data-theme="dark"] .ds-product-card__link {
    color: inherit;
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 100%;
    text-decoration: none;
    width: 100%;
}

body[data-theme="dark"] .ds-product-card__media {
    aspect-ratio: 1;
    background: var(--ds-bg-elevated);
    border-bottom: 1px solid var(--ds-border-soft);
    display: block;
    overflow: hidden;
    padding: 10px;
}

body[data-theme="dark"] .ds-product-card__img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

body[data-theme="dark"] .ds-product-card__body {
    display: grid;
    gap: 8px;
    grid-template-rows: auto auto 1fr auto;
    padding: 12px;
}

body[data-theme="dark"] .ds-product-card__meta-row {
    align-items: flex-start;
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

body[data-theme="dark"] .ds-product-card__eyebrow {
    color: var(--ds-text-muted);
    font-size: 11px;
    line-height: 1.4;
}

body[data-theme="dark"] .ds-product-card__title {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--ds-text-primary);
    display: -webkit-box;
    font-size: 14px;
    line-height: 1.4;
    min-height: 2.8em;
    overflow: hidden;
}

body[data-theme="dark"] .ds-product-card__divider {
    background: var(--ds-border-soft);
    display: block;
    height: 1px;
    width: 100%;
}

body[data-theme="dark"] .ds-product-card__price-zone {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

body[data-theme="dark"] .ds-product-card__price-current {
    color: var(--ds-primary);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

body[data-theme="dark"] .ds-product-card__price-original {
    color: var(--ds-text-muted);
    font-size: 12px;
    text-decoration: line-through;
}

body[data-theme="dark"] .ds-product-card__badges :is(.badge, .status, .stock-status, .label) {
    align-items: center;
    background: var(--ds-bg-elevated);
    border: 1px solid var(--ds-border-soft);
    border-radius: 999px;
    color: var(--ds-text-secondary);
    display: inline-flex;
    font-size: 11px;
    font-weight: 500;
    min-height: 22px;
    padding: 2px 8px;
}

body[data-theme="dark"] .ds-product-card :is(button, .btn, .add-to-cart-button, .add-to-cart-btn) {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
}

body[data-theme="dark"] :is(.payment-content-item, .border-pay-row, .border-pay-row .border-pay-col) {
    background: var(--ds-bg-card);
    border-color: var(--ds-border-soft);
    color: var(--ds-text-primary);
}

body[data-theme="dark"] .nice-select .list {
    background: var(--ds-bg-elevated);
    border: 1px solid var(--ds-border-soft);
    color: var(--ds-text-primary);
}

body[data-theme="dark"] .nice-select .list .option {
    color: var(--ds-text-secondary);
}

body[data-theme="dark"] .nice-select .list .option.focus,
body[data-theme="dark"] .nice-select .list .option.selected,
body[data-theme="dark"] .nice-select .list .option:hover {
    background: var(--ds-bg-card);
    color: var(--ds-text-primary);
}

body[data-theme="dark"] :is(.related-product-area, .bb-cross-sale-products, .cross-sale-products, .upsell-products, .related-products) :is(.tpproduct, .product-item) {
    background: var(--ds-bg-card);
    border: 1px solid var(--ds-border-soft);
    color: var(--ds-text-primary);
}

body[data-theme="dark"] .ds-mobile-header {
    background: var(--ds-bg-page);
    border-bottom: 1px solid var(--ds-border-soft);
}

body[data-theme="dark"] .ds-mobile-header .header-icon-cluster {
    gap: 6px;
}

body[data-theme="dark"] .ds-mobile-header :is(.header-icon-btn, .header-icon-cluster > :is(a, button), .tp-menu-toggle) {
    background: var(--ds-bg-elevated);
    border-color: var(--ds-border-soft);
    color: var(--ds-text-primary);
    height: 44px;
    width: 44px;
}

body[data-theme="dark"] .tpsideinfo__search .form--quick-search {
    display: flex;
    gap: 8px;
}

body[data-theme="dark"] .tpsideinfo__search .input-search-product {
    background: var(--ds-bg-card);
    border: 1px solid var(--ds-border-soft);
    color: var(--ds-text-primary);
    min-height: 44px;
}

body[data-theme="dark"] .tpsideinfo__search .input-search-product::placeholder {
    color: var(--ds-text-muted);
}

body[data-theme="dark"] .tpsideinfo__search .form--quick-search > button {
    align-items: center;
    background: var(--ds-bg-elevated);
    border: 1px solid var(--ds-border-soft);
    color: var(--ds-text-primary);
    display: inline-flex;
    flex: 0 0 44px;
    height: 44px;
    justify-content: center;
}

body[data-theme="dark"] .ds-mobile-footer .footer-area {
    background: var(--ds-bg-page);
    color: var(--ds-text-secondary);
}

body[data-theme="dark"] .ds-mobile-footer :is(.footer-widget__title, .footer-cta__source-title) {
    color: var(--ds-text-primary);
}

body[data-theme="dark"] .ds-mobile-footer :is(.footer-widget__links a, .footer-content p, .footer-copyright__content) {
    color: var(--ds-text-secondary);
}

body[data-theme="dark"] .ds-mobile-footer :is(.footer-widget__links a:hover, .footer-widget__links a:focus-visible) {
    color: var(--ds-text-primary);
}

body[data-theme="dark"] .navigation-bar {
    background: var(--ds-bg-elevated);
    border-top: 1px solid var(--ds-border-soft);
}

body[data-theme="dark"] .navigation-bar__list a {
    color: var(--ds-text-secondary);
    gap: 4px;
    min-height: 44px;
    padding: 6px 4px;
}

body[data-theme="dark"] .navigation-bar__list a i {
    color: var(--ds-text-primary);
}

body[data-theme="dark"] .navigation-bar__list a span {
    color: var(--ds-text-secondary);
    font-size: 11px;
}

@media (max-width: 991px) {
    body[data-theme="dark"] :is(.tpsideinfo, .tpsideinfo.tpsidecategories, .tpsideinfo.tpsidesearch) {
        background: var(--ds-bg-elevated);
        border-left: 1px solid var(--ds-border-soft);
        color: var(--ds-text-primary);
    }

    body[data-theme="dark"] .tpsideinfo :is(a, button, li, span, p, h1, h2, h3, h4, h5, h6) {
        color: inherit;
    }

    body[data-theme="dark"] .tpsideinfo :is(.mobile-menu-nav a, .mobile-menu-nav .mobile-menu-exapand, .tpsidebar-categories a, .tpsideinfo__close) {
        color: var(--ds-text-primary);
    }

    body[data-theme="dark"] .tpsideinfo :is(.mobile-menu-nav ul li, .tpsideinfo__wishlist-link, .tpsideinfo__account-link, .tpsideinfo__switcher) {
        border-color: var(--ds-border-soft);
    }

    body[data-theme="dark"] .tpsideinfo :is(.mobile-menu-nav ul li li a, .nice-select .current, .mobile-menu-nav ul li a small) {
        color: var(--ds-text-secondary);
    }

    body[data-theme="dark"] :is(.body-overlay, .cartbody-overlay) {
        background: var(--ds-bg-overlay);
        opacity: 0.72;
    }

    body[data-theme="dark"] .ds-mobile-header {
        padding-bottom: 12px;
        padding-top: 12px;
    }

    body[data-theme="dark"] .ds-mobile-header .container {
        padding-inline: 12px;
    }

    body[data-theme="dark"] .ds-mobile-header .site-logo .logo-image {
        max-height: 32px;
        width: auto;
    }

    body[data-theme="dark"] .ds-mobile-header :is(.header-icon-btn, .header-icon-cluster > :is(a, button), .tp-menu-toggle) {
        height: 44px;
        padding: 0;
        width: 44px;
    }

    body[data-theme="dark"] .ds-mobile-header :is(.header-icon-btn i, .header-icon-cluster > :is(a, button) i, .tp-menu-toggle i) {
        font-size: 13px !important;
    }

    body[data-theme="dark"] .product-shortcode-tabs {
        overflow-x: auto;
        padding-inline: 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    body[data-theme="dark"] .product-shortcode-tabs::-webkit-scrollbar {
        display: none;
    }

    body[data-theme="dark"] #product-type-tab {
        flex-wrap: nowrap;
        gap: 10px;
        min-width: max-content;
        white-space: nowrap;
    }

    body[data-theme="dark"] #nav-tabContent .ds-product-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
        margin: 0;
        overflow-x: auto;
        padding-inline: 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    body[data-theme="dark"] #nav-tabContent .ds-product-grid::-webkit-scrollbar {
        display: none;
    }

    body[data-theme="dark"] #nav-tabContent .ds-product-grid > .ds-product-grid__item {
        flex: 0 0 76%;
        max-width: 76%;
        padding: 0;
    }

    body[data-theme="dark"] .ds-product-card__body {
        gap: 6px;
        padding: 10px;
    }

    body[data-theme="dark"] .ds-product-card__meta-row {
        align-items: center;
        gap: 6px;
    }

    body[data-theme="dark"] .ds-product-card__eyebrow {
        font-size: 10px;
        line-height: 1.3;
    }

    body[data-theme="dark"] .ds-product-card__title {
        font-size: 13px;
        line-height: 1.35;
        min-height: 2.7em;
    }

    body[data-theme="dark"] .ds-product-card__price-current {
        font-size: 15px;
    }

    body[data-theme="dark"] .ds-product-card__price-original {
        font-size: 11px;
    }

    body[data-theme="dark"] .ds-product-card__badges {
        align-items: center;
        display: inline-flex;
        justify-content: flex-end;
        margin-left: auto;
    }

    body[data-theme="dark"] .ds-product-card__badges :is(.badge, .status, .stock-status, .label) {
        font-size: 10px;
        min-height: 20px;
        padding: 2px 7px;
    }

    body[data-theme] .ds-faq .accordion-wrap-three .row {
        --bs-gutter-x: 0;
        --bs-gutter-y: 10px;
    }

    body[data-theme] .ds-faq .accordion-wrap-three .row > .col {
        flex: 0 0 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
        width: 100%;
    }

    body[data-theme] .ds-faq .accordion-wrap-three .accordion-button.ds-faq__button {
        font-size: 14px;
        min-height: 44px;
        padding: 12px;
    }

    body[data-theme="dark"] .ds-mobile-footer {
        text-align: center;
    }

    body[data-theme="dark"] .ds-mobile-footer .footer-area {
        padding-top: 26px;
    }

    body[data-theme="dark"] .ds-mobile-footer :is(.main-footer, .footer-cta) {
        margin-bottom: 0;
        padding-bottom: 14px;
    }

    body[data-theme="dark"] .ds-mobile-footer :is(.footer-widget, .footer-cta__source, .footer-copyright__content) {
        margin-bottom: 0;
        padding-bottom: 14px;
        text-align: center;
    }

    body[data-theme="dark"] .ds-mobile-footer .footer-widget__links a {
        line-height: 1.35;
        min-height: 40px;
    }

    body[data-theme="dark"] .ds-mobile-footer .footer-widget__newsletter :is(.form-control, .btn) {
        min-height: 40px;
    }

    body[data-theme="dark"] .services-area .services-gx-item {
        --bs-gutter-x: 10px;
        --bs-gutter-y: 0;
    }

    body[data-theme="dark"] .services-area .tpservicesitem {
        gap: 10px;
        margin-bottom: 10px;
        min-height: 0;
        padding: 10px;
    }

    body[data-theme="dark"] .services-area .tpservicesitem .tpservicesitem__icon {
        margin-right: 0 !important;
        max-width: 28px;
    }

    body[data-theme="dark"] .services-area .tpservicesitem .tpservicesitem__icon img {
        height: 28px;
        object-fit: contain;
        width: 28px;
    }

    body[data-theme="dark"] .services-area .tpservicesitem .tpservicesitem__title {
        font-size: 14px;
        line-height: 1.2;
        margin-bottom: 2px;
    }

    body[data-theme="dark"] .services-area .tpservicesitem .tpservicesitem__content p {
        font-size: 12px;
        line-height: 1.25;
        margin-bottom: 0;
    }
}

@media (max-width: 575px) {
    body[data-theme="dark"] .ds-mobile-footer .footer-area {
        padding-top: 20px;
    }

    body[data-theme="dark"] .ds-mobile-footer :is(.main-footer, .footer-cta) {
        border-bottom: 1px solid var(--ds-border-soft);
        margin-bottom: 0;
        padding-bottom: 20px;
    }

    body[data-theme="dark"] .ds-mobile-footer :is(.footer-widget, .footer-cta__source, .footer-copyright__content) {
        margin-bottom: 0;
        padding-bottom: 20px;
        padding-top: 4px;
    }

    body[data-theme="dark"] .ds-mobile-footer .footer-widget__links a {
        align-items: center;
        display: inline-flex;
        min-height: 44px;
    }
}

/* === MOBILE APPLE CLEAN DARK (<=991px) — PACKAGE 3.1 === */
@media (max-width: 991px) {
    body[data-theme="dark"] :is(.tpsideinfo, .tpsideinfo.tpsidecategories, .tpsideinfo.tpsidesearch) {
        background: var(--ds-bg-card);
        box-shadow: none;
    }

    body[data-theme="dark"] .tpsideinfo__close {
        align-items: center;
        background: var(--ds-bg-elevated);
        border-bottom: 1px solid var(--ds-border-soft);
        color: var(--ds-text-primary);
        display: flex;
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 0.02em;
        min-height: 44px;
        padding: 10px 14px;
        text-transform: uppercase;
    }

    body[data-theme="dark"] .tpsideinfo :is(.tpsideinfo__nabtab, .tpsideinfo__search) {
        margin-top: 12px !important;
        padding-inline: 14px;
    }

    body[data-theme="dark"] .tpsideinfo :is(.mobile-menu-nav ul li, .tpsidebar-categories ul li, .tpsideinfo__wishlist-link, .tpsideinfo__account-link, .tpsideinfo__switcher) {
        margin-bottom: 0;
        min-height: 44px;
        padding-block: 4px;
    }

    body[data-theme="dark"] .tpsideinfo :is(.mobile-menu-nav a, .mobile-menu-nav .mobile-menu-exapand, .tpsidebar-categories a) {
        font-size: 13px;
        line-height: 1.35;
        min-height: 44px;
        padding-block: 10px;
    }

    body[data-theme="dark"] .tpsideinfo .mobile-menu-nav ul li li a {
        font-size: 12px;
    }

    body[data-theme="dark"] .tpsideinfo__search .input-search-product {
        min-height: 44px;
        padding: 0 12px;
    }

    body[data-theme="dark"] .ds-mobile-header {
        padding-bottom: 8px;
        padding-top: 8px;
    }

    body[data-theme="dark"] .ds-mobile-header .container {
        padding-inline: 10px;
    }

    body[data-theme="dark"] .ds-mobile-header :is(.header-icon-btn, .header-icon-cluster > :is(a, button), .tp-menu-toggle) {
        border-width: 1px;
        box-shadow: none;
    }

    body[data-theme="dark"] .services-area .services-gx-item {
        --bs-gutter-x: 8px;
    }

    body[data-theme="dark"] .services-area .tpservicesitem {
        border: 1px solid var(--ds-border-soft);
        border-radius: var(--ds-radius-input);
        box-shadow: none;
        gap: 8px;
        margin-bottom: 8px;
        padding: 8px 10px;
    }

    body[data-theme="dark"] .services-area .tpservicesitem .tpservicesitem__icon {
        align-items: center;
        background: var(--ds-bg-elevated);
        border: 1px solid var(--ds-border-soft);
        border-radius: var(--ds-radius-input);
        display: inline-flex;
        height: 26px;
        justify-content: center;
        max-width: 26px;
        width: 26px;
    }

    body[data-theme="dark"] .services-area .tpservicesitem .tpservicesitem__icon img {
        height: 14px;
        width: 14px;
    }

    body[data-theme="dark"] .services-area .tpservicesitem .tpservicesitem__title {
        font-size: 13px;
        margin-bottom: 1px;
    }

    body[data-theme="dark"] .services-area .tpservicesitem .tpservicesitem__content p {
        font-size: 11px;
        line-height: 1.3;
    }

    body[data-theme="dark"] .product-shortcode-tabs {
        padding-bottom: 2px;
        scroll-snap-type: x proximity;
    }

    body[data-theme="dark"] #product-type-tab {
        gap: 8px;
        padding-bottom: 2px;
    }

    body[data-theme="dark"] #product-type-tab .nav-link {
        background: var(--ds-bg-elevated);
        border: 1px solid var(--ds-border-soft);
        border-radius: 999px;
        box-shadow: none;
        color: var(--ds-text-secondary);
        font-size: 12px;
        font-weight: 500;
        min-height: 33px;
        padding: 7px 12px;
        scroll-snap-align: start;
    }

    body[data-theme="dark"] #product-type-tab .nav-link.active {
        color: var(--ds-text-primary);
    }

    body[data-theme="dark"] #nav-tabContent .ds-product-grid {
        scroll-snap-type: x proximity;
    }

    body[data-theme="dark"] #nav-tabContent .ds-product-grid > .ds-product-grid__item {
        scroll-snap-align: start;
    }

    body[data-theme="dark"] .ds-product-card__meta-row {
        flex-wrap: wrap;
    }

    body[data-theme="dark"] .ds-product-card__sku,
    body[data-theme="dark"] .ds-product-card__stock,
    body[data-theme="dark"] .ds-product-card__status,
    body[data-theme="dark"] .ds-product-card__badges {
        max-width: 100%;
    }

    body[data-theme="dark"] .ds-mobile-footer .footer-area {
        padding-top: 16px;
    }

    body[data-theme="dark"] .ds-mobile-footer :is(.main-footer, .footer-cta) {
        padding-bottom: 10px;
    }

    body[data-theme="dark"] .ds-mobile-footer .footer-widget {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }

    body[data-theme="dark"] .ds-mobile-footer .footer-widget__title {
        font-size: 14px;
        margin-bottom: 8px;
    }

    body[data-theme="dark"] .ds-mobile-footer .footer-widget__links ul {
        display: grid;
        gap: 6px;
    }

    body[data-theme="dark"] .ds-mobile-footer .footer-widget__links a {
        font-size: 12px;
        justify-content: center;
        min-height: 44px;
    }

    body[data-theme="dark"] .ds-mobile-footer .footer-widget__newsletter :is(.form-control, .btn) {
        font-size: 12px;
        min-height: 44px;
    }

    body[data-theme="dark"] .ds-mobile-footer .footer-widget__newsletter .tp-btn {
        box-shadow: none;
    }

    body[data-theme="dark"] .scroll-top {
        background: var(--ds-bg-elevated);
        border: 1px solid var(--ds-border-soft);
        bottom: calc(70px + env(safe-area-inset-bottom));
        box-shadow: none;
        color: var(--ds-text-primary);
        height: 38px;
        right: 10px;
        width: 38px;
    }

    body[data-theme="dark"] .scroll-top i {
        font-size: 12px;
    }
}

/* === UI PACKAGE 3.2 — MOBILE APPLE CLEAN DARK MICRO POLISH (<=991px) === */
@media (max-width: 991px) {
    body[data-theme="dark"] {
        --ds-mobile-radius: var(--ds-radius-input);
    }

    body[data-theme="dark"] :is(.ds-product-card, .tpservicesitem, #product-type-tab .nav-link, .tpsideinfo__search .form--quick-search, .tpsideinfo__search .input-search-product, .ds-mobile-footer .footer-widget__newsletter .form-control, .ds-mobile-footer .footer-widget__newsletter .btn) {
        border-radius: var(--ds-mobile-radius);
        box-shadow: none;
    }

    body[data-theme="dark"] :is(.ds-product-card, .tpservicesitem, #product-type-tab .nav-link, .tpsideinfo :is(.mobile-menu-nav ul li, .tpsidebar-categories ul li, .tpsideinfo__wishlist-link, .tpsideinfo__account-link, .tpsideinfo__switcher), .ds-mobile-footer .footer-widget, .ds-mobile-footer .footer-cta__source) {
        border-color: var(--ds-border-soft);
    }

    body[data-theme="dark"] :is(.section__title-wrapper p, .section-subtitle, .tpsection__subtitle, .ds-product-card__eyebrow) {
        color: var(--ds-text-muted);
        font-size: 10px;
        font-weight: 500;
        letter-spacing: 0.02em;
        line-height: 1.3;
        text-transform: uppercase;
    }

    body[data-theme="dark"] :is(h1, .tpsection__title, .section-title, .ds-mobile-footer .footer-widget__title) {
        color: var(--ds-text-primary);
        font-size: 17px;
        font-weight: 600;
        line-height: 1.25;
    }

    body[data-theme="dark"] :is(h2, .section-title-sm, .footer-cta__source-title) {
        color: var(--ds-text-primary);
        font-size: 15px;
        font-weight: 600;
        line-height: 1.3;
    }

    body[data-theme="dark"] :is(p, .ds-mobile-footer .footer-content p, .ds-mobile-footer .footer-copyright__content) {
        color: var(--ds-text-secondary);
        font-size: 12px;
        line-height: 1.45;
    }

    body[data-theme="dark"] :is(.ds-product-card__sku, .ds-product-card__status, .ds-product-card__stock, .mobile-menu-nav ul li a small) {
        color: var(--ds-text-muted);
        font-size: 11px;
        font-weight: 500;
        line-height: 1.3;
    }

    body[data-theme="dark"] .ds-product-grid {
        gap: 8px;
    }

    body[data-theme="dark"] .ds-product-grid__item {
        min-width: 0;
    }

    body[data-theme="dark"] .ds-product-card__body {
        gap: 5px;
        padding: 10px;
    }

    body[data-theme="dark"] .ds-product-card__title {
        color: var(--ds-text-primary);
        display: -webkit-box;
        font-size: 12px;
        font-weight: 500;
        line-height: 1.35;
        margin-bottom: 1px;
        min-height: calc(1.35em * 2);
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    body[data-theme="dark"] .ds-product-card__meta-row {
        align-items: center;
        display: flex;
        flex-wrap: nowrap;
        gap: 6px;
        min-width: 0;
    }

    body[data-theme="dark"] .ds-product-card__sku {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body[data-theme="dark"] .ds-product-card__stock,
    body[data-theme="dark"] .ds-product-card__status {
        background: var(--ds-bg-elevated);
        border: 1px solid var(--ds-border-soft);
        border-radius: 999px;
        color: var(--ds-text-secondary);
        flex: 0 0 auto;
        font-size: 10px;
        line-height: 1.2;
        max-width: 48%;
        overflow: hidden;
        padding: 4px 8px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body[data-theme="dark"] .ds-product-card__badges {
        left: 8px;
        margin-left: 0;
        position: absolute;
        right: auto;
        top: 8px;
        z-index: 2;
    }

    body[data-theme="dark"] .ds-product-card__badges :is(.badge, .status, .stock-status, .label) {
        background: var(--ds-bg-elevated);
        border: 1px solid var(--ds-border-soft);
        border-radius: 999px;
        color: var(--ds-text-primary);
        font-size: 10px;
        font-weight: 500;
        min-height: 22px;
        padding: 2px 8px;
    }

    body[data-theme="dark"] .ds-product-card__price {
        align-items: baseline;
        column-gap: 6px;
        row-gap: 2px;
    }

    body[data-theme="dark"] .ds-product-card__price-current {
        color: var(--ds-text-primary);
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 0;
        line-height: 1.3;
    }

    body[data-theme="dark"] .ds-product-card__price-original {
        color: var(--ds-text-muted);
        font-size: 11px;
        line-height: 1.2;
    }

    body[data-theme="dark"] .ds-product-card :is(a, button, .tp-btn) {
        min-height: 44px;
    }

    body[data-theme="dark"] :is(.tpsideinfo, .tpsideinfo.tpsidecategories, .tpsideinfo.tpsidesearch) {
        background: var(--ds-bg-card);
    }

    body[data-theme="dark"] .tpsideinfo__close {
        align-items: center;
        background: var(--ds-bg-card);
        border-bottom: 1px solid var(--ds-border-soft);
        color: var(--ds-text-secondary);
        display: flex;
        font-size: 11px;
        font-weight: 500;
        justify-content: space-between;
        letter-spacing: 0.01em;
        min-height: 44px;
        padding: 8px 14px;
    }

    body[data-theme="dark"] .tpsideinfo__close i {
        color: var(--ds-text-muted);
        font-size: 12px;
    }

    body[data-theme="dark"] .tpsideinfo :is(.mobile-menu-nav ul li, .tpsidebar-categories ul li, .tpsideinfo__wishlist-link, .tpsideinfo__account-link, .tpsideinfo__switcher) {
        border-bottom: 1px solid var(--ds-border-soft);
        min-height: 44px;
        padding-block: 2px;
    }

    body[data-theme="dark"] .tpsideinfo :is(.mobile-menu-nav a, .mobile-menu-nav .mobile-menu-exapand, .tpsidebar-categories a) {
        color: var(--ds-text-primary);
        font-size: 12px;
        min-height: 44px;
        padding-block: 9px;
    }

    body[data-theme="dark"] .tpsideinfo :is(.mobile-menu-nav .mobile-menu-exapand i, .tpsidebar-categories a i) {
        font-size: 12px;
    }

    body[data-theme="dark"] .tpsideinfo__search .form--quick-search {
        align-items: center;
        background: var(--ds-bg-elevated);
        border: 1px solid var(--ds-border-soft);
        display: flex;
        padding-right: 4px;
    }

    body[data-theme="dark"] .tpsideinfo__search .input-search-product {
        background: transparent;
        border: 0;
        color: var(--ds-text-primary);
        font-size: 12px;
        min-height: 44px;
    }

    body[data-theme="dark"] .tpsideinfo__search .input-search-product::placeholder {
        color: var(--ds-text-muted);
    }

    body[data-theme="dark"] .tpsideinfo__search .form--quick-search > button {
        align-items: center;
        border: 1px solid var(--ds-border-soft);
        border-radius: var(--ds-mobile-radius);
        color: var(--ds-text-secondary);
        display: inline-flex;
        height: 36px;
        justify-content: center;
        min-height: 36px;
        width: 36px;
    }

    body[data-theme="dark"] .ds-mobile-footer {
        text-align: center;
    }

    body[data-theme="dark"] .ds-mobile-footer .footer-area {
        padding-bottom: calc(78px + env(safe-area-inset-bottom));
        padding-top: 14px;
    }

    body[data-theme="dark"] .ds-mobile-footer :is(.main-footer, .footer-cta) {
        margin-bottom: 0;
        padding-bottom: 8px;
    }

    body[data-theme="dark"] .ds-mobile-footer .footer-widget {
        margin-bottom: 8px;
        padding-bottom: 8px;
    }

    body[data-theme="dark"] .ds-mobile-footer .footer-widget__title {
        font-size: 13px;
        margin-bottom: 6px;
    }

    body[data-theme="dark"] .ds-mobile-footer .footer-widget__links ul {
        display: grid;
        gap: 4px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body[data-theme="dark"] .ds-mobile-footer .footer-widget__links a {
        color: var(--ds-text-secondary);
        font-size: 11px;
        justify-content: center;
        line-height: 1.35;
        min-height: 36px;
        padding: 4px 6px;
    }

    body[data-theme="dark"] .ds-mobile-footer .footer-widget__newsletter form {
        align-items: center;
        display: grid;
        gap: 8px;
    }

    body[data-theme="dark"] .ds-mobile-footer .footer-widget__newsletter :is(.form-control, .btn) {
        border: 1px solid var(--ds-border-soft);
        color: var(--ds-text-primary);
        font-size: 12px;
        min-height: 44px;
    }

    body[data-theme="dark"] .ds-mobile-footer .footer-widget__newsletter .form-control::placeholder {
        color: var(--ds-text-muted);
    }

    body[data-theme="dark"] .ds-mobile-footer .footer-widget__newsletter .tp-btn {
        background: var(--ds-bg-elevated);
        color: var(--ds-text-primary);
        font-weight: 500;
    }

    body[data-theme="dark"] .scroll-top {
        background: var(--ds-bg-elevated);
        border: 1px solid var(--ds-border-soft);
        bottom: calc(74px + env(safe-area-inset-bottom));
        color: var(--ds-text-secondary);
        height: 34px;
        right: 10px;
        width: 34px;
    }

    body[data-theme="dark"] .scroll-top i {
        font-size: 11px;
    }
}

/* === UI PACKAGE 3.3 — MOBILE APPLE CLEAN DARK PIXEL PASS (<=991px) === */
@media (max-width: 991px) {
    body[data-theme="dark"] .ds-mobile-header {
        min-height: 52px;
        padding-block: 4px;
    }

    body[data-theme="dark"] .ds-mobile-header .container {
        align-items: center;
        min-height: 44px;
    }

    body[data-theme="dark"] .ds-mobile-header .site-logo {
        align-items: center;
        display: inline-flex;
        min-height: 44px;
    }

    body[data-theme="dark"] .ds-mobile-header .site-logo .logo-image {
        display: block;
        margin-block: 0;
        max-height: 26px;
    }

    body[data-theme="dark"] .ds-mobile-header :is(.header-icon-btn, .header-icon-cluster > :is(a, button), .tp-menu-toggle) {
        background: var(--ds-bg-elevated);
        border: 1px solid var(--ds-border-soft);
        border-radius: 10px;
        box-shadow: none;
        color: var(--ds-text-secondary);
        height: 44px;
        padding: 0;
        width: 44px;
    }

    body[data-theme="dark"] .ds-mobile-header :is(.header-icon-btn i, .header-icon-cluster > :is(a, button) i, .tp-menu-toggle i, .header-icon-btn svg, .header-icon-cluster > :is(a, button) svg, .tp-menu-toggle svg) {
        font-size: 13px;
        height: 13px;
        width: 13px;
    }

    body[data-theme="dark"] .ds-product-grid {
        gap: 10px;
    }

    body[data-theme="dark"] .ds-product-card {
        border: 1px solid var(--ds-border-soft);
        box-shadow: none;
    }

    body[data-theme="dark"] .ds-product-card__divider {
        background: var(--ds-border-soft);
        opacity: 0.45;
    }

    body[data-theme="dark"] .ds-product-card__body {
        gap: 4px;
        padding: 9px;
    }

    body[data-theme="dark"] .ds-product-card__meta-row {
        align-items: center;
        gap: 5px;
        min-height: 18px;
    }

    body[data-theme="dark"] :is(.ds-product-card__sku, .ds-product-card__stock, .ds-product-card__status) {
        font-size: 10px;
        line-height: 1.2;
    }

    body[data-theme="dark"] .ds-product-card__stock,
    body[data-theme="dark"] .ds-product-card__status {
        padding: 3px 7px;
    }

    body[data-theme="dark"] .ds-product-card__title {
        font-size: 11px;
        line-height: 1.32;
        margin-bottom: 0;
        min-height: calc(1.32em * 2);
        -webkit-line-clamp: 2;
    }

    body[data-theme="dark"] .ds-product-card__price {
        column-gap: 4px;
        row-gap: 1px;
    }

    body[data-theme="dark"] .ds-product-card__price-current {
        font-size: 13px;
        line-height: 1.25;
    }

    body[data-theme="dark"] .ds-product-card__price-original {
        font-size: 10px;
        line-height: 1.2;
    }

    body[data-theme="dark"] .ds-product-card__badges {
        align-items: flex-start;
        left: 8px;
        right: auto;
        top: 8px;
    }

    body[data-theme="dark"] .ds-product-card__badges :is(.badge, .status, .stock-status, .label) {
        background: var(--ds-bg-elevated);
        border: 1px solid var(--ds-border-soft);
        border-radius: var(--ds-radius-sm);
        color: var(--ds-text-secondary);
        font-size: 9px;
        line-height: 1.1;
        min-height: 18px;
        padding: 2px 6px;
    }

    body[data-theme="dark"] #product-type-tab {
        gap: 7px;
        padding-inline: 2px;
        scroll-padding-inline: 10px;
    }

    body[data-theme="dark"] #product-type-tab .nav-link {
        background: var(--ds-bg-elevated);
        border: 1px solid var(--ds-border-soft);
        border-radius: 999px;
        color: var(--ds-text-secondary);
        font-size: 11px;
        font-weight: 500;
        min-height: 34px;
        padding: 5px 12px;
        scroll-snap-align: start;
    }

    body[data-theme="dark"] #product-type-tab .nav-link.active {
        border-color: var(--ds-accent);
        color: var(--ds-text-primary);
        box-shadow: none;
    }

    body[data-theme="dark"] :is(.tpsideinfo, .tpsideinfo.tpsidecategories, .tpsideinfo.tpsidesearch) {
        background: var(--ds-bg-card);
    }

    body[data-theme="dark"] .tpsideinfo__close {
        background: var(--ds-bg-elevated);
        border-bottom: 1px solid var(--ds-border-soft);
        color: var(--ds-text-secondary);
        font-size: 10px;
        letter-spacing: 0.03em;
        min-height: 40px;
        padding: 6px 12px;
    }

    body[data-theme="dark"] .tpsideinfo :is(.mobile-menu-nav ul li, .tpsidebar-categories ul li, .tpsideinfo__wishlist-link, .tpsideinfo__account-link, .tpsideinfo__switcher) {
        border-bottom: 1px solid var(--ds-border-soft);
        min-height: 44px;
        padding-block: 0;
    }

    body[data-theme="dark"] .tpsideinfo :is(.mobile-menu-nav a, .mobile-menu-nav .mobile-menu-exapand, .tpsidebar-categories a) {
        font-size: 11px;
        line-height: 1.35;
        min-height: 44px;
        padding-block: 10px;
    }

    body[data-theme="dark"] .tpsideinfo :is(.mobile-menu-nav .mobile-menu-exapand i, .tpsidebar-categories a i) {
        font-size: 11px;
    }

    body[data-theme="dark"] .tpsideinfo__search .form--quick-search {
        align-items: center;
        background: var(--ds-bg-elevated);
        border: 1px solid var(--ds-border-soft);
        min-height: 44px;
        padding: 3px;
    }

    body[data-theme="dark"] .tpsideinfo__search .input-search-product {
        color: var(--ds-text-primary);
        font-size: 12px;
        min-height: 38px;
        padding-inline: 10px;
    }

    body[data-theme="dark"] .tpsideinfo__search .form--quick-search > button {
        background: var(--ds-bg-card);
        border: 1px solid var(--ds-border-soft);
        color: var(--ds-text-secondary);
        height: 38px;
        min-height: 38px;
        width: 38px;
    }

    body[data-theme="dark"] .ds-mobile-footer {
        text-align: center;
    }

    body[data-theme="dark"] .ds-mobile-footer .footer-area {
        padding-top: 10px;
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }

    body[data-theme="dark"] .ds-mobile-footer :is(.main-footer, .footer-cta) {
        margin-bottom: 0;
        padding-bottom: 6px;
    }

    body[data-theme="dark"] .ds-mobile-footer .footer-widget {
        margin-bottom: 6px;
        padding-bottom: 6px;
    }

    body[data-theme="dark"] .ds-mobile-footer .footer-widget__title {
        font-size: 12px;
        line-height: 1.25;
        margin-bottom: 4px;
    }

    body[data-theme="dark"] .ds-mobile-footer .footer-widget__links ul {
        column-gap: 6px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 2px;
    }

    body[data-theme="dark"] .ds-mobile-footer .footer-widget__links a {
        font-size: 10px;
        line-height: 1.3;
        min-height: 28px;
        padding: 3px 4px;
    }

    body[data-theme="dark"] .ds-mobile-footer .footer-widget__newsletter form {
        align-items: center;
        gap: 6px;
    }

    body[data-theme="dark"] .ds-mobile-footer .footer-widget__newsletter :is(.form-control, .btn) {
        border: 1px solid var(--ds-border-soft);
        font-size: 11px;
        min-height: 40px;
    }

    body[data-theme="dark"] .ds-mobile-footer .footer-widget__newsletter .tp-btn {
        background: var(--ds-bg-elevated);
        color: var(--ds-text-primary);
    }

    body[data-theme="dark"] .ds-mobile-footer :is(.footer-social, .footer-social-list) {
        gap: 6px;
        margin-top: 4px;
    }

    body[data-theme="dark"] .navigation-bar {
        padding-bottom: calc(4px + env(safe-area-inset-bottom));
        padding-top: 4px;
    }

    body[data-theme="dark"] .navigation-bar__list a {
        min-height: 44px;
    }

    body[data-theme="dark"] .scroll-top {
        background: var(--ds-bg-elevated);
        border: 1px solid var(--ds-border-soft);
        border-radius: var(--ds-radius-sm);
        bottom: calc(82px + env(safe-area-inset-bottom));
        box-shadow: none;
        height: 30px;
        right: 10px;
        width: 30px;
    }

    body[data-theme="dark"] .scroll-top i {
        font-size: 10px;
    }
}

/* === UI PACKAGE 3.4 — MOBILE APPLE CLEAN DARK FINISH PASS (<=991px) === */
@media (max-width: 991px) {
    body[data-theme="dark"] :is(.tpsideinfo, .tpsideinfo.tpsidecategories, .tpsideinfo.tpsidesearch) {
        background: var(--ds-bg-card);
        border-inline-end: 1px solid var(--ds-border-soft);
    }

    body[data-theme="dark"] .body-overlay {
        background: var(--ds-bg-overlay);
        opacity: 0.72;
    }

    body[data-theme="dark"] .tpsideinfo__close {
        align-items: center;
        background: var(--ds-bg-card);
        border-bottom: 1px solid var(--ds-border-soft);
        color: var(--ds-text-secondary);
        display: flex;
        font-size: 9px;
        font-weight: 500;
        letter-spacing: 0.02em;
        line-height: 1;
        min-height: 44px;
        padding: 4px 10px;
        text-transform: uppercase;
    }

    body[data-theme="dark"] .tpsideinfo__close i {
        align-items: center;
        border: 1px solid var(--ds-border-soft);
        border-radius: var(--ds-radius-sm);
        display: inline-flex;
        font-size: 10px;
        height: 24px;
        justify-content: center;
        margin-left: auto;
        width: 24px;
    }

    body[data-theme="dark"] .tpsideinfo :is(.tpsideinfo__nabtab, .tpsideinfo__search) {
        margin-top: 12px;
    }

    body[data-theme="dark"] .tpsideinfo :is(.mobile-menu-nav ul li, .tpsidebar-categories ul li, .tpsideinfo__wishlist-link, .tpsideinfo__account-link, .tpsideinfo__switcher) {
        background: transparent;
        border-bottom: 1px solid var(--ds-border-soft);
        min-height: 44px;
        padding-block: 0;
    }

    body[data-theme="dark"] .tpsideinfo :is(.mobile-menu-nav a, .mobile-menu-nav .mobile-menu-exapand, .tpsidebar-categories a) {
        align-items: center;
        color: var(--ds-text-secondary);
        display: flex;
        font-size: 10px;
        gap: 8px;
        line-height: 1.3;
        min-height: 44px;
        padding-block: 8px;
    }

    body[data-theme="dark"] .tpsideinfo :is(.mobile-menu-nav .mobile-menu-exapand i, .tpsidebar-categories a i, .tpsideinfo__wishlist-link i, .tpsideinfo__account-link i) {
        color: var(--ds-text-muted);
        flex: 0 0 auto;
        font-size: 10px;
        width: 12px;
    }

    body[data-theme="dark"] .tpsideinfo .mobile-menu-nav ul li li a {
        padding-left: 18px;
    }

    body[data-theme="dark"] .tpsideinfo__search .form--quick-search {
        align-items: center;
        background: var(--ds-bg-elevated);
        border: 1px solid var(--ds-border-soft);
        border-radius: var(--ds-radius-sm);
        box-shadow: none;
        gap: 4px;
        min-height: 44px;
        padding: 3px;
    }

    body[data-theme="dark"] .tpsideinfo__search .input-search-product {
        background: transparent;
        border: 0;
        box-shadow: none;
        color: var(--ds-text-primary);
        font-size: 11px;
        min-height: 38px;
        padding-inline: 10px;
    }

    body[data-theme="dark"] .tpsideinfo__search .input-search-product::placeholder {
        color: var(--ds-text-muted);
    }

    body[data-theme="dark"] .tpsideinfo__search .form--quick-search > button {
        align-items: center;
        background: var(--ds-bg-card);
        border: 1px solid var(--ds-border-soft);
        border-radius: var(--ds-radius-sm);
        box-shadow: none;
        color: var(--ds-text-secondary);
        display: inline-flex;
        height: 38px;
        justify-content: center;
        min-height: 38px;
        width: 38px;
    }

    body[data-theme="dark"] .ds-mobile-footer {
        text-align: center;
    }

    body[data-theme="dark"] .ds-mobile-footer .footer-area {
        padding-bottom: calc(72px + env(safe-area-inset-bottom));
        padding-top: 6px;
    }

    body[data-theme="dark"] .ds-mobile-footer :is(.main-footer, .footer-cta, .footer-widget, .footer-widget__links ul, .footer-social-list) {
        margin-bottom: 4px;
        row-gap: 3px;
    }

    body[data-theme="dark"] .ds-mobile-footer :is(.main-footer, .footer-cta, .footer-widget) {
        padding-bottom: 4px;
    }

    body[data-theme="dark"] .ds-mobile-footer .footer-widget__title {
        font-size: 11px;
        letter-spacing: 0.01em;
        line-height: 1.2;
        margin-bottom: 3px;
    }

    body[data-theme="dark"] .ds-mobile-footer :is(.footer-widget p, .footer-widget span, .footer-widget__links a) {
        font-size: 10px;
        line-height: 1.25;
    }

    body[data-theme="dark"] .ds-mobile-footer .footer-widget__links ul {
        column-gap: 6px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body[data-theme="dark"] .ds-mobile-footer .footer-widget__links a {
        align-items: center;
        display: inline-flex;
        justify-content: center;
        min-height: 30px;
        padding: 2px 4px;
    }

    body[data-theme="dark"] .ds-mobile-footer .footer-widget__newsletter form {
        align-items: center;
        gap: 5px;
        justify-content: center;
    }

    body[data-theme="dark"] .ds-mobile-footer .footer-widget__newsletter :is(.form-control, .btn) {
        border: 1px solid var(--ds-border-soft);
        border-radius: var(--ds-radius-sm);
        box-shadow: none;
        font-size: 11px;
        min-height: 38px;
        padding-block: 7px;
    }

    body[data-theme="dark"] .ds-mobile-footer .footer-widget__newsletter .form-control {
        background: var(--ds-bg-elevated);
        color: var(--ds-text-primary);
    }

    body[data-theme="dark"] .ds-mobile-footer .footer-widget__newsletter .form-control::placeholder {
        color: var(--ds-text-muted);
    }

    body[data-theme="dark"] .ds-mobile-footer .footer-widget__newsletter .tp-btn {
        background: var(--ds-accent);
        color: var(--ds-accent-contrast);
    }

    body[data-theme="dark"] .ds-mobile-footer :is(.footer-social, .footer-social-list, .footer-copyright .footer-social, .footer-copyright .footer-social-list) {
        display: none;
    }

    body[data-theme="dark"] .ds-mobile-footer :is(.footer-widget--social, .footer-widget.social, .footer-widget__social) {
        display: none;
    }

    body[data-theme="dark"] #product-type-tab .nav-link {
        border: 1px solid var(--ds-border-soft);
        border-radius: 999px;
        box-shadow: none;
        font-size: 10px;
        min-height: 32px;
        padding: 4px 10px;
    }

    body[data-theme="dark"] #product-type-tab .nav-link.active {
        background: var(--ds-accent);
        border-color: var(--ds-accent);
        box-shadow: none;
        color: var(--ds-accent-contrast);
    }

    body[data-theme="dark"] .ds-product-card__badges {
        gap: 4px;
        left: 7px;
        max-width: calc(100% - 14px);
        top: 7px;
    }

    body[data-theme="dark"] .ds-product-card__badges :is(.badge, .status, .stock-status, .label) {
        border: 1px solid var(--ds-border-soft);
        border-radius: var(--ds-radius-sm);
        font-size: 8px;
        line-height: 1.1;
        max-width: 100%;
        min-height: 16px;
        overflow: hidden;
        padding: 2px 5px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body[data-theme="dark"] .ds-product-card__stock,
    body[data-theme="dark"] .ds-product-card__status,
    body[data-theme="dark"] .ds-product-card .stock-status {
        border-radius: var(--ds-radius-sm);
        box-shadow: none;
    }

    body[data-theme="dark"] .ds-product-card__meta-row {
        flex-wrap: wrap;
        gap: 4px;
        min-height: 0;
        padding-right: 2px;
    }

    body[data-theme="dark"] .ds-product-card__title {
        margin-top: 1px;
        overflow-wrap: anywhere;
        padding-right: 2px;
    }
}

/* ═══════════════════════════════════════════════════════
   PDP — WHOLESALE PRICING TABLE (shared base)
   Uses design tokens — auto-adapts to light/dark mode.
   Overrides plugin inline styles via double-class specificity.
═══════════════════════════════════════════════════════ */

.product-area .wholesale-pricing-table.wholesale-pricing-table {
    background: var(--ds-surface-1);
    border: var(--ds-border-width) solid var(--ds-border-1);
    border-radius: var(--ds-radius-2);
    overflow: hidden;
    margin-top: var(--ds-space-4);
    margin-bottom: var(--ds-space-1);
}

.product-area .wholesale-pricing-table .ws-header {
    background: var(--ds-hover-overlay);
    border-bottom: 1px solid var(--ds-divider);
    padding: 10px var(--ds-space-4);
}

.product-area .wholesale-pricing-table .ws-header h5 {
    color: var(--ds-text-2);
    font-size: 13px;
    font-weight: 600;
}

.product-area .wholesale-pricing-table .ws-header i,
.product-area .wholesale-pricing-table .ws-header svg {
    color: var(--ds-text-muted-2);
    font-size: 16px;
}

.product-area .wholesale-pricing-table .table {
    background: transparent;
    color: var(--ds-text-2);
    margin-bottom: 0;
    font-size: 13px;
}

.product-area .wholesale-pricing-table .table thead tr {
    background: var(--ds-hover-overlay);
    border-bottom: 1px solid var(--ds-divider);
}

.product-area .wholesale-pricing-table .table thead th {
    color: var(--ds-text-muted-2);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    padding: 8px 12px;
    background: transparent;
}

.product-area .wholesale-pricing-table .table tbody tr {
    border-bottom: 1px solid var(--ds-divider);
    background: transparent;
    transition: background 0.12s ease;
}

.product-area .wholesale-pricing-table .table tbody tr:last-child {
    border-bottom: none;
}

.product-area .wholesale-pricing-table .table tbody tr:hover {
    background: var(--ds-hover-overlay);
}

.product-area .wholesale-pricing-table .table tbody td {
    border: none;
    padding: 9px 12px;
    color: var(--ds-text-2);
    vertical-align: middle;
}

.product-area .wholesale-pricing-table .ws-tier-active {
    background: rgba(var(--ds-primary-rgb), 0.07);
    border-left: 2px solid var(--ds-accent);
}

.product-area .wholesale-pricing-table .ws-tier-active td {
    background: rgba(var(--ds-primary-rgb), 0.07);
}

.product-area .wholesale-pricing-table .ws-price-discounted {
    color: var(--ds-text-1);
    font-weight: 700;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.product-area .wholesale-pricing-table.wholesale-pricing-table .ws-badge {
    background-color: rgba(168, 200, 25, 0.12) !important;
    background-image: none !important;
    color: #A8C819 !important;
    border: 1px solid rgba(168, 200, 25, 0.22) !important;
    font-size: 10px;
    font-weight: 700;
    border-radius: 10px;
    padding: 2px 7px;
}

.product-area .wholesale-pricing-table .ws-savings {
    color: var(--ds-success);
    font-size: 12px;
}

.product-area .wholesale-pricing-table > p.small {
    color: var(--ds-text-muted-2);
    font-size: 11px;
    border-top: 1px solid var(--ds-divider);
    padding: 8px 14px;
    margin: 0;
}

.product-area .wholesale-pricing-table > p.small i,
.product-area .wholesale-pricing-table > p.small svg {
    color: var(--ds-text-muted-2);
}

.product-area .wholesale-pricing-table .table-responsive {
    overflow-x: auto;
    border-radius: 0;
}

/* Kill Bootstrap table-striped white stripes in dark mode */
.product-area .wholesale-pricing-table .table-striped tbody tr:nth-of-type(odd) {
    background: transparent !important;
}

.product-area .wholesale-pricing-table .table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-bg-type: transparent !important;
}

/* ═══════════════════════════════════════════════════════
   PDP — COMPACT FEATURE BOX (right sidebar)
   Token-based container — adapts automatically.
═══════════════════════════════════════════════════════ */

.ds-pdp-compact-features {
    background: var(--ds-surface-1);
    border: var(--ds-border-width) solid var(--ds-border-1);
    border-radius: var(--ds-radius-2);
    padding: 0;
    position: sticky;
    top: 90px;
}

.ds-pdp-compact-features .tpproduct-details__condation {
    margin: 0;
    padding: 0;
}

.ds-pdp-compact-features .tpproduct-details__condation ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ds-pdp-compact-features .tpproduct-details__condation li {
    border-bottom: 1px solid var(--ds-divider);
    padding: 10px var(--ds-space-4);
}

.ds-pdp-compact-features .tpproduct-details__condation li:last-child {
    border-bottom: none;
}

.ds-pdp-compact-features .tpproduct-details__condation-item {
    gap: 10px;
}

.ds-pdp-compact-features .tpproduct-details__condation-thumb {
    flex-shrink: 0;
    width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ds-pdp-compact-features .tpproduct-details__condation-thumb img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    opacity: 0.82;
}

.ds-pdp-compact-features .tpproduct-details__condation-text p {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: var(--ds-text-3);
    font-weight: 450;
}

.ds-pdp-features-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: var(--ds-space-1);
}

@media (max-width: 991.98px) {
    .ds-pdp-compact-features {
        position: static;
        margin-top: var(--ds-space-5);
    }

    .ds-pdp-features-col {
        padding-top: 0;
    }
}

/* ═══════════════════════════════════════════════════════
   PDP — WHOLESALE TABLE IN RIGHT COLUMN (ultra-compact dark)
   Strips all plugin chrome. Full dark-mode integration.
   Uses body prefix + triple-class for max specificity
   to beat plugin inline <style> block.
═══════════════════════════════════════════════════════ */

/* --- Container reset --- */
body .ds-pdp-compact-features .wholesale-pricing-table.wholesale-pricing-table {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    overflow: visible !important;
}

/* --- Header: slim accent bar --- */
body .ds-pdp-compact-features .wholesale-pricing-table .ws-header {
    background: rgba(168, 200, 25, 0.06) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 0 !important;
    padding: 7px 12px !important;
}

body .ds-pdp-compact-features .wholesale-pricing-table .ws-header h5 {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em !important;
    margin: 0 !important;
}

body .ds-pdp-compact-features .wholesale-pricing-table .ws-header i,
body .ds-pdp-compact-features .wholesale-pricing-table .ws-header svg {
    color: #A8C819 !important;
    font-size: 14px !important;
    width: 14px !important;
    height: 14px !important;
}

/* --- Table base: dark, tight, no stripes --- */
body .ds-pdp-compact-features .wholesale-pricing-table .table {
    --bs-table-bg: transparent !important;
    --bs-table-color: rgba(255, 255, 255, 0.75) !important;
    --bs-table-striped-bg: transparent !important;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.04) !important;
    --bs-table-border-color: rgba(255, 255, 255, 0.06) !important;
    --bs-table-accent-bg: transparent !important;
    --bs-table-bg-type: transparent !important;
    background-color: transparent !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.75) !important;
    margin-bottom: 0 !important;
    font-size: 11px !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

body .ds-pdp-compact-features .wholesale-pricing-table .table thead {
    background: rgba(255, 255, 255, 0.03) !important;
}

body .ds-pdp-compact-features .wholesale-pricing-table .table thead tr {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body .ds-pdp-compact-features .wholesale-pricing-table .table thead th {
    color: rgba(255, 255, 255, 0.40) !important;
    background: transparent !important;
    font-size: 9px !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    padding: 5px 8px !important;
    border: none !important;
    white-space: nowrap !important;
}

/* --- Body rows: ultra-compact --- */
body .ds-pdp-compact-features .wholesale-pricing-table .table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    background: transparent !important;
    transition: background 0.15s ease !important;
}

body .ds-pdp-compact-features .wholesale-pricing-table .table tbody tr:last-child {
    border-bottom: none !important;
}

body .ds-pdp-compact-features .wholesale-pricing-table .table-striped tbody tr:nth-of-type(odd) {
    background: transparent !important;
    background-color: transparent !important;
}

body .ds-pdp-compact-features .wholesale-pricing-table .table-striped > tbody > tr > * {
    --bs-table-bg-type: transparent !important;
    --bs-table-accent-bg: transparent !important;
    background-color: transparent !important;
}

body .ds-pdp-compact-features .wholesale-pricing-table .table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-bg-type: transparent !important;
    --bs-table-accent-bg: transparent !important;
    background-color: transparent !important;
}

body .ds-pdp-compact-features .wholesale-pricing-table .table > :not(caption) > * > * {
    --bs-table-bg-type: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

body .ds-pdp-compact-features .wholesale-pricing-table .table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04) !important;
}

body .ds-pdp-compact-features .wholesale-pricing-table .table tbody td {
    --bs-table-bg-type: transparent !important;
    --bs-table-accent-bg: transparent !important;
    background-color: transparent !important;
    color: rgba(255, 255, 255, 0.70) !important;
    padding: 6px 8px !important;
    border: none !important;
    vertical-align: middle !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
}

body .ds-pdp-compact-features .wholesale-pricing-table .table thead th {
    --bs-table-bg-type: transparent !important;
    --bs-table-accent-bg: transparent !important;
    background-color: transparent !important;
}

/* --- Quantity text --- */
body .ds-pdp-compact-features .wholesale-pricing-table .table tbody td strong {
    color: rgba(255, 255, 255, 0.90) !important;
    font-weight: 600 !important;
    font-size: 11px !important;
}

/* --- Discounted price --- */
body .ds-pdp-compact-features .wholesale-pricing-table .ws-price-discounted {
    color: #FFFFFF !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    font-variant-numeric: tabular-nums !important;
}

/* --- Original price strikethrough --- */
body .ds-pdp-compact-features .wholesale-pricing-table .table tbody td del {
    color: rgba(255, 255, 255, 0.30) !important;
    font-size: 9px !important;
}

/* --- Badge: dark pill with accent text (overrides pink inline !important) --- */
body .ds-pdp-compact-features .wholesale-pricing-table.wholesale-pricing-table .ws-badge {
    background-color: rgba(168, 200, 25, 0.12) !important;
    background-image: none !important;
    color: #A8C819 !important;
    border: 1px solid rgba(168, 200, 25, 0.22) !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    padding: 2px 6px !important;
    border-radius: 10px !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
}

/* --- Savings text --- */
body .ds-pdp-compact-features .wholesale-pricing-table .ws-savings {
    color: #6EDC5F !important;
    font-size: 10px !important;
    font-weight: 500 !important;
}

/* --- Active tier highlight --- */
body .ds-pdp-compact-features .wholesale-pricing-table .ws-tier-active {
    background: rgba(168, 200, 25, 0.08) !important;
    border-left: 2px solid #A8C819 !important;
}

body .ds-pdp-compact-features .wholesale-pricing-table .ws-tier-active td {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.90) !important;
}

body .ds-pdp-compact-features .wholesale-pricing-table .ws-tier-active .ws-price-discounted {
    color: #A8C819 !important;
}

/* --- Footer info text --- */
body .ds-pdp-compact-features .wholesale-pricing-table > p.small {
    color: rgba(255, 255, 255, 0.35) !important;
    font-size: 9px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding: 6px 10px !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

body .ds-pdp-compact-features .wholesale-pricing-table > p.small i,
body .ds-pdp-compact-features .wholesale-pricing-table > p.small svg {
    color: rgba(255, 255, 255, 0.30) !important;
    font-size: 11px !important;
}

/* ═══════════════════════════════════════════════════════
   PDP — PRICE BOX COMPACT LAYOUT
   Smaller fonts, qty + buttons in one row, slimmer buttons.
═══════════════════════════════════════════════════════ */

/* --- Font size reductions --- */
.tpproduct-details__title {
    font-size: 1.25rem;
}

.tpproduct-details__price {
    font-size: 1.35rem;
}

.tpproduct-details__pera p {
    font-size: 0.82rem;
    line-height: 1.5;
}

.tpproduct-details__tax-text small {
    font-size: 0.75rem;
}

/* --- Qty + Buttons: single row --- */
.tpproduct-details__count {
    flex-wrap: nowrap !important;
    gap: 6px !important;
    margin-bottom: 0.75rem !important;
}

.tpproduct-details__quantity {
    flex-shrink: 0;
}

.tpproduct-details__cart {
    flex: 1 1 auto;
    min-width: 0;
}

.tpproduct-details__cart .btn {
    padding: 8px 14px;
    font-size: 0.82rem;
    white-space: nowrap;
}

/* --- Slimmer quantity input --- */
.tpproduct-details__quantity .tp-cart-input {
    width: 32px;
    font-size: 0.85rem;
}

/* --- Responsive: stack on very small screens --- */
@media (max-width: 479.98px) {
    .tpproduct-details__count {
        flex-wrap: wrap !important;
    }
}

/* ═══════════════════════════════════════════════════════
   PDP — META INFO COMPACT (SKU, Brand, Categories, Share)
   Dezenter, kleiner, weniger visuelles Gewicht.
═══════════════════════════════════════════════════════ */

.product-area .tpproduct-details__information {
    font-size: 11px;
    line-height: 1.4;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.product-area .tpproduct-details__information p {
    font-size: 11px;
    margin: 0;
    color: rgba(255, 255, 255, 0.40);
    font-weight: 500;
    white-space: nowrap;
}

.product-area .tpproduct-details__information span,
.product-area .tpproduct-details__information .meta-value {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.60);
    font-weight: 400;
}

.product-area .tpproduct-details__information a {
    color: rgba(255, 255, 255, 0.60);
    text-decoration: none;
    transition: color 0.15s ease;
}

.product-area .tpproduct-details__information a:hover {
    color: #A8C819;
}

/* Share icons: smaller, muted, compact circles */
.product-area .tpproduct-details__social .social-sharing a,
.product-area .tpproduct-details__social a,
.product-area .tpproduct-details__social button {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.30);
    transition: color 0.15s ease;
}

.product-area .tpproduct-details__social .social-sharing a:hover,
.product-area .tpproduct-details__social a:hover,
.product-area .tpproduct-details__social button:hover {
    color: #A8C819;
}

.product-area .tpproduct-details__social svg,
.product-area .tpproduct-details__social i {
    width: 13px;
    height: 13px;
    font-size: 12px;
}

.product-area .tpproduct-details__social .bb-social-sharing__item {
    width: 28px;
    height: 28px;
    border-color: rgba(255, 255, 255, 0.10);
}

.product-area .tpproduct-details__social .bb-social-sharing__item:hover {
    border-color: rgba(168, 200, 25, 0.30);
    background-color: rgba(168, 200, 25, 0.08);
}

.product-area .tpproduct-details__social .bb-social-sharing {
    gap: 0.15rem;
}

/* "Aktie:" label smaller */
.product-area .tpproduct-details__social > p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
}

/* Product variant/attribute titles: smaller, muted */
.product-area .bb-product-attribute-swatch-title,
.product-area h4.bb-product-attribute-swatch-title {
    font-size: 13px !important;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.50);
    margin-bottom: 6px;
    text-transform: none;
}

/* Newsletter Popup – X button in primary color */
.newsletter-popup .modal-content .btn-close {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23A8C819'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
    filter: none !important;
    opacity: 1 !important;
}

/* ═══════════════════════════════════════════════════════
   MOBILE UX PACKAGE — UNIFIED MENU, FOOTER, BADGES
   Dark + Primary design system, elegant & minimal
═══════════════════════════════════════════════════════ */

/* --- 1. MOBILE MENU — UNIFIED ACTION BUTTONS --- */
@media (max-width: 991px) {
    /* Unified action row styling for sidebar links */
    body[data-theme="dark"] .tpsideinfo :is(.tpsideinfo__wishlist-link, .tpsideinfo__account-link) {
        border-bottom: 1px solid var(--ds-border-soft);
        margin: 0;
        padding: 0;
    }

    body[data-theme="dark"] .tpsideinfo :is(.tpsideinfo__wishlist-link a, .tpsideinfo__account-link a) {
        align-items: center;
        color: var(--ds-text-secondary);
        display: flex;
        font-size: 12px;
        font-weight: 500;
        gap: 10px;
        letter-spacing: 0.01em;
        min-height: 48px;
        padding: 10px 14px;
        text-decoration: none;
        transition: background 0.15s ease, color 0.15s ease;
    }

    body[data-theme="dark"] .tpsideinfo :is(.tpsideinfo__wishlist-link a:hover, .tpsideinfo__account-link a:hover) {
        background: var(--ds-bg-elevated);
        color: var(--ds-text-primary);
    }

    body[data-theme="dark"] .tpsideinfo :is(.tpsideinfo__wishlist-link a:active, .tpsideinfo__account-link a:active) {
        background: var(--ds-border-soft);
    }

    body[data-theme="dark"] .tpsideinfo :is(.tpsideinfo__wishlist-link i, .tpsideinfo__account-link i) {
        color: var(--ds-text-muted);
        flex: 0 0 auto;
        font-size: 14px;
        text-align: center;
        width: 20px;
    }

    /* Compare badge inside sidebar — subtle pill */
    body[data-theme="dark"] .tpsideinfo .tpsideinfo__wishlist-link .tp-product-compare-count {
        background: var(--ds-bg-page);
        border: 1px solid var(--ds-border-soft);
        border-radius: 999px;
        color: var(--ds-accent);
        font-size: 10px;
        font-weight: 700;
        height: 20px;
        line-height: 1;
        margin-left: auto;
        min-width: 20px;
        padding: 0 5px;
        position: static;
        text-align: center;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Menu nav items — consistent with action buttons */
    body[data-theme="dark"] .tpsideinfo .mobile-menu-nav > ul > li > a {
        font-size: 13px;
        font-weight: 500;
        letter-spacing: 0.01em;
    }

    /* Tab buttons — unified look */
    body[data-theme="dark"] .tpsideinfo .nav-link {
        border-radius: var(--ds-radius-sm);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.03em;
        padding: 8px 14px;
        text-transform: uppercase;
    }

    body[data-theme="dark"] .tpsideinfo .nav-link.active {
        background: var(--ds-bg-elevated);
        border-color: var(--ds-accent);
        color: var(--ds-text-primary);
    }

    /* Switcher row (language/currency) — same rhythm */
    body[data-theme="dark"] .tpsideinfo__switcher {
        padding: 6px 14px 10px;
    }

    body[data-theme="dark"] .tpsideinfo__switcher .nice-select {
        background: var(--ds-bg-elevated);
        border: 1px solid var(--ds-border-soft);
        border-radius: var(--ds-radius-sm);
        color: var(--ds-text-secondary);
        font-size: 11px;
        min-height: 36px;
    }
}

/* --- 2. MOBILE FOOTER — ELEGANT MINIMAL REDESIGN --- */
@media (max-width: 991px) {
    body[data-theme="dark"] .ds-mobile-footer .footer-area {
        background: var(--ds-bg-card);
        border-top: 1px solid var(--ds-border-soft);
        padding-bottom: calc(72px + env(safe-area-inset-bottom));
        padding-top: 20px;
    }

    /* Centered, compact layout */
    body[data-theme="dark"] .ds-mobile-footer .main-footer {
        border-bottom: 1px solid var(--ds-border-soft);
        margin-bottom: 0;
        padding-bottom: 16px;
    }

    body[data-theme="dark"] .ds-mobile-footer .main-footer .row {
        gap: 0;
        justify-content: center;
    }

    /* Widget titles — small caps, refined */
    body[data-theme="dark"] .ds-mobile-footer .footer-widget__title {
        color: var(--ds-text-primary);
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.06em;
        margin-bottom: 8px;
        text-transform: uppercase;
    }

    /* Link grid — 2 columns, compact pills */
    body[data-theme="dark"] .ds-mobile-footer .footer-widget__links ul {
        column-gap: 6px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 4px;
    }

    body[data-theme="dark"] .ds-mobile-footer .footer-widget__links a {
        align-items: center;
        background: var(--ds-bg-elevated);
        border: 1px solid var(--ds-border-soft);
        border-radius: var(--ds-radius-sm);
        color: var(--ds-text-secondary);
        display: inline-flex;
        font-size: 10px;
        font-weight: 450;
        justify-content: center;
        min-height: 32px;
        padding: 4px 8px;
        text-decoration: none;
        transition: border-color 0.15s ease, color 0.15s ease;
    }

    body[data-theme="dark"] .ds-mobile-footer .footer-widget__links a:hover {
        border-color: var(--ds-accent);
        color: var(--ds-text-primary);
    }

    /* Footer CTA section — subtle divider */
    body[data-theme="dark"] .ds-mobile-footer .footer-cta {
        border-bottom: 1px solid var(--ds-border-soft);
        margin-bottom: 0;
        padding-block: 12px;
    }

    body[data-theme="dark"] .ds-mobile-footer .footer-cta__source-title {
        font-size: 11px;
    }

    body[data-theme="dark"] .ds-mobile-footer .footer-cta__source p {
        font-size: 10px;
    }

    /* Copyright — whisper-quiet */
    body[data-theme="dark"] .ds-mobile-footer .footer-copyright {
        padding-block: 10px;
    }

    body[data-theme="dark"] .ds-mobile-footer .footer-copyright__content {
        color: var(--ds-text-muted);
        font-size: 9px;
        letter-spacing: 0.02em;
    }

    /* Newsletter — refined input + accent button */
    body[data-theme="dark"] .ds-mobile-footer .footer-widget__newsletter .tp-btn {
        background: var(--ds-accent);
        border: none;
        color: var(--ds-accent-contrast);
        font-weight: 600;
    }

    /* Widget spacing — tighter stacking */
    body[data-theme="dark"] .ds-mobile-footer .footer-widget {
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    body[data-theme="dark"] .ds-mobile-footer .footer-widget:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    /* Footer content paragraph */
    body[data-theme="dark"] .ds-mobile-footer .footer-content p {
        color: var(--ds-text-muted);
        font-size: 10px;
        line-height: 1.5;
    }
}

/* --- Extra small footer polish --- */
@media (max-width: 575px) {
    body[data-theme="dark"] .ds-mobile-footer .footer-widget__links ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body[data-theme="dark"] .ds-mobile-footer .footer-widget__links a {
        font-size: 9px;
        min-height: 30px;
        padding: 3px 6px;
    }
}

/* --- 3. NAVIGATION BAR BADGES — DARK CIRCLE + PRIMARY NUMBER --- */
@media (max-width: 991px) {
    /* Bottom nav badge — restyle completely */
    body[data-theme="dark"] .navigation-bar .header-cart .tp-product-count,
    body[data-theme="dark"] .navigation-bar .header-cart .tp-product-wishlist-count {
        align-items: center;
        background: var(--ds-bg-page) !important;
        border: 1.5px solid var(--ds-border-soft);
        border-radius: 999px;
        color: var(--ds-accent) !important;
        display: inline-flex;
        font-size: 9px;
        font-weight: 700;
        font-variant-numeric: tabular-nums;
        height: 18px;
        justify-content: center;
        line-height: 1;
        min-width: 18px;
        padding: 0 4px;
        position: absolute;
        right: -8px;
        top: -6px;
        z-index: 2;
    }

    /* Navigation bar — refined spacing */
    body[data-theme="dark"] .navigation-bar {
        background: var(--ds-bg-card);
        border-top: 1px solid var(--ds-border-soft);
        padding-bottom: calc(6px + env(safe-area-inset-bottom));
        padding-top: 6px;
    }

    body[data-theme="dark"] .navigation-bar__list {
        gap: 0;
    }

    body[data-theme="dark"] .navigation-bar__list li {
        flex: 1;
        max-width: none;
    }

    body[data-theme="dark"] .navigation-bar__list a {
        align-items: center;
        display: flex;
        flex-direction: column;
        gap: 3px;
        justify-content: center;
        min-height: 48px;
        padding: 6px 2px;
    }

    body[data-theme="dark"] .navigation-bar__list a i {
        color: var(--ds-text-secondary);
        font-size: 18px;
        transition: color 0.15s ease;
    }

    body[data-theme="dark"] .navigation-bar__list a span {
        color: var(--ds-text-muted);
        font-size: 9px;
        font-weight: 500;
        letter-spacing: 0.02em;
    }

    /* Active/hover state for bottom nav */
    body[data-theme="dark"] .navigation-bar__list a:hover i,
    body[data-theme="dark"] .navigation-bar__list a.active i {
        color: var(--ds-accent);
    }

    body[data-theme="dark"] .navigation-bar__list a:hover span,
    body[data-theme="dark"] .navigation-bar__list a.active span {
        color: var(--ds-text-primary);
    }

    /* Ensure badge circle is not clipped */
    body[data-theme="dark"] .navigation-bar .header-cart {
        overflow: visible;
        position: relative;
    }
}
