/**
 * Keshri Scientific - WooCommerce Stylesheet & Wholesale Customizations
 *
 * @package Keshri_Scientific
 * @version 1.0.0
 */

/* ==========================================================================
   WOOCOMMERCE PRODUCT GRID (ARCHIVES & SHORTCODES)
   ========================================================================== */

ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 25px 0 !important;
}

ul.products.columns-5,
.woocommerce .columns-5 ul.products,
.columns-5 ul.products {
    grid-template-columns: repeat(5, 1fr) !important;
}

ul.products.columns-6,
.columns-6 ul.products {
    grid-template-columns: repeat(6, 1fr) !important;
}

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

ul.products.columns-3,
.columns-3 ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
}

@media (max-width: 1200px) {

    ul.products.columns-5,
    .columns-5 ul.products,
    ul.products.columns-6,
    .columns-6 ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {

    ul.products,
    ul.products.columns-5,
    .columns-5 ul.products,
    ul.products.columns-4,
    .columns-4 ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }
}

@media (max-width: 480px) {

    ul.products,
    ul.products.columns-5,
    .columns-5 ul.products,
    ul.products.columns-4,
    .columns-4 ul.products {
        grid-template-columns: 1fr !important;
    }
}

ul.products::before,
ul.products::after {
    display: none !important;
}

/* ==========================================================================
   PRODUCT CARDS (REFERENCE DESIGN SPECIFICATION)
   ========================================================================== */

/* Header Tab Strip (Matching reference image) */
.ks-supplies-header-wrap {
    margin-bottom: 22px;
    border-bottom: 2px solid #E5E7EB;
    position: relative;
}

.ks-supplies-tabs {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ks-supplies-tab-btn {
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ks-navy, #082D55);
    padding: 0 0 12px 0;
    position: relative;
    cursor: pointer;
    line-height: 1.2;
    letter-spacing: -0.2px;
}

.ks-supplies-tab-btn .ks-tab-indicator {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #EB6C2C;
    border-radius: 2px;
}

/* 6-Column Grid */
.ks-product-grid-6,
ul.products.columns-6,
.columns-6 ul.products {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 14px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 35px 0 !important;
}

/* Base Product Card Style (Compact Reference Design) */
ul.products li.product.ks-product-card,
ul.products li.product,
.ks-product-card {
    background: #ffffff !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 10px !important;
    padding: 9px 10px 10px !important;
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease !important;
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

ul.products li.product.ks-product-card:hover,
ul.products li.product:hover,
.ks-product-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.08) !important;
    border-color: #CBD5E1 !important;
}

/* 1. Image Area */
.ks-pc-image-wrap {
    width: 100%;
    height: 125px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    background: #ffffff;
    overflow: hidden;
}

.ks-pc-image-wrap a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.ks-pc-img,
ul.products li.product a img.ks-pc-img,
ul.products li.product a img {
    max-height: 115px !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 auto !important;
    border-radius: 0 !important;
    transition: transform 0.25s ease !important;
}

ul.products li.product:hover .ks-pc-img,
ul.products li.product:hover a img,
.ks-product-card:hover .ks-pc-img {
    transform: scale(1.03) !important;
}

/* 2. Rating Badge */
.ks-pc-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #FEF9C3;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 6px;
    width: fit-content;
    line-height: 1.1;
}

.ks-pc-rating-score {
    font-size: 0.70rem;
    font-weight: 700;
    color: #111827;
}

.ks-pc-rating-star {
    font-size: 0.72rem;
    color: #16A34A;
    line-height: 1;
}

.ks-pc-review-count {
    font-size: 0.65rem;
    font-weight: 600;
    color: #4B5563;
}

/* 3. Product Title - Compact 2-Line Clamped Display with Ellipsis */
.ks-pc-title,
ul.products li.product h3.ks-pc-title,
ul.products li.product .woocommerce-loop-product__title {
    font-family: inherit !important;
    font-size: 0.80rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    color: #1F2937 !important;
    margin: 0 0 6px 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    text-align: left !important;
}

.ks-pc-title a,
ul.products li.product .woocommerce-loop-product__title a {
    color: #1F2937 !important;
    text-decoration: none !important;
    display: inline !important;
    transition: color 0.18s ease !important;
}

.ks-pc-title a:hover,
ul.products li.product .woocommerce-loop-product__title a:hover {
    color: #EB6C2C !important;
}

/* 4. Price Row */
.ks-pc-price-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 7px;
    flex-wrap: wrap;
}

.ks-pc-price,
ul.products li.product .ks-pc-price,
ul.products li.product .price {
    font-size: 0.98rem !important;
    font-weight: 800 !important;
    color: #111827 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 2px !important;
    letter-spacing: -0.2px !important;
}

.ks-pc-price .woocommerce-Price-currencySymbol {
    font-weight: 800 !important;
}

.ks-pc-mrp {
    font-size: 0.70rem;
    font-weight: 500;
    color: #6B7280;
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
}

.ks-pc-mrp del,
ul.products li.product .ks-pc-mrp del,
ul.products li.product .price del {
    color: #9CA3AF !important;
    font-size: 0.70rem !important;
    font-weight: 500 !important;
    text-decoration: line-through !important;
}

/* 5. Add to Cart Button (Solid Vibrant Orange, Compact Height) */
.ks-pc-action-wrap {
    width: 100%;
    margin-top: auto;
}

.ks-pc-add-to-cart-btn,
ul.products li.product .ks-pc-add-to-cart-btn,
ul.products li.product a.button.ks-pc-add-to-cart-btn,
ul.products li.product .button {
    display: block !important;
    width: 100% !important;
    background: #EB6C2C !important;
    color: #FFFFFF !important;
    font-family: inherit !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    text-align: center !important;
    padding: 7px 0 !important;
    border-radius: 6px !important;
    border: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: background 0.18s ease, transform 0.12s ease !important;
    box-sizing: border-box !important;
    line-height: 1.2 !important;
    margin: 0 !important;
}

.ks-pc-add-to-cart-btn:hover,
ul.products li.product .ks-pc-add-to-cart-btn:hover,
ul.products li.product a.button.ks-pc-add-to-cart-btn:hover,
ul.products li.product .button:hover {
    background: #D9531E !important;
    color: #FFFFFF !important;
    transform: translateY(-1px) !important;
}

/* 6. Delivery Estimate Row */
.ks-pc-delivery-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    margin-top: 5px;
    font-size: 0.68rem;
    font-weight: 500;
    color: #4B5563;
}

.ks-pc-truck-icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    color: #4B5563;
}

.ks-pc-delivery-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive Grid */
@media (max-width: 1280px) {

    .ks-product-grid-6,
    ul.products.columns-6,
    .columns-6 ul.products {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 10px !important;
    }
}

@media (max-width: 992px) {

    .ks-product-grid-6,
    ul.products.columns-6,
    .columns-6 ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }
}

