/* ============================================================
   LAKARCADE SHOP + PRODUCT CATEGORIES - DARK / LIGHT THEME
   Scoped by the plugin-added body.lakarcade-shop-themed class.
   ============================================================ */

html[data-la-theme="dark"] body.lakarcade-shop-themed {
    --lks-bg: #080a09;
    --lks-bg-elevated: #0e110f;
    --lks-surface: #141815;
    --lks-surface-2: #1b211d;
    --lks-text: #f8f4ea;
    --lks-muted: #b9b5aa;
    --lks-line: rgba(255, 255, 255, 0.15);
    --lks-line-strong: rgba(255, 255, 255, 0.3);
    --lks-control: rgba(8, 10, 9, 0.9);
    --lks-control-text: #ffffff;
    --lks-media: radial-gradient(circle at 50% 28%, #303531 0, #171b18 46%, #0c0e0d 100%);
    --lks-header: rgba(8, 10, 9, 0.9);
    --lks-overlay: rgba(0, 0, 0, 0.7);
    --lks-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    --lks-gold: #d6ad58;
    --lks-copper: #d95c34;
    color-scheme: dark;
}

html[data-la-theme="light"] body.lakarcade-shop-themed {
    --lks-bg: #f5f0e6;
    --lks-bg-elevated: #fffdf8;
    --lks-surface: #ffffff;
    --lks-surface-2: #ece5d9;
    --lks-text: #171a16;
    --lks-muted: #646860;
    --lks-line: rgba(23, 26, 22, 0.16);
    --lks-line-strong: rgba(23, 26, 22, 0.3);
    --lks-control: rgba(255, 255, 255, 0.94);
    --lks-control-text: #171a16;
    --lks-media: radial-gradient(circle at 50% 25%, #ffffff 0, #eee9df 49%, #ddd6ca 100%);
    --lks-header: rgba(255, 253, 248, 0.92);
    --lks-overlay: rgba(25, 28, 24, 0.48);
    --lks-shadow: 0 24px 70px rgba(48, 40, 28, 0.18);
    --lks-gold: #815b15;
    --lks-copper: #b74425;
    color-scheme: light;
}

html[data-la-theme] body.lakarcade-shop-themed {
    color: var(--lks-text) !important;
    background: var(--lks-bg) !important;
    transition: color 260ms ease, background-color 260ms ease;
}

html[data-la-theme] body.lakarcade-shop-themed :is(
    #page,
    .page-wrapper,
    .content-page,
    .site-content,
    .elementor-location-archive,
    .elementor-location-archive > .elementor,
    .elementor-12663
) {
    color: var(--lks-text);
    background-color: var(--lks-bg) !important;
}

html[data-la-theme] body.lakarcade-shop-themed :is(a, button, input, select, textarea) {
    transition:
        color 220ms ease,
        background-color 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease,
        transform 220ms ease;
}

/* ---------- Persistent theme switch ---------- */

.lks-controls-dock {
    position: fixed;
    right: auto;
    left: clamp(12px, 2vw, 26px);
    bottom: clamp(12px, 2vw, 24px);
    z-index: 100000;
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.lks-theme-switcher {
    position: relative;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    display: grid;
    grid-template-columns: auto auto;
    gap: 4px;
    margin: 0 !important;
    padding: 5px;
    border: 1px solid var(--lks-line-strong);
    border-radius: 999px;
    color: var(--lks-control-text);
    background: var(--lks-control);
    box-shadow: var(--lks-shadow);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.lks-theme-switcher__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.lks-theme-switcher__button {
    min-width: 86px;
    min-height: 42px;
    padding: 0 15px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--lks-muted) !important;
    background: transparent !important;
    cursor: pointer;
    font: 700 11px/1 Arial, sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.lks-theme-switcher__button[aria-pressed="true"] {
    color: #151812 !important;
    background: #dfb65f !important;
    box-shadow: 0 5px 16px rgba(88, 58, 9, 0.2);
}

.lks-theme-switcher__button:focus-visible {
    outline: 3px solid var(--lks-copper);
    outline-offset: 3px;
}

.lks-theme-switcher__icon {
    position: relative;
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
    border: 1.5px solid currentColor;
    border-radius: 50%;
}

.lks-theme-switcher__icon--dark::after {
    position: absolute;
    inset: -2px -3px 2px 3px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.lks-theme-switcher__icon--light {
    background: currentColor;
    box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent);
}

/* ---------- Store currency switcher ---------- */

.lks-currency-converter {
    position: relative;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    z-index: auto;
    display: flex;
    align-self: flex-end;
    width: auto;
    height: 54px;
    margin: 0 !important;
    padding: 0;
    border: 0;
    border-radius: 999px;
    color: var(--lks-control-text);
    background: transparent;
    box-shadow: none;
}

.lks-currency-converter__label,
.lks-currency-converter__note {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    border: 0 !important;
    white-space: nowrap;
}

.lks-currency-trigger {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 24px auto 9px !important;
    width: 94px !important;
    min-width: 94px !important;
    height: 54px !important;
    min-height: 54px !important;
    align-items: center !important;
    justify-content: start !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 0 9px !important;
    border: 1px solid var(--lks-line-strong) !important;
    border-radius: 999px !important;
    color: var(--lks-text) !important;
    background: var(--lks-control) !important;
    box-shadow: var(--lks-shadow) !important;
    font: 900 11px/1 Arial, sans-serif !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
}

.lks-currency-trigger::after {
    width: 7px !important;
    height: 7px !important;
    border-right: 2px solid currentColor !important;
    border-bottom: 2px solid currentColor !important;
    content: "" !important;
    transform: rotate(45deg) translateY(-2px) !important;
}

.lks-currency-trigger:focus-visible {
    outline: 3px solid var(--lks-copper);
    outline-offset: 2px;
}

.lks-currency-trigger img,
.lks-currency-menu img {
    display: block !important;
    width: 24px !important;
    min-width: 24px !important;
    height: 18px !important;
    object-fit: cover !important;
    border: 1px solid var(--lks-line-strong) !important;
}

.lks-currency-menu {
    position: absolute !important;
    right: auto !important;
    left: 0 !important;
    bottom: calc(100% + 8px) !important;
    z-index: 100001 !important;
    display: grid !important;
    width: min(310px, calc(100vw - 24px)) !important;
    max-height: min(340px, calc(100vh - 120px)) !important;
    overflow-y: auto !important;
    padding: 6px !important;
    border: 1px solid var(--lks-line-strong) !important;
    border-radius: 12px !important;
    color: var(--lks-text) !important;
    background: var(--lks-bg-elevated) !important;
    box-shadow: var(--lks-shadow) !important;
}

.lks-currency-menu[hidden] {
    display: none !important;
}

.lks-currency-menu button {
    display: grid !important;
    grid-template-columns: 24px 42px minmax(0, 1fr) !important;
    width: 100% !important;
    min-height: 42px !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    border: 0 !important;
    border-radius: 7px !important;
    color: var(--lks-text) !important;
    background: transparent !important;
    text-align: left !important;
    cursor: pointer !important;
}

.lks-currency-menu button:hover,
.lks-currency-menu button:focus-visible,
.lks-currency-menu button.is-selected {
    color: var(--lks-bg) !important;
    background: var(--lks-text) !important;
}

.lks-currency-menu strong,
.lks-currency-menu span {
    color: inherit !important;
    font: 900 11px/1.2 Arial, sans-serif !important;
    letter-spacing: 0 !important;
}

.lks-currency-menu span {
    font-weight: 700 !important;
}

/* ---------- XStore / Elementor header ---------- */

html[data-la-theme] body.lakarcade-shop-themed .elementor-location-header {
    color: var(--lks-text) !important;
    background: var(--lks-header) !important;
}

html[data-la-theme] body.lakarcade-shop-themed .elementor-location-header :is(
    .etheme-elementor-header-overlap,
    .elementor-sticky--active,
    .elementor-sticky--effects
) {
    border-bottom: 1px solid var(--lks-line) !important;
    color: var(--lks-text) !important;
    background: var(--lks-header) !important;
    box-shadow: 0 10px 32px color-mix(in srgb, var(--lks-text) 9%, transparent) !important;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

html[data-la-theme] body.lakarcade-shop-themed .elementor-location-header :is(
    a,
    button,
    .elementor-button,
    .item-link,
    .et-icon,
    .et_b-icon,
    .elementor-icon,
    .etheme-elementor-nav-menu-item,
    .etheme-elementor-cart-button,
    .etheme-elementor-wishlist-button,
    .etheme-elementor-account-button
) {
    color: var(--lks-text) !important;
}

html[data-la-theme] body.lakarcade-shop-themed .elementor-location-header :is(svg, svg path) {
    color: currentColor !important;
    fill: currentColor;
    stroke: currentColor;
}

html[data-la-theme] body.lakarcade-shop-themed :is(
    .etheme-elementor-nav-menu--dropdown,
    .etheme-elementor-off-canvas__main,
    .etheme-elementor-modal-popup,
    .etheme-elementor-modal-popup__content,
    .et-mini-content,
    .et-mini-content-head,
    .login-form-popup,
    .xstore-wishlist-widget,
    .etheme-search-form
) {
    border-color: var(--lks-line) !important;
    color: var(--lks-text) !important;
    background: var(--lks-surface) !important;
    box-shadow: var(--lks-shadow) !important;
}

html[data-la-theme] body.lakarcade-shop-themed :is(
    .etheme-elementor-nav-menu--dropdown,
    .etheme-elementor-off-canvas__main,
    .etheme-elementor-modal-popup,
    .et-mini-content,
    .login-form-popup
) :is(a, button, label, h2, h3, p, span) {
    color: var(--lks-text) !important;
}

html[data-la-theme] body.lakarcade-shop-themed :is(
    .etheme-search-form input,
    .login-form-popup input,
    .et-mini-content input
) {
    border-color: var(--lks-line) !important;
    color: var(--lks-text) !important;
    background: var(--lks-bg-elevated) !important;
}

/* ---------- Product sections, sliders and quick view ---------- */

html[data-la-theme] body.lakarcade-shop-themed :is(
    .kf-section-wrapper,
    .la-premium-grid-wrapper
) {
    color: var(--lks-text) !important;
    background: var(--lks-bg) !important;
}

/* Keep independent Elementor HTML/shortcode widgets above theme surfaces. */
html[data-la-theme] body.lakarcade-shop-themed :is(
    #livingArchive,
    #hero,
    #heritage-hero,
    #lka-ceramic-slider,
    .lak-collection,
    .lak-heritage-atlas,
    .kf-section-wrapper,
    .la-premium-grid-wrapper,
    .ac-banner,
    .lcs-banner,
    .sb-banner,
    .ts-banner,
    .gj-banner,
    .hb-banner
) {
    visibility: visible !important;
    opacity: 1 !important;
}

html[data-la-theme] body.lakarcade-shop-themed :is(
    .kf-header,
    .la-header-toolbar,
    .kf-section-wrapper + .kf-section-wrapper
) {
    border-color: var(--lks-line) !important;
}

html[data-la-theme] body.lakarcade-shop-themed :is(
    .kf-heading,
    .kf-title,
    .kf-title a,
    .kf-price,
    .la-title,
    .la-title a,
    .la-price,
    .la-qv-details h2
) {
    color: var(--lks-text) !important;
}

html[data-la-theme] body.lakarcade-shop-themed :is(
    .kf-image-container,
    .la-image-container,
    .la-qv-main
) {
    border-color: var(--lks-line) !important;
    background: var(--lks-media) !important;
}

html[data-la-theme] body.lakarcade-shop-themed :is(
    .kf-details,
    .la-info,
    .kf-card,
    .la-grid-card
) {
    color: var(--lks-text) !important;
}

html[data-la-theme] body.lakarcade-shop-themed :is(
    .kf-nav-circle,
    .kf-view-all-bottom,
    .la-filter-toggle,
    .la-sort-trigger,
    .la-sort-menu,
    .la-filter-pill,
    .la-filter-drawer,
    .la-quickview-modal,
    .la-qv-details,
    .la-qv-thumb,
    .la-quickview-close,
    .la-wishlist-heart,
    .la-quickview-trigger
) {
    border-color: var(--lks-line-strong) !important;
    color: var(--lks-control-text) !important;
    background: var(--lks-control) !important;
}

html[data-la-theme] body.lakarcade-shop-themed :is(
    .la-sort-menu,
    .la-filter-drawer,
    .la-quickview-modal
) {
    box-shadow: var(--lks-shadow) !important;
}

html[data-la-theme] body.lakarcade-shop-themed :is(
    .la-total-count,
    .la-qv-excerpt,
    .la-qv-excerpt p,
    .la-qv-stock,
    .la-filter-group label,
    .kf-empty-message
) {
    color: var(--lks-muted) !important;
}

html[data-la-theme] body.lakarcade-shop-themed .kf-empty-message {
    border: 1px solid var(--lks-line) !important;
    background: var(--lks-surface) !important;
}

html[data-la-theme] body.lakarcade-shop-themed .la-quickview-overlay {
    background: var(--lks-overlay) !important;
}

html[data-la-theme] body.lakarcade-shop-themed :is(.la-hover-add-cart, .kf-view-all-bottom:hover) {
    border-color: #d6ad58 !important;
    color: #17140d !important;
    background: #d6ad58 !important;
}

/* ---------- Standard WooCommerce shop/category archives ---------- */

html[data-la-theme] body.lakarcade-shop-themed :is(
    .woocommerce-products-header,
    .shop-loop-head,
    .shop-filters,
    .shop-filters-area,
    .filter-wrap,
    .widget_product_categories,
    .widget_layered_nav,
    .widget_price_filter,
    .select2-dropdown,
    .woocommerce-message,
    .woocommerce-info,
    .woocommerce-error
) {
    border-color: var(--lks-line) !important;
    color: var(--lks-text) !important;
    background-color: var(--lks-surface) !important;
}

html[data-la-theme] body.lakarcade-shop-themed :is(
    .woocommerce-products-header__title,
    .page-title,
    .woocommerce-loop-category__title,
    .woocommerce-loop-product__title,
    .product-title,
    .product-title a,
    .widget-title,
    .sidebar-widget-title,
    .woocommerce-pagination a,
    .woocommerce-pagination span
) {
    color: var(--lks-text) !important;
}

html[data-la-theme] body.lakarcade-shop-themed :is(
    .woocommerce-breadcrumb,
    .woocommerce-breadcrumb a,
    .woocommerce-result-count,
    .term-description,
    .term-description p,
    .product-categories a,
    .woocommerce-widget-layered-nav-list a,
    .woocommerce-widget-layered-nav-list__item span,
    .widget_price_filter .price_label
) {
    color: var(--lks-muted) !important;
}

html[data-la-theme] body.lakarcade-shop-themed :is(
    .woocommerce-ordering select,
    .select2-selection,
    .select2-search__field,
    .widget_product_categories select,
    .widget_layered_nav select,
    .shop-filters input,
    .shop-filters-area input
) {
    border-color: var(--lks-line-strong) !important;
    color: var(--lks-text) !important;
    background-color: var(--lks-bg-elevated) !important;
}

html[data-la-theme] body.lakarcade-shop-themed :is(
    .woocommerce-ordering select option,
    .select2-results__option
) {
    color: var(--lks-text) !important;
    background-color: var(--lks-surface) !important;
}

html[data-la-theme] body.lakarcade-shop-themed .select2-results__option--highlighted {
    color: #17140d !important;
    background-color: #dfb65f !important;
}

html[data-la-theme] body.lakarcade-shop-themed .products :is(
    .product,
    .product-category,
    .content-product
) {
    border-color: var(--lks-line) !important;
    color: var(--lks-text) !important;
    background-color: var(--lks-surface) !important;
}

html[data-la-theme] body.lakarcade-shop-themed .products :is(
    .product-content-image,
    .product-image-wrapper,
    .content-product-image
) {
    background: var(--lks-media) !important;
}

html[data-la-theme] body.lakarcade-shop-themed .products :is(
    .price,
    .price ins,
    .amount
) {
    color: var(--lks-text) !important;
}

html[data-la-theme] body.lakarcade-shop-themed .products :is(.price del, .star-rating::before) {
    color: var(--lks-muted) !important;
}

html[data-la-theme] body.lakarcade-shop-themed :is(
    a.button,
    button.button,
    input.button,
    .woocommerce-pagination a,
    .woocommerce-pagination span,
    .open-filters-btn,
    .filter-toggle
) {
    border-color: var(--lks-line-strong) !important;
    color: var(--lks-text) !important;
    background-color: var(--lks-control) !important;
}

html[data-la-theme] body.lakarcade-shop-themed :is(
    a.button,
    button.button,
    input.button,
    .woocommerce-pagination a,
    .open-filters-btn,
    .filter-toggle
):is(:hover, :focus-visible),
html[data-la-theme] body.lakarcade-shop-themed .woocommerce-pagination .current {
    border-color: #dfb65f !important;
    color: #17140d !important;
    background-color: #dfb65f !important;
}

html[data-la-theme] body.lakarcade-shop-themed :is(
    .onsale,
    .sale-wrapper,
    .out-of-stock-label
) {
    border-color: var(--lks-line-strong) !important;
    color: #17140d !important;
    background-color: #dfb65f !important;
}

html[data-la-theme] body.lakarcade-shop-themed .widget_price_filter :is(
    .price_slider_wrapper .ui-widget-content,
    .ui-slider-range
) {
    background-color: var(--lks-line-strong) !important;
}

html[data-la-theme] body.lakarcade-shop-themed .widget_price_filter .ui-slider-handle {
    border-color: var(--lks-bg) !important;
    background-color: #dfb65f !important;
}

/* ---------- The Living Archive ---------- */

html[data-la-theme] body.lakarcade-shop-themed .archive {
    --white: var(--lks-text);
    --line: var(--lks-line);
    color: var(--lks-text) !important;
    background: var(--lks-bg) !important;
}

html[data-la-theme="dark"] body.lakarcade-shop-themed .archive {
    --ink: #010203;
    --white: #ffffff;
    --line: rgba(255, 255, 255, 0.2);
}

html[data-la-theme="light"] body.lakarcade-shop-themed .archive {
    --ink: #f5f0e6;
    --white: #171a16;
    --line: rgba(23, 26, 22, 0.18);
}

html[data-la-theme] body.lakarcade-shop-themed .archive-slide__word {
    bottom: clamp(76px, 6.8vw, 96px) !important;
}

html[data-la-theme="light"] body.lakarcade-shop-themed .archive-slide__ambient {
    background:
        linear-gradient(90deg, rgba(255, 252, 246, 0.97) 0 24%, rgba(250, 246, 238, 0.82) 50%, rgba(250, 246, 238, 0.5)),
        linear-gradient(0deg, rgba(245, 240, 230, 0.82), transparent 72%),
        var(--image) center / cover no-repeat,
        #e8e1d6 !important;
    filter: saturate(0.76) brightness(0.96) !important;
}

html[data-la-theme="light"] body.lakarcade-shop-themed .archive-slide__ambient::after {
    background:
        radial-gradient(circle at 66% 45%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 35%),
        linear-gradient(90deg, rgba(255, 252, 246, 0.7) 0 36%, transparent 74%) !important;
    mix-blend-mode: multiply !important;
    opacity: 0.3 !important;
}

html[data-la-theme="light"] body.lakarcade-shop-themed .archive-slide__word {
    color: rgba(23, 26, 22, 0.025) !important;
    -webkit-text-stroke: 1.25px rgba(23, 26, 22, 0.26) !important;
}

html[data-la-theme] body.lakarcade-shop-themed .archive-copy__action {
    color: #151812 !important;
    border-color: #dfb65f !important;
    background: #dfb65f !important;
    box-shadow: 0 10px 28px rgba(104, 70, 13, 0.2);
}

html[data-la-theme="light"] body.lakarcade-shop-themed :is(
    .archive-header,
    .archive-footer
) {
    background: rgba(255, 253, 248, 0.34) !important;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

html[data-la-theme="light"] body.lakarcade-shop-themed :is(
    .archive-art__index,
    .archive-art__index small
) {
    color: #fff7e8 !important;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.58);
}

html[data-la-theme="light"] body.lakarcade-shop-themed .archive-art__stamp {
    color: #161914 !important;
    border-color: #f5f0e6 !important;
}

html[data-la-theme="light"] body.lakarcade-shop-themed :is(
    .chapter-nav__button,
    .archive-control,
    .archive-footer__total,
    .archive-rail-label
) {
    color: rgba(23, 26, 22, 0.62) !important;
}

html[data-la-theme="light"] body.lakarcade-shop-themed :is(
    .chapter-nav__button:hover,
    .archive-control:hover
) {
    color: #161914 !important;
}

/* ---------- Traditional Chess ---------- */

html[data-la-theme] body.lakarcade-shop-themed :is(
    #hero,
    #hero ~ .ticker,
    #hero ~ .craft-panel,
    .site-header
) {
    --ink: var(--lks-bg);
    --paper: var(--lks-bg-elevated);
    --text-white: var(--lks-text);
    --text-white-soft: var(--lks-muted);
    --text-white-faint: var(--lks-muted);
    --muted: var(--lks-muted);
    --line: var(--lks-line);
}

html[data-la-theme] body.lakarcade-shop-themed #hero {
    color: var(--lks-text) !important;
    background:
        linear-gradient(90deg, transparent 49.92%, var(--lks-line) 50%, transparent 50.08%),
        var(--lks-bg) !important;
}

html[data-la-theme] body.lakarcade-shop-themed .site-header {
    border-color: var(--lks-line) !important;
    color: var(--lks-text) !important;
    background: color-mix(in srgb, var(--lks-bg) 82%, transparent) !important;
}

html[data-la-theme] body.lakarcade-shop-themed :is(
    .site-header .brand,
    .site-header .brand-name,
    .site-header .edition,
    .site-header .header-link,
    #hero .kicker,
    #hero .left-copy h2,
    #hero .micro-copy,
    #hero .right-copy h1,
    #hero .lead,
    #hero .secondary-action,
    #hero .detail-line dt,
    #hero .detail-line dd,
    #hero .side-note,
    #hero .image-caption
) {
    color: var(--lks-text) !important;
}

html[data-la-theme="dark"] body.lakarcade-shop-themed #hero .chess-field {
    opacity: 0.15 !important;
    mix-blend-mode: normal;
}

html[data-la-theme="light"] body.lakarcade-shop-themed #hero .chess-field {
    opacity: 0.13 !important;
    mix-blend-mode: multiply;
}

html[data-la-theme="dark"] body.lakarcade-shop-themed #hero .chess-field :is(
    span:nth-child(16n + 1),
    span:nth-child(16n + 3),
    span:nth-child(16n + 5),
    span:nth-child(16n + 7),
    span:nth-child(16n + 10),
    span:nth-child(16n + 12),
    span:nth-child(16n + 14),
    span:nth-child(16n + 16)
) {
    background: #f7f3ea !important;
}

html[data-la-theme="light"] body.lakarcade-shop-themed #hero .chess-field :is(
    span:nth-child(16n + 1),
    span:nth-child(16n + 3),
    span:nth-child(16n + 5),
    span:nth-child(16n + 7),
    span:nth-child(16n + 10),
    span:nth-child(16n + 12),
    span:nth-child(16n + 14),
    span:nth-child(16n + 16)
) {
    background: #171a16 !important;
}

html[data-la-theme="dark"] body.lakarcade-shop-themed #hero .display-type {
    color: rgba(247, 243, 234, 0.025) !important;
    -webkit-text-stroke: 1.25px rgba(247, 243, 234, 0.24) !important;
}

