/* =============================================
   SHOP PAGE — Premium Feminine Design
   Karishmaa Care Foundation
   ============================================= */

/* =============================================
   HERO BANNER
   ============================================= */

.kcf-shop-hero {
    background: var(--kcf-gradient);
    padding: 56px 20px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.kcf-shop-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.kcf-shop-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    right: -10%;
    width: 50%;
    height: 180%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.kcf-shop-hero__inner {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.kcf-shop-hero__title {
    font-family: var(--kcf-font-display);
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
}

.kcf-shop-hero__subtitle {
    font-family: var(--kcf-font);
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 18px;
    line-height: 1.6;
}

.kcf-shop-hero__breadcrumb {
    font-family: var(--kcf-font);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.kcf-shop-hero__breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s;
}

.kcf-shop-hero__breadcrumb a:hover {
    color: #fff;
}

.kcf-breadcrumb-sep {
    margin: 0 6px;
    opacity: 0.6;
}

/* =============================================
   MAIN LAYOUT — Sidebar + Content Grid
   ============================================= */

.kcf-shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: -30px auto 0;
    padding: 0 30px 80px;
    position: relative;
    z-index: 2;
}

/* Hide default WooCommerce wrappers that duplicate our layout */
.kcf-shop-content .woocommerce-notices-wrapper:empty,
.kcf-shop-content .woocommerce-breadcrumb {
    display: none !important;
}

/* =============================================
   SIDEBAR FILTERS — Clean & Professional
   ============================================= */

.kcf-shop-sidebar__inner {
    background: #fff;
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 24px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--kcf-gray-200);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--kcf-primary-lighter) transparent;
}

.kcf-shop-sidebar__inner::-webkit-scrollbar {
    width: 4px;
}

.kcf-shop-sidebar__inner::-webkit-scrollbar-track {
    background: transparent;
}

.kcf-shop-sidebar__inner::-webkit-scrollbar-thumb {
    background: var(--kcf-primary-lighter);
    border-radius: 10px;
}

.kcf-shop-sidebar__overlay {
    display: none;
}

.kcf-shop-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--kcf-gray-200);
}

.kcf-shop-sidebar__title {
    font-family: var(--kcf-font);
    font-size: 15px;
    font-weight: 700;
    color: var(--kcf-gray-800);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    letter-spacing: 0.2px;
}

.kcf-shop-sidebar__title svg {
    color: var(--kcf-primary);
}

.kcf-shop-sidebar__close {
    display: none;
    /* Shown only on mobile */
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--kcf-gray-400);
    padding: 4px;
}

/* ---------- Filter Sections (Accordion) ---------- */

.kcf-filter-section {
    border-bottom: 1px solid var(--kcf-gray-100);
    padding-bottom: 2px;
    margin-bottom: 2px;
}

.kcf-filter-section:last-of-type {
    border-bottom: none;
}

.kcf-filter-section__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 0;
    background: none !important;
    border: none !important;
    cursor: pointer;
    font-family: var(--kcf-font);
    font-size: 13px;
    font-weight: 700;
    color: var(--kcf-gray-800) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.kcf-filter-section__toggle:hover,
.kcf-filter-section__toggle:focus,
.kcf-filter-section__toggle:active {
    color: var(--kcf-primary) !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.kcf-filter-chevron {
    transition: transform 0.3s ease;
    color: var(--kcf-gray-400);
}

.kcf-filter-section.is-open .kcf-filter-chevron {
    transform: rotate(180deg);
    color: var(--kcf-primary);
}

.kcf-filter-section__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0;
}

.kcf-filter-section.is-open .kcf-filter-section__body {
    max-height: 2000px;
    padding-bottom: 10px;
}

/* ---------- Category Search ---------- */