@media (max-width: 768px) {

    .ks-product-grid-6,
    ul.products.columns-6,
    .columns-6 ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    ul.products li.product.ks-product-card,
    ul.products li.product,
    .ks-product-card {
        padding: 8px !important;
        border-radius: 8px !important;
    }

    .ks-pc-image-wrap {
        height: 110px;
    }

    .ks-pc-img,
    ul.products li.product a img {
        max-height: 100px !important;
    }

    .ks-pc-title,
    ul.products li.product .woocommerce-loop-product__title {
        font-size: 0.78rem !important;
        height: 42px !important;
        min-height: 42px !important;
        max-height: 42px !important;
    }

    .ks-pc-price {
        font-size: 0.92rem !important;
    }

    .ks-pc-add-to-cart-btn,
    ul.products li.product .button {
        padding: 6px 0 !important;
        font-size: 0.70rem !important;
    }

    .ks-pc-delivery-row {
        font-size: 0.64rem;
    }
}

@media (max-width: 480px) {
    .ks-product-grid-6,
    ul.products.columns-6,
    .columns-6 ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }
}

/* Sale Badge */
span.onsale {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    left: auto !important;
    margin: 0 !important;
    background: var(--ks-accent) !important;
    color: #ffffff !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
    border-radius: var(--ks-radius-full) !important;
    min-height: auto !important;
    line-height: 1.2 !important;
    z-index: 5 !important;
}

/* ==========================================================================
   SHOP & ARCHIVE LAYOUT
   ========================================================================== */

.ks-shop-wholesale-banner {
    background: #ffffff;
    border-left: 4px solid var(--ks-accent, #EA580C);
    box-shadow: 0 4px 16px rgba(8, 45, 85, 0.07);
    padding: 16px 22px;
    border-radius: var(--ks-radius-md, 12px);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #edf2f7;
    border-left: 4px solid var(--ks-accent, #EA580C);
}

.ks-swb-content-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.ks-swb-icon {
    font-size: 2.2rem;
    line-height: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ks-swb-text {
    flex: 1;
    min-width: 0;
}

.ks-swb-text strong {
    display: block;
    color: var(--ks-navy, #102B46);
    font-family: var(--ks-font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.35;
    word-break: normal;
}

.ks-swb-text span {
    color: var(--ks-text-muted, #64748b);
    font-size: 0.88rem;
    line-height: 1.5;
    display: block;
}

.ks-shop-wholesale-banner .ks-open-enquiry-modal {
    flex-shrink: 0;
    white-space: nowrap;
    background: var(--ks-accent, #EA580C);
    color: #ffffff;
    border: none;
    padding: 11px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(234, 88, 12, 0.28);
    transition: all 0.25s ease;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ks-shop-wholesale-banner .ks-open-enquiry-modal:hover {
    background: #c2410c;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(234, 88, 12, 0.38);
}

/* Tablet & Mobile Responsiveness for Wholesale Banner */
@media (max-width: 860px) {
    .ks-shop-wholesale-banner {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 16px 18px !important;
        gap: 14px !important;
        margin-bottom: 22px !important;
    }

    .ks-swb-content-wrap {
        width: 100% !important;
        gap: 14px !important;
        align-items: flex-start !important;
    }

    .ks-swb-icon {
        font-size: 2rem !important;
        margin-top: 2px !important;
    }

    .ks-swb-text {
        width: 100% !important;
    }

    .ks-swb-text strong {
        font-size: 1rem !important;
        margin-bottom: 4px !important;
    }

    .ks-swb-text span {
        font-size: 0.85rem !important;
        line-height: 1.45 !important;
    }

    .ks-shop-wholesale-banner .ks-open-enquiry-modal {
        width: 100% !important;
        padding: 12px 18px !important;
        font-size: 0.95rem !important;
    }
}

@media (max-width: 480px) {
    .ks-shop-wholesale-banner {
        padding: 14px 14px !important;
        gap: 12px !important;
        border-radius: 10px !important;
        border-left-width: 4px !important;
    }

    .ks-swb-content-wrap {
        gap: 10px !important;
    }

    .ks-swb-icon {
        font-size: 1.7rem !important;
    }

    .ks-swb-text strong {
        font-size: 0.95rem !important;
        line-height: 1.35 !important;
    }

    .ks-swb-text span {
        font-size: 0.82rem !important;
        line-height: 1.45 !important;
    }

    .ks-shop-wholesale-banner .ks-open-enquiry-modal {
        padding: 11px 16px !important;
        font-size: 0.9rem !important;
    }
}

.ks-shop-body-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 35px;
}

.ks-shop-sidebar .ks-widget {
    background: #ffffff;
    border: 1px solid var(--ks-border-light);
    border-radius: var(--ks-radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--ks-shadow-sm);
}

.ks-widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ks-navy);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--ks-border-light);
}

.ks-widget-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ks-widget-cat-list li {
    margin-bottom: 10px;
}

.ks-widget-cat-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--ks-navy);
    font-size: 0.9rem;
    font-weight: 500;
}

.ks-widget-cat-list li a:hover {
    color: var(--ks-primary);
    padding-left: 4px;
}

.ks-widget-cat-list li a span.count {
    font-size: 0.8rem;
    color: var(--ks-text-light);
}

.ks-wholesale-callout-widget {
    background: linear-gradient(135deg, #102B46 0%, #0875C9 100%);
    border: none;
    border-radius: 12px;
    padding: 22px 20px;
    box-shadow: 0 4px 16px rgba(8, 45, 85, 0.16);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ks-wholesale-callout-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8, 45, 85, 0.22);
}

.ks-wcw-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.ks-wcw-icon {
    font-size: 1.45rem;
    line-height: 1;
    flex-shrink: 0;
}

.ks-wcw-title {
    color: #ffffff;
    font-size: 1.12rem;
    font-weight: 700;
    margin: 0;
    padding: 0;
    border: none;
    line-height: 1.25;
}

.ks-wcw-desc {
    color: #E0F2FE;
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0 0 16px 0;
}

.ks-wcw-btn {
    width: 100%;
    background: #ffffff;
    color: #102B46;
    font-weight: 700;
    border: none;
    padding: 11px 16px;
    border-radius: 6px;
    font-size: 0.92rem;
    margin-bottom: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.ks-wcw-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ks-wcw-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    transition: opacity 0.2s ease;
}

.ks-wcw-phone:hover {
    opacity: 0.85;
    text-decoration: underline;
}

/* ==========================================================================
   POLISHED MEDICAL SINGLE PRODUCT PAGE (KESHRI SCIENTIFIC)
   ========================================================================== */

/* Main Page Container */
html {
    scroll-behavior: smooth;
}

body.single-product {
    overflow-x: clip !important;
}

.single-product .ks-woocommerce-page {
    padding-top: 25px !important;
    padding-bottom: 60px !important;
    background: #FFFFFF;
    overflow-x: clip !important;
}

.single-product div.product.ks-sp-container {
    display: block !important;
    width: 100% !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    padding: 0 15px;
    font-family: var(--ks-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    color: #1E293B;
}

/* 1. Breadcrumb Navigation */
.ks-sp-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    color: #64748B;
    margin-bottom: 24px;
    padding: 0 2px;
    line-height: 1.4;
}
.ks-sp-breadcrumb a {
    color: #64748B;
    text-decoration: none;
    transition: color 0.2s ease;
}
.ks-sp-breadcrumb a:hover {
    color: #F36B21;
}
.ks-sp-bc-sep {
    color: #CBD5E1;
    font-size: 0.95rem;
    font-weight: 600;
}
.ks-sp-bc-current {
    color: #102B46;
    font-weight: 600;
}

/* 2. Top 3-Column Layout Grid */
.ks-sp-layout-grid {
    display: grid !important;
    grid-template-columns: 400px 1fr 340px !important;
    gap: 32px !important;
    align-items: start !important;
    margin-bottom: 45px !important;
    width: 100% !important;
}

/* --------------------------------------------------------------------------
   COLUMN 1: PRODUCT GALLERY (STICKY / FIXED UNTIL HIGHLIGHTS END)
   -------------------------------------------------------------------------- */
.ks-sp-gallery-col {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 96px !important;
    z-index: 10;
    align-self: start !important;
    width: 100%;
    transition: top 0.25s ease;
    will-change: transform, top;
}

body.admin-bar .ks-sp-gallery-col {
    top: 128px !important;
}

@media (max-height: 640px) {
    .ks-sp-gallery-col {
        top: 60px !important;
    }
}

.ks-sp-main-image-wrap {
    position: relative;
    background: #ffffff;
    border: 1px solid #E5EAF0;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    min-height: 410px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(16, 43, 70, 0.04);
    transition: box-shadow 0.25s ease;
}
.ks-sp-main-image-wrap:hover {
    box-shadow: 0 6px 22px rgba(16, 43, 70, 0.08);
}

.ks-sp-image-brand-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #F36B21;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(243, 107, 33, 0.25);
}

.ks-sp-main-img-box {
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: zoom-in;
}
.ks-sp-main-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}
.ks-sp-main-img-box:hover img {
    transform: scale(1.03);
}