html[data-la-theme="light"] body.lakarcade-shop-themed #hero .display-type {
    color: rgba(23, 26, 22, 0.025) !important;
    -webkit-text-stroke: 1.25px rgba(23, 26, 22, 0.27) !important;
}

html[data-la-theme="light"] body.lakarcade-shop-themed :is(
    #hero .art-frame,
    #hero .index-stamp
) {
    border-color: rgba(50, 40, 25, 0.24) !important;
}

html[data-la-theme] body.lakarcade-shop-themed #hero ~ .ticker {
    border-color: var(--lks-line-strong) !important;
    color: var(--lks-text) !important;
    background: var(--lks-bg-elevated) !important;
}

/* ---------- Curated collection slider ---------- */

html[data-la-theme] body.lakarcade-shop-themed .lak-collection {
    color: var(--lks-text) !important;
    background: transparent !important;
}

html[data-la-theme="dark"] body.lakarcade-shop-themed .lak-collection::before {
    background:
        radial-gradient(circle at 8% 20%, rgba(177, 126, 45, 0.17), transparent 28%),
        radial-gradient(circle at 92% 76%, rgba(56, 103, 83, 0.16), transparent 30%),
        linear-gradient(180deg, transparent 0%, rgba(4, 8, 7, 0.9) 12%, rgba(4, 8, 7, 0.98) 50%, transparent 100%) !important;
}

