/**
 * Fokawood Minimal Luxury Shop & Catalog Stylesheet
 * Complete UI/UX Overhaul for WooCommerce Shop & Archive Pages
 * Compact Minimal Product Cards, Editorial Category Archive Headers, and High-Density Grid
 */

:root {
    --foka-primary: #ff7a00;
    --foka-primary-hover: #ea580c;
    --foka-primary-gradient: linear-gradient(135deg, #ff7a00 0%, #ea580c 100%);
    --foka-primary-light: #fff7ed;
    --foka-primary-border: #fed7aa;
    --foka-primary-glow: rgba(255, 122, 0, 0.22);
    --foka-dark: #0f172a;
    --foka-slate: #334155;
    --foka-muted: #64748b;
    --foka-light-gray: #f8fafc;
    --foka-card-border: #eef2f6;
    --foka-card-border-hover: #fed7aa;
    --foka-card-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
    --foka-card-shadow-hover: 0 12px 24px -6px rgba(15, 23, 42, 0.08);
    --foka-font: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --foka-radius-sm: 6px;
    --foka-radius-md: 10px;
    --foka-radius-lg: 14px;
    --foka-radius-full: 9999px;
    --foka-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ==========================================================================
   1. Strict Container Bounds & Page Wrapper
   ========================================================================== */

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

body.woocommerce .site-container,
body.woocommerce-page .site-container {
    width: 100% !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
}

body.woocommerce .wrapper,
body.woocommerce-page .wrapper,
body.woocommerce .post-box,
body.woocommerce-page .post-box,
body.woocommerce .content,
body.woocommerce .theiaStickySidebar,
body.woocommerce {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* ==========================================================================
   2. Master Shop & Catalog Control Hub (.foka-catalog-hub-master)
   ========================================================================== */

/* Completely hide any legacy isolated default page titles on archive pages */
.woocommerce-products-header,
.woocommerce.archive .page-title-wrap,
.woocommerce.archive 
.woocommerce.archive h1.page-title,
.woocommerce .page-title,
.woocommerce-page.archive .page-title,
.woocommerce .bread-crumb2,
.woocommerce .breadcrumb-digi {
    display: none !important;
}

.foka-catalog-hub-master {
    width: 100% !important;
    margin: 10px 0 22px 0 !important;
    box-sizing: border-box !important;
}

.foka-catalog-hub-card {
    background: #ffffff !important;
    border: 1.5px solid var(--foka-card-border) !important;
    border-radius: 20px !important;
    padding: 22px 24px !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    box-sizing: border-box !important;
    position: relative !important;
    overflow: hidden !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.foka-catalog-hub-card:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.05) !important;
}

/* 1. Hub Top Row */
.foka-hub-top-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
}

.foka-hub-title-group {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    flex: 1 1 auto !important;
}

.foka-hub-brand-icon {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border-radius: 12px !important;
    background: #fff7ed !important;
    border: 1px solid #fed7aa !important;
    color: #ea580c !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 6px rgba(255, 122, 0, 0.1) !important;
}

.foka-hub-titles {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    text-align: right !important;
}

.foka-hub-title-flex {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

.foka-hub-main-title {
    font-family: var(--foka-font) !important;
    font-size: clamp(17px, 2vw, 21px) !important;
    font-weight: 900 !important;
    color: var(--foka-dark) !important;
    margin: 0 !important;
    padding: 0 !important;
    letter-spacing: 0 !important;
    line-height: 1.45 !important;
}

.foka-hub-badge {
    display: inline-flex !important;
    align-items: center !important;
    padding: 3px 9px !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 999px !important;
    color: #475569 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
}

.foka-hub-subtitle {
    font-family: var(--foka-font) !important;
    font-size: 12.5px !important;
    color: var(--foka-muted) !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* Consultation Phone Capsule */
.foka-hub-cta-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 7px 14px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 999px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}

.foka-hub-cta-pill:hover {
    background: #fff7ed !important;
    border-color: #fed7aa !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 10px rgba(255, 122, 0, 0.12) !important;
}

.foka-hub-cta-icon {
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #ea580c !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.foka-hub-cta-text {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 12px !important;
    color: #334155 !important;
}

.foka-hub-cta-text small {
    color: #64748b !important;
    font-size: 11px !important;
}

.foka-hub-cta-text strong {
    color: #ea580c !important;
    font-weight: 800 !important;
    direction: ltr !important;
}

/* 2. Segmented Category Filter Strip */
.foka-hub-filter-strip {
    padding-top: 16px !important;
    border-top: 1px solid #f1f5f9 !important;
    width: 100% !important;
}

.foka-hub-chips-scroll {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 2px 2px 6px 2px !important;
    scrollbar-width: none !important;
}

.foka-hub-chips-scroll::-webkit-scrollbar {
    display: none !important;
}

.foka-chip-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 7px 15px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 999px !important;
    font-family: var(--foka-font) !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02) !important;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    cursor: pointer !important;
}

