/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* ===================================
   Custom Product Design - Hover Cart
   =================================== */

/* Product wrapper with border */
.product.wd-hover-custom-design {
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    border-radius: 4px;
    overflow: hidden;
}

.product.wd-hover-custom-design:hover {
    border-color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Product wrapper styling */
.product.wd-hover-custom-design .product-wrapper {
    position: relative;
    background: #fff;
    transition: all 0.3s ease;
}

/* Top section with image */
.product.wd-hover-custom-design .wd-custom-design-top {
    position: relative;
    overflow: hidden;
    background: #f8f8f8;
}

/* Hide cart icon by default */
.product.wd-hover-custom-design .wd-custom-cart-icon {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 10;
}

/* Show cart icon on hover */
.product.wd-hover-custom-design:hover .wd-custom-cart-icon {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Cart icon button styling */
.product.wd-hover-custom-design .wd-custom-cart-icon .add_to_cart_button {
    background: #333;
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 3px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product.wd-hover-custom-design .wd-custom-cart-icon .add_to_cart_button:hover {
    background: #555;
    transform: scale(1.05);
}

/* Action buttons positioning */
.product.wd-hover-custom-design .wd-custom-design-buttons {
    opacity: 0.8;
    transition: opacity 0.3s ease;
    top: 15px;
    right: 15px;
}

.product.wd-hover-custom-design:hover .wd-custom-design-buttons {
    opacity: 1;
}

/* Product bottom section */
.product.wd-hover-custom-design .product-element-bottom {
    padding: 15px;
    border-top: 1px solid #f0f0f0;
}

/* Product title */
.product.wd-hover-custom-design .product-title,
.product.wd-hover-custom-design h2.woocommerce-loop-product__title {
    margin: 12px 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

/* Product price */
.product.wd-hover-custom-design .price {
    font-size: 16px;
    font-weight: 700;
    color: #d32f2f;
    margin: 8px 0;
}

/* Product rating */
.product.wd-hover-custom-design .star-rating {
    margin: 8px 0;
}

/* Product categories */
.product.wd-hover-custom-design .product-cat {
    font-size: 12px;
    color: #999;
    margin: 5px 0;
}

/* Stock status */
.product.wd-hover-custom-design .stock {
    font-size: 12px;
    margin: 5px 0;
}

.product.wd-hover-custom-design .stock.in-stock {
    color: #27ae60;
}

.product.wd-hover-custom-design .stock.out-of-stock {
    color: #d32f2f;
}

/* Add to cart button in bottom section */
.product.wd-hover-custom-design .wd-add-btn {
    margin-top: 10px;
}

.product.wd-hover-custom-design .wd-add-btn .add_to_cart_button {
    width: 100%;
    padding: 10px 0;
    font-size: 13px;
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.product.wd-hover-custom-design .wd-add-btn .add_to_cart_button:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product.wd-hover-custom-design {
        border-width: 1px;
    }

    .product.wd-hover-custom-design .wd-custom-cart-icon {
        bottom: 15px;
    }

    .product.wd-hover-custom-design .wd-custom-cart-icon .add_to_cart_button {
        padding: 10px 20px;
        font-size: 12px;
    }

    .product.wd-hover-custom-design .product-element-bottom {
        padding: 12px;
    }
}

/* Quick shop overlay compatibility */
.product.wd-hover-custom-design .wd-quick-shop {
    position: relative;
}

.product.wd-hover-custom-design .wd-quick-shop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    z-index: 5;
}

.product.wd-hover-custom-design:hover .wd-quick-shop::before {
    background: rgba(0, 0, 0, 0.05);
}

/* ===================================
   Product Card Styling
   =================================== */

/* Badge top-right */
.wd-product-wrapper .product-labels {
    position: absolute;
    top: 10px;
    right: 10px;
    left: auto !important;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.wd-product-wrapper .product-labels .product-label {
    background: #d32f2f;
    color: #fff;
    font-size: 12px;
    font-family: 'Geogrotes semi-bold', Sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 10px;
    line-height: 1.3;
    border-radius: 0;
}

/* Hide duplicate new badge */
.wd-product-wrapper .woocommerce-new-badge {
    display: none !important;
}

/* Bottom section - centered layout */
.wd-product-wrapper .product-element-bottom {
    text-align: center;
    padding: 15px 12px;
}

/* Product title */
.wd-product-wrapper .product-element-bottom .wd-entities-title {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-family: 'Geogrotes semi-bold', Sans-serif;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.wd-product-wrapper .product-element-bottom .wd-entities-title a {
    color: inherit;
    text-decoration: none;
}

/* SKU display */
.wd-product-wrapper .product-element-bottom .wd-product-sku {
    display: block;
    font-size: 13px;
    font-family: 'Geogrotes semi-bold', Sans-serif;
    font-weight: 400;
    color: #999;
    margin-bottom: 10px;
}

/* Price */
.wd-product-wrapper .product-element-bottom .price {
    display: block;
    font-size: 18px;
    font-family: 'Geogrotes bold', Sans-serif !important;
    font-weight: 700;
    color: #000;
    margin: 8px 0;
}

.wd-product-wrapper .product-element-bottom .price .woocommerce-price-suffix {
    display: none;
}

/* Add to cart icon - centered below price */
.wd-product-wrapper .product-element-bottom .wd-add-btn {
    margin-top: 10px;
}

.wd-product-wrapper .product-element-bottom .wd-add-btn a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.wd-product-wrapper .product-element-bottom .wd-add-btn a:hover {
    color: #d32f2f;
}

/* Hide action text, show only icon */
.wd-product-wrapper .product-element-bottom .wd-add-btn .wd-action-text {
    display: none;
}

/* Hover cart icon on product card */
.wd-product.wd-hover-icons:hover .product-wrapper {
    border-color: #ededed;
}

.wd-product.wd-hover-icons:hover .product-wrapper::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 34px;
    background-color: #fff;
    background-image: url('https://nsportks.com/wp-content/uploads/2025/07/basket_header.svg');
    background-size: 26px 26px;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 10;
    border-radius: 17px;
    cursor: pointer;
    transition: width 0.3s ease, background-position 0.3s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    line-height: 34px;
    text-align: center;
}

.wd-product.wd-hover-icons .product-wrapper.cart-hover::after {
    content: 'SHTOJE NE SHPORTE';
    width: 180px;
    background-position: 10px center;
    padding-left: 45px;
    text-align: left;
    justify-content: flex-start;
}

.wd-product.wd-hover-icons .product-wrapper .wd-buttons {
    display: none !important;
}

/* ===================================
   Stock Location Cards - N Selection
   =================================== */

.stock-locations-grid--nselection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding: 16px 0;
}

.stock-locations-grid--nselection a {
    text-decoration: none;
    color: inherit;
}

.stock-locations-grid--nselection .location-card {
    background: #00000085;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.stock-locations-grid--nselection .location-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.stock-locations-grid--nselection .location-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.stock-locations-grid--nselection .location-icon {
    flex-shrink: 0;
}

.stock-locations-grid--nselection .location-icon svg {
    color: #fff;
    opacity: 0.7;
}

.stock-locations-grid--nselection .location-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stock-locations-grid--nselection .location-underline {
    width: 40px;
    height: 3px;
    background: #d32f2f;
    margin-bottom: 16px;
}

.stock-locations-grid--nselection .location-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stock-locations-grid--nselection .location-city {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.stock-locations-grid--nselection .location-address {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.stock-locations-grid--nselection .location-phone {
    margin-top: 8px;
}

.stock-locations-grid--nselection .location-phone a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.stock-locations-grid--nselection .location-phone a:hover {
    color: #fff;
}

.stock-locations-grid--nselection .location-pin {
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0.4;
}

.stock-locations-grid--nselection .location-pin svg {
    color: #fff;
}

@media (max-width: 768px) {
    .stock-locations-grid--nselection {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Custom Header - N Sport
   =================================== */

.nsport-custom-header {
    width: 100%;
    position: relative;
    z-index: 100;
    background: #fff;
}

/* --- Top Row --- */
.nsport-header-top {
    background: #fff;
    height: 62px;
    display: flex;
    align-items: center;
}

.nsport-header-top__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.nsport-logo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #d32f2f;
}

.nsport-logo-img {
    height: 26px;
    width: auto;
}

/* Tool items */
.nsport-header-tools {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nsport-tool {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-family: "Geogrotes semi-bold", Sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: color 0.2s;
    cursor: pointer;
}

.nsport-tool:hover {
    color: #d32f2f;
}

.nsport-tool svg {
    flex-shrink: 0;
}

/* Cart badge */
.nsport-tool--cart {
    position: relative;
}

.nsport-cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: #d32f2f;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Hamburger - hidden on desktop */
.nsport-tool--burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #333;
}

/* --- Inline Search --- */
.nsport-search-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

.nsport-inline-search {
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 0;
    opacity: 0;
    transition: width 0.3s ease, opacity 0.3s ease;
}

.nsport-search-wrapper:hover .nsport-inline-search,
.nsport-search-wrapper.active .nsport-inline-search {
    width: 200px;
    opacity: 1;
    margin-right: 8px;
}

.nsport-inline-search input[type="search"] {
    width: 100%;
    padding: 6px 0;
    border: none;
    border-bottom: 1px solid #333;
    border-radius: 0;
    font-size: 13px;
    outline: none;
    background: transparent;
    color: #333;
    -webkit-appearance: none;
}

.nsport-inline-search input[type="search"]::placeholder {
    color: #999;
}

.nsport-inline-search input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

/* --- Navigation Row --- */
.nsport-header-nav {
    background: #f8f8f8;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    height: 50px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: visible !important;
}

.nsport-header-nav .container {
    overflow: visible !important;
}

.nsport-main-nav {
    display: flex;
    justify-content: center;
    overflow: visible !important;
}

.nsport-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nsport-nav-list > li {
    position: static;
    margin-bottom: 0;
    border-right: 0.5px solid #ededed;
}

.nsport-nav-list > li:first-child {
    border-left: 0.5px solid #ededed;
}

.nsport-nav-list > li > a {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 28px;
    font-size: 15px;
    font-family: "Geogrotes bold", Sans-serif;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s, color 0.2s;
}

.nsport-nav-list > li.nselection-menu-item > a {
    font-family: 'Poppins', Sans-serif;
}

.nsport-nav-list > li > a:hover,
.nsport-nav-list > li.current-menu-item > a,
.nsport-nav-list > li.current-menu-parent > a,
.nsport-nav-list > li:hover > a {
    background: #d32f2f;
    color: #fff;
}

/* Dropdown arrow for items with children */
.nsport-nav-list > li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 8px;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
}

/* Mega menu dropdown */
.nsport-header-nav .nsport-nav-list .sub-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    max-width: var(--wd-container-w);
    background: #fff;
    z-index: 9999;
    list-style: none;
    margin: 0;
    padding: 24px 15px;
    border-bottom: 1px solid #e8e8e8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    flex-wrap: wrap;
    gap: 0 100px;
}

.nsport-header-nav .nsport-nav-list > li:hover > .sub-menu {
    display: flex !important;
}

/* Sub-menu columns */
.nsport-nav-list .sub-menu > li {
    min-width: 160px;
    margin-bottom: 0;
}

.nsport-nav-list .sub-menu > li > a {
    display: block;
    padding: 0 0 10px 0;
    font-size: 16px;
    font-family: "Geogrotes semi-bold", Sans-serif;
    font-weight: 700;
    color: #555;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.nsport-nav-list .sub-menu > li > a:hover {
    color: #d32f2f;
}

/* Third-level items */
.nsport-header-nav .nsport-nav-list .sub-menu .sub-menu {
    display: block !important;
    position: static;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    width: auto;
    max-width: none;
    left: auto;
    transform: none;
}

.nsport-nav-list .sub-menu .sub-menu li {
    margin-bottom: 0;
}

.nsport-nav-list .sub-menu .sub-menu li a {
    display: block;
    padding: 4px 0;
    font-size: 14px;
    font-family:  Sans-serif;
    font-weight: 400;
    color: #555;
    text-decoration: none;
    text-transform: none;
    transition: color 0.2s;
}

.nsport-nav-list .sub-menu .sub-menu li a:hover {
    color: #d32f2f;
}

/* HTML Block inside submenu */
.nsport-nav-list .sub-menu--html-block {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    max-width: var(--wd-container-w);
    background: #fff;
    z-index: 9999;
    list-style: none;
    margin: 0;
    padding: 24px 15px;
    border-bottom: 1px solid #e8e8e8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.nsport-nav-list > li:hover > .sub-menu--html-block {
    display: block !important;
}

.nsport-nav-list .menu-item--html-block {
    width: 100%;
}

/* --- Mobile Panel --- */
/* Mobile panel - slide from left, dark bg */
.nsport-mobile-panel {
    position: fixed !important;
    top: 0 !important;
    left: -80vw !important;
    width: 80vw !important;
    max-width: 360px !important;
    height: 100vh !important;
    background: #333 !important;
    z-index: 99999 !important;
    overflow-y: auto !important;
    transition: left 0.3s ease !important;
    box-shadow: none !important;
    display: block !important;
}

body.nsport-mobile-menu-open .nsport-mobile-panel {
    left: 0 !important;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.4) !important;
}

/* Hide panel header (no logo/close button visible in design) */
.nsport-mobile-panel__header {
    display: none !important;
}

/* Mobile nav list */
.nsport-mobile-panel .nsport-mobile-nav-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 10px 0 0 0 !important;
}

.nsport-mobile-panel .nsport-mobile-nav-list > li {
    margin: 0 !important;
    padding: 0 !important;
}

.nsport-mobile-panel .nsport-mobile-nav-list li a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 15px 20px !important;
    font-size: 14px !important;
    font-family: 'Geogrotes semi-bold', Sans-serif !important;
    font-weight: 700 !important;
    color: #fff !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border: none !important;
    border-bottom: none !important;
    background: transparent !important;
    line-height: 1.3 !important;
}

.nsport-mobile-panel .nsport-mobile-nav-list li a:hover,
.nsport-mobile-panel .nsport-mobile-nav-list li a:active {
    color: #d32f2f !important;
}

/* Dropdown arrow for mobile items with children */
.nsport-mobile-panel .nsport-mobile-nav-list .menu-item-has-children > a::after {
    content: '' !important;
    display: inline-block !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 5px solid transparent !important;
    border-right: 5px solid transparent !important;
    border-top: 6px solid rgba(255, 255, 255, 0.6) !important;
    border-bottom: none !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
}

.nsport-mobile-panel .nsport-mobile-nav-list .menu-item-has-children.submenu-open > a::after {
    border-top: none !important;
    border-bottom: 6px solid rgba(255, 255, 255, 0.6) !important;
}

/* Sub-menu */
.nsport-mobile-panel .nsport-mobile-nav-list .sub-menu {
    display: none !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #2a2a2a !important;
}

.nsport-mobile-panel .nsport-mobile-nav-list .menu-item-has-children.submenu-open > .sub-menu {
    display: block !important;
}

.nsport-mobile-panel .nsport-mobile-nav-list .sub-menu li a {
    padding-left: 36px !important;
    font-weight: 400 !important;
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

.nsport-mobile-panel .nsport-mobile-nav-list .sub-menu li:not(.menu-item-has-children) > a::after {
    display: none !important;
}

/* 3rd-level sub-menu */
.nsport-mobile-panel .nsport-mobile-nav-list .sub-menu .sub-menu {
    display: none !important;
    background: #222 !important;
}

.nsport-mobile-panel .nsport-mobile-nav-list .sub-menu .menu-item-has-children.submenu-open > .sub-menu {
    display: block !important;
}

.nsport-mobile-panel .nsport-mobile-nav-list .sub-menu .sub-menu li a {
    padding-left: 52px !important;
    font-size: 12px !important;
}

/* Chevron for 2nd-level items with children */
.nsport-mobile-panel .nsport-mobile-nav-list .sub-menu > .menu-item-has-children > a::after {
    content: '' !important;
    display: inline-block !important;
    width: 0 !important;
    height: 0 !important;
    border-top: 5px solid transparent !important;
    border-bottom: 5px solid transparent !important;
    border-left: 6px solid rgba(255, 255, 255, 0.6) !important;
    border-right: none !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
    transition: transform 0.25s ease !important;
}

.nsport-mobile-panel .nsport-mobile-nav-list .sub-menu > .menu-item-has-children.submenu-open > a::after {
    transform: rotate(90deg) !important;
}

/* Overlay */
.nsport-mobile-overlay {
    display: none !important;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 99998 !important;
}

body.nsport-mobile-menu-open .nsport-mobile-overlay {
    display: block !important;
}

body.nsport-mobile-menu-open .sp-mobile-shopbar {
    z-index: 0 !important;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .nsport-header-nav {
        display: none !important;
    }

    .nsport-header-top__inner {
        justify-content: space-between;
    }

    /* Burger visible on mobile */
    .nsport-tool--burger {
        display: flex;
    }

    /* Logo next to burger */
    .nsport-logo {
        position: static;
        margin-left: 10px;
    }

    /* Tools stay on the right */
    .nsport-header-tools {
        gap: 14px;
    }

    /* Hide text labels on tools */
    .nsport-tool > span:not(.nsport-cart-count) {
        display: none;
    }

    /* Hide phone and account on mobile */
    .nsport-tool--phone,
    .nsport-tool--account {
        display: none;
    }

    /* Hide inline search expansion on mobile */
    .nsport-search-wrapper:hover .nsport-inline-search,
    .nsport-search-wrapper.active .nsport-inline-search {
        width: 0;
        opacity: 0;
        margin-right: 0;
    }

    .nsport-header-top {
        height: 52px;
    }
}

@media (max-width: 480px) {
    .nsport-header-tools {
        gap: 10px;
    }
}

/* Admin bar offset for sticky */
.admin-bar .nsport-custom-header.is-sticky .nsport-header-top {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .nsport-custom-header.is-sticky .nsport-header-top {
        top: 46px;
    }
}

/* ===================================
   Product Filters - [nsport_filters]
   =================================== */

.nsport-filters {
    background: #fff;
    padding: 20px 16px;
    max-width: 400px;
}

.nsport-filters__form {
    display: flex;
    flex-direction: column;
}

/* --- Price Range Slider --- */
.nsport-filters__price {
    margin-bottom: 16px;
    padding-bottom: 8px;
}

.nsport-filters__price-slider {
    position: relative;
    height: 30px;
    display: flex;
    align-items: center;
}

.nsport-filters__price-slider input[type="range"] {
    position: absolute;
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    z-index: 3;
    margin: 0;
    top: 50%;
    transform: translateY(-50%);
}

.nsport-filters__price-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #d32f2f;
    border: none;
    cursor: pointer;
    pointer-events: all;
    position: relative;
    z-index: 4;
}

.nsport-filters__price-slider input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #d32f2f;
    border: none;
    cursor: pointer;
    pointer-events: all;
}