.kcf-cat-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--kcf-gray-100);
    border: 1.5px solid var(--kcf-gray-200);
    border-radius: 8px;
    margin-bottom: 10px;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.kcf-cat-search:focus-within {
    border-color: var(--kcf-primary-light);
    box-shadow: 0 0 0 3px var(--kcf-primary-lighter);
}

.kcf-cat-search svg {
    flex-shrink: 0;
    color: var(--kcf-gray-400);
}

.kcf-cat-search input {
    width: 100%;
    border: none;
    background: transparent;
    font-family: var(--kcf-font);
    font-size: 12px;
    color: var(--kcf-text);
    outline: none;
}

.kcf-cat-search input::placeholder {
    color: var(--kcf-gray-400);
}

/* ---------- Category List ---------- */

.kcf-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 320px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--kcf-primary-lighter) transparent;
}

.kcf-category-list::-webkit-scrollbar {
    width: 3px;
}

.kcf-category-list::-webkit-scrollbar-track {
    background: transparent;
}

.kcf-category-list::-webkit-scrollbar-thumb {
    background: var(--kcf-primary-lighter);
    border-radius: 10px;
}

.kcf-category-list li {
    margin: 0;
}

.kcf-category-list li a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 7px 10px;
    border-radius: 6px;
    font-family: var(--kcf-font);
    font-size: 13px;
    font-weight: 500;
    color: var(--kcf-text);
    text-decoration: none;
    transition: all 0.2s ease;
}

.kcf-category-list li a:hover {
    background: var(--kcf-primary-bg);
    color: var(--kcf-primary);
}

.kcf-category-list li.is-active>a {
    background: var(--kcf-primary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(42, 166, 246, 0.2);
}

.kcf-category-list li.is-active>a .kcf-cat-count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* Category toggle chevron */
.kcf-cat-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.kcf-cat-toggle svg {
    stroke: currentColor;
}

.kcf-cat-item.is-expanded>a .kcf-cat-toggle {
    transform: rotate(90deg);
}

.kcf-cat-count {
    font-size: 10px;
    font-weight: 600;
    background: var(--kcf-gray-100);
    color: var(--kcf-text-light);
    padding: 1px 7px;
    border-radius: 20px;
    min-width: 22px;
    text-align: center;
    margin-left: auto;
    flex-shrink: 0;
}

/* Subcategories */
.kcf-cat-children {
    list-style: none;
    padding: 0 0 0 14px;
    margin: 2px 0 4px;
    border-left: 2px solid var(--kcf-gray-200);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.kcf-cat-item.is-expanded>.kcf-cat-children {
    max-height: 1000px;
}

.kcf-cat-children li a {
    padding: 5px 10px;
    font-size: 12px;
    color: var(--kcf-text-light);
}

.kcf-cat-children li.is-active>a {
    color: var(--kcf-primary);
    background: var(--kcf-primary-bg);
    font-weight: 600;
}

/* ---------- Price Filter (Enhanced Dual Slider) ---------- */

.kcf-price-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 10px 0;
}

.kcf-price-tag {
    display: inline-flex;
    align-items: center;
    background: var(--kcf-gray-100);
    padding: 6px 14px;
    border-radius: 6px;
    font-family: var(--kcf-font);
    font-size: 14px;
    font-weight: 700;
    color: var(--kcf-primary);
}

.kcf-price-tag--sep {
    color: var(--kcf-gray-400);
    font-size: 14px;
}

.kcf-price-slider-wrapper {
    position: relative;
    width: 100%;
    height: 36px;
    margin-bottom: 18px;
}

.kcf-price-slider-track {
    width: 100%;
    height: 4px;
    background: var(--kcf-gray-200);
    border-radius: 4px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.kcf-range-input {
    width: 100%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
    height: 0;
    z-index: 10;
}

.kcf-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12), 0 0 0 2px var(--kcf-primary);
    border: 2px solid var(--kcf-primary);
    margin-top: -10px;
    position: relative;
    z-index: 20;
    transition: box-shadow 0.2s;
}

