/*
Theme Name: AV Pro Supply
Author: AV Pro
Version: 1.0
*/
:root {
    --bg-dark: #13181E;
    --blue-primary: #4B82FF;
    --text-white: #FFFFFF;
    --text-grey: #A0AEC0;
    --header-height-main: 100px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: #13181E;
    font-family: 'Inter', sans-serif;
    color: #FFFFFF;
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
}

html {
    overflow-x: hidden !important;
    width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Barlow', sans-serif;
}

/* Breadcrumbs */
.theme-breadcrumbs {
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Barlow', sans-serif;
}

.theme-breadcrumbs a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.theme-breadcrumbs a:hover {
    color: #35CDFF;
}

.theme-breadcrumbs .current {
    color: #35CDFF;
}

.theme-breadcrumbs .separator {
    opacity: 0.6;
}

.site-header {
    background: var(--bg-dark);
    font-family: 'Inter', sans-serif;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 16px;
}

.flex-row {
    display: flex;
    /* align-items: center; */
    justify-content: space-between;
}

/* Header Top Bar */
.header-top-bar {
    padding: 10px 0;
}

.topbar-menu {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.topbar-menu a {
    color: var(--text-grey);
    text-decoration: none;
    font-size: 14px;
}

.top-bar-right {
    display: flex;
    gap: 24px;
}

.header-phone,
.header-chat {
    color: var(--text-white);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Header Main */
.header-main {
    /* padding: 20px 0; */
}

.header-main-bar {
    background: #FFFFFF;
    height: 100px;
    border-radius: 30px;
    padding: 8px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* On Desktop, top row is just a flex child of the main bar */
.header-top-row {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-grow: 1;
}

.logo {
    flex-shrink: 0;
}

.header-logo-img {
    height: 48px;
}

/* Search Bar (Inside White Bar) */
.header-search-wrap {
    flex-grow: 2;
    max-width: 530px;
}

.search-input-group {
    display: flex;
    width: 100%;
    height: 52px;
    align-items: center;
    background: #1C242D;
    border-radius: 40px;
    padding: 4px;
}

.category-selector {
    background: #FFFFFF;
    height: 40px;
    width: 133px;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    white-space: nowrap;
    margin-right: 10px;
}

.search-field {
    background: transparent;
    border: none;
    padding: 0 10px;
    color: var(--text-white);
    flex-grow: 1;
    outline: none;
    font-size: 14px;
}

.search-submit {
    background: transparent;
    border: none;
    padding: 8px 15px;
    color: var(--text-white);
    cursor: pointer;
}

/* Header Icons (Inside White Bar) */
.header-icons-group {
    display: flex;
    gap: 5px;
    align-items: center;
}

.header-icons-mobile {
    display: none !important;
}

.header-icons-group .icon-link img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}

.icon-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    text-decoration: none;
    color: var(--bg-dark);
    position: relative;
}

.wishlist-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4b4b;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 15px;
    text-align: center;
}

.wishlist-btn.active {
    color: #ff4b4b !important;
}

.icon-heart.active img {
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%);
}

.icon-heart.active {
    color: #ff4b4b !important;
}

.wishlist-btn.loading {
    opacity: 0.5;
    pointer-events: none;
}

.icon-cart-btn {
    height: 40px;
    background: #1C242D;
    color: var(--text-white);
    padding: 0 16px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.icon-cart-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Header Secondary */
.header-secondary {
    padding: 15px 0;
}

.secondary-menu {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.secondary-menu a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
}

.brand-btn {
    background: var(--blue-primary);
    color: var(--text-white);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
}

@media (min-width: 1025px) {
    .header-mobile-top-bar {
        display: contents;
    }
}

/* Footer Desktop */
.site-footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding-top: 40px;
    font-family: 'Inter', sans-serif;
}

.site-footer .container {
    max-width: 1480px;
    padding: 0 40px;
}

.footer-top-panel {
    height: 141px;
    background: #FFFFFF;
    border-radius: 30px;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    color: var(--bg-dark);
}

.footer-logo {
    flex: 1;
}

.footer-logo img {
    height: 54px;
    display: block;
    margin-bottom: 4px;
}

.logo-subtitle {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 0;
    color: #1C242D;
}

.footer-contact-info {
    display: flex;
    gap: 60px;
    flex: 2;
    justify-content: flex-end;
}

.contact-item p {
    margin: 0 0 4px 0;
    font-size: 13px;
    line-height: 1.4;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
}

.footer-socials {
    display: flex;
    gap: 28px;
    margin-top: 24px;
}

.footer-socials img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.footer-main {
    padding-bottom: 40px;
}

.footer-content-grid {
    display: grid;
    grid-template-columns: 1.5fr 4fr;
    /* Payments on left, Nav wrapper on right */
    gap: 40px;
    margin-bottom: 60px;
}