.nsport-filters__track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    border-radius: 2px;
    transform: translateY(-50%);
    z-index: 1;
}

.nsport-filters__track-fill {
    position: absolute;
    top: 0;
    height: 100%;
    background: #d32f2f;
    border-radius: 2px;
}

.nsport-filters__price-label {
    margin-top: 12px;
    font-size: 15px;
    font-family: 'Geogrotes light', Sans-serif;
    font-weight: 400;
    color: #333;
    letter-spacing: 0.3px;
}

/* --- Filter Groups --- */
.nsport-filters__group {
    border-bottom: 1px solid #f0f0f0;
}

.nsport-filters__group:last-of-type {
    border-bottom: 1px solid #f0f0f0;
}

.nsport-filters__group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    cursor: pointer;
    user-select: none;
}

.nsport-filters__group-title {
    font-size: 16px;
    font-family: 'Geogrotes light', Sans-serif;
    color: #000;
}

.nsport-filters__group.has-active .nsport-filters__group-title {
    font-family: 'Geogrotes semi-bold', Sans-serif;
}

/* Icons container (dot + arrow) */
.nsport-filters__group-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Red dot indicator for active filters - with pulse */
.nsport-filters__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d32f2f;
    display: inline-block;
    animation: nsport-pulse 1.5s ease-in-out infinite;
}

