
/* =========================================================
   ITEMSIFY 2.0 — COMPLETE PREMIUM SHOP STYLESHEET
   Version: 2.2
   Theme: Itemsify Kadence Child
   File: assets/css/shop.css

   Includes:
   01. Brand Variables
   02. Shop Banner
   03. Category Navigation
   04. Sidebar Filters
   05. Sorting and Results
   06. Product Grid
   07. Product Cards
   08. Price, Buttons, Badges
   09. Pagination
   10. Responsive Layout
========================================================= */


/* =========================================================
   01 — GLOBAL SHOP VARIABLES
========================================================= */

body.post-type-archive-product,
body.tax-product_cat,
body.tax-product_tag {
    --if-navy: #172554;
    --if-purple: #7C3AED;
    --if-purple-dark: #6D28D9;
    --if-text: #0F172A;
    --if-muted: #64748B;
    --if-border: #E7EAF2;
    --if-light: #F5F3FF;
    --if-white: #FFFFFF;
}


/* =========================================================
   02 — PREMIUM SHOP INTRO BANNER
========================================================= */

.itemsify-shop-intro {
    position: relative;
    width: 100%;
    margin: 0 0 32px;
    padding: 0;
    overflow: hidden;
    isolation: isolate;
    border-radius: 24px;
    background: linear-gradient(
        125deg,
        #FAF7FF 0%,
        #F5F0FF 50%,
        #EDE4FF 100%
    );
}

.itemsify-shop-intro::before {
    content: "";
    position: absolute;
    right: -75px;
    top: -95px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.075);
    pointer-events: none;
}

.itemsify-shop-intro::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -180px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.035);
    pointer-events: none;
}

.itemsify-shop-intro .isi-inner {
    position: relative;
    z-index: 1;
    padding: 38px 38px 35px;
}

.itemsify-shop-intro .isi-copy {
    max-width: 780px;
}

.itemsify-shop-intro .isi-eyebrow {
    display: block;
    margin-bottom: 15px;
    color: #7C3AED;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.itemsify-shop-intro h2 {
    margin: 0 0 16px;
    color: #172554;
    font-size: clamp(30px, 3.4vw, 48px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.13;
}

.itemsify-shop-intro h2 span {
    color: #7C3AED;
}

.itemsify-shop-intro .isi-copy p {
    max-width: 690px;
    margin: 0;
    color: #64748B;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
}


/* =========================================================
   03 — DYNAMIC SHOP CATEGORY NAVIGATION
========================================================= */

.itemsify-shop-intro .isi-categories {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 26px;
}

.itemsify-shop-intro .isi-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 9px 16px;
    border: 1px solid #E8DEFF;
    border-radius: 100px;
    background: #FFFFFF;
    color: #334155;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.itemsify-shop-intro .isi-chip:hover,
.itemsify-shop-intro .isi-chip:focus-visible {
    border-color: #7C3AED;
    background: #F5F3FF;
    color: #7C3AED;
}

.itemsify-shop-intro .isi-chip-active {
    border-color: #7C3AED;
    background: #7C3AED;
    color: #FFFFFF;
}

.itemsify-shop-intro .isi-chip-active:hover {
    background: #6D28D9;
    color: #FFFFFF;
}


/* =========================================================
   04 — SHOP MAIN CONTENT AND SIDEBAR
========================================================= */

body.post-type-archive-product .content-area,
body.tax-product_cat .content-area,
body.tax-product_tag .content-area {
    padding-bottom: 60px;
}

/* Sidebar root */

body.post-type-archive-product #secondary,
body.tax-product_cat #secondary,
body.tax-product_tag #secondary {
    color: #172554;
    font-size: 14px;
}

/* Sidebar widget cards */

body.post-type-archive-product #secondary .widget,
body.tax-product_cat #secondary .widget,
body.tax-product_tag #secondary .widget {
    box-sizing: border-box;
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #E7EAF2;
    border-radius: 15px;
    background: #FFFFFF;
    box-shadow: 0 4px 20px rgba(23, 37, 84, 0.035);
}

