/*!
Theme Name: Sladkiyakat Shop
Theme URI: https://sladkiyakat.com/
Description: Custom WooCommerce theme for the Sladkiyakat online store. Child of WP Shop Woocommerce.
Author: "ЗАХРАНКИ БГ" ООД
Template: wp-shop-woocommerce
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wp-shop-woocommerce-child
*/

/* Add your custom styles below this line */

@keyframes sk-drawer-slide-in-from-right {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes sk-drawer-slide-in-from-left {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

/* Full width slider */
.slider-bg {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

.slider-bg .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.slider-bg .main-slider-button a {
    display: inline-block;
    min-width: 150px;
    box-sizing: border-box;
    text-align: center;
}

.site-header {
    margin-top: 10px;
}

/*
 * Merged header with navigation (.header-info-box).
 * Mobile nav / drawer through 1000px (parent stacks .head-* at max-width 1000px; menu-toggle hidden above 901px in parent CSS).
 * Do not force flex + hidden toggle globally — that overrides the parent's mobile menu.
 */
.site-header .header-info-box {
    padding-top: 0 !important;
}

.site-header .header-info-box .site-branding {
    margin-bottom: 0 !important;
}

.site-header .header-info-box .flex-row.header-space {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    flex-wrap: nowrap;
}

.site-header .header-info-box .head-1 {
    flex: 0 0 auto !important;
    min-width: 0;
}

.site-header .header-info-box .head-2 {
    flex: 1 !important;
    display: flex !important;
    min-width: 0;
}

.site-header .header-info-box .head-3,
.site-header .header-info-box .head-4 {
    flex: 0 0 auto !important;
    min-width: fit-content !important;
    width: auto !important;
    max-width: none !important;
}

/* Account icon only - hide text */
.site-header .header-info-box .account a {
    font-size: 0 !important;
}

.site-header .header-info-box .account a i {
    font-size: 20px !important;
}

.site-header .header-info-box .main-navigation {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    flex: 1 !important;
}

.site-header .header-info-box .main-navigation .menu-main-menu-container {
    width: 100% !important;
    display: flex !important;
}

/* Desktop / tablet wide: horizontal menu, no toggle */
@media screen and (min-width: 1001px) {
    .site-header .header-info-box .menu-toggle {
        display: none !important;
    }

    .site-header .header-info-box .main-navigation ul#primary-menu {
        display: flex !important;
        flex-wrap: wrap;
        gap: 20px !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        width: 100% !important;
    }

    .site-header .header-info-box .main-navigation ul#primary-menu > li {
        margin: 0 !important;
    }

    .site-header .header-info-box .main-navigation ul#primary-menu > li > a {
        color: #000000 !important;
        padding: 8px 16px !important;
        border-radius: 4px !important;
        transition: all 0.3s ease !important;
    }

    .site-header .header-info-box .main-navigation.sk-nav-dual-menu ul#primary-menu-mobile {
        display: none !important;
    }

    .site-header .header-info-box .menu-drawer-close {
        display: none !important;
    }
}