html[data-la-theme="light"] body.lakarcade-shop-themed .lak-collection::before {
    background:
        radial-gradient(circle at 8% 20%, rgba(177, 126, 45, 0.12), transparent 28%),
        radial-gradient(circle at 92% 76%, rgba(56, 103, 83, 0.1), transparent 30%),
        linear-gradient(180deg, transparent 0%, rgba(255, 253, 248, 0.82) 12%, rgba(245, 240, 230, 0.96) 50%, transparent 100%) !important;
}

html[data-la-theme="light"] body.lakarcade-shop-themed .lak-collection::after {
    background-image: radial-gradient(rgba(23, 26, 22, 0.08) 0.6px, transparent 0.7px) !important;
}

html[data-la-theme] body.lakarcade-shop-themed .lak-collection__header h2 {
    color: var(--lks-text) !important;
}

html[data-la-theme] body.lakarcade-shop-themed .lak-collection__header h2 span,
html[data-la-theme] body.lakarcade-shop-themed .lak-collection__eyebrow {
    color: var(--lks-gold) !important;
}

html[data-la-theme] body.lakarcade-shop-themed .lak-collection__header p {
    color: var(--lks-muted) !important;
}

html[data-la-theme] body.lakarcade-shop-themed :is(
    .lak-collection__view-all,
    .lak-collection__prev,
    .lak-collection__next
) {
    border-color: var(--lks-line-strong) !important;
    color: var(--lks-text) !important;
    background: var(--lks-control) !important;
}

html[data-la-theme] body.lakarcade-shop-themed .lak-card {
    border-color: color-mix(in srgb, var(--lks-line-strong) 78%, transparent) !important;
    box-shadow: var(--lks-shadow) !important;
}

/* ---------- Heritage atlas safety hooks ---------- */

html[data-la-theme] body.lakarcade-shop-themed .lak-heritage-atlas {
    transition: color 260ms ease, background 260ms ease;
}

/* ---------- Jaffna horse film and story ---------- */

html[data-la-theme] body.lakarcade-shop-themed :is(
    #heritage-hero,
    #heritage-hero ~ .story
) {
    --ink: var(--lks-bg);
    --ink-soft: var(--lks-bg-elevated);
    --ivory: var(--lks-text);
    --ivory-muted: var(--lks-muted);
    --line: var(--lks-line);
}

html[data-la-theme] body.lakarcade-shop-themed #heritage-hero {
    color: var(--lks-text) !important;
    background: var(--lks-bg-elevated) !important;
}

html[data-la-theme="light"] body.lakarcade-shop-themed #heritage-hero .hero__wash {
    background:
        linear-gradient(90deg, rgba(255, 253, 248, 0.94) 0%, rgba(250, 246, 238, 0.7) 36%, rgba(250, 246, 238, 0.08) 70%),
        linear-gradient(0deg, rgba(245, 240, 230, 0.56) 0%, transparent 34%),
        radial-gradient(circle at 76% 47%, transparent 0%, rgba(245, 240, 230, 0.08) 44%, rgba(245, 240, 230, 0.34) 100%) !important;
}

html[data-la-theme="light"] body.lakarcade-shop-themed #heritage-hero :is(
    .hero__title,
    .hero__description,
    .hero__edition,
    .hero__control
) {
    color: var(--lks-text) !important;
    text-shadow: none;
}

html[data-la-theme="light"] body.lakarcade-shop-themed #heritage-hero .hero__control {
    border-color: var(--lks-line-strong) !important;
    background: rgba(255, 253, 248, 0.72) !important;
}

html[data-la-theme] body.lakarcade-shop-themed #heritage-hero ~ .story {
    color: var(--lks-text) !important;
    background:
        radial-gradient(circle at 50% 0%, color-mix(in srgb, #67a879 12%, transparent), transparent 44%),
        var(--lks-bg) !important;
}

html[data-la-theme] body.lakarcade-shop-themed #heritage-hero ~ .story p {
    color: var(--lks-text) !important;
}

/* ---------- Ceramic editorial slider ---------- */

html[data-la-theme="dark"] body.lakarcade-shop-themed #lka-ceramic-slider {
    --lka-rich-black: #010203;
    --lka-ink: #f3efe6;
    --lka-cream: #010203;
    --lka-paper: #07090a;
    --lka-clay: #c9a227;
    --lka-clay-dark: #efb72f;
    --lka-sage: #0a2927;
    --lka-line: rgba(255, 255, 255, 0.16);
}

html[data-la-theme="light"] body.lakarcade-shop-themed #lka-ceramic-slider {
    --lka-rich-black: #f4eee3;
    --lka-ink: #1a1d19;
    --lka-cream: #fffdf8;
    --lka-paper: #ffffff;
    --lka-clay: #926510;
    --lka-clay-dark: #714b0b;
    --lka-sage: #dfeae0;
    --lka-line: rgba(23, 26, 22, 0.17);
}

html[data-la-theme] body.lakarcade-shop-themed #lka-ceramic-slider {
    color: var(--lka-ink) !important;
    background:
        radial-gradient(circle at 9% 18%, color-mix(in srgb, var(--lka-clay) 10%, transparent), transparent 27rem),
        radial-gradient(circle at 88% 78%, color-mix(in srgb, var(--lka-ink) 4%, transparent), transparent 25rem),
        var(--lka-rich-black) !important;
    box-shadow: 0 -2px 0 var(--lka-rich-black), 0 2px 0 var(--lka-rich-black) !important;
}