.ks-sp-zoom-hint {
    position: absolute;
    bottom: 4px;
    left: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 43, 70, 0.65);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    opacity: 0.75;
    transition: opacity 0.2s;
    pointer-events: none;
}
.ks-sp-main-img-box:hover .ks-sp-zoom-hint {
    opacity: 1;
}

.ks-sp-img-actions {
    position: absolute;
    bottom: 14px;
    right: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}
.ks-sp-img-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #E5EAF0;
    color: #64748B;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(16, 43, 70, 0.08);
    transition: all 0.2s ease;
    padding: 0;
}
.ks-sp-img-btn:hover {
    color: #F36B21;
    border-color: #F36B21;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 107, 33, 0.2);
}
.ks-sp-img-btn.is-active svg {
    fill: #EF4444;
    stroke: #EF4444;
}

/* Thumbnail Carousel Row */
.ks-sp-thumbnails-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    width: 100%;
}
.ks-sp-thumb-arrow {
    width: 30px;
    height: 56px;
    background: #F8FAFC;
    border: 1px solid #E5EAF0;
    border-radius: 6px;
    color: #102B46;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}
.ks-sp-thumb-arrow:hover {
    background: #102B46;
    color: #ffffff;
    border-color: #102B46;
}
.ks-sp-thumbnails-slider {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-grow: 1;
}
.ks-sp-thumbnails-slider::-webkit-scrollbar {
    display: none;
}
.ks-sp-thumb-item {
    position: relative;
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 6px;
    border: 1.5px solid #E5EAF0;
    background: #ffffff;
    padding: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ks-sp-thumb-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.ks-sp-thumb-item:hover {
    border-color: #CBD5E1;
    transform: translateY(-1px);
}
.ks-sp-thumb-item.is-active {
    border-color: #F36B21;
    box-shadow: 0 0 0 2px rgba(243, 107, 33, 0.25);
}
.ks-sp-thumb-video {
    position: relative;
}
.ks-sp-video-play-badge {
    position: absolute;
    inset: 0;
    background: rgba(220, 38, 38, 0.8);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Lightbox Modal */
.ks-sp-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(16, 43, 70, 0.88);
    backdrop-filter: blur(5px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.ks-sp-lightbox.is-visible {
    opacity: 1;
    pointer-events: auto;
}
.ks-sp-lightbox-overlay {
    position: absolute;
    inset: 0;
}
.ks-sp-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    z-index: 2;
}
.ks-sp-lightbox-img {
    max-width: 85vw;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}
.ks-sp-lightbox-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 36px;
    height: 36px;
    background: #102B46;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 50%;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: background 0.2s;
}
.ks-sp-lightbox-close:hover {
    background: #F36B21;
}

/* --------------------------------------------------------------------------
   COLUMN 2: PRODUCT INFO & SPECS
   -------------------------------------------------------------------------- */
.ks-sp-info-col {
    min-width: 0;
}

.ks-sp-category-tag {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748B;
    margin-bottom: 8px;
}
.ks-sp-category-tag a {
    color: #64748B;
    text-decoration: none;
    transition: color 0.15s ease;
}
.ks-sp-category-tag a:hover {
    color: #F36B21;
}

.ks-sp-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #102B46 !important;
    line-height: 1.35 !important;
    letter-spacing: -0.01em;
    margin: 0 0 10px 0 !important;
    word-break: break-word !important;
}

.ks-sp-ratings-social-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.ks-sp-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #FEF9C3;
    border: 1px solid #FEF08A;
    padding: 3px 9px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    color: #102B46;
    transition: all 0.15s ease;
}
.ks-sp-rating-badge:hover {
    background: #FEF08A;
    transform: translateY(-1px);
}
.ks-sp-star-icon {
    color: #16A34A;
    font-size: 0.95rem;
}

.ks-sp-social-proof-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #F8FAFC;
    border: 1px solid #E5EAF0;
    padding: 3px 9px;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
}

.ks-sp-brand-row {
    font-size: 0.95rem;
    color: #64748B;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}
.ks-sp-brand-title {
    color: #102B46;
    font-weight: 700;
}
a.ks-sp-brand-title,
a.ks-sp-brand-link {
    text-decoration: none;
    color: #102B46;
    transition: color 0.15s ease;
}
a.ks-sp-brand-title:hover,
a.ks-sp-brand-link:hover {
    color: #F36B21;
    text-decoration: underline;
}
.ks-sp-brand-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.76rem;
    font-weight: 600;
    color: #059669;
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    padding: 2px 7px;
    border-radius: 4px;
    margin-left: 6px;
}