/* Mobile / narrow: parent theme handles .toggled + #primary-menu visibility */
@media screen and (max-width: 1000px) {
    .site-header .header-info-box .flex-row.header-space {
        flex-wrap: wrap !important;
        gap: 12px !important;
        --sk-header-mobile-icons-slot: 6.5rem;
    }

    /* Override parent @media (768px–1000px) head column widths */
    .site-header .header-info-box .flex-row.header-space > .head-1,
    .site-header .header-info-box .flex-row.header-space > .head-3,
    .site-header .header-info-box .flex-row.header-space > .head-4 {
        width: auto !important;
    }

    /* Content-sized slots only (no flex-grow on logo / icons / menu) */
    .site-header .header-info-box .flex-row.header-space > .head-1,
    .site-header .header-info-box .flex-row.header-space > .head-2,
    .site-header .header-info-box .flex-row.header-space > .head-3,
    .site-header .header-info-box .flex-row.header-space > .head-4 {
        flex: 0 0 auto !important;
    }

    .site-header .header-info-box .head-1 {
        min-width: 0;
        max-width: min(100%, calc(100% - var(--sk-header-mobile-icons-slot)));
    }

    .site-header .header-info-box .head-1 .site-branding {
        width: auto !important;
        text-align: start;
    }

    .site-header .header-info-box .head-3 {
        margin-inline-start: auto;
    }

    /* No .head-3: keep cart aligned to the bar end */
    .site-header .header-info-box .flex-row.header-space:not(:has(.head-3)) {
        --sk-header-mobile-icons-slot: 3.25rem;
    }

    /*
     * Right (default): logo + icons row first, full-width menu row last.
     * Left: full-width menu row first, logo + icons row below.
     */
    .site-header:not(.sk-menu-toggle-left) .header-info-box .head-1 {
        order: 1;
    }

    .site-header:not(.sk-menu-toggle-left) .header-info-box .head-3 {
        order: 2;
    }

    .site-header:not(.sk-menu-toggle-left) .header-info-box .head-4 {
        order: 3;
    }

    .site-header:not(.sk-menu-toggle-left)
        .header-info-box
        .flex-row.header-space:not(:has(.head-3))
        .head-4 {
        margin-inline-start: auto;
        order: 2;
    }

    /*
     * Menu row: flex-basis 100% wraps to its own line; max-content + margin aligns
     * the toggle without stretching the slot (right or left via Customizer).
     */
    .site-header:not(.sk-menu-toggle-left) .header-info-box .head-2 {
        flex: 0 0 100% !important;
        width: max-content !important;
        max-width: 100% !important;
        margin-inline-end: 0 !important;
        order: 4;
        justify-content: flex-end;
    }

    .site-header.sk-menu-toggle-left .header-info-box .head-2 {
        flex: 0 0 100% !important;
        width: max-content !important;
        max-width: 100% !important;
        margin-inline-end: auto !important;
        order: 1;
        justify-content: flex-start;
    }

    .site-header.sk-menu-toggle-left .header-info-box .head-1 {
        order: 2;
    }

    .site-header.sk-menu-toggle-left .header-info-box .head-3 {
        order: 3;
    }

    .site-header.sk-menu-toggle-left .header-info-box .head-4 {
        order: 4;
    }

    .site-header.sk-menu-toggle-left
        .header-info-box
        .flex-row.header-space:not(:has(.head-3))
        .head-4 {
        margin-inline-start: auto;
        order: 3;
    }

    /* Anchor count badge to the cart icon (parent unsets top/right ≤900px). */
    .site-header .header-info-box .cart_no {
        position: relative;
        display: inline-block;
    }

    .site-header .header-info-box .cart_no .cart-value {
        position: absolute !important;
        top: -8px !important;
        right: auto !important;
        inset-inline-end: 2px !important;
    }

    .site-header .header-info-box .menu-toggle {
        display: block !important;
    }

    /* Parent button.menu-toggle styles only apply through 900px */
    .site-header .header-info-box button.menu-toggle {
        background: var(--secondary-color, #26242d);
        padding: 10px;
        border: none;
        line-height: 1;
        color: #fff;
        flex: 0 0 auto;
        width: auto;
    }

    .site-header .header-info-box button.menu-toggle i {
        color: inherit;
    }

    .site-header .header-info-box .head-2 .main-navigation {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: 100% !important;
        flex-wrap: nowrap;
        justify-content: inherit;
    }

    .site-header .header-info-box .head-2 .main-navigation .menu-main-menu-container {
        width: auto !important;
        display: block !important;
    }

    /*
     * Drawer branch rows: link (navigate) + .sk-submenu-toggle (expand). Injected in header-navigation.js.
     */
    .site-header .header-info-box #site-navigation.main-navigation {
        --sk-drawer-chevron-size: 1.25rem;
        --sk-drawer-chevron-inline-end: 2.75rem;
        --sk-drawer-chevron-color: #1a1a1a;
        --sk-drawer-submenu-border: #e0e0e0;
    }

    .site-header .header-info-box #site-navigation.main-navigation li.menu-item-has-children:after,
    .site-header .header-info-box #site-navigation.main-navigation li.page_item_has_children:after {
        content: none !important;
        display: none !important;
        padding: 0 !important;
    }

    .site-header .header-info-box #site-navigation.main-navigation li.sk-has-drawer-submenu-toggle {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
    }

    .site-header .header-info-box #site-navigation.main-navigation li.sk-has-drawer-submenu-toggle > a {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: auto !important;
        max-width: none !important;
        position: relative !important;
        padding-inline-end: 0 !important;
    }

    .site-header .header-info-box #site-navigation.main-navigation li.sk-has-drawer-submenu-toggle > .sub-menu,
    .site-header .header-info-box #site-navigation.main-navigation li.sk-has-drawer-submenu-toggle > .children {
        flex: 1 1 100% !important;
        width: 100% !important;
    }

    .site-header .header-info-box #site-navigation.main-navigation .sk-submenu-toggle {
        flex: 0 0 var(--sk-drawer-chevron-inline-end) !important;
        width: var(--sk-drawer-chevron-inline-end) !important;
        min-height: 2.75rem;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 4px;
        align-self: stretch;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        background: transparent;
        color: var(--sk-drawer-chevron-color);
        cursor: pointer;
        line-height: 1;
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
    }

    /*
     * Parent wp-shop-woocommerce: .main-navigation.toggled button i:before { content: '\f00d' }
     * applies the close icon to every button in the open drawer — including .sk-submenu-toggle.
     * Restore Font Awesome solid chevron-down (same glyph as .fa-chevron-down).
     */
    .site-header
        .header-info-box
        #site-navigation.main-navigation.toggled
        .sk-submenu-toggle
        i:before {
        content: '\f078' !important;
    }

    .site-header .header-info-box #site-navigation.main-navigation .sk-submenu-toggle:focus-visible {
        outline: 2px solid var(--sk-drawer-chevron-color);
        outline-offset: 2px;
    }

    .site-header .header-info-box #site-navigation.main-navigation .sk-submenu-toggle-icon i {
        font-size: var(--sk-drawer-chevron-size);
        transition: transform 0.2s ease;
    }

    .site-header
        .header-info-box
        #site-navigation.main-navigation
        li.sk-submenu-open
        > .sk-submenu-toggle
        .sk-submenu-toggle-icon
        i {
        transform: rotate(180deg);
    }

    @media (prefers-reduced-motion: reduce) {
        .site-header .header-info-box #site-navigation.main-navigation .sk-submenu-toggle-icon i {
            transition: none;
        }
    }

    /*
     * Parent @media (max-width: 900px) mobile menu rules; child drawer through 1000px.
     * Use a flat drawer surface (no banded rows, no hover flash).
     */
    .site-header .header-info-box #site-navigation.main-navigation ul li,
    .site-header .header-info-box #site-navigation.main-navigation ul li:hover,
    .site-header .header-info-box #site-navigation.main-navigation ul#primary-menu > li .sub-menu li:hover,
    .site-header .header-info-box #site-navigation.main-navigation ul#primary-menu-mobile > li .sub-menu li:hover,
    .site-header .header-info-box #site-navigation.main-navigation ul#primary-menu > li .children li:hover,
    .site-header .header-info-box #site-navigation.main-navigation ul#primary-menu-mobile > li .children li:hover {
        background-color: transparent !important;
    }

    /* Dual menus: desktop Primary is hidden in the drawer row; only Mobile Menu appears in the drawer. */
    .site-header .header-info-box .main-navigation.sk-nav-dual-menu #primary-menu {
        display: none !important;
    }

    /*
     * Drawer menu: dimmed backdrop + full-height panel.
     * Width tiers match shop category slider: phone max-width 560px; tablet 561px+
     * (see .sk-shop-categories-slider). Effective through nav breakpoint max-width 1000px.
     * Default drawer width here: 60% (tablet). Phone override below: 100%.
     * Header stays above backdrop so the toggle stays tappable.
     */
    /*
     * Scroll lock + backdrop (class on body, not :has() — expensive recalc on every toggle
     * and right before full-page navigations).
     */
    body.sk-drawer-open::before {
        content: '';
        position: fixed;
        inset: 0;
        z-index: 1000000;
        background-color: rgba(0, 0, 0, 0.45);
        pointer-events: auto;
    }

    body.sk-drawer-open {
        overflow: hidden;
    }

    body.sk-drawer-open .site-header {
        position: relative;
        z-index: 1000010;
    }

    .site-header .header-info-box .main-navigation:not(.sk-nav-dual-menu):not(.toggled) #primary-menu,
    .site-header .header-info-box .main-navigation.sk-nav-dual-menu:not(.toggled) #primary-menu-mobile {
        display: none !important;
    }

    .site-header .header-info-box .main-navigation.toggled .menu-main-menu-container {
        position: static !important;
        overflow: visible !important;
        width: auto !important;
        height: auto !important;
    }

    .site-header .header-info-box .main-navigation.toggled:not(.sk-nav-dual-menu) #primary-menu,
    .site-header .header-info-box .main-navigation.sk-nav-dual-menu.toggled #primary-menu-mobile {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        right: 0 !important;
        background-color: #ffffff !important;
        width: 60% !important;
        max-width: 60vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        padding: 3.5rem 0 1rem !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        z-index: 1000020 !important;
        animation: sk-drawer-slide-in-from-right 0.28s ease-out forwards;
    }

    .site-header.sk-menu-toggle-left .header-info-box .main-navigation.toggled:not(.sk-nav-dual-menu) #primary-menu,
    .site-header.sk-menu-toggle-left
        .header-info-box
        .main-navigation.sk-nav-dual-menu.toggled
        #primary-menu-mobile {
        left: 0 !important;
        right: auto !important;
        animation: sk-drawer-slide-in-from-left 0.28s ease-out forwards;
    }

    @media screen and (max-width: 560px) {
        .site-header .header-info-box .main-navigation.toggled:not(.sk-nav-dual-menu) #primary-menu,
        .site-header .header-info-box .main-navigation.sk-nav-dual-menu.toggled #primary-menu-mobile {
            width: 100% !important;
            max-width: 100vw !important;
        }
    }

    .site-header .header-info-box .menu-drawer-close {
        display: none;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 0.75rem;
        z-index: 1000030;
        width: 2.75rem;
        height: 2.75rem;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 4px;
        background: transparent;
        color: #111111;
        cursor: pointer;
        line-height: 1;
        font-size: 1.25rem;
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
    }

    .site-header .header-info-box #site-navigation.main-navigation.toggled .menu-drawer-close {
        display: inline-flex;
    }

    .site-header:not(.sk-menu-toggle-left)
        .header-info-box
        #site-navigation.main-navigation.toggled
        .menu-drawer-close {
        right: min( 0.75rem, 2vw );
        left: auto;
    }

    .site-header.sk-menu-toggle-left
        .header-info-box
        #site-navigation.main-navigation.toggled
        .menu-drawer-close {
        left: min( 0.75rem, 2vw );
        right: auto;
    }

    /*
     * Stack submenus in the drawer; hide by default (parent theme uses :hover only).
     * Open with .sk-submenu-open on the parent li (set from header-navigation.js on tap).
     */
    .site-header .header-info-box #site-navigation.main-navigation li.menu-item-has-children > .sub-menu,
    .site-header .header-info-box #site-navigation.main-navigation li.page_item_has_children > .children {
        display: none !important;
        position: static !important;
        left: auto !important;
        top: auto !important;
        box-shadow: none !important;
        width: 100% !important;
        max-width: none !important;
        z-index: auto !important;
    }

    .site-header
        .header-info-box
        #site-navigation.main-navigation
        li.menu-item-has-children.sk-submenu-open
        > .sub-menu,
    .site-header
        .header-info-box
        #site-navigation.main-navigation
        li.page_item_has_children.sk-submenu-open
        > .children {
        display: block !important;
    }

    /* Stack submenus inside the drawer instead of absolute flyouts. */
    .site-header .header-info-box .main-navigation.toggled:not(.sk-nav-dual-menu) #primary-menu .sub-menu,
    .site-header .header-info-box .main-navigation.toggled:not(.sk-nav-dual-menu) #primary-menu .children,
    .site-header .header-info-box .main-navigation.sk-nav-dual-menu.toggled #primary-menu-mobile .sub-menu,
    .site-header .header-info-box .main-navigation.sk-nav-dual-menu.toggled #primary-menu-mobile .children {
        position: static !important;
        left: auto !important;
        top: auto !important;
        box-shadow: none !important;
        width: 100% !important;
        max-width: none !important;
        z-index: auto !important;
    }

    .site-header .header-info-box .main-navigation.toggled:not(.sk-nav-dual-menu) #primary-menu .sub-menu a,
    .site-header .header-info-box .main-navigation.toggled:not(.sk-nav-dual-menu) #primary-menu .children a,
    .site-header .header-info-box .main-navigation.sk-nav-dual-menu.toggled #primary-menu-mobile .sub-menu a,
    .site-header .header-info-box .main-navigation.sk-nav-dual-menu.toggled #primary-menu-mobile .children a {
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box !important;
    }

    /*
     * Drawer submenus: full-width rows, no horizontal padding, 1px top borders (no bottom).
     */
    .site-header .header-info-box #site-navigation.main-navigation ul.sub-menu,
    .site-header .header-info-box #site-navigation.main-navigation ul.children {
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box !important;
        border-top: 1px solid var(--sk-drawer-submenu-border) !important;
        border-bottom: none !important;
        border-left: none !important;
        border-right: none !important;
    }

    .site-header .header-info-box #site-navigation.main-navigation .sub-menu li,
    .site-header .header-info-box #site-navigation.main-navigation .children li {
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box !important;
        padding-inline: 0 !important;
        margin-inline: 0 !important;
        border-bottom: none !important;
        border-top: none !important;
    }

    .site-header .header-info-box #site-navigation.main-navigation .sub-menu li + li,
    .site-header .header-info-box #site-navigation.main-navigation .children li + li {
        border-top: 1px solid var(--sk-drawer-submenu-border) !important;
    }

    .site-header .header-info-box #site-navigation.main-navigation .sub-menu > li > a,
    .site-header .header-info-box #site-navigation.main-navigation .children > li > a {
        text-align: center !important;
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box !important;
        padding: 8px 0 !important;
    }

    /*
     * Nested branch rows: rules above force .sub-menu > li > a to width 100%, which wins tie-break
     * over li.sk-has-drawer-submenu-toggle > a and wraps .sk-submenu-toggle to the next line.
     */
    .site-header
        .header-info-box
        .main-navigation.toggled:not(.sk-nav-dual-menu)
        #primary-menu
        .sub-menu
        > li.sk-has-drawer-submenu-toggle
        > a,
    .site-header
        .header-info-box
        .main-navigation.toggled:not(.sk-nav-dual-menu)
        #primary-menu
        .children
        > li.sk-has-drawer-submenu-toggle
        > a,
    .site-header
        .header-info-box
        .main-navigation.sk-nav-dual-menu.toggled
        #primary-menu-mobile
        .sub-menu
        > li.sk-has-drawer-submenu-toggle
        > a,
    .site-header
        .header-info-box
        .main-navigation.sk-nav-dual-menu.toggled
        #primary-menu-mobile
        .children
        > li.sk-has-drawer-submenu-toggle
        > a {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: auto !important;
        max-width: none !important;
        box-sizing: border-box !important;
        padding-inline-end: 0 !important;
        text-align: center !important;
        padding: 8px 0 !important;
    }

    /* Primary menu rows when dropdown is block (inherits parent submenu styling). */
    .site-header .header-info-box .main-navigation ul#primary-menu > li,
    .site-header .header-info-box .main-navigation ul#primary-menu-mobile > li {
        margin: 0 !important;
    }

    .site-header .header-info-box .main-navigation ul#primary-menu > li > a,
    .site-header .header-info-box .main-navigation ul#primary-menu-mobile > li > a {
        color: #000000 !important;
        padding: 8px 16px !important;
        border-radius: 4px !important;
    }

    .site-header .header-info-box .head-1 .custom-logo-link img {
        max-height: 48px;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    @media (prefers-reduced-motion: reduce) {
        .site-header .header-info-box .main-navigation.toggled:not(.sk-nav-dual-menu) #primary-menu,
        .site-header .header-info-box .main-navigation.sk-nav-dual-menu.toggled #primary-menu-mobile {
            animation: none !important;
        }
    }
}