/* Widget headings — standard selectors */

body.post-type-archive-product #secondary .widget-title,
body.tax-product_cat #secondary .widget-title,
body.tax-product_tag #secondary .widget-title,
body.post-type-archive-product #secondary .wp-block-heading,
body.tax-product_cat #secondary .wp-block-heading,
body.tax-product_tag #secondary .wp-block-heading {
    margin: 0 0 15px;
    color: #172554;
    font-size: 17px;
    font-weight: 750;
    line-height: 1.4;
}

/* Gutenberg heading fallback */

body.post-type-archive-product #secondary .widget h2,
body.tax-product_cat #secondary .widget h2,
body.tax-product_tag #secondary .widget h2,
body.post-type-archive-product #secondary .widget h3,
body.tax-product_cat #secondary .widget h3,
body.tax-product_tag #secondary .widget h3 {
    color: #172554;
    font-size: 17px;
    font-weight: 750;
    line-height: 1.4;
}

/* Sidebar links */

body.post-type-archive-product #secondary a,
body.tax-product_cat #secondary a,
body.tax-product_tag #secondary a {
    color: #334155;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
}

body.post-type-archive-product #secondary a:hover,
body.tax-product_cat #secondary a:hover,
body.tax-product_tag #secondary a:hover {
    color: #7C3AED;
}

/* Sidebar lists */

body.post-type-archive-product #secondary ul,
body.tax-product_cat #secondary ul,
body.tax-product_tag #secondary ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

body.post-type-archive-product #secondary li,
body.tax-product_cat #secondary li,
body.tax-product_tag #secondary li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Native and block filter checkboxes */

body.post-type-archive-product #secondary input[type="checkbox"],
body.tax-product_cat #secondary input[type="checkbox"],
body.tax-product_tag #secondary input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #7C3AED;
    cursor: pointer;
}

/* Filter labels */

body.post-type-archive-product #secondary label,
body.tax-product_cat #secondary label,
body.tax-product_tag #secondary label {
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
}

/* Widget buttons */

body.post-type-archive-product #secondary button,
body.tax-product_cat #secondary button,
body.tax-product_tag #secondary button {
    border-radius: 9px;
}

/* Filter count text */

body.post-type-archive-product #secondary .wc-block-product-categories-list-item-count,
body.tax-product_cat #secondary .wc-block-product-categories-list-item-count,
body.tax-product_tag #secondary .wc-block-product-categories-list-item-count {
    color: #94A3B8;
    font-size: 12px;
}

/* Price filter button */

body.post-type-archive-product #secondary .wp-block-woocommerce-price-filter button,
body.tax-product_cat #secondary .wp-block-woocommerce-price-filter button,
body.tax-product_tag #secondary .wp-block-woocommerce-price-filter button {
    background: #7C3AED;
    color: #FFFFFF;
}


/* =========================================================
   05 — SORTING BAR AND RESULTS COUNT
========================================================= */

body.post-type-archive-product .woocommerce-result-count,
body.tax-product_cat .woocommerce-result-count,
body.tax-product_tag .woocommerce-result-count {
    margin: 0 0 25px;
    color: #64748B;
    font-size: 13px;
    line-height: 1.6;
}

body.post-type-archive-product .woocommerce-ordering,
body.tax-product_cat .woocommerce-ordering,
body.tax-product_tag .woocommerce-ordering {
    margin: 0 0 25px;
}

body.post-type-archive-product .woocommerce-ordering select,
body.tax-product_cat .woocommerce-ordering select,
body.tax-product_tag .woocommerce-ordering select {
    box-sizing: border-box;
    min-height: 43px;
    padding: 10px 35px 10px 14px;
    border: 1px solid #E7EAF2;
    border-radius: 10px;
    background-color: #FFFFFF;
    color: #172554;
    font-size: 13px;
    font-weight: 550;
    cursor: pointer;
}