/* Price Box */
.ks-sp-price-box {
    background: #F8FAFC;
    border: 1px solid #E5EAF0;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
}
.ks-sp-price-line {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 6px;
}
.ks-sp-current-price,
.ks-sp-current-price .amount,
.ks-sp-price-line > .price,
.ks-sp-price-line > .price .amount,
.ks-sp-price-line > .ks-sp-current-price,
.ks-sp-price-line > .ks-sp-current-price .amount {
    font-size: 1.65rem !important;
    font-weight: 700 !important;
    color: #102B46 !important;
    line-height: 1.1 !important;
}
.ks-sp-mrp-price {
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 5px !important;
    font-size: 0.95rem !important;
    color: #64748B !important;
}
.ks-sp-mrp-label {
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: #64748B !important;
}
.ks-sp-mrp-price del,
.ks-sp-original-price,
.ks-sp-price-box del {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    color: #64748B !important;
    font-size: 1.05rem !important;
    font-weight: 500 !important;
    line-height: 1.1 !important;
}
.ks-sp-mrp-price del .amount,
.ks-sp-mrp-price del .woocommerce-Price-amount,
.ks-sp-mrp-price del bdi,
.ks-sp-mrp-price del .woocommerce-Price-currencySymbol,
.ks-sp-original-price .amount,
.ks-sp-original-price .woocommerce-Price-amount,
.ks-sp-original-price bdi,
.ks-sp-original-price .woocommerce-Price-currencySymbol,
.ks-sp-price-box del .amount {
    font-size: 1.05rem !important;
    font-weight: 500 !important;
    color: #64748B !important;
    line-height: 1.1 !important;
    text-decoration: none !important;
}
.ks-sp-mrp-price del::after,
.ks-sp-original-price::after,
.ks-sp-price-box del::after {
    content: "" !important;
    position: absolute !important;
    left: -2px !important;
    right: -2px !important;
    top: 50% !important;
    height: 1.5px !important;
    background-color: #64748B !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
    z-index: 2 !important;
}
.ks-sp-discount-tag {
    display: inline-flex !important;
    align-items: center !important;
    color: #059669 !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px !important;
    margin-left: 2px !important;
}
.ks-sp-tax-label {
    font-size: 0.78rem;
    color: #64748B;
}
.ks-sp-price-sub {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
}
.ks-sp-gst-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ECFDF5;
    color: #047857;
    border: 1px solid #A7F3D0;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

/* Variation Pills */
.ks-sp-option-section {
    margin-bottom: 18px;
}
.ks-sp-option-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #102B46;
    margin-bottom: 8px;
}
.ks-sp-option-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ks-sp-pill-btn {
    padding: 7px 15px;
    border: 1.5px solid #CBD5E1;
    border-radius: 6px;
    background: #ffffff;
    color: #1E293B;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.ks-sp-pill-btn:hover {
    border-color: #F36B21;
    color: #F36B21;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(243, 107, 33, 0.12);
}
.ks-sp-pill-btn.is-selected {
    border: 2px solid #102B46;
    color: #102B46;
    font-weight: 700;
    background: #F8FAFC;
    box-shadow: 0 2px 5px rgba(16, 43, 70, 0.1);
}

/* Pack Selection Cards */
.ks-sp-pack-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.ks-sp-pack-card {
    position: relative;
    padding: 11px 18px;
    border: 1.5px solid #CBD5E1;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 125px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.ks-sp-pack-card:hover {
    border-color: #F36B21;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(243, 107, 33, 0.1);
}
.ks-sp-pack-card.is-selected {
    border: 2px solid #F36B21;
    background: #FFF7ED;
}
.ks-sp-pack-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #102B46;
}
.ks-sp-pack-sub {
    font-size: 0.75rem;
    color: #64748B;
    margin-top: 2px;
}
.ks-sp-pack-saving {
    position: absolute;
    top: -9px;
    right: 8px;
    background: #FFEDD5;
    color: #C2410C;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.ks-sp-pack-unit-price {
    font-size: 0.75rem;
    color: #64748B;
    margin-top: 3px;
    font-weight: 600;
}

/* Highlights Specs Box */
.ks-sp-highlights-box {
    background: #F8FAFC;
    border: 1px solid #E5EAF0;
    border-radius: 8px;
    padding: 18px 20px;
    margin-top: 22px;
}
.ks-sp-highlights-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}
.ks-sp-highlights-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #102B46;
    margin: 0;
}
.ks-sp-highlights-badge {
    background: #E0F2FE;
    color: #0369A1;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 4px;
    padding: 2px 8px;
}
.ks-sp-highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}
.ks-sp-highlights-list li {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid #EEF2F6;
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.5;
}
.ks-sp-highlights-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.ks-hl-dot {
    color: #059669;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 0.85rem;
}
.ks-sp-highlights-list li strong {
    color: #102B46;
    min-width: 140px;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   COLUMN 3: BUY BOX & AVAILABILITY
   -------------------------------------------------------------------------- */
.ks-sp-buybox-col {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 96px !important;
    z-index: 10;
    align-self: start !important;
    transition: top 0.25s ease;
    will-change: transform, top;
}

body.admin-bar .ks-sp-buybox-col {
    top: 128px !important;
}

@media (max-height: 640px) {
    .ks-sp-buybox-col {
        top: 60px !important;
    }
}
.ks-sp-buybox-card {
    background: #ffffff;
    border: 1px solid #E5EAF0;
    border-radius: 10px;
    padding: 16px 18px;
    box-shadow: 0 4px 20px rgba(16, 43, 70, 0.06);
}
.ks-sp-cart-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}
.ks-sp-btn-addtocart {
    width: 100% !important;
    height: 42px !important;
    background: #F36B21 !important;
    border: 1px solid #F36B21 !important;
    color: #ffffff !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.4px !important;
    text-transform: uppercase !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    box-shadow: 0 3px 10px rgba(243, 107, 33, 0.22) !important;
}
.ks-sp-btn-addtocart svg {
    width: 16px !important;
    height: 16px !important;
}
.ks-sp-btn-addtocart:hover {
    background: #D95610 !important;
    border-color: #D95610 !important;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(243, 107, 33, 0.3) !important;
}
.ks-sp-btn-buynow {
    width: 100%;
    height: 40px;
    background: #ffffff;
    border: 1.5px solid #102B46;
    color: #102B46;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.ks-sp-btn-buynow svg {
    width: 15px;
    height: 15px;
}
.ks-sp-btn-buynow:hover {
    background: #102B46;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(16, 43, 70, 0.16);
}