.foka-chip-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #94a3b8 !important;
    transition: color 0.2s ease !important;
}

.foka-chip-name {
    font-weight: 600 !important;
    line-height: 1.2 !important;
}

.foka-chip-count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1.5px 6.5px !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #64748b !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin-right: 3px !important;
    transition: all 0.2s ease !important;
}

.foka-chip-item:hover {
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    background: #ffffff !important;
    transform: translateY(-1.5px) !important;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06) !important;
}

.foka-chip-item:hover .foka-chip-icon {
    color: #ea580c !important;
}

.foka-chip-item.active {
    background: #0f172a !important;
    border-color: #0f172a !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18) !important;
}

.foka-chip-item.active .foka-chip-icon {
    color: #ff7a00 !important;
}

.foka-chip-item.active .foka-chip-name {
    color: #ffffff !important;
    font-weight: 800 !important;
}

.foka-chip-item.active .foka-chip-count {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

/* 3. Ordering & Results Count Bar Harmonization */
.woocommerce-result-count {
    font-family: var(--foka-font) !important;
    font-size: 12px !important;
    color: #64748b !important;
    font-weight: 500 !important;
    margin: 8px 0 16px 0 !important;
    padding: 0 !important;
}

.woocommerce-ordering {
    margin: 8px 0 16px 0 !important;
}

.woocommerce-ordering select.orderby {
    height: 36px !important;
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    padding: 0 12px !important;
    font-family: var(--foka-font) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
}

.woocommerce-ordering select.orderby:focus,
.woocommerce-ordering select.orderby:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06) !important;
}

.foka-cat-pill.active .foka-cat-count {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   4. Toolbar: Result Count & Modern Ordering Dropdown
   ========================================================================== */

body.woocommerce.archive .woocommerce-result-count,
body.woocommerce-page.archive .woocommerce-result-count {
    float: right !important;
    margin: 0 !important;
    padding: 6px 12px !important;
    font-family: var(--foka-font) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--foka-muted) !important;
    background: #ffffff !important;
    border: 1px solid var(--foka-card-border) !important;
    border-radius: var(--foka-radius-md) !important;
    box-shadow: var(--foka-card-shadow) !important;
    line-height: 1.4 !important;
    display: inline-flex !important;
    align-items: center !important;
}

body.woocommerce.archive .woocommerce-ordering,
body.woocommerce-page.archive .woocommerce-ordering {
    float: left !important;
    margin: 0 0 16px 0 !important;
    position: relative !important;
}

body.woocommerce.archive .woocommerce-ordering select.orderby,
body.woocommerce.archive .woocommerce-ordering select {
    font-family: var(--foka-font) !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: var(--foka-slate) !important;
    background: #ffffff !important;
    border: 1px solid var(--foka-card-border) !important;
    border-radius: var(--foka-radius-md) !important;
    padding: 7px 30px 7px 12px !important;
    height: 36px !important;
    line-height: 1.3 !important;
    cursor: pointer !important;
    box-shadow: var(--foka-card-shadow) !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: left 10px center !important;
}

body.woocommerce.archive .woocommerce-ordering select.orderby:hover,
body.woocommerce.archive .woocommerce-ordering select.orderby:focus {
    border-color: var(--foka-primary) !important;
}

.woocommerce.archive ::after {
    content: '';
    display: table;
    clear: both;
}

/* ==========================================================================
   5. Compact Minimal Products Grid Layout (4 to 5 Columns on Desktop)
   ========================================================================== */

.woocommerce ul.products:not(.elementor-grid),
.woocommerce-page ul.products:not(.elementor-grid),
.woocommerce ul.products[class*=columns-]:not(.elementor-grid) {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) !important;
    gap: 14px !important;
    margin: 0 0 28px 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* ==========================================================================
   6. Compact Minimal Product Card Architecture
   ========================================================================== */