/* Single menu: #primary-menu is also desktop nav — hide drawer-only toggles above mobile breakpoint. */
@media screen and (min-width: 1001px) {
    .site-header .header-info-box #site-navigation .sk-submenu-toggle {
        display: none !important;
    }

    .site-header .header-info-box #site-navigation li.sk-has-drawer-submenu-toggle {
        display: list-item !important;
    }
}

/* Narrow top bar: allow wrap and avoid overlap */
@media screen and (max-width: 700px) {
    .site-header .top-box .flex-row {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 8px 16px;
    }

    .site-header .top-box .nav-box-header-left,
    .site-header .top-box .nav-box-header-right {
        flex: 1 1 100%;
        width: 100%;
        justify-content: center;
    }

    .site-header .top-box .nav-box-header-right {
        flex-direction: column;
        align-items: center;
    }
}

/* Active menu item styling is applied dynamically via inc/dynamic-styles.php */

/*
 * Full-width pages: the parent sets main#primary.lay-width to 68% and
 * .site-wrapper to display:flex + space-between (for sidebar layout).
 * Override both so content fills the container on no-sidebar pages.
 */
.site-wrapper.full-width {
    display: block !important;
}

.site-wrapper.full-width main#primary.lay-width,
.site-wrapper.full-width #primary.lay-width {
    width: 100% !important;
}