body.post-type-archive-product .woocommerce-ordering select:focus,
body.tax-product_cat .woocommerce-ordering select:focus,
body.tax-product_tag .woocommerce-ordering select:focus {
    outline: 2px solid #DDD6FE;
    outline-offset: 2px;
}


/* =========================================================
   06 — RESPONSIVE WOOCOMMERCE PRODUCT GRID
========================================================= */

body.post-type-archive-product .woocommerce ul.products,
body.tax-product_cat .woocommerce ul.products,
body.tax-product_tag .woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
    margin: 0 0 35px;
    padding: 0;
    list-style: none;
}

/* Override default WooCommerce float layout */

body.post-type-archive-product .woocommerce ul.products li.product,
body.tax-product_cat .woocommerce ul.products li.product,
body.tax-product_tag .woocommerce ul.products li.product {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    float: none !important;
    clear: none !important;
    width: auto !important;
    max-width: none;
    min-width: 0;
    margin: 0 !important;
    padding: 12px;
    border: 1px solid #E7EAF2;
    border-radius: 16px;
    background: #FFFFFF;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(23, 37, 84, 0.035);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

body.post-type-archive-product .woocommerce ul.products li.product:hover,
body.tax-product_cat .woocommerce ul.products li.product:hover,
body.tax-product_tag .woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    border-color: #DDD6FE;
    box-shadow: 0 15px 35px rgba(23, 37, 84, 0.085);
}


/* =========================================================
   07 — PRODUCT IMAGE AND TITLE
========================================================= */

/* Product image */

body.post-type-archive-product .woocommerce ul.products li.product img,
body.tax-product_cat .woocommerce ul.products li.product img,
body.tax-product_tag .woocommerce ul.products li.product img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin: 0 0 14px;
    border-radius: 10px;
    background: #F8FAFC;
}

/* Product name — no :is() selector */

body.post-type-archive-product .woocommerce ul.products li.product .woocommerce-loop-product__title,
body.tax-product_cat .woocommerce ul.products li.product .woocommerce-loop-product__title,
body.tax-product_tag .woocommerce ul.products li.product .woocommerce-loop-product__title,
body.post-type-archive-product .woocommerce ul.products li.product .wc-block-grid__product-title,
body.tax-product_cat .woocommerce ul.products li.product .wc-block-grid__product-title,
body.tax-product_tag .woocommerce ul.products li.product .wc-block-grid__product-title {
    margin: 0 0 9px;
    padding: 0;
    color: #172554;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

/* Product text links */

body.post-type-archive-product .woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
body.tax-product_cat .woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
body.tax-product_tag .woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
    color: #172554;
    text-decoration: none;
}


/* =========================================================
   08 — PRODUCT PRICE, BADGES AND BUTTONS
========================================================= */

/* Product price */

body.post-type-archive-product .woocommerce ul.products li.product .price,
body.tax-product_cat .woocommerce ul.products li.product .price,
body.tax-product_tag .woocommerce ul.products li.product .price {
    display: block;
    margin: 0 0 15px;
    color: #7C3AED;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.5;
}

/* Old price */

body.post-type-archive-product .woocommerce ul.products li.product .price del,
body.tax-product_cat .woocommerce ul.products li.product .price del,
body.tax-product_tag .woocommerce ul.products li.product .price del {
    margin-right: 6px;
    color: #94A3B8;
    font-size: 12px;
    font-weight: 400;
    opacity: 1;
}

/* Sale price */

body.post-type-archive-product .woocommerce ul.products li.product .price ins,
body.tax-product_cat .woocommerce ul.products li.product .price ins,
body.tax-product_tag .woocommerce ul.products li.product .price ins {
    color: #7C3AED;
    font-weight: 800;
    text-decoration: none;
}

/* Star rating */

body.post-type-archive-product .woocommerce ul.products li.product .star-rating,
body.tax-product_cat .woocommerce ul.products li.product .star-rating,
body.tax-product_tag .woocommerce ul.products li.product .star-rating {
    margin-bottom: 12px;
}

/* WooCommerce action button */