.footer-nav-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-white);
}

.payments-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.payments-icons img {
    height: 32px;
    object-fit: contain;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 12px;
    list-style-type: none !important;
}

.mobile-only {
    display: none;
}

.footer-menu a {
    color: var(--text-grey);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-menu a:hover {
    color: var(--text-white);
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-grey);
}

.footer-policy-links {
    display: flex;
    gap: 30px;
}

.footer-policy-links a {
    color: inherit;
    text-decoration: none;
}

.footer-copyright {
    text-align: right;
}

@media (max-width: 1024px) {
    .footer-content-grid {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .footer-nav-wrapper {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
        order: 1;
    }

    .footer-payments-col {
        order: 2;
        text-align: left;
    }

    .payments-icons {
        justify-content: left;
    }

    .header-top-bar,
    .header-secondary {
        display: none;
    }

    .header-main {
        padding: 10px 0;
    }

    .container {
        padding: 0 15px;
    }

    .header-main-bar {
        background: transparent;
        height: auto;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
        border-radius: 0;
    }

    .header-mobile-top-bar {
        width: 100%;
        background: #FFFFFF;
        border-radius: 40px;
        padding: 10px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .header-logo-img {
        height: 32px;
        width: auto;
    }

    .header-icons-desktop {
        display: none !important;
    }

    .header-icons-mobile {
        display: flex !important;
        align-items: center;
        gap: 12px;
    }

    .header-icons-mobile .icon-link,
    .header-icons-mobile .icon-cart-btn {
        width: 32px !important;
        height: 32px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 50% !important;
        background: transparent;
        /* border: 1px solid #E2E8F0; */
        /* Subtle border for visibility on white bg */
    }

    .header-icons-mobile .icon-cart-btn {
        background: #1C242D !important;
        border: none !important;
    }

    .header-icons-mobile .icon-link img,
    .header-icons-mobile .icon-cart-btn img {
        width: 18px !important;
        height: 18px !important;
        object-fit: contain !important;
    }

    .cart-label {
        display: none;
    }

    .header-search-wrap {
        width: 100%;
        max-width: 100%;
    }

    .search-input-group {
        background: #1C242D;
        border-radius: 40px;
        padding: 4px;
        display: flex;
        align-items: center;
    }

    .category-selector {
        width: 44px;
        height: 44px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #FFFFFF;
        border-radius: 50%;
        margin-right: 10px;
        flex-shrink: 0;
    }

    .category-label {
        display: none;
    }

    .hamburger {
        font-size: 20px;
        color: #13181E;
    }

    .search-field {
        font-size: 14px;
    }

    /* Footer Mobile Placeholder Fix */
    .footer-top-inner {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .header-mobile-top-bar {
        padding: 8px 15px;
        border-radius: 30px;
    }

    .header-logo-img {
        height: 26px;
    }

    .header-icons-group {
        gap: 5px;
    }

    /* .icon-link {
        width: 32px;
        height: 32px;
    } */

    .icon-cart-btn {
        width: 32px;
        height: 32px;
    }

    .category-selector {
        width: 40px;
        height: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-column {
        text-align: center;
    }
}

.shipping-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
    color: #ffffff;
}

/* Общие ячейки */
.shipping-table th,
.shipping-table td {
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    font-size: 15px;
    background: transparent;
    /* важно */
}

/* Цвет только у первой строки */
.shipping-table thead th {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.06);
    letter-spacing: 0.5px;
}

/* ПК версия */
.trade-upgrade-banner img {
    content: url('/wp-content/uploads/2026/02/Frame-2131327844.png');
    width: 100%;
    height: auto;
}

/* Mobile версия */
@media (max-width: 768px) {
    .trade-upgrade-banner img {
        content: url('/wp-content/uploads/2026/02/Banner-Trade-Upgrade-mobile.png');
    }
}

/* ============================= */
/* WRAPPER */
/* ============================= */

.quote-form {
    width: 600px;
    max-width: 100%;
    padding: 32px;
    border-radius: 40px;
    background: #ffffff;
    border: 1px solid #E6E6E6;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
}

/* ============================= */
/* TITLE */
/* ============================= */

.quote-title {
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 120%;
    text-align: center;
    color: #1D1D1D;
    margin-bottom: 32px;
}

/* ============================= */
/* ROWS */
/* ============================= */

.quote-form .form-row.two-col {
    display: flex;
    gap: 20px;
}

.quote-form .form-field {
    flex: 1;
    margin-bottom: 20px;
}

/* ============================= */
/* LABELS */
/* ============================= */

.quote-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    line-height: 140%;
    color: #6F7172;
}

/* ============================= */
/* INPUTS */
/* ============================= */

.quote-form input,
.quote-form select {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid #D9D9D9;
    font-weight: 500;
    font-size: 12px;
    line-height: 140%;
    color: #9F9FA9;
    background: #ffffff;
    box-sizing: border-box;
}

.quote-form input::placeholder {
    color: #9F9FA9;
}

/* ============================= */
/* RADIO BUTTONS */
/* ============================= */

.quote-form .radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    row-gap: 18px;
    margin-top: 10px;
}