.kcf-range-input::-webkit-slider-thumb:hover {
    box-shadow: 0 1px 6px rgba(42, 166, 246, 0.35), 0 0 0 3px var(--kcf-primary-light);
}

.kcf-range-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: 2px solid var(--kcf-primary);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.kcf-price-filter__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 0;
    background: var(--kcf-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px;
    font-family: var(--kcf-font);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.kcf-price-filter__btn svg {
    stroke: #fff;
}

.kcf-price-filter__btn:hover,
.kcf-price-filter__btn:focus,
.kcf-price-filter__btn:active {
    background: var(--kcf-primary-light) !important;
    color: #fff !important;
    border: none !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(42, 166, 246, 0.25) !important;
}

/* ---------- Availability / Attribute Filter ---------- */

.kcf-availability-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kcf-availability-list li {
    margin-bottom: 2px;
}

.kcf-availability-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    font-family: var(--kcf-font);
    font-size: 13px;
    font-weight: 500;
    color: var(--kcf-text);
    text-decoration: none;
    transition: all 0.2s ease;
}

.kcf-availability-list li a:hover {
    background: var(--kcf-primary-bg);
    color: var(--kcf-primary);
}

.kcf-availability-list li a.is-active {
    background: var(--kcf-primary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(42, 166, 246, 0.2);
}

.kcf-availability-list li a.is-active .kcf-avail-dot {
    background: #fff !important;
    border-color: #fff !important;
    box-shadow: none !important;
}

.kcf-avail-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    border: 1.5px solid var(--kcf-gray-400);
    background: transparent;
    transition: all 0.2s;
}

.kcf-avail-dot--instock {
    background: #34a853;
    border-color: #34a853;
    box-shadow: 0 0 4px rgba(52, 168, 83, 0.3);
}

.kcf-avail-dot--sale {
    background: var(--kcf-primary);
    border-color: var(--kcf-primary);
    box-shadow: 0 0 4px rgba(42, 166, 246, 0.3);
}

/* ---------- Reset Button ---------- */

.kcf-filter-reset {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 0;
    margin-top: 14px;
    border: 1.5px solid var(--kcf-gray-200);
    border-radius: 8px;
    background: transparent;
    font-family: var(--kcf-font);
    font-size: 12px;
    font-weight: 600;
    color: var(--kcf-text-light);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.25s;
}

.kcf-filter-reset:hover {
    border-color: var(--kcf-primary);
    color: var(--kcf-primary);
    background: var(--kcf-primary-bg);
}

/* =============================================
   SHOP TOOLBAR (Result Count + Sort)
   ============================================= */

.kcf-shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding: 14px 20px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(166, 246, 183, 0.06);
    border: 1px solid rgba(42, 166, 246, 0.04);
}

.kcf-shop-toolbar__count .woocommerce-result-count {
    margin: 0;
    font-family: var(--kcf-font);
    font-size: 13px;
    color: var(--kcf-text-light);
    font-weight: 500;
}

.kcf-shop-toolbar__sort .woocommerce-ordering {
    margin: 0;
}

.kcf-shop-toolbar__sort select {
    font-family: var(--kcf-font);
    font-size: 13px;
    font-weight: 500;
    color: var(--kcf-text);
    border: 1.5px solid var(--kcf-gray-200);
    border-radius: 10px;
    padding: 8px 32px 8px 14px;
    background: var(--kcf-gray-100);
    cursor: pointer;
    outline: none;
    transition: border-color 0.25s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.kcf-shop-toolbar__sort select:focus {
    border-color: var(--kcf-primary-light);
}

/* ---------- View Toggle Buttons ---------- */

.kcf-shop-toolbar__views {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--kcf-gray-100);
    border-radius: 10px;
    padding: 3px;
}

.kcf-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 34px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #5b707b !important;
    /* Force dark gray */
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
}

.kcf-view-btn:hover {
    color: var(--kcf-primary) !important;
    background: var(--kcf-primary-bg);
}