html[data-la-theme] body.lakarcade-shop-themed #lka-ceramic-slider .lka-intro {
    color: color-mix(in srgb, var(--lka-ink) 68%, transparent) !important;
}

html[data-la-theme] body.lakarcade-shop-themed #lka-ceramic-slider :is(
    .lka-arrow,
    .lka-pause,
    .lka-lightbox-nav button,
    .lka-lightbox-close
) {
    border-color: var(--lka-line) !important;
    color: var(--lka-ink) !important;
    background: var(--lka-paper) !important;
}

html[data-la-theme] body.lakarcade-shop-themed #lka-ceramic-slider .lka-lightbox {
    color: var(--lka-ink) !important;
    background: var(--lka-cream) !important;
}

/* ---------- Photographic category banners ---------- */

html[data-la-theme="light"] body.lakarcade-shop-themed :is(
    .ac-banner,
    .lcs-banner,
    .sb-banner,
    .ts-banner,
    .gj-banner,
    .hb-banner
) {
    background: #eee7db !important;
}

html[data-la-theme="light"] body.lakarcade-shop-themed :is(
    .ac-banner,
    .lcs-banner,
    .sb-banner,
    .ts-banner,
    .gj-banner,
    .hb-banner
)::before {
    background:
        radial-gradient(circle at 28% 45%, rgba(184, 126, 54, 0.12), transparent 34%),
        linear-gradient(90deg, rgba(255, 253, 248, 0.88) 0%, rgba(250, 246, 238, 0.62) 40%, rgba(250, 246, 238, 0.12) 72%, rgba(250, 246, 238, 0.03) 100%) !important;
}

html[data-la-theme="light"] body.lakarcade-shop-themed :is(
    .ac-banner__content,
    .lcs-banner__content,
    .sb-banner__panel,
    .ts-banner__panel,
    .gj-banner__panel,
    .hb-banner__panel
) {
    border-color: rgba(129, 91, 21, 0.34) !important;
    color: var(--lks-text) !important;
    background: rgba(255, 253, 248, 0.8) !important;
    box-shadow: 20px 25px 58px rgba(52, 42, 27, 0.16) !important;
    -webkit-backdrop-filter: blur(7px) !important;
    backdrop-filter: blur(7px) !important;
}

html[data-la-theme="light"] body.lakarcade-shop-themed :is(
    .ac-banner__content,
    .lcs-banner__content,
    .sb-banner__panel,
    .ts-banner__panel,
    .gj-banner__panel,
    .hb-banner__panel
) :is(h2, h2 span, h2 strong, h2 b, h2 em, h2 i, p) {
    color: var(--lks-text) !important;
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
    filter: none !important;
    text-shadow: none !important;
}

html[data-la-theme="light"] body.lakarcade-shop-themed :is(
    .ac-banner__eyebrow,
    .lcs-banner__eyebrow,
    .sb-banner__eyebrow,
    .ts-banner__eyebrow,
    .gj-banner__eyebrow,
    .hb-banner__eyebrow
) {
    color: var(--lks-gold) !important;
}

html[data-la-theme="light"] body.lakarcade-shop-themed :is(
    .ac-banner__arts,
    .lcs-banner__lower strong,
    .ts-banner__second-line strong,
    .gj-banner__second-line strong,
    .hb-banner__second-line strong
) {
    color: var(--lks-copper) !important;
}

/* ---------- Footer ---------- */

html[data-la-theme] body.lakarcade-shop-themed .elementor-location-footer,
html[data-la-theme] body.lakarcade-shop-themed .elementor-location-footer .elementor-top-section {
    border-color: var(--lks-line) !important;
    color: var(--lks-text) !important;
    background: var(--lks-bg-elevated) !important;
}

html[data-la-theme] body.lakarcade-shop-themed .elementor-location-footer :is(
    h2,
    h3,
    h4,
    p,
    a,
    li,
    .elementor-icon,
    .elementor-social-icon
) {
    color: var(--lks-text) !important;
}

html[data-la-theme] body.lakarcade-shop-themed .elementor-location-footer :is(
    .elementor-social-icon,
    .elementor-button
) {
    border-color: var(--lks-line-strong) !important;
    background: var(--lks-surface) !important;
}

html[data-la-theme] body.lakarcade-shop-themed .elementor-location-footer a:hover {
    color: var(--lks-gold) !important;
}

/* ---------- Responsive controls and unobstructed product media ---------- */

@media (max-width: 768px) {
    .lks-theme-switcher {
        right: auto;
        left: 10px;
        bottom: 10px;
    }

    .lks-theme-switcher__button {
        min-width: 68px;
        min-height: 40px;
        padding-inline: 11px;
        font-size: 10px;
    }

    html[data-la-theme] body.lakarcade-shop-themed :is(
        .kf-image-container,
        .la-image-container
    ) {
        display: flex;
        overflow: visible !important;
        aspect-ratio: auto !important;
        flex-direction: column;
        border: 0 !important;
        background: transparent !important;
    }

    html[data-la-theme] body.lakarcade-shop-themed :is(
        .kf-click-layer,
        .la-image-link
    ) {
        position: relative !important;
        inset: auto !important;
        z-index: 1;
        order: 1;
        overflow: hidden;
        width: 100%;
        height: auto !important;
        aspect-ratio: 1 / 1;
        border: 1px solid var(--lks-line) !important;
        background: var(--lks-media) !important;
    }

    html[data-la-theme] body.lakarcade-shop-themed :is(.la-badges, .kf-badges) {
        position: static !important;
        inset: auto !important;
        z-index: auto !important;
        display: flex !important;
        order: 2;
        width: 100% !important;
        margin: 8px 0 0 !important;
        flex-flow: row wrap !important;
        gap: 4px !important;
    }

    html[data-la-theme] body.lakarcade-shop-themed .la-quickview-trigger {
        display: none !important;
    }

    html[data-la-theme] body.lakarcade-shop-themed :is(
        .la-hover-add-cart,
        .kf-image-container .la-hover-add-cart,
        .la-image-container .la-hover-add-cart
    ) {
        position: relative !important;
        inset: auto !important;
        z-index: 2 !important;
        display: flex !important;
        order: 3;
        width: 100% !important;
        min-height: 40px;
        margin: 7px 0 0 !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
    }

    html[data-la-theme] body.lakarcade-shop-themed .elementor-location-header :is(
        .etheme-elementor-header-overlap,
        .elementor-sticky--active
    ) {
        min-height: 64px;
    }
}

@media (max-width: 420px) {
    .lks-theme-switcher__icon {
        display: none;
    }

    .lks-theme-switcher__button {
        min-width: 58px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.lakarcade-shop-themed *,
    body.lakarcade-shop-themed *::before,
    body.lakarcade-shop-themed *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ============================================================
   v1.4 — RESPONSIVE SHOP POLISH + CUSTOM SECTION INTEGRATION
   This final layer intentionally stays inside the plugin body scope.
   ============================================================ */

/* ---------- Strong header contrast, including XStore inner spans ---------- */

html[data-la-theme] body.lakarcade-shop-themed .elementor-location-header :is(
    .elementor-item,
    .elementor-item-active,
    .etheme-elementor-nav-menu-item-arrow,
    .etheme-elementor-nav-menu-item-icon,
    .elementor-icon,
    .et-icon,
    .et_b-icon,
    .elementor-button-text,
    .etheme-elementor-cart-button,
    .etheme-elementor-wishlist-button,
    .etheme-elementor-account-button
) {
    color: var(--lks-text) !important;
    text-shadow: none !important;
}

html[data-la-theme] body.lakarcade-shop-themed .elementor-location-header :is(
    a,
    button,
    .elementor-icon,
    .et-icon,
    .et_b-icon
) :is(svg, svg path, svg line, svg circle, svg polyline) {
    color: var(--lks-text) !important;
    fill: currentColor !important;
    stroke: currentColor !important;
}

html[data-la-theme="light"] body.lakarcade-shop-themed .elementor-location-header :is(
    .etheme-elementor-header-overlap,
    .elementor-sticky--active,
    .elementor-sticky--effects
) {
    background: rgba(255, 253, 248, 0.96) !important;
}

/* ---------- Recognisable section, status and cart icons ---------- */

html[data-la-theme] body.lakarcade-shop-themed .kf-heading {
    display: flex !important;
    align-items: center;
    gap: clamp(8px, 1.2vw, 14px);
}

html[data-la-theme] body.lakarcade-shop-themed .lks-section-heading-icon {
    display: inline-grid;
    width: clamp(28px, 3vw, 38px);
    height: clamp(28px, 3vw, 38px);
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--lks-line-strong);
    border-radius: 50%;
    color: var(--lks-gold) !important;
    background: var(--lks-control);
    font: 700 clamp(13px, 1.25vw, 17px)/1 Arial, sans-serif;
    letter-spacing: 0;
}

html[data-la-theme] body.lakarcade-shop-themed :is(
    .lks-section-heading-icon,
    .la-badge-icon,
    .lks-badge-icon
) {
    display: none !important;
}

html[data-la-theme] body.lakarcade-shop-themed .kf-heading {
    gap: 0 !important;
}

html[data-la-theme] body.lakarcade-shop-themed :is(.la-badge-icon, .lks-badge-icon) {
    display: inline-grid;
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    place-items: center;
    font: 800 10px/1 Arial, sans-serif;
}

html[data-la-theme] body.lakarcade-shop-themed :is(.la-badge-icon, .lks-badge-icon) svg {
    display: block;
    width: 12px;
    height: 12px;
}

html[data-la-theme] body.lakarcade-shop-themed :is(.la-badge-low, .kf-badge-low) {
    border-color: #b74425 !important;
    color: #ffffff !important;
    background: #b74425 !important;
}

html[data-la-theme] body.lakarcade-shop-themed .lks-cart-action {
    gap: 8px;
}

html[data-la-theme] body.lakarcade-shop-themed .lks-cart-action::before {
    content: "🛒";
    display: inline-block;
    flex: 0 0 auto;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1;
}

html[data-la-theme] body.lakarcade-shop-themed .lks-product-image-link {
    cursor: pointer !important;
    touch-action: manipulation;
}

body.lakarcade-shop-themed:has(.archive) .lks-theme-switcher {
    bottom: 10px;
}

body.lakarcade-shop-themed:has(.archive) .archive-footer__status {
    padding-left: 194px;
}

/* ---------- Traditional chess: retain the board and interaction code ---------- */

html[data-la-theme="dark"] body.lakarcade-shop-themed #hero {
    --acid: #d8b85f;
    --coral: #ef694f;
}