/* Remove default CF7 spacing */
.quote-form .radio-group .wpcf7-list-item {
    margin: 0;
}

/* Hide native radio */
.quote-form .radio-group input[type="radio"] {
    position: absolute;
    opacity: 0;
}

/* Radio label container */
.quote-form .radio-group .wpcf7-list-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* Radio text element */
.quote-form .radio-group .wpcf7-list-item-label {
    position: relative;
    padding-left: 30px;
    font-weight: 500;
    font-size: 16px;
    line-height: 140%;
    color: #1D1D1D;
}

/* Custom radio circle */
.quote-form .radio-group .wpcf7-list-item-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid #CFCFCF;
    border-radius: 50%;
    background: #ffffff;
    box-sizing: border-box;
}

/* Checked border */
.quote-form .radio-group input[type="radio"]:checked+.wpcf7-list-item-label::before {
    border-color: #35CDFF;
}

/* Perfect centered blue dot */
.quote-form .radio-group input[type="radio"]:checked+.wpcf7-list-item-label::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #35CDFF;
    border-radius: 50%;
}

/* ============================= */
/* CF7 ACCEPTANCE CHECKBOX FIX  */
/* ============================= */

/* Remove extra spacing */
.quote-form .checkbox-group .wpcf7-list-item {
    margin: 0;
}

/* Hide native checkbox */
.quote-form .checkbox-group input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

/* Label styling */
.quote-form .checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    position: relative;
}

/* Text container */
.quote-form .checkbox-group .wpcf7-list-item-label {
    position: relative;
    padding-left: 30px;
    font-size: 12px;
    line-height: 140%;
}

/* Custom box */
.quote-form .checkbox-group .wpcf7-list-item-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    border: 2px solid #CFCFCF;
    border-radius: 4px;
    background: #ffffff;
    box-sizing: border-box;
}

/* Checked background */
.quote-form .checkbox-group input[type="checkbox"]:checked~.wpcf7-list-item-label::before {
    background: #35CDFF;
    border-color: #35CDFF;
}

/* Checkmark */
.quote-form .checkbox-group input[type="checkbox"]:checked~.wpcf7-list-item-label::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 7px;
    width: 5px;
    height: 9px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Privacy link */
.quote-form .checkbox-group a {
    color: #0092CE;
    text-decoration: underline;
}

/* ============================= */
/* BUTTON */
/* ============================= */

.quote-form .form-submit input {
    width: 100%;
    max-width: 536px;
    height: 50px;
    border-radius: 100px;
    background: #4584FF;
    border: none;
    color: #ffffff;
    font-family: 'Barlow', sans-serif;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    display: block;
    margin: 24px auto 0 auto;
    transition: 0.2s ease;
}

.quote-form .form-submit input:hover {
    background: #3a72e0;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 768px) {

    .quote-form {
        width: 100%;
        padding: 20px;
        border-radius: 24px;
    }

    .quote-form .form-row.two-col {
        flex-direction: column;
        gap: 0;
    }

    .quote-form .radio-group {
        grid-template-columns: 1fr;
        row-gap: 16px;
    }

    .quote-form .form-submit input {
        max-width: 100%;
    }
}

/* ============================= */
/* CF7 RESPONSE MESSAGE */
/* ============================= */

.wpcf7-response-output {
    max-width: 600px;
    margin: 24px auto 0 auto !important;
    padding: 16px 20px !important;
    border-radius: 16px !important;
    background: #E8E8E8 !important;
    border: none !important;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 140%;
    color: #1D1D1D;
    text-align: center;
}

.quote-form textarea {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #D9D9D9;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    min-height: 120px;
    box-sizing: border-box;
}

.cart-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: none;
}

.cart-popup.active {
    display: block;
}

.cart-popup-content {
    position: absolute;
    right: 0;
    top: 0;
    width: 400px;
    height: 100%;
    background: white;
    padding: 20px;
    overflow-y: auto;
}

/* =============================
   SHOP GRID
============================= */

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