.kcf-view-btn.is-active {
    background: var(--kcf-gradient);
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(42, 166, 246, 0.25);
}

.kcf-view-btn.is-active svg {
    fill: #fff;
}

.kcf-view-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
}

/* ---------- 4-Column Grid Mode ---------- */

.kcf-shop-content ul.products.kcf-view--grid-4 {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 22px;
}

.kcf-shop-content ul.products.kcf-view--grid-4 li.product a img {
    height: 220px;
}

.kcf-shop-content ul.products.kcf-view--grid-4 li.product .woocommerce-loop-product__title {
    font-size: 13px !important;
    padding: 14px 14px 4px !important;
}

.kcf-shop-content ul.products.kcf-view--grid-4 li.product .price {
    font-size: 14px !important;
    padding: 4px 14px 0 !important;
}

.kcf-shop-content ul.products.kcf-view--grid-4 li.product .button,
.kcf-shop-content ul.products.kcf-view--grid-4 li.product a.add_to_cart_button {
    width: calc(100% - 28px) !important;
    margin: auto 14px 14px !important;
    font-size: 12px !important;
    padding: 9px 0 !important;
}

/* ---------- List View Mode ---------- */

.kcf-shop-content ul.products.kcf-view--list {
    grid-template-columns: 1fr !important;
    gap: 18px;
}

.kcf-shop-content ul.products.kcf-view--list li.product {
    display: grid !important;
    grid-template-columns: 220px 1fr;
    grid-template-rows: auto auto auto auto;
    flex-direction: unset !important;
    border-radius: 16px;
    overflow: hidden;
    align-items: start;
    min-height: 200px;
}

/* Break the WooCommerce link wrapper out of the layout flow */
.kcf-shop-content ul.products.kcf-view--list li.product>a.woocommerce-LoopProduct-link {
    display: contents !important;
    width: auto !important;
    min-width: unset !important;
}

/* Image spans entire left column */
.kcf-shop-content ul.products.kcf-view--list li.product img,
.kcf-shop-content ul.products.kcf-view--list li.product .attachment-woocommerce_thumbnail {
    grid-column: 1 !important;
    grid-row: 1 / -1 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 200px;
    object-fit: cover;
}

/* Sale badge stays on image */
.kcf-shop-content ul.products.kcf-view--list li.product .onsale {
    grid-column: 1;
    grid-row: 1;
}

/* Title in column 2 */
.kcf-shop-content ul.products.kcf-view--list li.product .woocommerce-loop-product__title {
    grid-column: 2 !important;
    grid-row: 1 !important;
    padding: 20px 24px 6px !important;
    font-size: 16px !important;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    align-self: start;
}

/* Star rating in column 2 */
.kcf-shop-content ul.products.kcf-view--list li.product .star-rating {
    grid-column: 2 !important;
    grid-row: 2 !important;
    margin: 0 24px !important;
}

/* Price in column 2 */
.kcf-shop-content ul.products.kcf-view--list li.product .price {
    grid-column: 2 !important;
    grid-row: 3 !important;
    padding: 4px 24px 0 !important;
    font-size: 18px !important;
}

/* Add to Cart button in column 2 */
.kcf-shop-content ul.products.kcf-view--list li.product .button,
.kcf-shop-content ul.products.kcf-view--list li.product a.add_to_cart_button,
.kcf-shop-content ul.products.kcf-view--list li.product a.product_type_simple {
    grid-column: 2 !important;
    grid-row: 4 !important;
    width: auto !important;
    max-width: 200px;
    margin: 8px 24px 20px !important;
    padding: 11px 28px !important;
    align-self: start;
}

/* View cart link */
.kcf-shop-content ul.products.kcf-view--list li.product .added_to_cart {
    grid-column: 2;
    padding: 4px 24px;
}

/* Mobile Filter Toggle */