html[data-la-theme="light"] body.lakarcade-shop-themed #hero {
    --acid: #8a6418;
    --coral: #b74425;
}

html[data-la-theme] body.lakarcade-shop-themed #hero .primary-action {
    border: 1px solid #b4862d !important;
    color: #11140f !important;
    background: #e2b95f !important;
    box-shadow: 0 12px 30px rgba(78, 53, 9, 0.2);
    font-weight: 700 !important;
    text-shadow: none !important;
}

html[data-la-theme] body.lakarcade-shop-themed #hero .primary-action :is(span, .arrow) {
    color: inherit !important;
}

html[data-la-theme] body.lakarcade-shop-themed #hero .primary-action:is(:hover, :focus-visible) {
    border-color: #8d6419 !important;
    color: #11140f !important;
    background: #f0cf80 !important;
}

/* ---------- Craft atlas: theme background plus unclipped ghost words ---------- */

html[data-la-theme="dark"] body.lakarcade-shop-themed .lak-heritage-atlas {
    --atlas-text: #fff7e8;
    --atlas-muted: rgba(255, 247, 232, 0.74);
    --atlas-line: rgba(255, 247, 232, 0.16);
    --atlas-pattern-line: rgba(255, 247, 232, 0.16);
    --atlas-copper: #d95c34;
    --atlas-gold: #e4b85f;
    color: #fff7e8 !important;
    background:
        radial-gradient(circle at 12% 12%, rgba(217, 92, 52, 0.12), transparent 27%),
        linear-gradient(135deg, #10231e, #070907 58%, #120d08) !important;
    color-scheme: dark;
}

html[data-la-theme="light"] body.lakarcade-shop-themed .lak-heritage-atlas {
    --atlas-text: #171a16;
    --atlas-muted: rgba(23, 26, 22, 0.72);
    --atlas-line: rgba(23, 26, 22, 0.17);
    --atlas-pattern-line: rgba(23, 26, 22, 0.1);
    --atlas-copper: #b74425;
    --atlas-gold: #80550e;
    color: #171a16 !important;
    background:
        radial-gradient(circle at 14% 10%, rgba(183, 68, 37, 0.09), transparent 29%),
        linear-gradient(135deg, #fffdf8, #f4efe5 58%, #ebe3d5) !important;
    color-scheme: light;
}

html[data-la-theme] body.lakarcade-shop-themed .lak-heritage-atlas__intro {
    position: relative !important;
    inset: auto !important;
    padding: 0 !important;
    color: var(--atlas-text) !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-la-theme] body.lakarcade-shop-themed .lak-heritage-atlas__intro :is(
    .lak-heritage-atlas__title,
    .lak-heritage-atlas__note
) {
    color: var(--atlas-text) !important;
}

html[data-la-theme] body.lakarcade-shop-themed .lak-heritage-atlas__kicker {
    color: var(--atlas-gold) !important;
}

html[data-la-theme] body.lakarcade-shop-themed .lak-heritage-card__body {
    position: static !important;
    isolation: auto;
}

html[data-la-theme] body.lakarcade-shop-themed .lak-heritage-card__ghost {
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    left: 50% !important;
    z-index: 0 !important;
    width: max-content;
    max-width: calc(100% - 28px);
    overflow: visible;
    color: rgba(255, 255, 255, 0.24) !important;
    font-size: clamp(40px, 4vw, 60px) !important;
    line-height: 1 !important;
    text-align: center;
    text-shadow: 0 3px 22px rgba(0, 0, 0, 0.36);
    white-space: nowrap;
    transform: translate(-50%, -50%) !important;
}

html[data-la-theme] body.lakarcade-shop-themed .lak-heritage-card__body :is(
    .lak-heritage-card__origin,
    .lak-heritage-card__title,
    .lak-heritage-card__desc,
    .lak-heritage-card__cta
) {
    position: relative;
    z-index: 1;
}

/* ---------- Ceramic editorial: stop global header rules creating a dark strip ---------- */

html[data-la-theme] body.lakarcade-shop-themed #lka-ceramic-slider .lka-heading {
    position: relative !important;
    inset: auto !important;
    padding-top: 0 !important;
    color: var(--lka-ink) !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-la-theme] body.lakarcade-shop-themed #lka-ceramic-slider .lka-heading :is(
    h2,
    h2 em,
    .lka-kicker,
    .lka-intro
) {
    color: var(--lka-ink) !important;
    text-shadow: none !important;
}

html[data-la-theme] body.lakarcade-shop-themed #lka-ceramic-slider .lka-card :is(
    .lka-card-copy,
    .lka-card-title,
    .lka-card-topline
) {
    color: #fffaf1 !important;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.58) !important;
}

/* ---------- Photographic banners: preserve artwork; theme only the reading layer ---------- */

html[data-la-theme] body.lakarcade-shop-themed :is(
    .ac-banner,
    .lcs-banner,
    .sb-banner,
    .ts-banner,
    .gj-banner,
    .hb-banner
) {
    border-block: 1px solid var(--lks-line) !important;
    background: var(--lks-bg-elevated) !important;
    transition: border-color 260ms ease, background-color 260ms ease;
}

html[data-la-theme] body.lakarcade-shop-themed :is(
    .ac-banner__image,
    .lcs-banner__image,
    .sb-banner__image,
    .ts-banner__image,
    .gj-banner__image,
    .hb-banner__image
) {
    transition: filter 260ms ease, transform 7s ease !important;
}

html[data-la-theme="light"] body.lakarcade-shop-themed :is(
    .ac-banner__image,
    .lcs-banner__image,
    .sb-banner__image,
    .ts-banner__image,
    .gj-banner__image,
    .hb-banner__image
) {
    filter: saturate(0.88) contrast(0.96) brightness(1.02) !important;
}

html[data-la-theme="light"] body.lakarcade-shop-themed :is(
    .ac-banner,
    .lcs-banner,
    .sb-banner,
    .ts-banner,
    .gj-banner,
    .hb-banner
)::before {
    background:
        radial-gradient(circle at 26% 45%, rgba(183, 122, 42, 0.12), transparent 34%),
        linear-gradient(90deg, rgba(255, 253, 248, 0.54), rgba(245, 240, 230, 0.24) 48%, rgba(245, 240, 230, 0.06)) !important;
}