.nsport-filters__group-arrow {
    display: flex;
    align-items: center;
    transition: transform 0.25s ease;
}

/* Arrow rotates down when open */
.nsport-filters__group.is-open .nsport-filters__group-arrow {
    transform: rotate(90deg);
}

/* Options hidden by default */
.nsport-filters__group-options {
    display: none;
    padding: 0 0 12px 0;
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d32f2f transparent;
}

.nsport-filters__group-options::-webkit-scrollbar {
    width: 6px;
}

.nsport-filters__group-options::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 0;
}

.nsport-filters__group-options::-webkit-scrollbar-thumb {
    background: #d32f2f;
    border-radius: 0;
}

.nsport-filters__group.is-open .nsport-filters__group-options {
    display: block;
}

/* Option items - red left border, no checkbox visible */
.nsport-filters__option {
    display: flex;
    align-items: center;
    padding: 10px 0 10px 14px;
    font-size: 14px;
    font-family: 'Geogrotes light', Sans-serif;
    font-weight: 400;
    color: #555;
    cursor: pointer;
    border-left: 3px solid transparent;
    border-bottom: 1px solid #f5f5f5;
    margin: 0;
    transition: background 0.15s;
}

.nsport-filters__option:last-of-type {
    border-bottom: none;
}

.nsport-filters__option:hover {
    background: #fafafa;
}