/* Trust Badges 2x2 */
.ks-sp-trust-grid {
    background: #F8FAFC;
    border: 1px solid #E5EAF0;
    border-radius: 6px;
    padding: 8px 10px;
    margin: 12px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.ks-sp-trust-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 600;
    color: #334155;
    letter-spacing: 0.2px;
}
.ks-sp-trust-icon {
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Pincode & Delivery Section */
.ks-sp-pincode-section {
    margin-bottom: 10px;
}
.ks-sp-pincode-heading {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #102B46;
    margin-bottom: 6px;
}
.ks-sp-pincode-input-row {
    display: flex;
    align-items: center;
    border: 1.5px solid #CBD5E1;
    border-radius: 5px;
    background: #ffffff;
    overflow: hidden;
    margin-bottom: 8px;
    transition: border-color 0.2s;
}
.ks-sp-pincode-input-row:focus-within {
    border-color: #102B46;
}
.ks-sp-pincode-input-row input {
    flex-grow: 1;
    border: none;
    padding: 6px 10px;
    font-size: 0.78rem;
    outline: none;
    color: #102B46;
    font-weight: 600;
}
.ks-sp-pincode-input-row button {
    background: #102B46;
    color: #ffffff;
    border: none;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 6px 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.ks-sp-pincode-input-row button:hover {
    background: #F36B21;
}
.ks-sp-pincode-status {
    font-size: 0.74rem;
    margin-bottom: 8px;
    padding: 5px 8px;
    border-radius: 5px;
    line-height: 1.35;
}
.ks-sp-pincode-status.is-success {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}
.ks-sp-pincode-status.is-error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* Delivery Details List */
.ks-sp-delivery-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.75rem;
    color: #334155;
    margin-top: 8px;
    line-height: 1.35;
}
.ks-sp-del-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ks-sp-del-icon {
    font-size: 0.85rem;
}
.ks-sp-timer-dot {
    color: #DC2626;
    font-size: 0.95rem;
    line-height: 1;
}
.ks-sp-del-timer strong {
    color: #DC2626;
}

/* Wholesale Quick Link */
.ks-sp-wholesale-quick-link {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #CBD5E1;
}
.ks-sp-enquiry-link-btn {
    width: 100%;
    background: #F0F9FF;
    border: 1px solid #BAE6FD;
    color: #0369A1;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 7px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.ks-sp-enquiry-link-btn:hover {
    background: #E0F2FE;
    color: #0284C7;
    transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   MIDDLE SECTIONS: AUTHENTICITY GUARANTEE & DESCRIPTION
   -------------------------------------------------------------------------- */
.ks-sp-authenticity-banner {
    background: #F8FAFC;
    border: 1px solid #E5EAF0;
    border-left: 4px solid #F36B21;
    border-radius: 8px;
    padding: 24px 28px;
    margin: 36px 0;
}
.ks-sp-auth-inner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.ks-sp-auth-shield-icon {
    font-size: 2rem;
    line-height: 1;
}
.ks-sp-auth-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #102B46;
    margin: 0 0 6px 0;
}
.ks-sp-auth-text {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.7;
    margin: 0;
}

/* Description Card */
.ks-sp-details-section {
    margin-bottom: 45px;
}
.ks-sp-desc-card {
    background: #ffffff;
    border: 1px solid #E5EAF0;
    border-radius: 10px;
    padding: 28px 32px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(16, 43, 70, 0.03);
}
.ks-sp-desc-heading {
    font-size: 1.35rem;
    font-weight: 800;
    color: #102B46;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #EEF2F6;
}
.ks-sp-desc-content {
    font-size: 0.92rem;
    color: #334155;
    line-height: 1.75;
    position: relative;
    max-height: 220px;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.ks-sp-desc-content.is-expanded {
    max-height: none;
}
.ks-sp-desc-subheading {
    font-size: 1.05rem;
    font-weight: 700;
    color: #102B46;
    margin: 20px 0 10px 0;
}
.ks-sp-desc-bullets {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ks-sp-desc-bullets li {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.ks-bullet-check {
    color: #059669;
    font-weight: bold;
    flex-shrink: 0;
}
.ks-sp-desc-toggle {
    margin-top: 14px;
    background: none;
    border: none;
    color: #F36B21;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s;
}
.ks-sp-desc-toggle:hover {
    color: #D95610;
    text-decoration: underline;
}

/* WooCommerce Tabs (Reviews, Technical Specs, Wholesale Policy) */
.ks-sp-tabs-wrap .description_tab,
.ks-sp-tabs-wrap #tab-description {
    display: none !important;
}

.ks-sp-tabs-wrap .woocommerce-tabs {
    background: #ffffff;
    border: 1px solid #E5EAF0;
    border-radius: 10px;
    padding: 26px 32px;
    box-shadow: 0 2px 8px rgba(16, 43, 70, 0.03);
    margin-top: 24px;
}
.ks-sp-tabs-wrap ul.wc-tabs {
    display: flex;
    gap: 20px;
    border-bottom: 2px solid #E5EAF0;
    margin: 0 0 24px 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}
.ks-sp-tabs-wrap ul.wc-tabs li {
    margin: 0;
    padding: 0;
    position: relative;
    top: 2px;
}
.ks-sp-tabs-wrap ul.wc-tabs li a {
    display: block;
    padding: 10px 18px;
    font-size: 0.98rem;
    font-weight: 700;
    color: #64748B;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}
.ks-sp-tabs-wrap ul.wc-tabs li.active a,
.ks-sp-tabs-wrap ul.wc-tabs li a:hover {
    color: #F36B21;
    border-bottom-color: #F36B21;
}

/* --------------------------------------------------------------------------
   SECTION 6A: FAQ ACCORDION
   -------------------------------------------------------------------------- */
.ks-sp-faq-section {
    margin-bottom: 45px;
}
.ks-sp-faq-card {
    background: #ffffff;
    border: 1px solid #E5EAF0;
    border-radius: 10px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(16, 43, 70, 0.03);
}
.ks-sp-faq-header {
    margin-bottom: 24px;
}
.ks-sp-section-tag {
    font-size: 0.78rem;
    font-weight: 700;
    color: #F36B21;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}
.ks-sp-faq-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #102B46;
    margin: 0 0 6px 0;
}
.ks-sp-faq-subtitle {
    font-size: 0.9rem;
    color: #64748B;
    margin: 0;
}
.ks-sp-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ks-faq-item {
    border: 1px solid #E5EAF0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.ks-faq-item.is-open {
    border-color: #CBD5E1;
}
.ks-faq-question {
    width: 100%;
    text-align: left;
    padding: 16px 20px;
    background: #ffffff;
    border: none;
    font-size: 0.95rem;
    font-weight: 700;
    color: #102B46;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.ks-faq-question:hover {
    background: #F8FAFC;
    color: #F36B21;
}
.ks-faq-icon {
    font-size: 1.25rem;
    font-weight: 700;
    color: #F36B21;
    flex-shrink: 0;
}
.ks-faq-answer {
    padding: 0 20px 18px 20px;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.7;
    background: #ffffff;
}
.ks-faq-answer p {
    margin: 0;
}

/* --------------------------------------------------------------------------
   SECTION 6B: INSTITUTIONAL PROCUREMENT CALLOUT BANNER
   -------------------------------------------------------------------------- */
.ks-sp-institutional-cta-section {
    margin-bottom: 50px;
}
.ks-sp-cta-card {
    background: linear-gradient(135deg, #102B46 0%, #0B1E32 100%);
    border-radius: 10px;
    padding: 34px 38px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    box-shadow: 0 6px 24px rgba(16, 43, 70, 0.15);
}
.ks-sp-cta-badge {
    color: #F36B21;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}
.ks-sp-cta-heading {
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px 0;
}
.ks-sp-cta-desc {
    font-size: 0.92rem;
    color: #94A3B8;
    max-width: 620px;
    margin: 0;
    line-height: 1.6;
}
.ks-sp-cta-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.ks-btn-cta-quote {
    background: #F36B21;
    color: #ffffff;
    padding: 13px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(243, 107, 33, 0.35);
}
.ks-btn-cta-quote:hover {
    background: #D95610;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(243, 107, 33, 0.45);
}
.ks-btn-cta-phone {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 13px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.ks-btn-cta-phone:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   SECTION 7: BASED ON YOUR BROWSING HISTORY (RELATED PRODUCTS)
   -------------------------------------------------------------------------- */
.ks-sp-browsing-history-section {
    margin-top: 40px;
}
.ks-sp-history-header {
    margin-bottom: 22px;
}
.ks-sp-history-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #102B46;
    margin: 0 0 4px 0;
}
.ks-sp-history-sub {
    font-size: 0.88rem;
    color: #64748B;
    margin: 0;
}

/* Clean up WooCommerce defaults */
.single-product .related.products > h2,
.single-product section.related > h2 {
    display: none !important;
}

/* --------------------------------------------------------------------------
   RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 1120px) {
    .ks-sp-layout-grid {
        grid-template-columns: 360px 1fr !important;
        gap: 26px !important;
    }
    .ks-sp-buybox-col {
        grid-column: 1 / -1 !important;
        position: static !important;
    }
}

@media (max-width: 768px) {
    .ks-sp-layout-grid {
        grid-template-columns: 1fr !important;
        gap: 22px !important;
    }
    .ks-sp-gallery-col {
        position: static !important;
        top: auto !important;
    }
    .ks-sp-main-image-wrap {
        min-height: 290px;
        padding: 16px;
    }
    .ks-sp-main-img-box {
        height: 260px;
    }
    .ks-sp-title {
        font-size: 1.15rem !important;
    }
    .ks-sp-current-price,
    .ks-sp-current-price .amount,
    .ks-sp-price-line > .price,
    .ks-sp-price-line > .price .amount,
    .ks-sp-price-line > .ks-sp-current-price,
    .ks-sp-price-line > .ks-sp-current-price .amount {
        font-size: 1.35rem !important;
    }
    .ks-sp-mrp-price del,
    .ks-sp-original-price,
    .ks-sp-price-box del,
    .ks-sp-mrp-price del .amount {
        font-size: 0.95rem !important;
    }
    .ks-sp-discount-tag {
        font-size: 0.95rem !important;
    }
    .ks-sp-buybox-card {
        padding: 18px 16px;
    }
    .ks-sp-authenticity-banner,
    .ks-sp-desc-card,
    .ks-sp-faq-card,
    .ks-sp-cta-card {
        padding: 22px 18px;
    }
    .ks-sp-cta-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .ks-sp-cta-actions {
        width: 100%;
        flex-direction: column;
    }
    .ks-btn-cta-quote,
    .ks-btn-cta-phone {
        width: 100%;
        justify-content: center;
    }
    .ks-sp-highlights-list li {
        flex-direction: column;
        gap: 2px;
    }
    .ks-sp-highlights-list li strong {
        min-width: 0;
    }
}


/* ==========================================================================
   RELATED & UPSELL PRODUCTS (SINGLE PRODUCT PAGE)
   ========================================================================== */

.single-product div.product .related.products,
.single-product div.product .upsells.products,
.single-product div.product section.related,
.single-product div.product section.upsells,
.single-product .related.products,
.single-product .upsells.products {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 55px !important;
    padding-top: 35px !important;
    border-top: 2px solid var(--ks-border-light) !important;
    clear: both !important;
    box-sizing: border-box !important;
}

.single-product .related.products>h2,
.single-product .upsells.products>h2,
.single-product section.related>h2,
.single-product section.upsells>h2 {
    font-size: 1.85rem !important;
    font-weight: 700 !important;
    color: var(--ks-navy) !important;
    margin-bottom: 28px !important;
    position: relative !important;
    padding-bottom: 12px !important;
}

.single-product .related.products>h2::after,
.single-product .upsells.products>h2::after,
.single-product section.related>h2::after,
.single-product section.upsells>h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 55px;
    height: 3px;
    background: var(--ks-primary);
    border-radius: 2px;
}

.single-product .related.products ul.products,
.single-product .upsells.products ul.products,
.single-product section.related ul.products,
.single-product section.upsells ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    box-sizing: border-box !important;
}

.single-product .related.products ul.products li.product,
.single-product .upsells.products ul.products li.product,
.single-product section.related ul.products li.product,
.single-product section.upsells ul.products li.product {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

@media (min-width: 992px) {
    .single-product .related.products ul.products {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
    }

    .single-product .related.products ul.products li.product {
        max-width: 320px !important;
    }
}

@media (max-width: 991px) {

    .single-product .related.products ul.products,
    .single-product .upsells.products ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
}

@media (max-width: 575px) {

    .single-product .related.products ul.products,
    .single-product .upsells.products ul.products {
        grid-template-columns: 1fr !important;
    }
}

.ks-wholesale-perks {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
}

.ks-wholesale-perks li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    font-size: 0.925rem;
    line-height: 1.6;
}

.ks-wholesale-perks li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--ks-primary);
    font-weight: bold;
}

/* ==========================================================================
   RESPONSIVE WOOCOMMERCE RULES
   ========================================================================== */

.ks-woocommerce-page {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: clip !important;
}

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

@media (max-width: 991px) {
    .single-product div.product {
        grid-template-columns: 1fr !important;
        gap: 36px !important;
    }

    .single-product div.product .woocommerce-product-gallery {
        max-width: 580px;
        margin: 0 auto !important;
    }

    .single-product .related.products ul.products,
    .single-product .upsells.products ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
}

@media (max-width: 768px) {
    .ks-shop-body-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .ks-wholesale-callout-widget {
        padding: 20px 16px !important;
        border-radius: 10px !important;
        margin-bottom: 20px !important;
    }

    .ks-wcw-title {
        font-size: 1.05rem !important;
    }

    .ks-wcw-desc {
        font-size: 0.88rem !important;
    }

    .ks-wcw-btn {
        padding: 12px 18px !important;
        font-size: 0.95rem !important;
    }

    .ks-wcw-phone {
        font-size: 0.95rem !important;
        padding: 4px 0 !important;
    }

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

    .single-product div.product {
        grid-template-columns: 100% !important;
        gap: 28px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .single-product div.product>* {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .single-product div.product .summary {
        width: 100% !important;
        max-width: 100% !important;
    }

    .single-product div.product .product_title {
        font-size: 1.65rem;
    }

    .single-product div.product .price {
        font-size: 1.45rem;
    }

    .woocommerce-tabs {
        padding: 24px 20px !important;
        margin-top: 30px !important;
    }
}

@media (max-width: 600px) {
    .single-product div.product {
        gap: 20px !important;
    }

    .single-product div.product .product_title {
        font-size: 1.35rem !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
    }

    .single-product div.product .price {
        font-size: 1.25rem !important;
        margin-bottom: 14px !important;
    }

    /* Single Enquiry Card */
    .ks-single-enquiry-card {
        padding: 16px 14px !important;
        margin: 18px 0 !important;
        border-radius: var(--ks-radius-md) !important;
    }

    .ks-single-enquiry-badge {
        font-size: 0.85rem !important;
        gap: 6px !important;
    }

    .ks-single-enquiry-badge svg {
        width: 16px !important;
        height: 16px !important;
    }

    .ks-single-enquiry-text {
        font-size: 0.84rem !important;
        line-height: 1.55 !important;
        margin-bottom: 14px !important;
    }

    /* Stack buttons on mobile */
    .ks-single-btn-group {
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
        margin-bottom: 15px !important;
    }

    .ks-single-btn-group .ks-btn,
    .ks-single-btn-group .ks-btn-whatsapp,
    .ks-single-btn-group .ks-open-enquiry-modal {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 12px 14px !important;
        font-size: 0.88rem !important;
        white-space: normal !important;
        line-height: 1.3 !important;
    }

    /* Stack meta specs */
    .ks-product-meta-specs {
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
        padding-top: 12px !important;
    }

    .ks-meta-spec-item {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }

    /* Form Cart */
    .single-product div.product form.cart {
        gap: 10px !important;
        width: 100% !important;
    }

    .single-product div.product form.cart .single_add_to_cart_button {
        flex: 1 1 auto !important;
        padding: 0 16px !important;
        font-size: 0.9rem !important;
        height: 42px !important;
    }

    .single-product div.product form.cart .quantity input.qty {
        width: 55px !important;
        height: 42px !important;
    }

    /* Tabs */
    .woocommerce-tabs {
        padding: 18px 14px !important;
        margin-top: 25px !important;
        border-radius: var(--ks-radius-md) !important;
    }

    .woocommerce-tabs ul.tabs {
        gap: 16px !important;
        margin-bottom: 16px !important;
        padding-bottom: 8px !important;
    }

    .woocommerce-tabs ul.tabs li a {
        font-size: 0.92rem !important;
        padding: 6px 0 !important;
    }

    .woocommerce-tabs .panel h2 {
        font-size: 1.25rem !important;
        margin-bottom: 12px !important;
    }

    .woocommerce-tabs .panel p,
    .woocommerce-tabs .panel li {
        font-size: 0.88rem !important;
        line-height: 1.6 !important;
    }

    /* Related & Upsells */
    .single-product .related.products,
    .single-product .upsells.products {
        margin-top: 35px !important;
        padding-top: 25px !important;
    }

    .single-product .related.products>h2,
    .single-product .upsells.products>h2 {
        font-size: 1.35rem !important;
        margin-bottom: 18px !important;
    }

    .single-product .related.products ul.products,
    .single-product .upsells.products ul.products {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

@media (max-width: 480px) {
    .ks-woocommerce-page.ks-section-padding {
        padding: 25px 0 40px !important;
    }

    ul.products {
        grid-template-columns: 1fr !important;
    }

    .single-product div.product .product_title {
        font-size: 1.22rem !important;
    }

    .single-product div.product .price {
        font-size: 1.18rem !important;
    }

    .single-product div.product .woocommerce-product-gallery img {
        padding: 8px;
    }
}

/* ==========================================================================
   CATEGORY & SHOP ARCHIVE LAYOUT (MATCHING REFERENCE DESIGN)
   ========================================================================== */

.ks-category-archive-page {
    background-color: #FFFFFF;
    padding-top: 18px;
    padding-bottom: 60px;
    font-family: var(--ks-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    color: #1E293B;
}

.ks-cat-container {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 1. Breadcrumbs */
.ks-cat-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.84rem;
    color: #64748B;
    margin-bottom: 20px;
    line-height: 1.4;
}
.ks-cat-bc-link {
    color: #64748B;
    text-decoration: none;
    transition: color 0.15s ease;
}
.ks-cat-bc-link:hover {
    color: #F36B21;
}
.ks-cat-bc-sep {
    color: #94A3B8;
    font-size: 0.95rem;
    font-weight: 600;
}
.ks-cat-bc-current {
    color: #102B46;
    font-weight: 600;
}

/* 2. Hero Section (Customizable Category Banner - Disabled) */
.ks-cat-hero-banner {
    display: none !important;
}

/* 3. Sub-heading & Sorting Bar */
.ks-cat-subbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    padding-bottom: 12px;
    border-bottom: 1px solid #E2E8F0;
}

.ks-cat-subbar-headline {
    flex: 1 1 auto;
}

.ks-cat-headline-text {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #102B46 !important;
    margin: 0 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.01em;
}

.ks-cat-subbar-sort {
    flex: 0 0 auto;
}

.ks-cat-sort-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.ks-cat-sort-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #475569;
}

.ks-cat-sort-wrapper form.woocommerce-ordering {
    margin: 0 !important;
    float: none !important;
}

.ks-cat-sort-wrapper select.orderby {
    background: #FFFFFF url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%23475569" stroke-width="2.5"><polyline points="6 9 12 15 18 9"/></svg>') no-repeat right 12px center !important;
    background-size: 12px !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 6px !important;
    padding: 7px 34px 7px 12px !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    color: #1E293B !important;
    outline: none !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ks-cat-sort-wrapper select.orderby:hover,
.ks-cat-sort-wrapper select.orderby:focus {
    border-color: #102B46 !important;
    box-shadow: 0 0 0 2px rgba(16, 43, 70, 0.08) !important;
}

/* 4. Two-Column Body Layout */
.ks-cat-body-layout {
    display: grid !important;
    grid-template-columns: 240px 1fr !important;
    gap: 28px !important;
    align-items: start !important;
    width: 100% !important;
}

/* --------------------------------------------------------------------------
   LEFT COLUMN: SIDEBAR FILTERS
   -------------------------------------------------------------------------- */
.ks-cat-sidebar-card {
    background: #FFFFFF;
    border: 1px solid #E5EAF0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(16, 43, 70, 0.03);
    overflow: hidden;
}

.ks-filter-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 18px;
    background: #F8FAFC;
    border-bottom: 1px solid #E5EAF0;
}

.ks-filter-main-title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #102B46 !important;
    margin: 0 !important;
    letter-spacing: 0.2px;
}

.ks-filter-reset-btn {
    background: none;
    border: none;
    color: #F36B21;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.15s;
}
.ks-filter-reset-btn:hover {
    background: #FFF7ED;
}

/* Filter Groups (Accordion) */
.ks-filter-group {
    border-bottom: 1px solid #E5EAF0;
}
.ks-filter-group:last-of-type {
    border-bottom: none;
}

.ks-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
}
.ks-filter-header:hover {
    background: #F8FAFC;
}

.ks-filter-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: #102B46;
}

.ks-filter-arrow {
    font-size: 0.75rem;
    color: #64748B;
    transition: transform 0.2s ease;
    display: inline-block;
}
.ks-filter-group.is-open .ks-filter-arrow {
    transform: rotate(180deg);
}

.ks-filter-body {
    padding: 6px 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ks-filter-checkbox-row,
.ks-filter-radio-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 0.86rem;
    color: #334155;
    transition: color 0.15s ease;
}
.ks-filter-checkbox-row:hover,
.ks-filter-radio-row:hover {
    color: #F36B21;
}

.ks-checkbox-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ks-filter-input {
    cursor: pointer;
    accent-color: #F36B21;
    width: 15px;
    height: 15px;
    margin: 0;
}

.ks-filter-name {
    font-weight: 500;
}

.ks-filter-count {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748B;
    background: #F1F5F9;
    padding: 2px 7px;
    border-radius: 10px;
}

.ks-filter-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: #334155;
    font-size: 0.86rem;
    padding: 3px 0;
    transition: color 0.15s;
}
.ks-filter-cat-link:hover,
.ks-filter-cat-link.is-active {
    color: #F36B21;
    font-weight: 600;
}

/* Institutional Wholesale Callout in Sidebar */
.ks-filter-wholesale-box {
    background: linear-gradient(135deg, #102B46 0%, #0F3B66 100%);
    color: #FFFFFF;
    padding: 16px;
    margin: 12px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(16, 43, 70, 0.12);
}
.ks-fwb-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.92rem;
    margin-bottom: 6px;
}
.ks-filter-wholesale-box p {
    font-size: 0.8rem;
    color: #E2E8F0;
    line-height: 1.4;
    margin: 0 0 10px 0;
}
.ks-fwb-btn {
    width: 100%;
    background: #F36B21;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}
.ks-fwb-btn:hover {
    background: #d95713;
}

/* --------------------------------------------------------------------------
   RIGHT COLUMN: 4-COLUMN PRODUCT GRID
   -------------------------------------------------------------------------- */
.ks-cat-products-col {
    width: 100%;
}

.ks-cat-products-col ul.products,
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.ks-cat-products-col ul.products::before,
.ks-cat-products-col ul.products::after {
    display: none !important;
}

/* Product Card Format (Matches Reference Exactly) */
.ks-cat-products-col li.product.ks-product-card,
.woocommerce ul.products li.product.ks-product-card {
    background: #FFFFFF !important;
    border: 1px solid #E5EAF0 !important;
    border-radius: 8px !important;
    padding: 14px 14px 12px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    position: relative !important;
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    box-shadow: 0 2px 8px rgba(16, 43, 70, 0.03) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}
.ks-cat-products-col li.product.ks-product-card:hover,
.woocommerce ul.products li.product.ks-product-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 18px rgba(16, 43, 70, 0.08) !important;
    border-color: #CBD5E1 !important;
}

/* Card Image Box */
.ks-pc-image-wrap {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    margin-bottom: 10px;
    overflow: hidden;
}
.ks-pc-image-wrap a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.ks-pc-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.25s ease;
}
.ks-product-card:hover .ks-pc-img {
    transform: scale(1.05);
}