html[data-la-theme="light"] body.lakarcade-shop-themed .ac-banner__content {
    border: 0 !important;
    color: inherit !important;
    background: transparent !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

html[data-la-theme="light"] body.lakarcade-shop-themed :is(
    .ac-banner__text,
    .lcs-banner__content,
    .sb-banner__panel,
    .ts-banner__panel,
    .gj-banner__panel,
    .hb-banner__panel
) {
    border-color: rgba(129, 91, 21, 0.38) !important;
    color: var(--lks-text) !important;
    background: rgba(255, 253, 248, 0.86) !important;
    box-shadow: 18px 24px 54px rgba(52, 42, 27, 0.18) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    backdrop-filter: blur(8px) !important;
}

html[data-la-theme="dark"] body.lakarcade-shop-themed :is(
    .ac-banner__text,
    .lcs-banner__content,
    .sb-banner__panel,
    .ts-banner__panel,
    .gj-banner__panel,
    .hb-banner__panel
) {
    border-color: rgba(214, 173, 88, 0.36) !important;
    color: #f8f4ea !important;
    background: rgba(8, 10, 9, 0.76) !important;
    box-shadow: 18px 24px 54px rgba(0, 0, 0, 0.3) !important;
}

html[data-la-theme="light"] body.lakarcade-shop-themed .ac-banner__content .ac-banner__title .ac-banner__arts {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    -webkit-text-stroke: 1.5px var(--lks-text) !important;
    text-shadow: none !important;
}

html[data-la-theme] body.lakarcade-shop-themed :is(
    .ac-banner__caption,
    .lcs-banner__caption,
    .sb-banner__caption,
    .ts-banner__caption,
    .gj-banner__caption,
    .hb-banner__caption
) {
    color: var(--lks-muted) !important;
}

/* ---------- Seamless archive and editorial surface flow ---------- */

/* Elementor gives these archive headings fixed white text. Keep the existing
   layout, but make every title, breadcrumb, and history link theme-aware. */
html[data-la-theme] body.lakarcade-shop-themed .kf-page-container {
    color: var(--lks-text) !important;
    background: var(--lks-bg) !important;
}

html[data-la-theme] body.lakarcade-shop-themed .kf-page-container :is(
    .elementor-heading-title,
    .page-heading .title
) {
    color: var(--lks-text) !important;
    fill: var(--lks-text) !important;
    text-shadow: none !important;
}

html[data-la-theme] body.lakarcade-shop-themed .kf-page-container :is(
    .page-heading,
    .page-heading .container,
    .page-heading .row,
    .page-heading .col-md-12
) {
    border-color: var(--lks-line) !important;
    background: transparent !important;
}

html[data-la-theme] body.lakarcade-shop-themed .kf-page-container :is(
    .woocommerce-breadcrumb,
    .woocommerce-breadcrumb a,
    .woocommerce-breadcrumb .delimeter,
    .back-history
) {
    color: var(--lks-muted) !important;
    fill: var(--lks-muted) !important;
    text-shadow: none !important;
}

/* The custom archive grid ships with a pure-black toolbar. A transparent
   reading rail lets it flow into the page while retaining clear controls. */
html[data-la-theme] body.lakarcade-shop-themed .la-premium-grid-wrapper {
    padding-block: clamp(38px, 4.5vw, 72px) !important;
    color: var(--lks-text) !important;
    background: var(--lks-bg) !important;
}

html[data-la-theme] body.lakarcade-shop-themed :is(
    .la-header-toolbar,
    .kf-header-toolbar
) {
    border-color: var(--lks-line) !important;
    color: var(--lks-text) !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-la-theme] body.lakarcade-shop-themed :is(
    .la-total-count,
    .kf-total-count
) {
    color: var(--lks-text) !important;
}

html[data-la-theme] body.lakarcade-shop-themed :is(
    .la-grid-switcher,
    .kf-grid-switcher
) {
    border-color: var(--lks-line) !important;
}

html[data-la-theme] body.lakarcade-shop-themed :is(
    .la-grid-icon,
    .kf-grid-icon,
    .grid-icon
) {
    border-color: var(--lks-line) !important;
    color: var(--lks-text) !important;
    background: var(--lks-control) !important;
    opacity: 0.72 !important;
}

html[data-la-theme] body.lakarcade-shop-themed :is(
    .la-grid-icon.active,
    .la-grid-icon:hover,
    .kf-grid-icon.active,
    .kf-grid-icon:hover,
    .grid-icon.active,
    .grid-icon:hover
) {
    border-color: #dfb65f !important;
    color: #17140d !important;
    background: #dfb65f !important;
    opacity: 1 !important;
}

html[data-la-theme] body.lakarcade-shop-themed :is(
    .la-sort-menu li:hover,
    .kf-sort-menu li:hover
) {
    background: var(--lks-surface-2) !important;
}

html[data-la-theme] body.lakarcade-shop-themed :is(
    .la-sort-menu label,
    .kf-sort-menu label
) {
    color: var(--lks-text) !important;
}

/* WordPress Additional CSS applies black gradients to every .blend-* banner.
   Replace those gradients with the currently selected page background. */
html[data-la-theme] body.lakarcade-shop-themed .sh-banner-slider-top {
    margin-block: 0 !important;
    border: 0 !important;
    background: var(--lks-bg) !important;
    isolation: isolate;
}

html[data-la-theme] body.lakarcade-shop-themed .blend-top::after {
    background: linear-gradient(
        to bottom,
        var(--lks-bg) 0%,
        color-mix(in srgb, var(--lks-bg) 74%, transparent) 12%,
        transparent 34%
    ) !important;
}

html[data-la-theme] body.lakarcade-shop-themed .blend-bottom::after {
    background: linear-gradient(
        to top,
        var(--lks-bg) 0%,
        color-mix(in srgb, var(--lks-bg) 74%, transparent) 12%,
        transparent 34%
    ) !important;
}

html[data-la-theme] body.lakarcade-shop-themed .blend-both::after {
    background: linear-gradient(
        to bottom,
        var(--lks-bg) 0%,
        color-mix(in srgb, var(--lks-bg) 70%, transparent) 10%,
        transparent 27%,
        transparent 73%,
        color-mix(in srgb, var(--lks-bg) 70%, transparent) 90%,
        var(--lks-bg) 100%
    ) !important;
}

html[data-la-theme] body.lakarcade-shop-themed :is(
    .ac-banner,
    .lcs-banner,
    .sb-banner,
    .ts-banner,
    .gj-banner,
    .hb-banner
) {
    margin-block: 0 !important;
    border-block-color: transparent !important;
    background: var(--lks-bg) !important;
    box-shadow: 0 -1px 0 var(--lks-bg), 0 1px 0 var(--lks-bg) !important;
}

/* Keep HTML/shortcode widget boxes from introducing a differently coloured
   strip before or after the independent editorial sections. */
@supports selector(:has(*)) {
    html[data-la-theme] body.lakarcade-shop-themed :is(
        .elementor-widget-html,
        .elementor-widget-shortcode
    ):has(:is(
        #hero,
        #heritage-hero,
        #lka-ceramic-slider,
        .lak-collection,
        .lak-heritage-atlas,
        .ac-banner,
        .lcs-banner,
        .sb-banner,
        .ts-banner,
        .gj-banner,
        .hb-banner
    )),
    html[data-la-theme] body.lakarcade-shop-themed :is(
        .elementor-widget-html,
        .elementor-widget-shortcode
    ):has(:is(
        #hero,
        #heritage-hero,
        #lka-ceramic-slider,
        .lak-collection,
        .lak-heritage-atlas,
        .ac-banner,
        .lcs-banner,
        .sb-banner,
        .ts-banner,
        .gj-banner,
        .hb-banner
    )) > .elementor-widget-container {
        margin-block: 0 !important;
        padding-block: 0 !important;
        background: var(--lks-bg) !important;
    }
}

html[data-la-theme] body.lakarcade-shop-themed :is(
    #hero,
    #heritage-hero,
    #lka-ceramic-slider,
    .lak-collection,
    .lak-heritage-atlas
) {
    margin-block: 0 !important;
}

html[data-la-theme] body.lakarcade-shop-themed .site-header,
html[data-la-theme] body.lakarcade-shop-themed #heritage-hero {
    background-color: var(--lks-bg) !important;
    box-shadow: 0 -1px 0 var(--lks-bg), 0 1px 0 var(--lks-bg) !important;
}

/* Reduce the isolated green pool at the bottom of the curated collection and
   let both vertical edges return gently to the page colour. */
html[data-la-theme="dark"] body.lakarcade-shop-themed .lak-collection {
    background: var(--lks-bg) !important;
}

html[data-la-theme="dark"] body.lakarcade-shop-themed .lak-collection::before {
    background:
        radial-gradient(circle at 9% 24%, rgba(177, 126, 45, 0.08), transparent 34%),
        radial-gradient(circle at 91% 72%, rgba(56, 103, 83, 0.07), transparent 38%),
        linear-gradient(180deg, var(--lks-bg) 0%, rgba(8, 10, 9, 0.96) 15%, rgba(8, 10, 9, 0.96) 85%, var(--lks-bg) 100%) !important;
}

html[data-la-theme="light"] body.lakarcade-shop-themed .lak-collection {
    background: var(--lks-bg) !important;
}

html[data-la-theme="light"] body.lakarcade-shop-themed .lak-collection::before {
    background:
        radial-gradient(circle at 9% 24%, rgba(177, 126, 45, 0.07), transparent 34%),
        radial-gradient(circle at 91% 72%, rgba(56, 103, 83, 0.055), transparent 38%),
        linear-gradient(180deg, var(--lks-bg) 0%, rgba(255, 253, 248, 0.72) 15%, rgba(245, 240, 230, 0.9) 85%, var(--lks-bg) 100%) !important;
}

/* The atlas keeps its identity in the middle while its top and bottom fade to
   the same page surface, removing the rectangular colour break. */
html[data-la-theme="dark"] body.lakarcade-shop-themed .lak-heritage-atlas {
    background:
        linear-gradient(180deg, var(--lks-bg) 0%, transparent 13%, transparent 87%, var(--lks-bg) 100%),
        radial-gradient(circle at 12% 17%, rgba(217, 92, 52, 0.1), transparent 30%),
        linear-gradient(135deg, #10231e, #080a09 58%, #120d08) !important;
}

html[data-la-theme="light"] body.lakarcade-shop-themed .lak-heritage-atlas {
    background:
        linear-gradient(180deg, var(--lks-bg) 0%, transparent 13%, transparent 87%, var(--lks-bg) 100%),
        radial-gradient(circle at 14% 17%, rgba(183, 68, 37, 0.075), transparent 31%),
        linear-gradient(135deg, #fffdf8, #f4efe5 58%, #ebe3d5) !important;
}

/* Ceramic and Jaffna editorial roots use the shared surface at their edges. */
html[data-la-theme="dark"] body.lakarcade-shop-themed #heritage-hero .hero__wash {
    background:
        linear-gradient(180deg, var(--lks-bg) 0%, transparent 16%, transparent 84%, var(--lks-bg) 100%),
        linear-gradient(90deg, rgba(8, 10, 9, 0.9) 0%, rgba(8, 10, 9, 0.62) 34%, rgba(8, 10, 9, 0.06) 68%),
        radial-gradient(circle at 76% 47%, transparent 0%, rgba(8, 10, 9, 0.08) 42%, rgba(8, 10, 9, 0.46) 100%) !important;
}

html[data-la-theme="light"] body.lakarcade-shop-themed #heritage-hero .hero__wash {
    background:
        linear-gradient(180deg, var(--lks-bg) 0%, transparent 16%, transparent 84%, var(--lks-bg) 100%),
        linear-gradient(90deg, rgba(255, 253, 248, 0.92) 0%, rgba(250, 246, 238, 0.66) 36%, rgba(250, 246, 238, 0.07) 70%),
        radial-gradient(circle at 76% 47%, transparent 0%, rgba(245, 240, 230, 0.08) 44%, rgba(245, 240, 230, 0.32) 100%) !important;
}

html[data-la-theme] body.lakarcade-shop-themed #lka-ceramic-slider {
    --lka-rich-black: var(--lks-bg);
    --lka-cream: var(--lks-bg);
    --lka-paper: var(--lks-bg-elevated);
}

/* ---------- Mobile product cards: two clean columns with icon controls ---------- */