/* Parent uses margin: 4rem auto on .site-wrapper; reinforce no vertical margin on small screens. */
@media screen and (max-width: 900px) {
    .site-wrapper {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
}

/* Shop page: full-width outer layout with inner container kept at theme widths. */
body.woocommerce-shop .sk-shop-full-width {
    width: 100%;
}

body.woocommerce-shop .sk-shop-full-width .site-wrapper {
    display: block !important;
    width: 100%;
    max-width: 100%;
}

body.woocommerce-shop .sk-shop-full-width main#primary.lay-width,
body.woocommerce-shop .sk-shop-full-width #primary.lay-width {
    width: 100% !important;
}

/* Force product images to square ratio without clipping product content. */
.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/*
 * Product loop: equal card height per row; add-to-cart pinned to the bottom.
 * Grid on the list (float layout cannot equalize row heights). Excludes category slider.
 */
.woocommerce ul.products:not(.sk-shop-product-categories),
.woocommerce-page ul.products:not(.sk-shop-product-categories) {
    display: grid !important;
    align-items: stretch;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce ul.products:not(.sk-shop-product-categories)::before,
.woocommerce ul.products:not(.sk-shop-product-categories)::after,
.woocommerce-page ul.products:not(.sk-shop-product-categories)::before,
.woocommerce-page ul.products:not(.sk-shop-product-categories)::after {
    content: none;
    display: none;
}

/*
 * Desktop column count follows WooCommerce .columns-N (Customizer "Product Per Single Row").
 * Tablet/mobile columns: Customizer settings via inc/dynamic-styles.php (768–1199px tablet, ≤767px mobile).
 */
@media screen and (min-width: 1200px) {
    .woocommerce ul.products:not(.sk-shop-product-categories).columns-1,
    .woocommerce-page ul.products:not(.sk-shop-product-categories).columns-1 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .woocommerce ul.products:not(.sk-shop-product-categories).columns-2,
    .woocommerce-page ul.products:not(.sk-shop-product-categories).columns-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .woocommerce ul.products:not(.sk-shop-product-categories).columns-3,
    .woocommerce-page ul.products:not(.sk-shop-product-categories).columns-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .woocommerce ul.products:not(.sk-shop-product-categories).columns-4,
    .woocommerce-page ul.products:not(.sk-shop-product-categories).columns-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .woocommerce ul.products:not(.sk-shop-product-categories).columns-5,
    .woocommerce-page ul.products:not(.sk-shop-product-categories).columns-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .woocommerce ul.products:not(.sk-shop-product-categories).columns-6,
    .woocommerce-page ul.products:not(.sk-shop-product-categories).columns-6 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.woocommerce ul.products:not(.sk-shop-product-categories) li.product,
.woocommerce-page ul.products:not(.sk-shop-product-categories) li.product {
    display: flex;
    flex-direction: column;
    width: auto !important;
    max-width: none;
    float: none !important;
    margin: 0 !important;
    min-height: 100%;
}

/*
 * Flex spacer (::after, order 5) grows above the button (order 10) so add-to-cart stays
 * at the card foot; margin-top: 20px adds space above the button.
 */
.woocommerce ul.products:not(.sk-shop-product-categories) li.product::after,
.woocommerce-page ul.products:not(.sk-shop-product-categories) li.product::after {
    content: "";
    display: block;
    flex: 1 1 auto;
    order: 5;
    width: 100%;
    min-height: 0;
}

.woocommerce ul.products:not(.sk-shop-product-categories) li.product .button,
.woocommerce-page ul.products:not(.sk-shop-product-categories) li.product .button {
    order: 10;
    margin-top: 20px;
    align-self: flex-start;
    width: auto;
    max-width: 100%;
}

/* WooCommerce AJAX add-to-cart injects a "View cart" link; hide it in the catalog grid. */
.woocommerce ul.products:not(.sk-shop-product-categories) li.product a.added_to_cart,
.woocommerce-page ul.products:not(.sk-shop-product-categories) li.product a.added_to_cart {
    display: none !important;
}

/*
 * Product loop: 16px price (overrides parent .price 18px and inner span.woocommerce-Price-amount 15px).
 * Exchange-rate span (.rate_cart_page) is moved after .price via shop-loop-exchange-rate-after-price.js.
 * Parentheses around the rate are cosmetic (::before / ::after) so plugin text stays unchanged.
 */
.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
    font-size: 16px;
}

.woocommerce ul.products li.product .price .woocommerce-Price-amount,
.woocommerce-page ul.products li.product .price .woocommerce-Price-amount {
    font-size: 16px;
}

.woocommerce li.product .rate_cart_page,
.woocommerce-page li.product .rate_cart_page,
.woocommerce div.product .rate_cart_page,
.woocommerce-page div.product .rate_cart_page {
    font-size: 12px !important;
    color: var(--secondary-color);
}

.woocommerce ul.products li.product:has(.price + .rate_cart_page) .price,
.woocommerce-page ul.products li.product:has(.price + .rate_cart_page) .price {
    display: inline;
}

.woocommerce ul.products li.product .price + .rate_cart_page,
.woocommerce-page ul.products li.product .price + .rate_cart_page {
    display: inline;
    margin-left: 0.35em;
    vertical-align: baseline;
}

.woocommerce ul.products li.product .price + .rate_cart_page::before,
.woocommerce-page ul.products li.product .price + .rate_cart_page::before {
    content: '(';
}

.woocommerce ul.products li.product .price + .rate_cart_page::after,
.woocommerce-page ul.products li.product .price + .rate_cart_page::after {
    content: ')';
}

/*
 * SK Homepage featured [products] shortcode: match shop loop buttons/links (block theme overrides them).
 */
.sk-home-main .woocommerce ul.products li.product .woocommerce-loop-product__title,
.sk-home-main .woocommerce ul.products li.product h2,
.sk-home-main .woocommerce ul.products li.product h3,
.sk-home-main .woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
    text-decoration: none !important;
}