.kcf-filter-toggle {
    display: none;
    /* Shown on mobile */
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--kcf-gradient);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: var(--kcf-font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.kcf-filter-toggle:hover {
    box-shadow: 0 4px 14px rgba(42, 166, 246, 0.3);
    transform: translateY(-1px);
}

/* =============================================
   PRODUCT GRID & CARDS
   ============================================= */

/* Override WooCommerce default product list */
.kcf-shop-content ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.kcf-shop-content ul.products::before,
.kcf-shop-content ul.products::after {
    display: none !important;
    content: none !important;
}

/* Product Card */
.kcf-shop-content ul.products li.product {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(166, 246, 183, 0.06);
    border: 1px solid rgba(42, 166, 246, 0.04);
    transition: all 0.35s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

.kcf-shop-content ul.products li.product:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(166, 246, 183, 0.14);
    border-color: rgba(42, 166, 246, 0.12);
}

/* Product Image */
.kcf-shop-content ul.products li.product a img,
.kcf-shop-content ul.products li.product .attachment-woocommerce_thumbnail {
    width: 100% !important;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    margin: 0 !important;
}

.kcf-shop-content ul.products li.product:hover a img {
    transform: scale(1.06);
}

/* Image container */
.kcf-shop-content ul.products li.product>a:first-of-type {
    display: block;
    overflow: hidden;
    position: relative;
}

/* Sale Badge */
.kcf-shop-content ul.products li.product .onsale {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--kcf-gradient) !important;
    color: #fff !important;
    font-family: var(--kcf-font) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 5px 14px !important;
    border-radius: 20px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    line-height: 1.3;
    min-height: auto !important;
    min-width: auto !important;
}

/* Product Info (title, price, rating) */
.kcf-shop-content ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--kcf-font) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--kcf-gray-800);
    padding: 18px 18px 6px !important;
    margin: 0 !important;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Star Rating */
.kcf-shop-content ul.products li.product .star-rating {
    margin: 0 18px !important;
    font-size: 12px;
    color: #ffc107;
}

/* Price */
.kcf-shop-content ul.products li.product .price {
    font-family: var(--kcf-font) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--kcf-primary) !important;
    padding: 4px 18px 0 !important;
    margin: 0 !important;
}

.kcf-shop-content ul.products li.product .price del {
    font-size: 13px;
    color: var(--kcf-gray-400);
    font-weight: 400;
}

.kcf-shop-content ul.products li.product .price ins {
    text-decoration: none;
    color: var(--kcf-primary);
}

/* Add to Cart Button */
.kcf-shop-content ul.products li.product .button,
.kcf-shop-content ul.products li.product a.add_to_cart_button,
.kcf-shop-content ul.products li.product a.product_type_simple {
    display: block !important;
    width: calc(100% - 36px) !important;
    margin: auto 18px 18px !important;
    padding: 11px 0 !important;
    background: transparent !important;
    color: var(--kcf-primary) !important;
    border: 2px solid var(--kcf-primary) !important;
    border-radius: 12px !important;
    font-family: var(--kcf-font) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    line-height: 1.3 !important;
    margin-top: auto !important;
}

.kcf-shop-content ul.products li.product .button:hover,
.kcf-shop-content ul.products li.product a.add_to_cart_button:hover,
.kcf-shop-content ul.products li.product a.product_type_simple:hover {
    background: var(--kcf-gradient) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 14px rgba(42, 166, 246, 0.3) !important;
    transform: translateY(-1px);
}

/* Added to cart state */
.kcf-shop-content ul.products li.product .added_to_cart {
    display: block;
    text-align: center;
    padding: 6px 18px;
    font-family: var(--kcf-font);
    font-size: 12px;
    font-weight: 500;
    color: #4caf50;
    text-decoration: none;
}

/* =============================================
   PAGINATION
   ============================================= */

.kcf-shop-pagination {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}

.kcf-shop-pagination .woocommerce-pagination {
    text-align: center;
}