.nsport-filters__option.is-active {
    color: #d32f2f;
    font-weight: 600;
    border-left: 3px solid #d32f2f;
}

/* Hide the checkbox visually */
.nsport-filters__option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.nsport-filters__option-text {
    display: block;
}

/* --- Filter Button --- */
.nsport-filters__submit {
    margin-top: 16px;
}

.nsport-filters__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px 0;
    background: #e8919a;
    color: #fff;
    border: none;
    border-radius: 0;
    font-size: 16px;
    font-family: 'Geogrotes semi-bold', Sans-serif;
    font-weight: 600;
    text-transform: capitalize;
    cursor: pointer;
    transition: background 0.3s;
}

.nsport-filters__btn:hover {
    background: #d9808a;
}

/* Button turns red when filters are active */
.nsport-filters__form.has-active-filters .nsport-filters__btn {
    background: #d32f2f;
}

.nsport-filters__form.has-active-filters .nsport-filters__btn:hover {
    background: #b71c1c;
}

/* White dot on button - only visible when filters are active, with pulse */
.nsport-filters__btn-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    display: none;
}

.nsport-filters__form.has-active-filters .nsport-filters__btn-dot {
    display: inline-block;
    animation: nsport-pulse 1.5s ease-in-out infinite;
}

@keyframes nsport-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
}