body.woocommerce ul.products li.product.mw_product_item,
body.woocommerce-page ul.products li.product.mw_product_item,
.woocommerce ul.products li.product {
    background: #ffffff !important;
    border: 1px solid var(--foka-card-border) !important;
    border-radius: var(--foka-radius-lg) !important;
    box-shadow: var(--foka-card-shadow) !important;
    overflow: hidden !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    transition: transform 0.28s var(--foka-ease), box-shadow 0.28s ease, border-color 0.2s ease !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    text-align: right !important;
    will-change: transform, box-shadow;
}

/* Product Card Hover Lift */
body.woocommerce ul.products li.product.mw_product_item:hover,
.woocommerce ul.products li.product:hover {
    border-color: var(--foka-card-border-hover) !important;
    box-shadow: var(--foka-card-shadow-hover) !important;
    transform: translateY(-4px) !important;
}

/* Product Link Wrap */
body.woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
body.woocommerce ul.products li.product .product-content-wrapper {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    text-decoration: none !important;
    color: inherit !important;
    box-sizing: border-box !important;
}

/* ==========================================================================
   7. Compact Product Thumbnail & Image Zoom
   ========================================================================== */

body.woocommerce ul.products li.product .product-thumbnail-wrapper,
body.woocommerce ul.products li.product.product-style-4 .product-thumbnail-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 145px !important;
    min-height: 135px !important;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
    overflow: hidden !important;
    border-bottom: 1px solid var(--foka-card-border) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 8px !important;
    box-sizing: border-box !important;
}

body.woocommerce ul.products li.product .product-thumbnail-wrapper a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
}

body.woocommerce ul.products li.product .product-thumbnail-wrapper img,
body.woocommerce ul.products li.product.product-style-4 .product-thumbnail-wrapper img,
body.woocommerce ul.products li.product img {
    max-width: 100% !important;
    max-height: 125px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    display: block !important;
    margin: 0 auto !important;
}

body.woocommerce ul.products li.product.mw_product_item:hover .product-thumbnail-wrapper img,
body.woocommerce ul.products li.product:hover img {
    transform: scale(1.05) !important;
}

/* Modern Sale Badge */
body.woocommerce li.product span.onsale,
body.woocommerce li.product.product-style-4 span.onsale {
    position: absolute !important;
    top: 6px !important;
    right: 6px !important;
    left: auto !important;
    margin: 0 !important;
    padding: 3px 7px !important;
    font-family: var(--foka-font) !important;
    font-size: 9.5px !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #ffffff !important;
    border-radius: var(--foka-radius-full) !important;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3) !important;
    z-index: 4 !important;
}

/* ==========================================================================
   8. Product Meta & Body Content
   ========================================================================== */

body.woocommerce ul.products li.product .product-meta-wrapper,
body.woocommerce ul.products li.product.product-style-4 .product-meta-wrapper {
    padding: 10px 12px 12px 12px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
}

/* Product Title */
body.woocommerce .product .woocommerce-loop-product__title,
body.woocommerce ul.products li.product .woocommerce-loop-product__title,
body.woocommerce ul.products li.product.mw_product_item .woocommerce-loop-product__title,
body.woocommerce ul.products li.product.product-style-4 .woocommerce-loop-product__title {
    font-family: var(--foka-font) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    color: var(--foka-dark) !important;
    line-height: 1.4 !important;
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 36px !important;
    transition: color 0.2s ease !important;
    word-break: break-word !important;
}

body.woocommerce ul.products li.product.mw_product_item:hover .woocommerce-loop-product__title {
    color: var(--foka-primary) !important;
}

/* Product Attributes (Compact Chips) */
.product .product-attributes {
    margin: 2px 0 8px 0 !important;
}

.product .product-attributes ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
}

.product .product-attributes ul li {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    padding: 2px 6px !important;
    background: var(--foka-light-gray) !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: var(--foka-radius-sm) !important;
    font-family: var(--foka-font) !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    color: var(--foka-slate) !important;
    box-sizing: border-box !important;
}

.product .product-attributes ul li svg {
    color: var(--foka-primary) !important;
    width: 10px !important;
    height: 10px !important;
    flex-shrink: 0 !important;
}

.product .product-attributes ul li span.attr-title {
    color: var(--foka-muted) !important;
    font-weight: 500 !important;
}

.product .product-attributes ul li span.attr-value {
    color: var(--foka-dark) !important;
    font-weight: 700 !important;
}

/* Pricing Section */
body.woocommerce ul.products li.product .price,
body.woocommerce ul.products li.product.product-style-4 .price {
    font-family: var(--foka-font) !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: var(--foka-dark) !important;
    margin: 4px 0 8px 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: baseline !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
}