/* Rating Badge Pill */
.ks-pc-rating-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #FEF9C3;
    border: 1px solid #FEF08A;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #102B46;
    margin-bottom: 8px;
    line-height: 1.2;
}
.ks-pc-rating-star {
    color: #16A34A;
    font-size: 0.85rem;
}
.ks-pc-review-count {
    color: #64748B;
    font-weight: 600;
    font-size: 0.75rem;
}

/* Card Title */
.ks-pc-title {
    font-size: 0.80rem !important;
    font-weight: 600 !important;
    color: #1F2937 !important;
    line-height: 1.35 !important;
    margin: 0 0 6px 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
}
.ks-pc-title a {
    color: #1E293B !important;
    text-decoration: none !important;
    transition: color 0.15s ease;
}
.ks-pc-title a:hover {
    color: #F36B21 !important;
}

/* Price Row */
.ks-pc-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.ks-pc-price,
.ks-pc-price .amount {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #102B46 !important;
}
.ks-pc-mrp,
.ks-pc-mrp del,
.ks-pc-mrp .amount {
    font-size: 0.82rem !important;
    color: #94A3B8 !important;
    font-weight: 500 !important;
    text-decoration: line-through !important;
}

/* Add To Cart Button (Solid Orange) */
.ks-pc-action-wrap {
    width: 100%;
    margin-bottom: 8px;
}
.ks-pc-add-to-cart-btn {
    width: 100% !important;
    background: #F36B21 !important;
    border: 1px solid #F36B21 !important;
    color: #FFFFFF !important;
    font-size: 0.86rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    padding: 9px 12px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    text-align: center !important;
    display: block !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 3px 10px rgba(243, 107, 33, 0.22) !important;
}
.ks-pc-add-to-cart-btn:hover {
    background: #d95713 !important;
    border-color: #d95713 !important;
    box-shadow: 0 5px 14px rgba(243, 107, 33, 0.32) !important;
    color: #FFFFFF !important;
    transform: translateY(-1px) !important;
}