body.post-type-archive-product .woocommerce ul.products li.product .button,
body.tax-product_cat .woocommerce ul.products li.product .button,
body.tax-product_tag .woocommerce ul.products li.product .button {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    margin-top: auto;
    padding: 11px 12px;
    border: 0;
    border-radius: 10px;
    background: #7C3AED;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

body.post-type-archive-product .woocommerce ul.products li.product .button:hover,
body.tax-product_cat .woocommerce ul.products li.product .button:hover,
body.tax-product_tag .woocommerce ul.products li.product .button:hover {
    background: #6D28D9;
    color: #FFFFFF;
}

/* Ajax added-to-cart confirmation link */

body.post-type-archive-product .woocommerce ul.products li.product .added_to_cart,
body.tax-product_cat .woocommerce ul.products li.product .added_to_cart,
body.tax-product_tag .woocommerce ul.products li.product .added_to_cart {
    display: block;
    margin-top: 8px;
    color: #7C3AED;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

/* Sale badge — only visible when WooCommerce outputs it */

body.post-type-archive-product .woocommerce ul.products li.product .onsale,
body.tax-product_cat .woocommerce ul.products li.product .onsale,
body.tax-product_tag .woocommerce ul.products li.product .onsale {
    min-width: 0;
    min-height: 0;
    padding: 6px 11px;
    border-radius: 8px;
    background: #7C3AED;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.4;
}


/* =========================================================
   09 — PRODUCT PAGINATION
========================================================= */

body.post-type-archive-product .woocommerce-pagination,
body.tax-product_cat .woocommerce-pagination,
body.tax-product_tag .woocommerce-pagination {
    margin-top: 35px;
    text-align: center;
}

body.post-type-archive-product .woocommerce-pagination ul.page-numbers,
body.tax-product_cat .woocommerce-pagination ul.page-numbers,
body.tax-product_tag .woocommerce-pagination ul.page-numbers {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    border: 0;
    background: transparent;
}

body.post-type-archive-product .woocommerce-pagination ul.page-numbers li,
body.tax-product_cat .woocommerce-pagination ul.page-numbers li,
body.tax-product_tag .woocommerce-pagination ul.page-numbers li {
    border: 0;
    background: transparent;
}

body.post-type-archive-product .woocommerce-pagination a.page-numbers,
body.post-type-archive-product .woocommerce-pagination span.page-numbers,
body.tax-product_cat .woocommerce-pagination a.page-numbers,
body.tax-product_cat .woocommerce-pagination span.page-numbers,
body.tax-product_tag .woocommerce-pagination a.page-numbers,
body.tax-product_tag .woocommerce-pagination span.page-numbers {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 39px;
    min-height: 39px;
    padding: 8px;
    border-radius: 9px;
    background: #F1F5F9;
    color: #172554;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

body.post-type-archive-product .woocommerce-pagination .page-numbers.current,
body.tax-product_cat .woocommerce-pagination .page-numbers.current,
body.tax-product_tag .woocommerce-pagination .page-numbers.current {
    background: #7C3AED !important;
    color: #FFFFFF !important;
}


/* =========================================================
   10 — TABLET RESPONSIVE
========================================================= */

@media (max-width: 1200px) {

    body.post-type-archive-product .woocommerce ul.products,
    body.tax-product_cat .woocommerce ul.products,
    body.tax-product_tag .woocommerce ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .itemsify-shop-intro .isi-inner {
        padding: 32px;
    }

    .itemsify-shop-intro h2 {
        font-size: 38px;
    }
}

@media (max-width: 900px) {

    body.post-type-archive-product .woocommerce ul.products,
    body.tax-product_cat .woocommerce ul.products,
    body.tax-product_tag .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .itemsify-shop-intro {
        border-radius: 18px;
    }

    .itemsify-shop-intro .isi-inner {
        padding: 28px;
    }

    .itemsify-shop-intro h2 {
        font-size: 34px;
    }

    .itemsify-shop-intro .isi-copy p {
        font-size: 14px;
    }
}


/* =========================================================
   11 — MOBILE RESPONSIVE
========================================================= */

@media (max-width: 575px) {

    /* Banner */

    .itemsify-shop-intro {
        margin-bottom: 25px;
        border-radius: 16px;
    }

    .itemsify-shop-intro .isi-inner {
        padding: 26px 20px;
    }

    .itemsify-shop-intro .isi-eyebrow {
        margin-bottom: 12px;
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .itemsify-shop-intro h2 {
        margin-bottom: 12px;
        font-size: 29px;
        letter-spacing: -0.8px;
        line-height: 1.18;
    }

    .itemsify-shop-intro .isi-copy p {
        font-size: 13px;
        line-height: 1.7;
    }

    /* Category navigation */

    .itemsify-shop-intro .isi-categories {
        flex-wrap: nowrap;
        gap: 8px;
        margin-top: 20px;
        padding-bottom: 7px;
        overflow-x: auto;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .itemsify-shop-intro .isi-chip {
        flex: 0 0 auto;
        min-height: 34px;
        padding: 8px 13px;
        font-size: 11px;
    }

    /* Product grid */

    body.post-type-archive-product .woocommerce ul.products,
    body.tax-product_cat .woocommerce ul.products,
    body.tax-product_tag .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 25px;
    }

    /* Product cards */

    body.post-type-archive-product .woocommerce ul.products li.product,
    body.tax-product_cat .woocommerce ul.products li.product,
    body.tax-product_tag .woocommerce ul.products li.product {
        padding: 8px;
        border-radius: 12px;
    }

    /* Product images */

    body.post-type-archive-product .woocommerce ul.products li.product img,
    body.tax-product_cat .woocommerce ul.products li.product img,
    body.tax-product_tag .woocommerce ul.products li.product img {
        margin-bottom: 10px;
        border-radius: 8px;
    }

    /* Product titles */

    body.post-type-archive-product .woocommerce ul.products li.product .woocommerce-loop-product__title,
    body.tax-product_cat .woocommerce ul.products li.product .woocommerce-loop-product__title,
    body.tax-product_tag .woocommerce ul.products li.product .woocommerce-loop-product__title,
    body.post-type-archive-product .woocommerce ul.products li.product .wc-block-grid__product-title,
    body.tax-product_cat .woocommerce ul.products li.product .wc-block-grid__product-title,
    body.tax-product_tag .woocommerce ul.products li.product .wc-block-grid__product-title {
        margin-bottom: 7px;
        font-size: 12px;
        line-height: 1.5;
    }

    /* Product prices */

    body.post-type-archive-product .woocommerce ul.products li.product .price,
    body.tax-product_cat .woocommerce ul.products li.product .price,
    body.tax-product_tag .woocommerce ul.products li.product .price {
        margin-bottom: 12px;
        font-size: 13px;
    }

    /* Product buttons */

    body.post-type-archive-product .woocommerce ul.products li.product .button,
    body.tax-product_cat .woocommerce ul.products li.product .button,
    body.tax-product_tag .woocommerce ul.products li.product .button {
        min-height: 38px;
        padding: 9px 7px;
        border-radius: 8px;
        font-size: 11px;
    }

    /* Sidebar */

    body.post-type-archive-product #secondary .widget,
    body.tax-product_cat #secondary .widget,
    body.tax-product_tag #secondary .widget {
        padding: 16px;
        border-radius: 12px;
    }

    /* Sorting */

    body.post-type-archive-product .woocommerce-ordering select,
    body.tax-product_cat .woocommerce-ordering select,
    body.tax-product_tag .woocommerce-ordering select {
        max-width: 100%;
        min-height: 40px;
        font-size: 12px;
    }

    /* Results count */

    body.post-type-archive-product .woocommerce-result-count,
    body.tax-product_cat .woocommerce-result-count,
    body.tax-product_tag .woocommerce-result-count {
        font-size: 12px;
    }
}


/* =========================================================
   12 — ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .itemsify-shop-intro .isi-chip,
    body.post-type-archive-product .woocommerce ul.products li.product,
    body.tax-product_cat .woocommerce ul.products li.product,
    body.tax-product_tag .woocommerce ul.products li.product {
        transition: none;
    }

    body.post-type-archive-product .woocommerce ul.products li.product:hover,
    body.tax-product_cat .woocommerce ul.products li.product:hover,
    body.tax-product_tag .woocommerce ul.products li.product:hover {
        transform: none;
    }
}

/* ================== END ================== */


/* ================================================
   ITEMSIFY — KADENCE PRODUCT CARD FIX
   Shop and WooCommerce Category Archives
================================================ */

/* PRODUCT GRID */

body.post-type-archive-product ul.products,
body.tax-product_cat ul.products,
body.tax-product_tag ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
    padding: 0;
    margin-bottom: 35px;
}

/* PRODUCT CARD */

body.post-type-archive-product ul.products li.product,
body.tax-product_cat ul.products li.product,
body.tax-product_tag ul.products li.product {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    padding: 12px !important;
    border: 1px solid #E7EAF2 !important;
    border-radius: 16px !important;
    background: #FFFFFF !important;
    overflow: hidden;
    box-shadow: 0 5px 22px rgba(23, 37, 84, 0.06);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

/* HOVER */

body.post-type-archive-product ul.products li.product:hover,
body.tax-product_cat ul.products li.product:hover,
body.tax-product_tag ul.products li.product:hover {
    transform: translateY(-4px);
    border-color: #DDD6FE !important;
    box-shadow: 0 14px 35px rgba(23, 37, 84, 0.11);
}

/* PRODUCT IMAGE */

body.post-type-archive-product ul.products li.product img,
body.tax-product_cat ul.products li.product img,
body.tax-product_tag ul.products li.product img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 11px;
    background: #F8FAFC;
}

/* PRODUCT TITLE */

body.post-type-archive-product ul.products li.product .woocommerce-loop-product__title,
body.tax-product_cat ul.products li.product .woocommerce-loop-product__title,
body.tax-product_tag ul.products li.product .woocommerce-loop-product__title {
    color: #172554;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

/* PRICE */

body.post-type-archive-product ul.products li.product .price,
body.tax-product_cat ul.products li.product .price,
body.tax-product_tag ul.products li.product .price {
    color: #7C3AED !important;
    font-size: 15px;
    font-weight: 800;
}

/* PRODUCT BUTTON */

body.post-type-archive-product ul.products li.product .button,
body.tax-product_cat ul.products li.product .button,
body.tax-product_tag ul.products li.product .button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    margin-top: auto;
    padding: 10px 12px;
    border-radius: 10px !important;
    background: #7C3AED !important;
    color: #FFFFFF !important;
    font-weight: 700;
    text-align: center;
}

body.post-type-archive-product ul.products li.product .button:hover,
body.tax-product_cat ul.products li.product .button:hover,
body.tax-product_tag ul.products li.product .button:hover {
    background: #6D28D9 !important;
}

/* TABLET */

@media (max-width: 1100px) {
    body.post-type-archive-product ul.products,
    body.tax-product_cat ul.products,
    body.tax-product_tag ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }
}

/* MOBILE */

@media (max-width: 575px) {
    body.post-type-archive-product ul.products,
    body.tax-product_cat ul.products,
    body.tax-product_tag ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    body.post-type-archive-product ul.products li.product,
    body.tax-product_cat ul.products li.product,
    body.tax-product_tag ul.products li.product {
        padding: 8px !important;
        border-radius: 12px !important;
    }

    body.post-type-archive-product ul.products li.product .woocommerce-loop-product__title,
    body.tax-product_cat ul.products li.product .woocommerce-loop-product__title,
    body.tax-product_tag ul.products li.product .woocommerce-loop-product__title {
        font-size: 12px;
    }

    body.post-type-archive-product ul.products li.product .button,
    body.tax-product_cat ul.products li.product .button,
    body.tax-product_tag ul.products li.product .button {
        min-height: 38px;
        padding: 8px;
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.post-type-archive-product ul.products li.product,
    body.tax-product_cat ul.products li.product,
    body.tax-product_tag ul.products li.product {
        transition: none;
    }
}
/* Itemsify — Product button refinement */

body.post-type-archive-product ul.products li.product .button,
body.tax-product_cat ul.products li.product .button,
body.tax-product_tag ul.products li.product .button {
    font-size: 13px !important;
    font-weight: 700;
    min-height: 44px;
}


/* ============================================
   ITEMSIFY — MOBILE FILTER DRAWER
   Phase 2.3
============================================ */

/* Hidden on desktop */
.itemsify-filter-toggle,
.itemsify-filter-overlay,
.itemsify-filter-close {
    display: none;
}

/* Mobile and tablet */
@media (max-width: 1024px) {

    /* Filter button below Shop banner */
    body.post-type-archive-product .itemsify-filter-toggle,
    body.tax-product_cat .itemsify-filter-toggle,
    body.tax-product_tag .itemsify-filter-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        width: 100%;
        min-height: 46px;
        margin: 0 0 22px;
        padding: 12px 18px;
        border: 1px solid #DDD6FE;
        border-radius: 12px;
        background: #F5F3FF;
        color: #172554;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
    }

    .itemsify-filter-toggle:hover {
        border-color: #7C3AED;
        color: #7C3AED;
    }

    /* Dark backdrop */
    .itemsify-filter-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 999990;
        background: rgba(15, 23, 42, 0.55);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    /* Original WooCommerce sidebar becomes drawer */
    body.post-type-archive-product #secondary,
    body.tax-product_cat #secondary,
    body.tax-product_tag #secondary {
        box-sizing: border-box;
        position: fixed !important;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 999991;
        display: block !important;
        width: min(360px, 90vw) !important;
        max-width: 90vw;
        height: 100dvh;
        max-height: 100dvh;
        margin: 0 !important;
        padding: 20px 17px 30px !important;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: #FFFFFF;
        box-shadow: 12px 0 35px rgba(15, 23, 42, 0.12);
        transform: translateX(-105%);
        visibility: hidden;
        pointer-events: none;
        transition:
            transform 0.25s ease,
            visibility 0.25s ease;
    }

    /* Open state */
    body.itemsify-filters-open #secondary {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    body.itemsify-filters-open .itemsify-filter-overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    body.itemsify-filters-open {
        overflow: hidden;
    }

    /* Drawer close control */
    #secondary .itemsify-filter-close {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 48px;
        margin: 0 0 20px;
        padding: 10px 13px;
        border: 0;
        border-radius: 10px;
        background: #F5F3FF;
        color: #172554;
        font-size: 15px;
        font-weight: 750;
        cursor: pointer;
    }

    #secondary .itemsify-filter-close:hover {
        background: #EDE9FE;
    }

    /* Reduce space between drawer widgets */
    body.post-type-archive-product #secondary .widget,
    body.tax-product_cat #secondary .widget,
    body.tax-product_tag #secondary .widget {
        margin-bottom: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .itemsify-filter-overlay,
    body.post-type-archive-product #secondary,
    body.tax-product_cat #secondary,
    body.tax-product_tag #secondary {
        transition: none;
    }
}

/* ITEMSIFY — MOBILE FILTER DRAWER REFINEMENT */

@media (max-width: 1024px) {

    body.post-type-archive-product #secondary,
    body.tax-product_cat #secondary,
    body.tax-product_tag #secondary {
        padding: 18px 14px 30px !important;
    }

    #secondary .itemsify-filter-close {
        position: sticky;
        top: -18px;
        z-index: 5;
        margin-bottom: 18px;
        padding: 13px 15px;
        background: #F5F3FF;
        color: #172554;
        border-radius: 10px;
        font-size: 14px;
    }

    body.post-type-archive-product #secondary .widget,
    body.tax-product_cat #secondary .widget,
    body.tax-product_tag #secondary .widget {
        padding: 16px;
        margin-bottom: 12px;
        box-shadow: none;
    }
}