@media (max-width: 768px) {
    html[data-la-theme] body.lakarcade-shop-themed .kf-section-wrapper {
        padding-block: 44px !important;
    }

    html[data-la-theme] body.lakarcade-shop-themed .kf-container,
    html[data-la-theme] body.lakarcade-shop-themed .la-premium-grid-wrapper {
        padding-inline: 12px !important;
    }

    html[data-la-theme] body.lakarcade-shop-themed .kf-header {
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 18px;
    }

    html[data-la-theme] body.lakarcade-shop-themed .kf-heading {
        min-width: 0;
        padding-left: 9px !important;
        font-size: clamp(24px, 7.3vw, 34px) !important;
        line-height: 1 !important;
        letter-spacing: 0.035em !important;
    }

    html[data-la-theme] body.lakarcade-shop-themed .lks-section-heading-icon {
        width: 29px;
        height: 29px;
        font-size: 13px;
    }

    html[data-la-theme] body.lakarcade-shop-themed :is(.kf-card, .la-grid-card) {
        position: relative;
        display: flex !important;
        min-width: 0;
        height: auto !important;
        flex-direction: column;
        color: var(--lks-text) !important;
        background: transparent !important;
    }

    html[data-la-theme] body.lakarcade-shop-themed :is(
        .kf-image-container,
        .la-image-container
    ) {
        position: relative !important;
        display: block !important;
        overflow: hidden !important;
        width: 100%;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        border: 1px solid var(--lks-line) !important;
        background: var(--lks-media) !important;
        isolation: isolate;
    }

    html[data-la-theme] body.lakarcade-shop-themed :is(
        .kf-click-layer,
        .la-image-link
    ) {
        position: absolute !important;
        inset: 0 !important;
        z-index: 1;
        display: block !important;
        overflow: hidden;
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: auto !important;
        border: 0 !important;
        background: transparent !important;
    }

    html[data-la-theme] body.lakarcade-shop-themed :is(.la-badges, .kf-badges) {
        position: absolute !important;
        top: 7px !important;
        right: 48px !important;
        bottom: auto !important;
        left: 7px !important;
        z-index: 8 !important;
        display: flex !important;
        width: auto !important;
        max-width: calc(100% - 55px) !important;
        margin: 0 !important;
        flex-flow: column nowrap !important;
        align-items: flex-start;
        gap: 3px !important;
        pointer-events: none;
    }

    html[data-la-theme] body.lakarcade-shop-themed :is(
        .la-badge,
        .kf-badge,
        .la-badges > span,
        .kf-badges > span
    ) {
        min-height: 21px !important;
        max-width: 100%;
        padding: 4px 6px !important;
        gap: 4px !important;
        overflow: hidden;
        font-size: 7px !important;
        letter-spacing: 0.065em !important;
        line-height: 1 !important;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    html[data-la-theme] body.lakarcade-shop-themed :is(.la-badge-icon, .lks-badge-icon),
    html[data-la-theme] body.lakarcade-shop-themed :is(.la-badge-icon, .lks-badge-icon) svg {
        width: 10px;
        height: 10px;
        font-size: 8px;
    }

    html[data-la-theme] body.lakarcade-shop-themed :is(
        .la-wishlist-heart,
        .kf-wishlist-heart,
        .la-image-container .la-wishlist-heart,
        .kf-image-container .la-wishlist-heart
    ) {
        position: absolute !important;
        top: 7px !important;
        right: 7px !important;
        bottom: auto !important;
        left: auto !important;
        z-index: 12 !important;
        display: grid !important;
        width: 36px !important;
        min-width: 36px !important;
        height: 36px !important;
        min-height: 36px !important;
        margin: 0 !important;
        padding: 0 !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
    }

    html[data-la-theme] body.lakarcade-shop-themed :is(
        .la-hover-add-cart,
        .kf-image-container .la-hover-add-cart,
        .la-image-container .la-hover-add-cart
    ) {
        position: absolute !important;
        top: auto !important;
        right: 7px !important;
        bottom: 7px !important;
        left: auto !important;
        z-index: 12 !important;
        display: inline-flex !important;
        width: 42px !important;
        min-width: 42px !important;
        height: 42px !important;
        min-height: 42px !important;
        margin: 0 !important;
        padding: 0 !important;
        align-items: center;
        justify-content: center;
        border: 1px solid #b4862d !important;
        border-radius: 50% !important;
        color: #11140f !important;
        background: #e2b95f !important;
        box-shadow: 0 8px 22px rgba(28, 20, 8, 0.24);
        font-size: 0 !important;
        line-height: 1 !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
    }

    html[data-la-theme] body.lakarcade-shop-themed .lks-cart-action::before {
        margin: 0;
        font-size: 18px;
    }

    html[data-la-theme] body.lakarcade-shop-themed :is(.la-info, .kf-details) {
        position: relative !important;
        z-index: 2;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 11px 2px 0 !important;
        background: transparent !important;
    }

    html[data-la-theme] body.lakarcade-shop-themed :is(
        .la-title,
        .kf-title,
        .la-title a,
        .kf-title a
    ) {
        min-height: 2.7em;
        margin: 0 !important;
        overflow: hidden;
        display: -webkit-box;
        font-size: 12px !important;
        line-height: 1.35 !important;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    html[data-la-theme] body.lakarcade-shop-themed :is(.la-price, .kf-price) {
        margin-top: 6px !important;
        font-size: 11px !important;
        line-height: 1.35 !important;
    }

    html[data-la-theme] body.lakarcade-shop-themed #hero .primary-action {
        width: 100%;
        min-height: 54px;
    }

    html[data-la-theme] body.lakarcade-shop-themed :is(
        .ac-banner__text,
        .lcs-banner__content,
        .sb-banner__panel,
        .ts-banner__panel,
        .gj-banner__panel,
        .hb-banner__panel
    ) {
        width: 100% !important;
        max-width: none !important;
        padding: 22px !important;
    }
}

@media (max-width: 1350px) and (min-width: 861px) {
    html[data-la-theme] body.lakarcade-shop-themed #hero .side-note {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .lks-controls-dock {
        left: 10px;
        bottom: 10px;
        gap: 8px;
    }

    .lks-currency-converter {
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        width: auto;
        height: 52px;
        margin: 0 !important;
        padding: 0;
    }

    .lks-currency-trigger {
        width: 88px !important;
        min-width: 88px !important;
        height: 52px !important;
        min-height: 52px !important;
        padding-inline: 7px !important;
    }

    .lks-currency-menu {
        right: auto !important;
        left: -104px !important;
        width: min(300px, calc(100vw - 20px)) !important;
    }

    .lks-theme-switcher {
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        margin: 0 !important;
        padding: 4px;
    }

    .lks-theme-switcher__button {
        min-width: 42px;
        width: 42px;
        min-height: 42px;
        padding: 0;
    }

    body.lakarcade-shop-themed:has(.archive) .lks-controls-dock {
        bottom: 76px;
    }

    .lks-theme-switcher__button > span:last-child {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .lks-theme-switcher__icon {
        display: block !important;
        width: 14px;
        height: 14px;
    }

    html[data-la-theme] body.lakarcade-shop-themed .kf-nav-circle {
        width: 32px;
        height: 32px;
    }

    html[data-la-theme] body.lakarcade-shop-themed .kf-heading {
        font-size: clamp(22px, 7vw, 29px) !important;
    }

    html[data-la-theme] body.lakarcade-shop-themed .lak-heritage-card__ghost {
        top: 50% !important;
        left: 50% !important;
        bottom: auto !important;
        max-width: calc(100% - 24px);
        font-size: clamp(42px, 13vw, 58px) !important;
        transform: translate(-50%, -50%) !important;
    }
}

/* ============================================================
   v1.9 - CLEAN PRODUCT MEDIA + ONE-LINE ACTION BAR
   Product status tags are removed. Existing working controls are moved by
   JavaScript below the image and presented as one persistent row.
   ============================================================ */

html[data-la-theme] body.lakarcade-shop-themed :is(
    .la-badges,
    .kf-badges,
    .la-badge,
    .kf-badge
) {
    display: none !important;
}

/* Prevent the old image overlays flashing before the action row is prepared. */
html[data-la-theme] body.lakarcade-shop-themed :is(
    .la-image-container,
    .kf-image-container
) :is(
    .la-quickview-trigger,
    .la-wishlist-heart,
    .la-hover-add-cart
) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: none !important;
}

html[data-la-theme] body.lakarcade-shop-themed .lks-card-actions {
    position: relative;
    z-index: 4;
    display: flex !important;
    width: 100%;
    min-width: 0;
    margin: 8px 0 0 !important;
    padding: 0 !important;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 6px;
    color: var(--lks-text);
    background: transparent !important;
}

html[data-la-theme] body.lakarcade-shop-themed .lks-card-actions > .lks-card-action {
    position: relative !important;
    inset: auto !important;
    z-index: auto !important;
    display: inline-flex !important;
    width: auto !important;
    min-width: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid var(--lks-line-strong) !important;
    border-radius: 10px !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    box-shadow: none !important;
    font: 800 10px/1 Arial, sans-serif !important;
    letter-spacing: 0.07em !important;
    text-align: center !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    cursor: pointer !important;
}

html[data-la-theme] body.lakarcade-shop-themed .lks-card-action--quickview {
    flex: 1 1 0;
    color: var(--lks-text) !important;
    background: var(--lks-control) !important;
}

html[data-la-theme] body.lakarcade-shop-themed .lks-card-action--wishlist {
    flex: 0 0 44px;
    padding: 0 !important;
    color: var(--lks-text) !important;
    background: var(--lks-control) !important;
}

html[data-la-theme] body.lakarcade-shop-themed .lks-card-action--wishlist svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
}

html[data-la-theme] body.lakarcade-shop-themed .lks-card-action--wishlist svg path {
    fill: transparent !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
}

html[data-la-theme] body.lakarcade-shop-themed .lks-card-action--wishlist.active svg path {
    fill: var(--lks-copper) !important;
    stroke: var(--lks-copper) !important;
}

html[data-la-theme] body.lakarcade-shop-themed .lks-card-action--cart {
    flex: 1.2 1 0;
    border-color: #b4862d !important;
    color: #151812 !important;
    background: #dfb65f !important;
}

html[data-la-theme] body.lakarcade-shop-themed .lks-card-actions .lks-cart-action::before {
    margin: 0 6px 0 0 !important;
    font-size: 14px !important;
}

html[data-la-theme] body.lakarcade-shop-themed .lks-card-action--wishlist:is(:hover, :focus-visible) {
    outline: 2px solid var(--lks-copper) !important;
    outline-offset: 2px !important;
}

html[data-la-theme="dark"] body.lakarcade-shop-themed :is(
    .lks-card-action--quickview,
    .lks-card-action--wishlist
) {
    border-color: rgba(255, 255, 255, 0.72) !important;
    color: #0b0d0c !important;
    background: #f7f3e9 !important;
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.24) !important;
}

html[data-la-theme="dark"] body.lakarcade-shop-themed :is(
    .lks-card-action--wishlist
):is(:hover, :focus-visible) {
    border-color: #dfb65f !important;
    background: #dfb65f !important;
}