/* Delivery Estimate Row */
.ks-pc-delivery-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    color: #4B5563;
    border-top: none;
    padding-top: 0;
    margin-top: 6px;
}
.ks-pc-truck-icon {
    width: 13px;
    height: 13px;
    color: #4B5563;
    flex-shrink: 0;
}
.ks-pc-delivery-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* No Products Found message */
.ks-cat-no-match-alert {
    grid-column: 1 / -1;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    color: #475569;
}
.ks-cat-no-match-alert h4 {
    margin: 0 0 8px 0;
    color: #102B46;
}

/* --------------------------------------------------------------------------
   RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 1240px) {
    .ks-cat-products-col ul.products,
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 991px) {
    .ks-cat-body-layout {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    .ks-cat-sidebar-col {
        order: 1;
    }
    .ks-cat-products-col {
        order: 2;
    }
    .ks-cat-products-col ul.products,
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .ks-cat-hero-banner {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 20px 22px !important;
        gap: 16px !important;
    }
    .ks-cat-hero-title {
        font-size: 1.75rem !important;
    }
    .ks-cat-hero-subtitle {
        font-size: 0.95rem !important;
    }
    .ks-cat-hero-image-wrap {
        width: 100% !important;
        justify-content: center !important;
    }
    .ks-cat-hero-img {
        max-height: 120px !important;
    }
    .ks-cat-subbar-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
    .ks-cat-sort-wrapper {
        width: 100% !important;
        justify-content: space-between !important;
    }
    .ks-cat-sort-wrapper select.orderby {
        flex: 1 !important;
    }
    .ks-cat-products-col ul.products,
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }
    .ks-pc-image-wrap {
        height: 145px !important;
    }
    .ks-pc-title {
        font-size: 0.78rem !important;
        height: 42px !important;
        min-height: 42px !important;
        max-height: 42px !important;
    }
    .ks-pc-price,
    .ks-pc-price .amount {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .ks-cat-container {
        padding: 0 12px !important;
    }
    .ks-cat-hero-banner {
        padding: 16px 16px !important;
        border-radius: 8px !important;
    }
    .ks-cat-hero-title {
        font-size: 1.45rem !important;
    }
    .ks-cat-headline-text {
        font-size: 1rem !important;
    }
    .ks-cat-products-col ul.products,
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .ks-cat-products-col li.product.ks-product-card,
    .woocommerce ul.products li.product.ks-product-card {
        padding: 10px 10px 8px !important;
    }
    .ks-pc-image-wrap {
        height: 125px !important;
    }
    .ks-pc-add-to-cart-btn {
        padding: 7px 8px !important;
        font-size: 0.78rem !important;
    }
}