/* убираем стандартный ul Woo */
.shop-products ul.products {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* карточка товара */
.shop-products .product {
    display: flex;
    flex-direction: column;
}

/* чтобы изображения не ломались */
.shop-products .product img {
    width: 100%;
    height: auto;
}

/* пагинация */
.shop-products nav.woocommerce-pagination {
    margin-top: 40px;
    text-align: center;
}

/* =============================
   BRANDS PAGE
============================= */

.brands-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.brand-card {
    padding: 20px;
    background: #111827;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s ease;
}

.brand-card a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.brand-card:hover {
    background: #1f2937;
}

/* =============================
   BRANDS PAGE FULL
============================= */

.brands-title {
    font-size: 48px;
    margin-bottom: 40px;
}

.brands-alphabet {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.brands-alphabet a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    opacity: 0.6;
}

.brands-alphabet a:hover {
    opacity: 1;
}

.brands-search {
    margin-bottom: 50px;
}

.brands-search input {
    width: 300px;
    padding: 12px 20px;
    border-radius: 30px;
    border: none;
    background: #1f2937;
    color: white;
}

.brand-letter {
    font-size: 32px;
    margin: 60px 0 30px;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
}

.brand-card {
    background: #f5f5f5;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    transition: 0.3s ease;
}

.brand-card img {
    max-width: 100%;
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
}

.brand-name {
    display: block;
    font-size: 14px;
    color: #000;
}

.brand-card:hover {
    transform: translateY(-5px);
}

/* =============================
   HEADER SECONDARY
============================= */

.header-secondary {
    padding: 12px 0;
}

.header-secondary .flex-row {
    justify-content: space-between;
    align-items: center;
}

.secondary-menu {
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.secondary-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.header-secondary-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.my-account-link {
    color: var(--text-grey);
    text-decoration: none;
    font-size: 14px;
}

.product-card-image {
    position: relative;
}

.wishlist-btn {
    background: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

/* Standalone wishlist button (in standard cards) */
.product-card .wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
}

.wishlist-btn:active {
    transform: scale(0.9);
}

.wishlist-btn.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Cart Button States */
.add-to-cart-circle.added {
    background: transparent !important;
    border: 1px solid #35CDFF !important;
}

.add-to-cart-circle.added .cart-icon {
    filter: invert(61%) sepia(87%) saturate(1458%) hue-rotate(167deg) brightness(101%) contrast(101%);
}

.add-to-cart-circle.added .cart-added-badge {
    display: block !important;
}

.add-to-cart-circle.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ==========================================================================
   CATEGORIES PAGE & MODULAR BLOCKS (RESPONSIVE REFINEMENTS)
   ========================================================================== */

/* Global Layout & Padding */
.categories-page.container {
    max-width: 1440px;
    margin: 0 auto;
    background: #13181E;
    padding: 20px 0 40px 0;
    /* Reset padding to allow full width content */
    overflow-x: visible !important;
    /* Allow arrows to show outside on desktop */
    position: relative;
    box-sizing: border-box;
}

.categories-page.container>* {
    max-width: 1440px;
    /* Aligned with standard site container */
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

.categories-header {
    margin-bottom: 50px;
}

.categories-header h1 {
    color: #fff;
    font-family: 'Barlow';
    font-weight: 700;
    font-size: 48px;
    margin-bottom: 10px;
}

.categories-slider-wrap {
    position: relative;
    margin: 0 -15px 120px -15px;
}

.block-wrapper {
    margin-bottom: 120px;
}

@media (max-width: 1200px) {
    .categories-page.container {
        padding: 40px 40px 0 40px;
    }

    .block-wrapper,
    .categories-slider-wrap {
        margin-bottom: 80px;
    }

    .categories-header h1 {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .categories-page.container {
        padding: 30px 20px 0 20px;
    }

    .block-wrapper,
    .categories-slider-wrap {
        margin-bottom: 60px;
    }

    .categories-header h1 {
        font-size: 32px;
    }

    .categories-header {
        margin-bottom: 30px;
    }
}

/* Category Slider 2-Row Fix */
.categories-slider {
    display: block !important;
    opacity: 1 !important;
}

.categories-slider .slick-slide>div {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
}

.category-card {
    background: #fff;
    border-radius: 20px;
    height: 180px !important;
    width: 100%;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px !important;
    /* Fixed: added consistent gap */
}

/* Slick Arrows Refinement */
.slick-prev,
.slick-next {
    width: 40px !important;
    height: 40px !important;
    /* background: #FFFFFF !important; */
    z-index: 100 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: none !important;
    border-radius: 50% !important;
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important; */
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.slick-prev {
    left: -50px !important;
    /* Fixed: outside of 1440px container */
}

.slick-next {
    right: -50px !important;
    /* Fixed: outside of 1440px container */
}

.slick-prev:before,
.slick-next:before {
    content: '' !important;
    display: block;
    width: 14px;
    height: 14px;
    border-left: 3px solid #35CDFF;
    border-bottom: 3px solid #35CDFF;
}

.slick-prev:before {
    transform: rotate(45deg);
    margin-left: 5px;
}

.slick-next:before {
    transform: rotate(-135deg);
    margin-right: 5px;
}

/* Icon Features */
.features-wrapper {
    background: #FFFFFF;
    border-radius: 30px;
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.feature-item.border-left {
    border-left: 1px solid #E2E8F0;
    padding-left: 30px;
}

@media (max-width: 1024px) {
    .features-wrapper {
        grid-template-columns: repeat(2, 1fr);
        padding: 30px;
    }

    .feature-item.border-left {
        border-left: none;
        padding-left: 0;
    }
}

@media (max-width: 640px) {
    .features-wrapper {
        grid-template-columns: repeat(2, 1fr);
        /* Mobile 2x2 Grid (4 squares) */
        padding: 20px;
        gap: 15px;
    }
}

/* Bottom Banners */
.banners-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.promo-banner {
    border-radius: 30px;
    padding: 50px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 280px;
}

.banner-blue {
    background: radial-gradient(100% 224.45% at 0% 100%, #1939AF 0%, #080B0F 100%);
}

.banner-dark {
    background: radial-gradient(100% 224.45% at 0% 100%, #1939AF 0%, #080B0F 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.banner-content {
    z-index: 2;
    position: relative;
}

.banner-subtitle {
    display: block;
    font-size: 14px;
    color: #FFFFFF;
    opacity: 0.8;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

.banner-title {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 24px;
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    color: #FFFFFF;
    max-width: 400px;
}

.view-all-btn {
    display: inline-block;
    background: #4B82FF;
    color: #FFFFFF;
    padding: 12px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s ease;
}

.view-all-btn:hover {
    background: #366BDB;
}

.banner-image {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60%;
    height: 100%;
    z-index: 1;
}

.banner-image img {
    position: absolute;
    bottom: 0;
    right: 0;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Banner specific adjustments */
.banner-blue .banner-image img {
    bottom: 20px;
    right: 20px;
    max-width: 80%;
}

.banner-dark .banner-image img {
    bottom: 0;
    right: 0;
    max-width: 90%;
}

@media (max-width: 1024px) {
    .banners-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .promo-banner {
        padding: 30px 20px;
        min-height: auto;
    }

    .banner-content {
        max-width: 65%;
        /* Leave room for image */
    }

    .banner-title {
        font-size: 24px;
        /* Smaller for mobile */
        margin-bottom: 15px;
    }

    .banner-image {
        display: block;
        /* Show on mobile */
        width: 45%;
        height: auto;
    }

    .banner-image img {
        max-width: 100%;
        bottom: 0px;
        right: 0px;
    }

    .banner-blue .banner-image img {
        bottom: 15px;
        right: 15px;
    }
}

/* Special Offers */
.offers-side-panel {
    background: linear-gradient(180deg, #080B0F 0%, #1939AF 100%);
    border-radius: 40px;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 430px;
}

.custom-product-card {
    background: #FFFFFF;
    border-radius: 40px;
    padding: 30px;
    height: 430px;
    display: flex;
    flex-direction: column;
    position: relative;
}

@media (max-width: 768px) {

    .offers-side-panel,
    .custom-product-card {
        height: 425px;
        padding: 40px 25px;
        border-radius: 30px;
    }
}

/* Feature Icon & Text Styles (Restored & Fixed Visibility) */
.feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    color: #35CDFF;
    /* Stroke color */
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    stroke: #35CDFF !important;
    /* Ensure visibility */
}

.feature-text h4 {
    margin: 0 0 5px 0;
    font-family: 'Barlow';
    font-weight: 700;
    font-size: 16px;
    color: #13181E !important;
    /* Fixed: was missing or white */
}

.feature-text p {
    margin: 0;
    font-family: 'Inter';
    font-size: 12px;
    color: #6F7172 !important;
    /* Fixed: was missing or white */
    line-height: 1.4;
}

/* Brand Slider Styles (Restored & Fixed) */
.brand-title {
    color: #FFFFFF;
    font-family: 'Barlow';
    font-weight: 700;
    font-size: 32px;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.brand-title .view-all-link {
    float: right;
    font-size: 14px;
    text-transform: none;
    color: #35CDFF;
    text-decoration: none;
    margin-top: 15px;
}

.brand-ticker-wrap {
    background: #FFFFFF !important;
    /* Fixed: restored white background */
    border-radius: 30px !important;
    padding: 40px 20px !important;
    overflow: hidden !important;
    width: 100% !important;
    position: relative;
    max-width: 100vw;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
}

.brand-ticker {
    display: flex;
    align-items: center;
}

.brand-ticker .slick-track {
    transition-timing-function: linear !important;
    /* Essential for smooth marquee */
}

.brand-ticker .slick-track {
    display: flex !important;
    align-items: center;
}

.brand-item img {
    filter: grayscale(0%);
    transition: filter 0.3s ease;
    max-width: 140px;
    max-height: 60px;
    object-fit: contain;
}

.brand-item img:hover {
    filter: grayscale(0%);
}

.brand-item img {
    opacity: 0.8;
}

.brand-item img:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .brand-title {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .brand-ticker-wrap {
        padding: 20px 10px;
        border-radius: 20px;
    }

    .brand-title .view-all-link {
        margin-top: 8px;
    }
}

/* Fix Overflow & Mobile Grid */
.features-wrapper {
    width: 100% !important;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .categories-page.container {
        padding: 30px 15px 40px 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }

    .categories-slider-wrap {
        margin: 0 !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    .features-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
        padding: 0 !important;
        gap: 12px !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        width: 100% !important;
    }

    .feature-item {
        background: #FFFFFF !important;
        border-radius: 20px !important;
        padding: 20px 8px !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
        min-height: 140px;
        display: flex !important;
        justify-content: center;
        align-items: center;
    }

    .feature-item.border-left {
        border-left: none !important;
    }

    /* Brand Ticker Mobile Fix - Restoration of Marquee */
    .brand-ticker-section {
        padding: 0 !important;
        overflow: hidden !important;
    }

    .brand-ticker .slick-track {
        display: flex !important;
        align-items: center !important;
        /* Marquee restoration: removed transform:none and flex-wrap:wrap */
    }

    .brand-item {
        margin: 0 40px !important;
        /* Consistent spacing for ticker */
        flex-shrink: 0;
    }

    .brand-item span {
        font-size: 14px !important;
        opacity: 0.6 !important;
        color: #13181E !important;
        /* Fixed: dark text on white background */
        white-space: nowrap;
        text-transform: uppercase;
    }

    .categories-page.container {
        padding: 30px 0 0 0 !important;
        overflow-x: hidden !important;
        /* Prevent scroll on mobile */
    }

    .categories-page.container>* {
        padding-left: 20px;
        padding-right: 20px;
    }

    .categories-slider .slick-slide {
        padding: 0 6px !important;
        /* Horizontal gap between squares */
    }

    .category-card {
        margin-bottom: 20px !important;
        /* Vertical gap between squares */
        height: 160px !important;
        /* Slightly smaller to fit better in 2x2 grid */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
        /* Match feature icons shadow */
    }

    /* Mobile arrows remain hidden/inside if they appear, but main.js disables them */
    .slick-prev {
        left: 5px !important;
    }

    .slick-next {
        right: 5px !important;
    }
}

/* Global Slider Overflow Fix */
.slick-list {
    overflow: hidden !important;
    width: 100% !important;
}

.slick-track {
    display: flex !important;
}

.slick-dots {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 20px 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* ==========================================================================
   CUSTOM PRODUCT GRID & PAGINATION
   ========================================================================== */

.custom-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
    margin-bottom: 60px;
    margin-top: 40px;
}

.custom-grid .product-item {
    display: flex;
    flex-direction: column;
}

/* Pagination Styling */
.categories-page .woocommerce-pagination {
    margin: 40px 0 60px 0;
    text-align: center;
}

.categories-page .woocommerce-pagination ul {
    display: inline-flex !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 10px !important;
    border: none !important;
}

.categories-page .woocommerce-pagination ul li {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

.categories-page .woocommerce-pagination ul li a,
.categories-page .woocommerce-pagination ul li span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    background: #FFFFFF !important;
    color: #13181E !important;
    text-decoration: none !important;
    border-radius: 12px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    border: none !important;
    padding: 0 !important;
}

.categories-page .woocommerce-pagination ul li span.current {
    background: #35CDFF !important;
    color: #FFFFFF !important;
}

.categories-page .woocommerce-pagination ul li a:hover {
    background: #E2E8F0 !important;
}

@media (max-width: 1200px) {
    .custom-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 992px) {
    .custom-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .custom-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* ============================= */
/* SHOP FILTERS & LIST VIEW */
/* ============================= */

.subcategory-layout {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
}

/* Sidebar */
.shop-filters-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #1C242D;
    border-radius: 24px;
    padding: 24px;
    height: fit-content;
}

.filter-section {
    margin-bottom: 30px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-title {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #FFFFFF;
    margin-bottom: 20px;
    display: block;
}

/* Custom Checkbox */
.custom-checkbox {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
    margin-bottom: 20px;
    cursor: pointer;
    font-family: 'Inter', sans-serif !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    letter-spacing: -0.02em !important;
    color: #FFFFFF !important;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.custom-checkbox:hover input~.checkmark {
    border-color: #35CDFF;
}

.custom-checkbox input:checked~.checkmark {
    background-color: #35CDFF;
    border-color: #35CDFF;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked~.checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox .label-text {
    vertical-align: middle;
    color: #FFFFFF !important;
}

/* Brand Search */
.brand-search-wrap {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.brand-search-wrap input {
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    width: 100%;
    outline: none;
}

/* Icons styling within brand search */
.brand-search-wrap .search-icon {
    width: 16px;
    height: 16px;
    opacity: 0.5;
}

.brand-list {
    max-height: 240px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.show-all-brands {
    background: transparent;
    border: none;
    color: #35CDFF;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

/* Price Inputs */
.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.price-input-wrap {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
}

.price-input-wrap span {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

.price-input-wrap input {
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    width: 100%;
    outline: none;
    text-align: left;
}

.price-to {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

/* Custom Toggle */
.stock-toggle-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.custom-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.custom-toggle input:checked~.toggle-slider {
    background-color: #35CDFF;
}

.custom-toggle input:checked~.toggle-slider:before {
    transform: translateX(20px);
}

/* List View Product Item */
.products-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.product-item-horizontal {
    background: #FFFFFF;
    border-radius: 30px;
    padding: 25px;
    display: flex;
    gap: 30px;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item-horizontal:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.horizontal-img-wrap {
    width: 180px;
    height: 180px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.horizontal-img-wrap img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.horizontal-info {
    flex-grow: 1;
}

.horizontal-info .brand-name {
    color: #6F7172;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    margin-bottom: 8px;
}

.horizontal-info h3 {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #13181E;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.horizontal-info h3 a {
    color: inherit;
    text-decoration: none;
}

.horizontal-info .product-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6F7172;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
}

.meta-item img {
    width: 16px;
    height: 16px;
}

.horizontal-description {
    color: #6F7172;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.horizontal-action {
    width: 220px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 20px;
    border-left: 1px solid #F0F2F5;
    padding-left: 30px;
}

.horizontal-price {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #13181E;
    text-align: right;
}

.horizontal-price del {
    display: block;
    font-size: 16px;
    color: rgba(19, 24, 30, 0.4);
    font-weight: 400;
}

/* Removing redundant styles as they are defined later in the file */

/* Mobile Adjustments for horizontal layout */
.mobile-filters-trigger {
    display: none;
    /* Desktop hidden */
}

@media (max-width: 1024px) {
    .subcategory-layout {
        flex-direction: column;
        gap: 20px;
    }

    .shop-filters-sidebar {
        display: none !important;
        /* Hidden on tablet if no modal logic yet */
    }

    .mobile-filters-trigger {
        display: flex;
        width: 100%;
        background: #1C242D;
        padding: 15px 25px;
        border-radius: 20px;
        color: #FFFFFF;
        font-family: 'Barlow', sans-serif;
        font-weight: 600;
        font-size: 16px;
        margin-bottom: 20px;
        align-items: center;
        justify-content: space-between;
        border: none;
        cursor: pointer;
    }

    .product-item-horizontal {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        gap: 20px;
    }

    .horizontal-img-wrap {
        width: 100%;
        height: 220px;
    }

    .horizontal-info h3 {
        font-size: 18px;
    }

    .horizontal-action {
        width: 100%;
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #F0F2F5;
        padding-top: 20px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .horizontal-price {
        text-align: left;
        font-size: 24px;
    }

    .horizontal-btns .add-to-cart-horizontal {
        padding: 0 12px;
    }
}

/* Close media query here */

/* Global Subcategory Styles */
.subcategory-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
    align-items: center;
}

.tag-btn {
    background: #1C242D;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.tag-btn:hover,
.tag-btn.active {
    background: #4B82FF;
    border-color: #4B82FF;
}

.show-more-tags {
    background: transparent;
    border: none;
    color: #35CDFF;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
}

.filter-sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.active-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-grow: 1;
}

.active-filter-tag {
    background: #35CDFF;
    color: #FFFFFF;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.active-filter-tag .remove-filter {
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.clear-all-tags {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-all-tags:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Pagination Styles */
.woocommerce-pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.woocommerce-pagination-wrap ul {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
}

.woocommerce-pagination-wrap ul li a,
.woocommerce-pagination-wrap ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #1C242D;
    color: #FFFFFF;
    border-radius: 40px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
}

.woocommerce-pagination-wrap ul li a:hover {
    background: #35CDFF;
}

.woocommerce-pagination-wrap ul li span.current {
    background: #35CDFF;
}

/* Slider Design */
.price-slider-wrap {
    margin: 35px 0 20px 0;
    padding: 0 10px;
}

#price-slider {
    height: 6px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    border-radius: 10px !important;
    position: relative !important;
    margin: 0 10px !important;
}

#price-slider .ui-slider-handle {
    width: 20px !important;
    height: 20px !important;
    background: #35CDFF !important;
    border: 2px solid #FFFFFF !important;
    border-radius: 50% !important;
    top: 50% !important;
    margin-top: -10px !important;
    margin-left: -10px !important;
    cursor: pointer !important;
    outline: none !important;
    z-index: 10 !important;
    position: absolute !important;
    display: block !important;
    box-shadow: 0 0 10px rgba(53, 205, 255, 0.5) !important;
    transform: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

#price-slider .ui-slider-handle:hover,
#price-slider .ui-slider-handle.ui-state-active {
    transform: scale(1.1) !important;
    box-shadow: 0 0 15px rgba(53, 205, 255, 0.8) !important;
}

#price-slider .ui-slider-range {
    background: #35CDFF !important;
    border-radius: 10px !important;
    height: 100% !important;
    top: 0 !important;
    position: absolute !important;
}

.price-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    margin-bottom: 5px;
    color: #35CDFF;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

/* Filter Buttons & Header */
.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: #1C242D;
    padding: 15px 20px;
    border-radius: 12px;
}

.title-clear {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filters-header span {
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #FFFFFF;
}

.clear-all-filters {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #FFFFFF;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}

.close-filters {
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.apply-filters-btn {
    width: 100%;
    background: #4B82FF;
    color: #FFFFFF;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.apply-filters-btn:hover {
    background: #3A71EE;
}

.filter-section .filter-title {
    color: #FFFFFF;
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.label-text {
    color: #FFFFFF !important;
}

.active-filter-tag .remove-filter {
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.sort-by-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.sort-label {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.sort-select {
    position: relative;
    width: 180px;
}

.sort-select select {
    display: none;
}

.select-selected {
    background-color: #1C242D;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.select-selected:after {
    content: "";
    position: absolute;
    top: 18px;
    right: 15px;
    border: 5px solid transparent;
    border-color: #fff transparent transparent transparent;
}

.select-items {
    position: absolute;
    background-color: #1C242D;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    border-radius: 12px;
    margin-top: 5px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.select-items div {
    color: #FFFFFF;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.select-items div:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.select-hide {
    display: none;
}

.product-item-horizontal {
    background: #FFFFFF;
    border-radius: 30px;
    padding: 30px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
    position: relative;
}

.horizontal-img-wrap {
    width: 240px;
    height: 240px;
    position: relative;
    background: #F8F9FB;
    border-radius: 20px;
}

.badges-top-left {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.badge-item {
    padding: 6px 15px;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 11px;
    color: #FFFFFF;
    white-space: nowrap;
}

.badge-item.sale-badge {
    background: #FF355E;
}

.badge-item.featured-badge {
    background: #4B82FF;
}

.horizontal-info {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.horizontal-info h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.product-details-meta {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-item {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    display: flex;
    gap: 10px;
}

.detail-label {
    color: rgba(19, 24, 30, 0.4);
    font-weight: 500;
}

.detail-value {
    color: #13181E;
    font-weight: 600;
}

.sku-copy {
    display: flex;
    align-items: center;
}

.horizontal-price-row {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.price-container {
    display: flex;
    flex-direction: column;
}

.horizontal-price {
    font-size: 32px;
    color: #13181E;
    font-weight: 700;
}

.out-of-stock-label {
    color: rgba(19, 24, 30, 0.4);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.horizontal-btns {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Gap from design */
    margin-left: auto;
}

.wishlist-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-btn img {
    width: 44px;
    /* Matching button height */
    height: 44px;
}

.wishlist-btn:hover {
    transform: scale(1.1);
}

.add-to-cart-horizontal {
    background: #4B82FF;
    color: #FFFFFF;
    border: none;
    padding: 20px 0px;
    border-radius: 100px;
    /* Pill shape from design */
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 118px;
    /* Fixed width from design */
    height: 44px;
    /* Fixed height from design */
}

.add-to-cart-horizontal:hover {
    background: #3A71EE;
}

.add-to-cart-horizontal.added {
    background: #1C242D;
}

.woocommerce-pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.woocommerce-pagination ul {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
}

/* Mobile Filter Fixes */
@media (max-width: 1024px) {
    .shop-filters-sidebar {
        display: none;
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: #13181E;
        z-index: 99999;
        padding: 20px;
        overflow-y: auto;
    }

    .shop-filters-sidebar.active {
        display: block !important;
    }

    .shop-filters-sidebar .filter-section {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 35px;
        margin-bottom: 35px;
    }

    .shop-filters-sidebar .filter-section:last-of-type {
        border-bottom: none;
    }

    .shop-filters-sidebar .filter-title {
        color: #FFFFFF !important;
        margin-top: 10px;
        margin-bottom: 20px;
    }

    .shop-filters-sidebar .label-text {
        color: #FFFFFF !important;
        opacity: 1 !important;
    }

    .shop-filters-sidebar .custom-checkbox {
        margin-bottom: 20px !important;
    }

    .shop-filters-sidebar .custom-checkbox .checkmark {
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    .product-item-horizontal {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .horizontal-img-wrap {
        width: 100%;
        height: 240px;
        background: none;
    }

    .horizontal-price-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
        margin-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 20px;
    }

    .horizontal-btns {
        margin-left: auto !important;
        width: auto !important;
        display: flex !important;
        justify-content: flex-end !important;
    }

    .filter-sort-bar {
        flex-direction: column;
        align-items: stretch;
    }
}