.kcf-shop-pagination .woocommerce-pagination ul {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    border: none !important;
}

.kcf-shop-pagination .woocommerce-pagination ul li {
    margin: 0;
    border: none !important;
}

.kcf-shop-pagination .woocommerce-pagination ul li a,
.kcf-shop-pagination .woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-family: var(--kcf-font);
    font-size: 14px;
    font-weight: 600;
    color: var(--kcf-text);
    text-decoration: none;
    background: #fff;
    border: 1.5px solid var(--kcf-gray-200) !important;
    transition: all 0.25s ease;
}

.kcf-shop-pagination .woocommerce-pagination ul li a:hover {
    border-color: var(--kcf-primary) !important;
    color: var(--kcf-primary);
    background: var(--kcf-primary-bg);
}

.kcf-shop-pagination .woocommerce-pagination ul li span.current {
    background: var(--kcf-gradient) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 12px rgba(42, 166, 246, 0.3);
}

/* =============================================
   EMPTY STATE
   ============================================= */

.kcf-shop-empty {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(166, 246, 183, 0.06);
}

.kcf-shop-empty__icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.kcf-shop-empty h3 {
    font-family: var(--kcf-font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--kcf-gray-800);
    margin: 0 0 8px;
}

.kcf-shop-empty p {
    font-family: var(--kcf-font);
    font-size: 14px;
    color: var(--kcf-text-light);
    margin: 0 0 24px;
}

.kcf-shop-empty__btn {
    display: inline-flex;
    padding: 12px 32px;
    background: var(--kcf-gradient);
    color: #fff;
    border-radius: 50px;
    font-family: var(--kcf-font);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.kcf-shop-empty__btn:hover {
    box-shadow: 0 6px 20px rgba(42, 166, 246, 0.3);
    transform: translateY(-2px);
}

/* =============================================
   HIDE DEFAULT WOOCOMMERCE ELEMENTS
   (We render them in custom positions)
   ============================================= */

.kcf-shop-content>.woocommerce-result-count,
.kcf-shop-content>.woocommerce-ordering,
.kcf-shop-content>p.woocommerce-result-count,
.kcf-shop-content>form.woocommerce-ordering {
    display: none !important;
}

/* =============================================
   RESPONSIVE — Tablet (< 1024px)
   ============================================= */

@media (max-width: 1024px) {
    .kcf-shop-layout {
        grid-template-columns: 240px 1fr;
        gap: 24px;
        padding: 0 20px 60px;
    }

    .kcf-shop-content ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }

    /* If a 4-column view class is present, still keep it 2-up on tablet */
    .kcf-shop-content ul.products.kcf-view--grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .kcf-shop-content ul.products li.product a img {
        height: 220px;
    }

    .kcf-shop-hero__title {
        font-size: 34px;
    }
}

/* =============================================
   RESPONSIVE — Mobile (< 768px)
   ============================================= */