body.woocommerce ul.products li.product .price del,
body.woocommerce ul.products li.product .price del span {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #94a3b8 !important;
    text-decoration: line-through !important;
}

body.woocommerce ul.products li.product .price ins,
body.woocommerce ul.products li.product .price ins span,
body.woocommerce ul.products li.product .price > .woocommerce-Price-amount {
    font-size: 14px !important;
    font-weight: 900 !important;
    color: #ea580c !important;
    text-decoration: none !important;
}

body.woocommerce ul.products li.product .price .woocommerce-Price-currencySymbol {
    font-size: 10.5px !important;
    font-weight: 600 !important;
    margin-right: 2px !important;
}

/* ==========================================================================
   9. Refined Minimal Action Buttons (Compact & Sleek)
   ========================================================================== */

body.woocommerce ul.products li.product .woo-shop-product-after-loop-item,
body.woocommerce ul.products li.product .product-meta-wrapper > .button,
body.woocommerce ul.products li.product .button {
    margin-top: auto !important;
    margin-bottom: 2px !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

body.woocommerce ul li.product .button,
body.woocommerce ul li.product a.button,
body.woocommerce ul li.product .button.mw_add_to_cart,
body.woocommerce ul li.product.mw_product_item .button.mw_add_to_cart,
body.woocommerce .post-box ul.products li.mw_product_item .button.mw_add_to_cart {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 105px !important;
    max-width: 135px !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 14px !important;
    margin: 4px auto !important;
    background: #fff7ed !important;
    border: 1px solid #fed7aa !important;
    color: #ea580c !important;
    border-radius: var(--foka-radius-full) !important;
    font-family: var(--foka-font) !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    line-height: 1.4 !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(255, 122, 0, 0.08) !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

body.woocommerce ul li.product .button:hover,
body.woocommerce ul li.product a.button:hover,
body.woocommerce ul li.product .button.mw_add_to_cart:hover {
    background: linear-gradient(135deg, #ff7a00 0%, #ea580c 100%) !important;
    border-color: #ea580c !important;
    color: #ffffff !important;
    transform: translateY(-1.5px) !important;
    box-shadow: 0 4px 10px rgba(255, 122, 0, 0.28) !important;
}

body.woocommerce ul li.product .button:active,
body.woocommerce ul li.product a.button:active {
    transform: translateY(1px) scale(0.96) !important;
    box-shadow: 0 1px 3px rgba(255, 122, 0, 0.15) !important;
}

/* ==========================================================================
   10. Modern WooCommerce Pagination
   ========================================================================== */

body.woocommerce nav.woocommerce-pagination,
body.woocommerce-page nav.woocommerce-pagination {
    margin: 24px 0 16px !important;
    text-align: center !important;
}

body.woocommerce nav.woocommerce-pagination ul,
body.woocommerce-page nav.woocommerce-pagination ul {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    border: none !important;
    padding: 6px !important;
    background: #ffffff !important;
    border-radius: var(--foka-radius-md) !important;
    box-shadow: var(--foka-card-shadow) !important;
    border: 1px solid var(--foka-card-border) !important;
    box-sizing: border-box !important;
}

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

body.woocommerce nav.woocommerce-pagination ul li a,
body.woocommerce nav.woocommerce-pagination ul li span,
body.woocommerce-page nav.woocommerce-pagination ul li a,
body.woocommerce-page nav.woocommerce-pagination ul li span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 32px !important;
    height: 32px !important;
    padding: 0 8px !important;
    border-radius: var(--foka-radius-sm) !important;
    font-family: var(--foka-font) !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: var(--foka-slate) !important;
    text-decoration: none !important;
    transition: all 0.2s var(--foka-ease) !important;
    background: transparent !important;
}

body.woocommerce nav.woocommerce-pagination ul li a:hover {
    background: var(--foka-primary-light) !important;
    color: var(--foka-primary) !important;
}

body.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--foka-primary-gradient) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 8px var(--foka-primary-glow) !important;
}

/* ==========================================================================
   11. Tablet & Mobile Responsive Optimizations
   ========================================================================== */