/* --- Mobile Shop Bar - Fixed Bottom --- */
@media (max-width: 767px) {
    .sp-mobile-shopbar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 999;
        margin: 0;
        padding: 10px 16px;
    }

    .sp-mobile-shopbar > .e-con-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    /* Prevent content from being hidden behind the fixed bar */
    body.archive.woocommerce {
        padding-bottom: 70px;
    }
}

/* --- Single Product: Hide buttons until variation is selected (CSS fallback) --- */
.variations_form .woocommerce-variation-add-to-cart-disabled .single_add_to_cart_button,
.variations_form .woocommerce-variation-add-to-cart-disabled .wd-buy-now-btn {
    display: none;
}

/* --- Sale badge under title on single product --- */
.nsport-sale-badge {
    display: inline-block;
    margin-bottom: 10px;
    height: 30px;
    background: #e9242d !important;
    color: #fff;
    text-align: center !important;
    font-size: 14px !important; 
    font-family: 'Geogrotes semi-bold', Sans-serif !important;
    padding-top: 8px !important;
}

/* Variation label font */
.variations_form .label label {
    font-family: 'Geogrotes bold', Sans-serif !important;
}

.wd-product-wrapper .product-element-bottom .price del {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.5) !important;
    opacity: 0.6;
}

/* Mobile menu logo (Woodmart burger nav) */
.mobile-menu-logo {
    padding: 20px 20px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-menu-logo a {
    display: inline-block;
}

.mobile-menu-logo img {
    max-width: 160px;
    height: auto;
}