@media (max-width: 768px) {

    .kcf-shop-hero {
        padding: 40px 16px 36px;
    }

    .kcf-shop-hero__title {
        font-size: 28px;
    }

    .kcf-shop-hero__subtitle {
        font-size: 13px;
    }

    /* Single column layout on mobile */
    .kcf-shop-layout {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0 16px 48px;
        margin-top: -20px;
    }

    /* Show filter toggle button */
    .kcf-filter-toggle {
        display: inline-flex;
    }

    /* Sidebar becomes a slide-in drawer */
    .kcf-shop-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 360px;
        height: 100vh;
        z-index: 9999;
        transition: left 0.35s ease;
    }

    .kcf-shop-sidebar.is-open {
        left: 0;
    }

    .kcf-shop-sidebar.is-open .kcf-shop-sidebar__overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.4);
        z-index: -1;
    }

    .kcf-shop-sidebar__inner {
        height: 100%;
        border-radius: 0 20px 20px 0;
        overflow-y: auto;
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.15);
    }

    .kcf-shop-sidebar__close {
        display: block;
    }

    /* Product grid: 2 columns */
    .kcf-shop-content ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px;
    }

    /* `kcf-view--grid-4` must not force 4 columns on mobile */
    .kcf-shop-content ul.products.kcf-view--grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .kcf-shop-content ul.products li.product a img {
        height: 180px;
    }

    .kcf-shop-content ul.products li.product .woocommerce-loop-product__title {
        font-size: 13px !important;
        padding: 14px 14px 4px !important;
    }

    .kcf-shop-content ul.products li.product .price {
        font-size: 14px !important;
        padding: 4px 14px 0 !important;
    }

    .kcf-shop-content ul.products li.product .button,
    .kcf-shop-content ul.products li.product a.add_to_cart_button {
        width: calc(100% - 28px) !important;
        margin: auto 14px 14px !important;
        padding: 9px 0 !important;
        font-size: 12px !important;
    }

    .kcf-shop-toolbar {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* =============================================
   RESPONSIVE — Small Mobile (< 480px)
   ============================================= */

@media (max-width: 480px) {
    .kcf-shop-content ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .kcf-shop-content ul.products.kcf-view--grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .kcf-shop-content ul.products li.product a img {
        height: 150px;
    }

    .kcf-shop-content ul.products li.product .woocommerce-loop-product__title {
        font-size: 12px !important;
        padding: 10px 10px 4px !important;
    }

    .kcf-shop-content ul.products li.product .price {
        font-size: 13px !important;
        padding: 2px 10px 0 !important;
    }

    .kcf-shop-content ul.products li.product .button,
    .kcf-shop-content ul.products li.product a.add_to_cart_button {
        width: calc(100% - 20px) !important;
        margin: auto 10px 10px !important;
        font-size: 11px !important;
        padding: 8px 0 !important;
    }
}

/* =============================================
   AUTHOR (SELLER) PROFILE — UI/UX ENHANCEMENTS
   Applies to native author archives (seller pages)
   ============================================= */

.author .kcf-author-products {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 70px;
}

.author .kcf-author-products__top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 18px 0 8px;
}

.author .kcf-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    color: var(--kcf-gray-600);
    padding: 8px 10px;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.author .kcf-back-link:hover {
    color: var(--kcf-primary);
    background: var(--kcf-primary-bg);
    transform: translateY(-1px);
}

/* Hero */
.author .kcf-author-hero {
    position: relative;
    margin: 26px auto 22px;
    padding: 0 20px;
    border: none;
}

.author .kcf-author-hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    background:
        radial-gradient(circle at 20% 0, rgba(42, 166, 246, 0.14), transparent 45%),
        radial-gradient(circle at 90% 20%, rgba(166, 246, 183, 0.22), transparent 50%),
        #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 22px;
    padding: 26px 26px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 18px 22px;
    align-items: start;
}

.author .kcf-author-hero__avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
    background: #f8fafc;
}

.author .kcf-author-hero__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author .kcf-author-hero__content {
    min-width: 0;
}

.author .kcf-author-hero__title {
    margin: 0;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.6px;
    color: #0f172a;
    line-height: 1.15;
}

.author .kcf-author-hero__meta {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.author .kcf-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(241, 245, 249, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.9);
    color: #475569;
    font-size: 13px;
    font-weight: 600;
}

.author .kcf-chip i {
    color: var(--kcf-primary);
}

.author .kcf-chip__label {
    color: #64748b;
    font-weight: 700;
}

.author .kcf-author-hero__bio {
    margin-top: 12px;
    color: #475569;
    font-size: 15px;
    line-height: 1.75;
    max-width: 72ch;
}

.author .kcf-author-hero__bio p {
    margin: 0.4em 0;
}