/* Tablet (Max 1024px) */
@media screen and (max-width: 1024px) {
    .woocommerce ul.products:not(.elementor-grid),
    .woocommerce-page ul.products:not(.elementor-grid),
    .woocommerce ul.products[class*=columns-]:not(.elementor-grid) {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
}

/* Mobile (Max 768px) - High-Density Clean 2-Column Grid */
@media screen and (max-width: 768px) {
    body.woocommerce .site-container,
    body.woocommerce-page .site-container {
        padding: 0 8px !important;
    }

    .woocommerce.archive .woocommerce-products-header,
    .woocommerce.archive header.woocommerce-products-header,
    .woocommerce.archive .page-title-wrap {
        padding: 12px 14px !important;
        margin: 10px 0 14px 0 !important;
        border-radius: 12px !important;
    }

    .woocommerce.archive .woocommerce-products-header__title.page-title,
    .woocommerce.archive h1.page-title,
    .woocommerce-page.archive h1.page-title,
    .woocommerce .page-title {
        font-size: 16px !important;
    }

    /* Mobile Toolbar */
    body.woocommerce.archive .woocommerce-result-count,
    body.woocommerce-page.archive .woocommerce-result-count {
        float: none !important;
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 8px !important;
        font-size: 11px !important;
        padding: 6px 8px !important;
    }

    body.woocommerce.archive .woocommerce-ordering,
    body.woocommerce-page.archive .woocommerce-ordering {
        float: none !important;
        width: 100% !important;
        margin-bottom: 12px !important;
    }

    body.woocommerce.archive .woocommerce-ordering select.orderby {
        width: 100% !important;
        font-size: 11.5px !important;
        padding: 6px 26px 6px 8px !important;
        height: 32px !important;
    }

    /* 2-Column Grid */
    .woocommerce ul.products:not(.elementor-grid),
    .woocommerce-page ul.products:not(.elementor-grid),
    .woocommerce ul.products[class*=columns-]:not(.elementor-grid) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin-bottom: 18px !important;
    }

    /* Mobile Card */
    body.woocommerce ul.products li.product.mw_product_item,
    body.woocommerce-page ul.products li.product.mw_product_item {
        border-radius: var(--foka-radius-md) !important;
    }

    /* Mobile Thumbnail */
    body.woocommerce ul.products li.product .product-thumbnail-wrapper,
    body.woocommerce ul.products li.product.product-style-4 .product-thumbnail-wrapper {
        height: 115px !important;
        min-height: 105px !important;
        padding: 5px !important;
    }

    body.woocommerce ul.products li.product .product-thumbnail-wrapper img {
        max-height: 95px !important;
    }

    /* Mobile Meta */
    body.woocommerce ul.products li.product .product-meta-wrapper {
        padding: 6px 8px 8px 8px !important;
    }

    /* Mobile Title */
    body.woocommerce .product .woocommerce-loop-product__title,
    body.woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 11px !important;
        line-height: 1.3 !important;
        min-height: 28px !important;
        margin-bottom: 3px !important;
    }

    /* Mobile Attribute Badges */
    .product .product-attributes {
        margin: 1px 0 5px 0 !important;
    }

    .product .product-attributes ul li {
        padding: 1.5px 4px !important;
        font-size: 9px !important;
        gap: 2px !important;
    }

    /* Mobile Price */
    body.woocommerce ul.products li.product .price {
        font-size: 11.5px !important;
        margin: 2px 0 6px 0 !important;
    }

    body.woocommerce ul.products li.product .price ins span,
    body.woocommerce ul.products li.product .price > .woocommerce-Price-amount {
        font-size: 12px !important;
    }

    /* Mobile Refined Button */
    body.woocommerce ul li.product .button,
    body.woocommerce ul li.product a.button,
    body.woocommerce ul li.product .button.mw_add_to_cart {
        height: 26px !important;
        min-height: 26px !important;
        font-size: 10px !important;
        padding: 0 10px !important;
    }

    /* Mobile Badges */
    body.woocommerce li.product span.onsale {
        padding: 2px 5px !important;
        font-size: 8.5px !important;
        top: 4px !important;
        right: 4px !important;
    }
}

/* ==========================================================================
   12. Dark Mode Styles
   ========================================================================== */