.sk-home-main .woocommerce ul.products li.product .button,
.sk-home-main .woocommerce ul.products li.product a.button {
    background: var(--primary-color) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 30px !important;
    text-decoration: none !important;
}

.sk-home-main .woocommerce ul.products li.product .button:hover,
.sk-home-main .woocommerce ul.products li.product a.button:hover {
    background: var(--secondary-color) !important;
    color: #fff !important;
    text-decoration: none !important;
}

/*
 * SK Homepage: parent .site-wrapper is display:flex + space-between for main+sidebar pages.
 * This template only has an article inside; as a flex item it does not grow, so the column shrink-wraps ("half width").
 * Force a normal block stack and full-width article/.entry-content.
 */
.sk-home-main .site-wrapper {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.sk-home-main .site-wrapper > article.sk-home-entry {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.sk-home-main .site-wrapper > article.sk-home-entry .entry-content {
    width: 100%;
    max-width: 100%;
}

/* SK Homepage: alignfull bands fill the theme content column. */

.sk-home-main .entry-content > .alignfull {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

/* Home intro cream band: strip horizontal padding (blocks may still have old inline padding from the editor). */
.sk-home-main .entry-content > .wp-block-group.alignfull.has-sk-cream-background-color {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/*
 * Keep paragraph pattern copy column-width (matches pattern contentSize) when global layout rules are weak for hybrid themes.
 * --sk-paragraph-inner-max must stay in sync with patterns/sk-paragraph.php inner constrained group.
 */
.sk-home-main {
    --sk-paragraph-inner-max: 720px;
}

.sk-home-main .entry-content > .wp-block-group.alignfull.has-sk-cream-background-color > .wp-block-group.is-layout-constrained {
    max-width: var(--sk-paragraph-inner-max);
    margin-left: auto;
    margin-right: auto;
}

/*
 * Parent theme .container { padding: 0 15px } — zero horizontal padding on tablet/mobile
 * for main page content so alignfull bands (e.g. location map) reach the viewport edge.
 * Header/footer containers are unchanged (no .site-wrapper child).
 */
@media screen and (max-width: 900px) {
    .container:has(> .site-wrapper),
    .sk-home-main > .container {
        padding-left: 0;
        padding-right: 0;
    }
}

/*
 * Shop / category archives and pages: horizontal inset + centered titles on tablet/mobile.
 * Container side padding is removed at max-width 900px (see above).
 */
@media screen and (max-width: 1199px) {
    body.woocommerce.archive,
    body.woocommerce-page.archive,
    body.page {
        --sk-page-inset-x: 20px;
    }

    body.woocommerce.archive nav.woocommerce-breadcrumb,
    body.woocommerce-page.archive nav.woocommerce-breadcrumb,
    body.woocommerce.single-product nav.woocommerce-breadcrumb,
    body.woocommerce-page.single-product nav.woocommerce-breadcrumb,
    body.page .wp-shop-woocommerce-breadcrumbs,
    body.woocommerce.single-product .wp-shop-woocommerce-breadcrumbs,
    body.woocommerce-page.single-product .wp-shop-woocommerce-breadcrumbs {
        padding-left: var(--sk-page-inset-x);
        padding-right: var(--sk-page-inset-x);
        box-sizing: border-box;
        text-align: start;
    }

    body.page .wp-shop-woocommerce-breadcrumbs .breadcrumb-trail ul {
        margin-inline: 0;
    }

    body.woocommerce.archive .woocommerce-products-header,
    body.woocommerce-page.archive .woocommerce-products-header,
    body.woocommerce.archive header.page-header,
    body.woocommerce-page.archive header.page-header,
    body.woocommerce.archive .woocommerce-products-header__title,
    body.woocommerce-page.archive .woocommerce-products-header__title,
    body.woocommerce.archive h1.page-title,
    body.woocommerce-page.archive h1.page-title,
    body.page .entry-header .entry-title {
        text-align: center;
    }
}

/* Shop / category archive: subcategory strip as a single-line slider with chevrons */
.sk-shop-categories-slider {
    --sk-cat-slider-gap: 12px;
    --sk-cat-slider-row-padding-bottom: 10px;
    --sk-cat-arrow-size: 36px;
    position: relative;
    display: block;
    clear: both;
    width: 100%;
    max-width: 100%;
    margin: 0 0 1.25rem;
    box-sizing: border-box;
    text-align: start;
    align-self: stretch;
}

/* Keep sort controls interactive above category slider overlays. */
.woocommerce .woocommerce-ordering,
.woocommerce-page .woocommerce-ordering {
    position: relative;
    z-index: 3;
}

/* Phone only (matches category slider mobile breakpoint; tablet 561px+ unchanged). */
@media (max-width: 560px) {
    .woocommerce .woocommerce-ordering,
    .woocommerce-page .woocommerce-ordering {
        float: none !important;
        clear: both;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .woocommerce .woocommerce-ordering select,
    .woocommerce-page .woocommerce-ordering select {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Mobile (≤767px): inset result count and sort row (matches product grid mobile breakpoint). */
@media screen and (max-width: 767px) {
    .woocommerce .woocommerce-result-count,
    .woocommerce-page .woocommerce-result-count,
    .woocommerce .woocommerce-ordering,
    .woocommerce-page .woocommerce-ordering {
        padding-left: var(--sk-page-inset-x, 20px);
        padding-right: var(--sk-page-inset-x, 20px);
        box-sizing: border-box;
    }

    .woocommerce .sk-shop-categories-slider .woocommerce-loop-category__title,
    .woocommerce-page .sk-shop-categories-slider .woocommerce-loop-category__title,
    .sk-shop-categories-slider li.product-category .woocommerce-loop-category__title,
    .sk-shop-categories-slider li.product-category h3.woocommerce-loop-category__title {
        text-align: center;
    }
}

/* Tablet (768px–1199px): outer-edge inset on the sort row (result count left, ordering right). */
@media screen and (min-width: 768px) and (max-width: 1199px) {
    .woocommerce .woocommerce-result-count,
    .woocommerce-page .woocommerce-result-count {
        padding-left: var(--sk-page-inset-x, 20px);
        padding-right: 0;
        box-sizing: border-box;
    }

    .woocommerce .woocommerce-ordering,
    .woocommerce-page .woocommerce-ordering {
        padding-right: var(--sk-page-inset-x, 20px);
        padding-left: 0;
        box-sizing: border-box;
    }
}

.sk-shop-categories-track {
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    text-align: start;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.sk-shop-categories-track::-webkit-scrollbar {
    display: none;
}

.sk-shop-categories-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--sk-cat-arrow-size);
    height: var(--sk-cat-arrow-size);
    border: 0;
    border-radius: 0;
    background-color: #1e212d;
    color: #fff;
    cursor: pointer;
    transform: translateY(-50%);
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.sk-shop-categories-arrow:hover:not(:disabled),
.sk-shop-categories-arrow:focus-visible:not(:disabled) {
    color: #fff;
    background-color: var(--primary-color);
}

.sk-shop-categories-arrow-prev {
    left: 4px;
}

.sk-shop-categories-arrow-next {
    right: 4px;
}

.sk-shop-categories-arrow span {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1;
}

.sk-shop-categories-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

.sk-shop-categories-slider.sk-shop-categories-no-overflow .sk-shop-categories-arrow {
    display: none;
}

.woocommerce-page .sk-shop-categories-slider ul.sk-shop-product-categories.products {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: var(--sk-cat-slider-gap);
    width: max-content;
    max-width: none;
    margin: 0 !important;
    margin-inline: 0 !important;
    padding: 0 2px var(--sk-cat-slider-row-padding-bottom);
    list-style: none;
    clear: none !important;
    flex: 0 0 auto;
    align-self: flex-start;
}

.woocommerce-page .sk-shop-categories-slider ul.sk-shop-product-categories.products::before,
.woocommerce-page .sk-shop-categories-slider ul.sk-shop-product-categories.products::after {
    display: none !important;
    content: none !important;
}

.woocommerce .sk-shop-categories-slider ul.sk-shop-product-categories.products li.product-category,
.woocommerce-page .sk-shop-categories-slider ul.sk-shop-product-categories.products li.product-category {
    flex: 0 0 auto;
    float: none !important;
    width: auto !important;
    max-width: none;
    margin: 0 !important;
    scroll-snap-align: start;
    box-sizing: border-box;
    /* Parent theme pads all li.product; slider cards use full image width on the sides. */
    padding-left: 0;
    padding-right: 0;
}

/* Text-only slides: no taxonomy thumbnail (WC) or no img in link; content width + gutters so arrows do not cover titles */
.sk-shop-categories-slider:has(li.sk-product-category-no-thumb) .sk-shop-categories-track,
.sk-shop-categories-slider:has(li.product-category:not(:has(> a > img))) .sk-shop-categories-track {
    padding-inline: calc(var(--sk-cat-arrow-size) + 12px);
    box-sizing: border-box;
}

.woocommerce .sk-shop-categories-slider ul.sk-shop-product-categories.products li.product-category.sk-product-category-no-thumb,
.woocommerce-page .sk-shop-categories-slider ul.sk-shop-product-categories.products li.product-category.sk-product-category-no-thumb,
.woocommerce .sk-shop-categories-slider ul.sk-shop-product-categories.products li.product-category:not(:has(> a > img)),
.woocommerce-page .sk-shop-categories-slider ul.sk-shop-product-categories.products li.product-category:not(:has(> a > img)) {
    flex: 0 0 auto;
    width: auto !important;
    max-width: min(28rem, calc(100vw - 2 * (var(--sk-cat-arrow-size) + 12px)));
}

.woocommerce .sk-shop-categories-slider ul.sk-shop-product-categories.products li.product-category.sk-product-category-no-thumb > a,
.woocommerce-page .sk-shop-categories-slider ul.sk-shop-product-categories.products li.product-category.sk-product-category-no-thumb > a,
.woocommerce .sk-shop-categories-slider ul.sk-shop-product-categories.products li.product-category:not(:has(> a > img)) > a,
.woocommerce-page .sk-shop-categories-slider ul.sk-shop-product-categories.products li.product-category:not(:has(> a > img)) > a {
    display: inline-block;
    width: auto !important;
    max-width: 100%;
    vertical-align: top;
    box-sizing: border-box;
}

.sk-shop-categories-slider li.product-category.sk-product-category-no-thumb .woocommerce-loop-category__title,
.sk-shop-categories-slider li.product-category:not(:has(> a > img)) .woocommerce-loop-category__title,
.sk-shop-categories-slider li.product-category.sk-product-category-no-thumb h3,
.sk-shop-categories-slider li.product-category:not(:has(> a > img)) h3 {
    text-align: center;
    overflow-wrap: anywhere;
}

@media (min-width: 561px) and (max-width: 1000px) {
    .woocommerce .sk-shop-categories-slider ul.sk-shop-product-categories.products,
    .woocommerce-page .sk-shop-categories-slider ul.sk-shop-product-categories.products {
        width: 100%;
        justify-content: flex-start;
    }

    .sk-shop-categories-slider.sk-shop-categories-no-overflow ul.sk-shop-product-categories.products {
        justify-content: center;
    }

    .woocommerce .sk-shop-categories-slider ul.sk-shop-product-categories.products li.product-category,
    .woocommerce-page .sk-shop-categories-slider ul.sk-shop-product-categories.products li.product-category {
        flex: 0 0 calc((100% - var(--sk-cat-slider-gap)) / 2);
        width: calc((100% - var(--sk-cat-slider-gap)) / 2) !important;
        max-width: calc((100% - var(--sk-cat-slider-gap)) / 2);
    }

    .woocommerce .sk-shop-categories-slider ul.sk-shop-product-categories.products li.product-category > a,
    .woocommerce-page .sk-shop-categories-slider ul.sk-shop-product-categories.products li.product-category > a {
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .woocommerce .sk-shop-categories-slider ul.sk-shop-product-categories.products li.product-category a img,
    .woocommerce-page .sk-shop-categories-slider ul.sk-shop-product-categories.products li.product-category a img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        object-fit: cover !important;
    }

    .woocommerce .sk-shop-categories-slider ul.sk-shop-product-categories.products li.product-category.sk-product-category-no-thumb,
    .woocommerce-page .sk-shop-categories-slider ul.sk-shop-product-categories.products li.product-category.sk-product-category-no-thumb,
    .woocommerce .sk-shop-categories-slider ul.sk-shop-product-categories.products li.product-category:not(:has(> a > img)),
    .woocommerce-page .sk-shop-categories-slider ul.sk-shop-product-categories.products li.product-category:not(:has(> a > img)) {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: min(24rem, 90vw) !important;
    }
}

@media (max-width: 560px) {
    .sk-shop-categories-slider {
        --sk-cat-arrow-size: 48px;
    }

    .woocommerce .sk-shop-categories-track,
    .woocommerce-page .sk-shop-categories-track {
        min-width: 0;
        scroll-snap-type: none;
    }

    .sk-shop-categories-arrow {
        top: 90%;
    }

    .sk-shop-categories-arrow span {
        font-size: 1.75rem;
    }

    /*
     * Base rule uses flex: 0 0 auto + width: max-content so desktop scroll works.
     * On narrow screens that breaks %-width children and images inflate to intrinsic size.
     */
    .woocommerce .sk-shop-categories-slider ul.sk-shop-product-categories.products,
    .woocommerce-page .sk-shop-categories-slider ul.sk-shop-product-categories.products {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        flex: 1 1 auto;
        justify-content: flex-start;
        box-sizing: border-box;
    }

    .woocommerce .sk-shop-categories-slider ul.sk-shop-product-categories.products li.product-category,
    .woocommerce-page .sk-shop-categories-slider ul.sk-shop-product-categories.products li.product-category {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        scroll-snap-align: unset;
    }

    .woocommerce .sk-shop-categories-slider ul.sk-shop-product-categories.products li.product-category > a,
    .woocommerce-page .sk-shop-categories-slider ul.sk-shop-product-categories.products li.product-category > a {
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /*
     * Match catalog product cards: full width inside card, square crop (see global li.product img rules above).
     * Overrides Customizer px sizes via !important while images stay visible.
     */
    .woocommerce .sk-shop-categories-slider ul.sk-shop-product-categories.products li.product-category a img,
    .woocommerce-page .sk-shop-categories-slider ul.sk-shop-product-categories.products li.product-category a img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        object-fit: cover !important;
        box-sizing: border-box !important;
    }

    /*
     * Text-only slides: one per view on phone (same as image slides). Global no-thumb uses
     * width:auto !important; this block must win on small screens.
     */
    .woocommerce .sk-shop-categories-slider ul.sk-shop-product-categories.products li.product-category.sk-product-category-no-thumb,
    .woocommerce-page .sk-shop-categories-slider ul.sk-shop-product-categories.products li.product-category.sk-product-category-no-thumb,
    .woocommerce .sk-shop-categories-slider ul.sk-shop-product-categories.products li.product-category:not(:has(> a > img)),
    .woocommerce-page .sk-shop-categories-slider ul.sk-shop-product-categories.products li.product-category:not(:has(> a > img)) {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        /* Phone only: room above title block (overrides parent li.product padding). */
        padding-top: 28px !important;
    }

    .woocommerce .sk-shop-categories-slider ul.sk-shop-product-categories.products li.product-category.sk-product-category-no-thumb > a,
    .woocommerce-page .sk-shop-categories-slider ul.sk-shop-product-categories.products li.product-category.sk-product-category-no-thumb > a,
    .woocommerce .sk-shop-categories-slider ul.sk-shop-product-categories.products li.product-category:not(:has(> a > img)) > a,
    .woocommerce-page .sk-shop-categories-slider ul.sk-shop-product-categories.products li.product-category:not(:has(> a > img)) > a {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* -------------------------------------------------------------------------
 * Single product: quantity stepper (minus / number / plus)
 * ------------------------------------------------------------------------- */
.woocommerce .quantity.sk-quantity-stepper,
.woocommerce-page .quantity.sk-quantity-stepper {
	display: inline-flex;
	align-items: stretch;
	flex-wrap: nowrap;
	border: 1px solid #d8d8d8;
	border-radius: 2px;
	background: #fff;
	overflow: hidden;
	vertical-align: middle;
}

.woocommerce .quantity.sk-quantity-stepper .sk-qty-btn,
.woocommerce-page .quantity.sk-quantity-stepper .sk-qty-btn {
	flex: 0 0 auto;
	min-width: 2.25rem;
	margin: 0;
	padding: 0 0.5rem;
	border: none;
	background: transparent;
	font-size: 1.1rem;
	line-height: 1;
	color: inherit;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.woocommerce .quantity.sk-quantity-stepper .sk-qty-btn:hover,
.woocommerce-page .quantity.sk-quantity-stepper .sk-qty-btn:hover {
	background-color: rgba(0, 0, 0, 0.04);
}

.woocommerce .quantity.sk-quantity-stepper .sk-qty-btn:focus-visible,
.woocommerce-page .quantity.sk-quantity-stepper .sk-qty-btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -2px;
}

.woocommerce .quantity.sk-quantity-stepper input.qty,
.woocommerce-page .quantity.sk-quantity-stepper input.qty {
	flex: 1 1 auto;
	min-width: 2.5rem;
	max-width: 5rem;
	margin: 0;
	padding: 0.35rem 0.25rem;
	border: none;
	border-left: 1px solid #d8d8d8;
	border-right: 1px solid #d8d8d8;
	border-radius: 0;
	text-align: center;
	font-variant-numeric: tabular-nums;
	-moz-appearance: textfield;
	appearance: textfield;
	box-shadow: none;
}

.woocommerce .quantity.sk-quantity-stepper input.qty::-webkit-outer-spin-button,
.woocommerce .quantity.sk-quantity-stepper input.qty::-webkit-inner-spin-button,
.woocommerce-page .quantity.sk-quantity-stepper input.qty::-webkit-outer-spin-button,
.woocommerce-page .quantity.sk-quantity-stepper input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Single-product cursor overrides (load order): inc/single-product-summary.php → wp_shop_woocommerce_child_single_product_cursor_fix_css */

/*
 * PDP mobile: .container horizontal padding is removed at max-width 900px; inset major blocks
 * except the product gallery (full-bleed image).
 */
@media screen and (max-width: 900px) {
	body.woocommerce.single-product,
	body.woocommerce-page.single-product {
		--sk-pdp-mobile-pad: var(--sk-page-inset-x, 20px);
	}

	body.woocommerce.single-product nav.woocommerce-breadcrumb,
	body.woocommerce-page.single-product nav.woocommerce-breadcrumb,
	body.woocommerce.single-product .wp-shop-woocommerce-breadcrumbs,
	body.woocommerce-page.single-product .wp-shop-woocommerce-breadcrumbs {
		padding: var(--sk-pdp-mobile-pad);
		box-sizing: border-box;
		text-align: start;
	}

	body.woocommerce.single-product div.product .summary.entry-summary,
	body.woocommerce-page.single-product div.product .summary.entry-summary,
	body.woocommerce.single-product section.related.products,
	body.woocommerce-page.single-product section.related.products {
		padding: var(--sk-pdp-mobile-pad);
		box-sizing: border-box;
	}
}

/* Main product description (replacing the old Description tab; no tab titles or additional info tab) */
.single-product div.product .summary .sk-product-long-description {
	margin-top: 1.5rem;
}

/*
 * PDP gallery: chevrons on the main image.
 * single-product-gallery-nav-overlay.js moves .flex-direction-nav into .flex-viewport (FlexSlider leaves it after thumbnails by default).
 */
.woocommerce div.product div.images .woocommerce-product-gallery .flex-viewport,
.woocommerce-page div.product div.images .woocommerce-product-gallery .flex-viewport {
	position: relative;
}

.woocommerce div.product div.images .woocommerce-product-gallery .flex-viewport > .flex-direction-nav,
.woocommerce-page div.product div.images .woocommerce-product-gallery .flex-viewport > .flex-direction-nav {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	z-index: 12;
	pointer-events: none;
	box-sizing: border-box;
}

.woocommerce div.product div.images .woocommerce-product-gallery .flex-viewport > .flex-direction-nav li,
.woocommerce-page div.product div.images .woocommerce-product-gallery .flex-viewport > .flex-direction-nav li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce div.product div.images .woocommerce-product-gallery .flex-viewport > .flex-direction-nav a,
.woocommerce-page div.product div.images .woocommerce-product-gallery .flex-viewport > .flex-direction-nav a {
	pointer-events: auto;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 2.75rem;
	height: 2.75rem;
	margin: 0 !important;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.92);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 1 !important;
	overflow: hidden;
	text-decoration: none;
	font-size: 0;
	line-height: 0;
	color: transparent;
}

.woocommerce div.product div.images .woocommerce-product-gallery .flex-viewport > .flex-direction-nav a::after,
.woocommerce-page div.product div.images .woocommerce-product-gallery .flex-viewport > .flex-direction-nav a::after {
	content: '';
	display: block;
	width: 0.45rem;
	height: 0.45rem;
	border: solid rgba(0, 0, 0, 0.55);
	border-width: 0 2px 2px 0;
	box-sizing: border-box;
}

.woocommerce div.product div.images .woocommerce-product-gallery .flex-viewport > .flex-direction-nav .flex-prev,
.woocommerce-page div.product div.images .woocommerce-product-gallery .flex-viewport > .flex-direction-nav .flex-prev {
	left: 0.65rem !important;
	right: auto !important;
}

.woocommerce div.product div.images .woocommerce-product-gallery .flex-viewport > .flex-direction-nav .flex-prev::after,
.woocommerce-page div.product div.images .woocommerce-product-gallery .flex-viewport > .flex-direction-nav .flex-prev::after {
	transform: rotate(135deg);
	margin-inline-start: 0.12rem;
}

.woocommerce div.product div.images .woocommerce-product-gallery .flex-viewport > .flex-direction-nav .flex-next,
.woocommerce-page div.product div.images .woocommerce-product-gallery .flex-viewport > .flex-direction-nav .flex-next {
	right: 0.65rem !important;
	left: auto !important;
}

.woocommerce div.product div.images .woocommerce-product-gallery .flex-viewport > .flex-direction-nav .flex-next::after,
.woocommerce-page div.product div.images .woocommerce-product-gallery .flex-viewport > .flex-direction-nav .flex-next::after {
	transform: rotate(-45deg);
	margin-inline-end: 0.12rem;
}

html[dir="rtl"] .woocommerce div.product div.images .woocommerce-product-gallery .flex-viewport > .flex-direction-nav .flex-prev,
html[dir="rtl"] .woocommerce-page div.product div.images .woocommerce-product-gallery .flex-viewport > .flex-direction-nav .flex-prev {
	left: auto !important;
	right: 0.65rem !important;
}

html[dir="rtl"] .woocommerce div.product div.images .woocommerce-product-gallery .flex-viewport > .flex-direction-nav .flex-next,
html[dir="rtl"] .woocommerce-page div.product div.images .woocommerce-product-gallery .flex-viewport > .flex-direction-nav .flex-next {
	right: auto !important;
	left: 0.65rem !important;
}

html[dir="rtl"] .woocommerce div.product div.images .woocommerce-product-gallery .flex-viewport > .flex-direction-nav .flex-prev::after,
html[dir="rtl"] .woocommerce-page div.product div.images .woocommerce-product-gallery .flex-viewport > .flex-direction-nav .flex-prev::after {
	transform: rotate(-45deg);
	margin-inline-start: 0;
	margin-inline-end: 0.12rem;
}

html[dir="rtl"] .woocommerce div.product div.images .woocommerce-product-gallery .flex-viewport > .flex-direction-nav .flex-next::after,
html[dir="rtl"] .woocommerce-page div.product div.images .woocommerce-product-gallery .flex-viewport > .flex-direction-nav .flex-next::after {
	transform: rotate(135deg);
	margin-inline-end: 0;
	margin-inline-start: 0.12rem;
}

.woocommerce div.product div.images .woocommerce-product-gallery .flex-viewport > .flex-direction-nav a:focus-visible,
.woocommerce-page div.product div.images .woocommerce-product-gallery .flex-viewport > .flex-direction-nav a:focus-visible {
	outline: 2px solid var(--secondary-color, #8b6914);
	outline-offset: 2px;
}

/*
 * Cart block layout: see inc/woocommerce-cart-block-layout.php (inline CSS on is_cart()).
 * Rules use body.woocommerce-cart and do not rely on .is-large.
 */

/* Advanced Woo Search: use theme primary color for submit button. */
.aws-search-btn.aws-form-btn {
	background-color: var(--primary-color) !important;
}

/* Go-to-top: slightly larger than parent (40px); not tied to category slider arrows. */
.footer-go-to-top,
.footer-go-to-top:hover,
.footer-go-to-top:focus,
.footer-go-to-top:visited {
	text-decoration: none;
	color: #fff;
}

.footer-go-to-top {
	width: 46px;
	height: 46px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	font-size: 16px;
}

.footer-go-to-top i {
	text-decoration: none;
}