.author .kcf-author-hero__cta {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.author .kcf-author-cta__primary {
    width: auto;
    min-width: 220px;
    max-width: 320px;
}

.author .kcf-author-cta__secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.author .kcf-author-cta__secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    background: #ffffff;
}

.author .kcf-author-hero__social {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.author .kcf-author-hero__social-label {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
}

/* Filters */
.author .kcf-seller-filters {
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    padding: 14px 14px;
    margin: 18px 0 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.author .kcf-seller-filters__form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}

.author .kcf-input-with-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.author .kcf-input-with-icon i {
    color: #94a3b8;
}

.author .kcf-input-with-icon:focus-within {
    border-color: var(--kcf-primary);
    box-shadow: 0 0 0 4px rgba(42, 166, 246, 0.1);
}

.author .kcf-input-with-icon input {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    padding: 0 !important;
    width: 100%;
    font-size: 15px;
}

.author .kcf-seller-filters__actions {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    white-space: nowrap;
}

.author .kcf-btn-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 800;
    background: #0f172a;
    color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    text-decoration: none;
}

.author .kcf-btn-solid:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
}

.author .kcf-btn-lite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: #ffffff;
    color: #0f172a;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.author .kcf-btn-lite:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

/* Products header */
.author .kcf-author-products__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 18px 0 14px;
    flex-wrap: wrap;
}

.author .kcf-author-products__title {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.3px;
}

.author .kcf-author-products__count {
    font-size: 14px;
    font-weight: 800;
    color: #64748b;
    margin-left: 8px;
}

.author .kcf-author-products__sort form.woocommerce-ordering {
    margin: 0;
}

.author .kcf-author-products__sort select {
    border-radius: 12px;
    padding: 10px 14px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: #ffffff;
    font-weight: 700;
}

/* Empty state */
.author .kcf-empty-state {
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    padding: 44px 18px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.author .kcf-empty-state__icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 12px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(42, 166, 246, 0.12);
    color: var(--kcf-primary);
    font-size: 26px;
}

.author .kcf-empty-state__title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 900;
    color: #0f172a;
}

.author .kcf-empty-state__text {
    margin: 0 auto 16px;
    max-width: 60ch;
    color: #64748b;
    font-weight: 600;
    line-height: 1.7;
}

.author .kcf-empty-state__cta {
    margin: 0 auto;
}

/* Mobile contact bar */
.author .kcf-mobile-contact-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    display: none;
}

.author .kcf-mobile-contact-bar__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.author .kcf-mobile-contact-bar__label {
    font-size: 13px;
    font-weight: 800;
    color: #334155;
}

.author .kcf-mobile-contact-bar__btn {
    width: auto;
    padding: 10px 16px;
    border-radius: 12px;
}

@media (max-width: 900px) {
    .author .kcf-author-hero__inner {
        grid-template-columns: 96px 1fr;
        padding: 22px 18px;
        border-radius: 18px;
    }
    .author .kcf-author-hero__avatar {
        width: 96px;
        height: 96px;
    }
    .author .kcf-author-hero__title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .author .kcf-author-products {
        padding-bottom: 110px; /* space for contact bar */
    }

    .author .kcf-seller-filters__form {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .author .kcf-seller-filters__actions {
        justify-content: stretch;
    }

    .author .kcf-seller-filters__actions .kcf-btn-solid,
    .author .kcf-seller-filters__actions .kcf-btn-lite {
        width: 100%;
    }

    .author .kcf-author-hero__inner {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .author .kcf-author-hero__meta {
        justify-content: center;
    }

    .author .kcf-author-hero__bio {
        margin-left: auto;
        margin-right: auto;
    }

    .author .kcf-author-hero__cta {
        justify-content: center;
    }

    .author .kcf-author-cta__primary {
        width: 100%;
        max-width: 420px;
    }

    .author .kcf-author-cta__secondary {
        width: 100%;
        max-width: 420px;
    }

    .author .kcf-mobile-contact-bar {
        display: block;
    }
}