html[data-theme="dark"] .woocommerce.archive .woocommerce-products-header,
body.dark-theme .woocommerce.archive .woocommerce-products-header,
html[data-theme="dark"] .woocommerce.archive .page-title-wrap,
body.dark-theme .woocommerce.archive .page-title-wrap {
    background: #1e293b !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .woocommerce.archive .woocommerce-products-header__title.page-title,
body.dark-theme .woocommerce.archive .woocommerce-products-header__title.page-title,
html[data-theme="dark"] .woocommerce .page-title,
body.dark-theme .woocommerce .page-title {
    color: #f8fafc !important;
}

html[data-theme="dark"] .woocommerce .bread-crumb2,
body.dark-theme .woocommerce .bread-crumb2,
html[data-theme="dark"] body.woocommerce.archive .woocommerce-result-count,
body.dark-theme body.woocommerce.archive .woocommerce-result-count,
html[data-theme="dark"] body.woocommerce.archive .woocommerce-ordering select.orderby,
body.dark-theme body.woocommerce.archive .woocommerce-ordering select.orderby,
html[data-theme="dark"] body.woocommerce nav.woocommerce-pagination ul,
body.dark-theme body.woocommerce nav.woocommerce-pagination ul {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .foka-cat-pill,
body.dark-theme .foka-cat-pill {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .foka-cat-pill .foka-cat-count,
body.dark-theme .foka-cat-pill .foka-cat-count {
    background: #0f172a !important;
    color: #94a3b8 !important;
}

html[data-theme="dark"] .foka-cat-pill:hover,
body.dark-theme .foka-cat-pill:hover {
    border-color: var(--foka-primary) !important;
    color: var(--foka-primary) !important;
    background: #0f172a !important;
}

html[data-theme="dark"] .foka-cat-pill.active,
body.dark-theme .foka-cat-pill.active {
    background: var(--foka-primary-gradient) !important;
    border-color: var(--foka-primary) !important;
    color: #ffffff !important;
}

html[data-theme="dark"] body.woocommerce ul.products li.product.mw_product_item,
body.dark-theme body.woocommerce ul.products li.product.mw_product_item {
    background: #1e293b !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] body.woocommerce ul.products li.product.mw_product_item:hover,
body.dark-theme body.woocommerce ul.products li.product.mw_product_item:hover {
    border-color: var(--foka-primary) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] body.woocommerce ul.products li.product .product-thumbnail-wrapper,
body.dark-theme body.woocommerce ul.products li.product .product-thumbnail-wrapper {
    background: #0f172a !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] body.woocommerce .product .woocommerce-loop-product__title,
body.dark-theme body.woocommerce .product .woocommerce-loop-product__title {
    color: #f8fafc !important;
}

html[data-theme="dark"] .product .product-attributes ul li,
body.dark-theme .product .product-attributes ul li {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] body.woocommerce ul.products li.product .price,
body.dark-theme body.woocommerce ul.products li.product .price {
    color: #f8fafc !important;
}

/* ==========================================================================
   13. Large Monitor Shop & Catalog Typography Scaling (1440px+ & 1700px+)
   ========================================================================== */
@media screen and (min-width: 1440px) {
    .foka-cat-pill {
        font-size: 13.5px !important;
        padding: 9px 18px !important;
    }
    .foka-cat-pill .foka-cat-count {
        font-size: 11px !important;
    }
    body.woocommerce .product .woocommerce-loop-product__title,
    body.woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 14.5px !important;
        min-height: 40px !important;
    }
    .product .product-attributes ul li {
        font-size: 11.5px !important;
        padding: 3px 8px !important;
    }
    body.woocommerce ul.products li.product .price {
        font-size: 15px !important;
    }
    body.woocommerce ul.products li.product .price ins span,
    body.woocommerce ul.products li.product .price > .woocommerce-Price-amount {
        font-size: 15.5px !important;
    }
    body.woocommerce ul li.product .button,
    body.woocommerce ul li.product a.button,
    body.woocommerce ul li.product .button.mw_add_to_cart {
        height: 34px !important;
        font-size: 12px !important;
        min-width: 115px !important;
        max-width: 145px !important;
    }
}

@media screen and (min-width: 1700px) {
    .foka-cat-pill {
        font-size: 15px !important;
        padding: 10px 22px !important;
    }
    .foka-cat-pill .foka-cat-count {
        font-size: 12px !important;
    }
    body.woocommerce .product .woocommerce-loop-product__title,
    body.woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 16px !important;
        min-height: 44px !important;
    }
    .product .product-attributes ul li {
        font-size: 12.5px !important;
        padding: 4px 10px !important;
    }
    body.woocommerce ul.products li.product .price {
        font-size: 16.5px !important;
    }
    body.woocommerce ul.products li.product .price ins span,
    body.woocommerce ul.products li.product .price > .woocommerce-Price-amount {
        font-size: 17px !important;
    }
    body.woocommerce ul li.product .button,
    body.woocommerce ul li.product a.button,
    body.woocommerce ul li.product .button.mw_add_to_cart {
        height: 38px !important;
        font-size: 13px !important;
        min-width: 125px !important;
        max-width: 160px !important;
    }
}