/* Quick View and Add to Cart remain visually steady on mouse hover. */
html[data-la-theme] body.lakarcade-shop-themed :is(
    .lks-card-action--quickview,
    .lks-card-action--cart
) {
    transition: none !important;
}

html[data-la-theme] body.lakarcade-shop-themed .lks-card-action--quickview:hover {
    border-color: var(--lks-line-strong) !important;
    color: var(--lks-text) !important;
    background: var(--lks-control) !important;
    outline: 0 !important;
    box-shadow: none !important;
    transform: none !important;
}

html[data-la-theme="dark"] body.lakarcade-shop-themed .lks-card-action--quickview:hover {
    border-color: rgba(255, 255, 255, 0.72) !important;
    color: #0b0d0c !important;
    background: #f7f3e9 !important;
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.24) !important;
}

html[data-la-theme] body.lakarcade-shop-themed .lks-card-action--cart:hover {
    border-color: #b4862d !important;
    color: #151812 !important;
    background: #dfb65f !important;
    outline: 0 !important;
    box-shadow: none !important;
    transform: none !important;
}

html[data-la-theme] body.lakarcade-shop-themed :is(
    .lks-card-action--quickview,
    .lks-card-action--cart
):focus-visible {
    outline: 2px solid var(--lks-copper) !important;
    outline-offset: 2px !important;
}

@media (max-width: 768px) {
    html[data-la-theme] body.lakarcade-shop-themed .lks-card-actions {
        gap: 4px;
        margin-top: 6px !important;
    }

    html[data-la-theme] body.lakarcade-shop-themed .lks-card-actions > .lks-card-action {
        height: 40px !important;
        min-height: 40px !important;
        max-height: 40px !important;
        padding-inline: 8px !important;
        border-radius: 8px !important;
        font-size: 8px !important;
        letter-spacing: 0.045em !important;
    }

    html[data-la-theme] body.lakarcade-shop-themed .lks-card-action--wishlist {
        flex-basis: 40px;
        padding: 0 !important;
    }

    html[data-la-theme] body.lakarcade-shop-themed .lks-card-actions .lks-cart-action::before {
        margin-right: 3px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    html[data-la-theme] body.lakarcade-shop-themed .lks-card-actions {
        gap: 3px;
    }

    html[data-la-theme] body.lakarcade-shop-themed .lks-card-actions > .lks-card-action {
        height: 38px !important;
        min-height: 38px !important;
        max-height: 38px !important;
        padding-inline: 4px !important;
        font-size: 7px !important;
        letter-spacing: 0.02em !important;
    }

    html[data-la-theme] body.lakarcade-shop-themed .lks-card-action--wishlist {
        flex-basis: 36px;
        padding: 0 !important;
    }

    html[data-la-theme] body.lakarcade-shop-themed .lks-card-actions .lks-cart-action::before {
        display: none !important;
    }
}

/* ============================================================
   v1.9.3 - RESPONSIVE GRID DENSITY + FILTER PILLS
   ============================================================ */

/* Allow every selected desktop density, including five columns, to shrink
   inside the viewport instead of using the cards' content as a minimum width. */
html[data-la-theme] body.lakarcade-shop-themed :is(
    .la-grid-layout,
    .la-product-grid,
    .la-grid-card
) {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

html[data-la-theme] body.lakarcade-shop-themed .la-premium-grid-wrapper {
    min-width: 0 !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
}

html[data-la-theme] body.lakarcade-shop-themed :is(
    .la-grid-layout,
    .la-product-grid
) > * {
    min-width: 0 !important;
    max-width: 100% !important;
}

html[data-la-theme] body.lakarcade-shop-themed .la-grid-card :is(
    .la-image-container,
    .la-info,
    .lks-card-actions
) {
    min-width: 0 !important;
    max-width: 100% !important;
}

/* Keep the action labels compact when the visitor selects five columns. */
@supports selector(:has(*)) {
    html[data-la-theme] body.lakarcade-shop-themed
    .la-premium-grid-wrapper:has(.la-grid-icon.lg5.active) .lks-card-actions {
        gap: 3px !important;
    }

    html[data-la-theme] body.lakarcade-shop-themed
    .la-premium-grid-wrapper:has(.la-grid-icon.lg5.active)
    .lks-card-actions > .lks-card-action {
        padding-inline: 5px !important;
        font-size: 8px !important;
        letter-spacing: 0.025em !important;
    }

    html[data-la-theme] body.lakarcade-shop-themed
    .la-premium-grid-wrapper:has(.la-grid-icon.lg5.active)
    .lks-card-action--wishlist {
        flex-basis: 38px;
        padding: 0 !important;
    }

    html[data-la-theme] body.lakarcade-shop-themed
    .la-premium-grid-wrapper:has(.la-grid-icon.lg5.active)
    .lks-card-actions .lks-cart-action::before {
        display: none !important;
    }
}

/* Present active Price and Stock filters as readable, wrapping controls. */
html[data-la-theme] body.lakarcade-shop-themed .la-pills-container {
    position: relative;
    z-index: 3;
    width: auto;
    min-width: 0;
    margin: 0 30px 28px !important;
}

html[data-la-theme] body.lakarcade-shop-themed .la-pills-container:empty {
    display: none !important;
}

html[data-la-theme] body.lakarcade-shop-themed .la-active-filters {
    display: flex !important;
    width: 100%;
    min-width: 0;
    padding: 4px 0 !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--lks-text) !important;
}

html[data-la-theme] body.lakarcade-shop-themed .la-filter-pill {
    display: inline-flex !important;
    min-width: 0;
    min-height: 42px;
    max-width: 100%;
    padding: 7px 8px 7px 14px !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid var(--lks-line-strong) !important;
    border-radius: 999px;
    color: var(--lks-text) !important;
    background: var(--lks-surface) !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
    white-space: normal;
    box-shadow: 0 5px 16px color-mix(in srgb, var(--lks-text) 8%, transparent);
}

html[data-la-theme] body.lakarcade-shop-themed .la-pill-remove {
    display: inline-grid !important;
    width: 28px;
    min-width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid var(--lks-line) !important;
    border-radius: 50%;
    color: var(--lks-text) !important;
    background: var(--lks-control) !important;
    font-size: 12px !important;
    line-height: 1 !important;
    cursor: pointer;
}

html[data-la-theme] body.lakarcade-shop-themed .la-pill-clear-all {
    display: inline-flex !important;
    min-height: 42px;
    padding: 0 17px !important;
    align-items: center;
    justify-content: center;
    border: 1px solid #b4862d !important;
    border-radius: 999px;
    color: #151812 !important;
    background: #dfb65f !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0.055em !important;
    line-height: 1 !important;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
}

@media (max-width: 768px) {
    /* Keep the result count, switcher and Sort control in one clean row. */
    html[data-la-theme] body.lakarcade-shop-themed .la-toolbar-right {
        display: grid !important;
        grid-template-columns: auto auto minmax(88px, 1fr);
        width: 100% !important;
        min-width: 0;
        gap: 8px !important;
        align-items: center !important;
    }

    html[data-la-theme] body.lakarcade-shop-themed .la-total-count {
        min-width: max-content;
        font-size: 12px !important;
        letter-spacing: 0.09em !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
    }

    html[data-la-theme] body.lakarcade-shop-themed .la-grid-switcher {
        min-width: 0;
        gap: 6px !important;
    }

    html[data-la-theme] body.lakarcade-shop-themed .la-grid-icon {
        width: 40px !important;
        min-width: 40px !important;
        height: 40px !important;
    }

    html[data-la-theme] body.lakarcade-shop-themed .la-sort-dropdown-container {
        width: auto !important;
        min-width: 0;
        margin: 0 !important;
    }

    html[data-la-theme] body.lakarcade-shop-themed .la-sort-trigger {
        width: 100% !important;
        min-width: 0;
        min-height: 42px;
        padding: 0 10px !important;
        justify-content: center !important;
        white-space: nowrap;
    }

    html[data-la-theme] body.lakarcade-shop-themed .la-pills-container {
        margin: 0 12px 22px !important;
    }

    html[data-la-theme] body.lakarcade-shop-themed .la-active-filters {
        align-items: stretch;
        gap: 8px;
    }

    html[data-la-theme] body.lakarcade-shop-themed .la-filter-pill {
        flex: 1 1 220px;
        min-height: 44px;
        font-size: 12px !important;
    }

    html[data-la-theme] body.lakarcade-shop-themed .la-pill-clear-all {
        min-height: 44px;
        padding-inline: 15px !important;
    }

    /* Shop-page Swiper cards keep two columns, but the products fill more of
       each image frame. Archive/category images are deliberately unchanged. */
    html[data-la-theme] body.lakarcade-shop-themed .kf-section-wrapper
    .kf-card :is(.kf-img-slide, .kf-single-slide) img,
    html[data-la-theme] body.lakarcade-shop-themed .kf-section-wrapper
    .kf-card:hover :is(.kf-img-slide, .kf-single-slide) img {
        transform: scale(1.1) !important;
        transform-origin: center center !important;
    }
}

@media (max-width: 420px) {
    html[data-la-theme] body.lakarcade-shop-themed .la-header-toolbar {
        margin-inline: 10px !important;
    }

    html[data-la-theme] body.lakarcade-shop-themed .la-toolbar-right {
        grid-template-columns: auto auto minmax(76px, 1fr);
        gap: 6px !important;
    }

    html[data-la-theme] body.lakarcade-shop-themed .la-total-count {
        font-size: 10px !important;
        letter-spacing: 0.055em !important;
    }

    html[data-la-theme] body.lakarcade-shop-themed .la-grid-icon {
        width: 36px !important;
        min-width: 36px !important;
        height: 36px !important;
    }

    html[data-la-theme] body.lakarcade-shop-themed .la-sort-trigger {
        min-height: 38px;
        padding-inline: 7px !important;
        font-size: 10px !important;
    }

    html[data-la-theme] body.lakarcade-shop-themed .la-filter-pill {
        flex-basis: 100%;
        width: 100%;
    }
}
