/*
Theme Name: OceanWP Child Theme
Theme URI: https://oceanwp.org/
Description: OceanWP WordPress theme. Sample child theme.
Author: OceanWP
Author URI: https://oceanwp.org/
Template: oceanwp
Version: 1.0
*/

/* ═══════════════════════════════════════════
   CSS VARIABLES
═══════════════════════════════════════════ */
:root {
    --ali-orange:      #1EA3B1;
    --ali-orange-dk:   #1EA3B1;
    --ali-orange-lt:   #1EA3B1;
    --ali-blue:        #1EA3B1;
    --ali-green:       #1EA3B1;
    --ali-red:         #cc0000;
    --ali-text:        #222222;
    --ali-muted:       #666666;
    --ali-faint:       #999999;
    --ali-border:      #e0e0e0;
    --ali-bg:          #f4f4f4;
    --ali-white:       #ffffff;
    --ali-radius:      6px;
    --ali-shadow:      0 1px 8px rgba(0,0,0,0.10);
    --ali-shadow-md:   0 3px 16px rgba(0,0,0,0.14);
    --ali-ease:        0.18s ease;

    /* Shopify Dawn vars */
    --spf-page-bg:     #f6f6f5;
    --spf-bg:          #ffffff;
    --spf-text:        #1a1a1a;
    --spf-muted:       #6b7280;
    --spf-faint:       #b0b8c1;
    --spf-border:      #e5e7eb;
    --spf-border-dark: #c8cdd4;
    --spf-radius:      8px;
    --spf-radius-sm:   4px;
    --spf-shadow:      0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
    --spf-shadow-md:   0 4px 16px rgba(0,0,0,0.10);
    --spf-atc-bg:      #1a1a1a;
    --spf-atc-hover:   #404040;
    --spf-ease:        0.2s cubic-bezier(.4,0,.2,1);
    --spf-font:        'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ═══════════════════════════════════════════
   HIDE OCEANWP/WC DEFAULT PRODUCT ELEMENTS
═══════════════════════════════════════════ */
body.single-product .owp-product-nav-wrap,
body.single-product div.product .woocommerce-product-gallery,
body.single-product div.product .summary.entry-summary {
    display: none !important;
}

#main #content-wrap {
	padding: 0;
}


/* ═══════════════════════════════════════════
   FULL WIDTH LAYOUT ON PRODUCT PAGE
═══════════════════════════════════════════ */
body.single-product {
    width: 100%;
    max-width: 100%;
}
.spf-related-section{
	padding: 20px !important;
}
body.single-product #primary.content-area,
body.single-product .content-area {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

body.single-product #secondary,
body.single-product .sidebar,
body.single-product .secondary-sidebar,
body.single-product .right-sidebar {
    display: none !important;
}

body.single-product.has-sidebar #site-content,
body.single-product.has-sidebar .site-content {
    width: 100% !important;
}

body.single-product #content-wrap,
body.single-product .content-wrap {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.single-product .page-title-bar,
body.single-product .breadcrumbs {
    width: 100%;
}

/* ═══════════════════════════════════════════
   PRODUCT PAGE WRAPPER
═══════════════════════════════════════════ */
.ali-product-page {
    background: var(--spf-page-bg);
    font-family: var(--spf-font);
    color: var(--spf-text);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════
   CONTAINER
═══════════════════════════════════════════ */
.spf-container {
    width: 94%;
    max-width: 90%;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* ═══════════════════════════════════════════
   BREADCRUMB
═══════════════════════════════════════════ */
.spf-breadcrumb-bar {
    background: var(--spf-page-bg);
    padding: 14px 0;
    margin-bottom: 0;
    font-size: 13px;
}

.spf-breadcrumb-bar .woocommerce-breadcrumb {
    color: var(--spf-muted);
    margin: 0;
    font-size: 13px;
    letter-spacing: 0.1px;
}

.spf-breadcrumb-bar .woocommerce-breadcrumb a {
    color: var(--spf-muted);
    text-decoration: none;
    transition: color var(--spf-ease);
}

.spf-breadcrumb-bar .woocommerce-breadcrumb a:hover {
    color: var(--spf-text);
    text-decoration: underline;
}

/* ═══════════════════════════════════════════
   MAIN TWO-COLUMN GRID
═══════════════════════════════════════════ */
.spf-product-main {
    display: grid !important;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) !important;
    gap: 56px !important;
    align-items: start !important;
    margin: 28px 0 52px !important;
    width: 100% !important;
    float: none !important;
    background: var(--spf-bg);
    border-radius: 12px;
    padding: 36px !important;
    box-shadow: var(--spf-shadow);
    box-sizing: border-box !important;
}

.spf-gallery-col,
.spf-info-col {
    display: block !important;
    float: none !important;
    width: auto !important;
    min-width: 0;
}

/* ═══════════════════════════════════════════
   LEFT COLUMN — GALLERY
═══════════════════════════════════════════ */
.spf-gallery-col {
    position: sticky;
    top: 24px;
}

/* Gallery: thumb strip (left) + main image (right) */
.spf-gallery {
    display: flex;
    flex-direction: row;
    gap: 14px;
    align-items: flex-start;
}

/* Vertical thumbnail strip */
.spf-thumbs-v {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 76px;
    flex-shrink: 0;
    overflow-y: auto;
    max-height: 540px;
    scrollbar-width: thin;
    scrollbar-color: var(--spf-border) transparent;
}

.spf-thumbs-v::-webkit-scrollbar { width: 3px; }
.spf-thumbs-v::-webkit-scrollbar-track { background: transparent; }
.spf-thumbs-v::-webkit-scrollbar-thumb { background: var(--spf-border); border-radius: 2px; }

.ali-thumb {
    width: 72px;
    height: 72px;
    border: 2px solid var(--spf-border);
    border-radius: var(--spf-radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: border-color var(--spf-ease), transform var(--spf-ease), box-shadow var(--spf-ease);
    background: #f8f8f8;
    flex-shrink: 0;
    box-sizing: border-box;
    position: relative;
}

.ali-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.ali-thumb:hover img { transform: scale(1.06); }

.ali-thumb.active {
    border-color: var(--spf-text);
    box-shadow: 0 0 0 1px var(--spf-text);
}

.ali-thumb:hover:not(.active) {
    border-color: var(--spf-border-dark);
}

/* Main image area */
.spf-main-wrap {
    flex: 1;
    position: relative;
    border-radius: var(--spf-radius);
    overflow: hidden;
    background: #f8f8f8;
    box-shadow: inset 0 0 0 1px var(--spf-border);
    user-select: none;
	width: 100%;
}

/* Sale badge */
.spf-sale-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    background: #e53e3e;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: var(--spf-font);
}

/* ═══════════════════════════════════════════
   CAROUSEL
═══════════════════════════════════════════ */
.ali-carousel-track {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.ali-carousel-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.38s cubic-bezier(.4,0,.2,1), transform 0.38s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
}

.ali-carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.ali-carousel-slide.leave-left {
    opacity: 0;
    transform: translateX(-60px);
}

.ali-carousel-slide.leave-right {
    opacity: 0;
    transform: translateX(60px);
}

.ali-carousel-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    cursor: zoom-in;
    transition: transform 0.4s cubic-bezier(.4,0,.2,1);
    padding: 16px;
    box-sizing: border-box;
}

.ali-carousel-slide.active:hover .ali-carousel-img {
    transform: scale(1.06);
}

/* Arrow buttons */
.ali-car-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.12);
    background: rgba(255,255,255,0.97);
    box-shadow: 0 2px 8px rgba(0,0,0,0.14);
    cursor: pointer;
    font-size: 22px;
    color: var(--spf-text);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background var(--spf-ease), box-shadow var(--spf-ease), transform 0.15s ease;
    padding: 0;
    opacity: 0;
}

.spf-main-wrap:hover .ali-car-arrow { opacity: 1; }

.ali-car-arrow:hover {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    transform: translateY(-50%) scale(1.08);
}

.ali-car-prev { left: 12px; }
.ali-car-next { right: 12px; }

/* Counter badge */
.ali-car-counter {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.4px;
    pointer-events: none;
    font-family: var(--spf-font);
}

/* Dots */
.spf-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    pointer-events: all;
}

.spf-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0,0,0,0.20);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background var(--spf-ease), transform var(--spf-ease);
}

.spf-dot.active {
    background: var(--spf-text);
    transform: scale(1.25);
}

.spf-dot:hover:not(.active) { background: rgba(0,0,0,0.4); }

/* Zoom button */
.spf-zoom-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(0,0,0,0.10);
    border-radius: 6px;
    padding: 6px 8px;
    color: var(--spf-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--spf-ease), color var(--spf-ease), opacity var(--spf-ease);
    line-height: 1;
    opacity: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.spf-main-wrap:hover .spf-zoom-btn { opacity: 1; }
.spf-zoom-btn:hover { background: #fff; color: var(--spf-text); }

/* ═══════════════════════════════════════════
   RIGHT COLUMN — PRODUCT INFO
═══════════════════════════════════════════ */
.spf-info-col {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 4px;
}

/* Each info section gets its own bottom spacing */
.spf-category-crumb  { margin-bottom: 10px; }
.spf-product-title   { margin-bottom: 12px !important; }
.spf-rating-row      { margin-bottom: 16px; }
.spf-price-block     { margin-bottom: 20px; }
.spf-divider         { margin: 4px 0 20px; }
.spf-short-desc      { margin-bottom: 20px; }
.spf-tier-table      { margin-bottom: 20px; }
.spf-variations-wrap,
.spf-simple-wrap     { margin-bottom: 6px; }
.spf-moq-hint        { margin-bottom: 10px; }
.spf-meta-row        { margin-bottom: 6px; }

/* Category breadcrumb */
.spf-category-crumb {
    font-size: 12px;
    font-weight: 500;
    color: var(--spf-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.spf-category-crumb a {
    color: var(--spf-muted);
    text-decoration: none;
    transition: color var(--spf-ease);
}

.spf-category-crumb a:hover {
    color: var(--spf-text);
    text-decoration: underline;
}

/* Title */
.spf-product-title {
    font-size: 30px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: var(--spf-text) !important;
    margin: 0 !important;
    letter-spacing: -0.5px !important;
    font-family: var(--spf-font) !important;
}

/* Rating row */
.spf-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.spf-stars {
    display: flex;
    gap: 1px;
    line-height: 1;
}

.ali-star {
    font-style: normal;
    font-size: 14px;
}

.ali-star.full   { color: #f59e0b; }
.ali-star.half   { color: #f59e0b; opacity: 0.6; }
.ali-star.empty  { color: #e5e7eb; }

.spf-rating-val {
    font-weight: 700;
    color: var(--spf-text);
    font-size: 13px;
}

.spf-reviews-link {
    color: var(--spf-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-size: 13px;
    transition: color var(--spf-ease);
}

.spf-reviews-link:hover { color: var(--spf-text); }

/* Price */
.spf-price-block {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    padding: 16px 18px;
    background: #f8f9fa;
    border-radius: var(--spf-radius);
    border: 1px solid var(--spf-border);
}

.spf-price-block .woocommerce-Price-amount {
    font-size: 28px;
    font-weight: 800;
    color: var(--spf-text);
    letter-spacing: -0.5px;
}

.spf-price-block .price {
    font-size: 28px;
    font-weight: 800;
    color: var(--spf-text);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.spf-price-block del {
    font-size: 17px;
    font-weight: 400;
    color: var(--spf-muted);
    text-decoration: line-through;
}

.spf-price-block del .woocommerce-Price-amount {
    color: var(--spf-muted);
    font-size: 17px;
    font-weight: 400;
}

.spf-price-block ins {
    text-decoration: none;
}

.spf-fob {
    font-size: 12px;
    color: var(--spf-muted);
    align-self: center;
    margin-left: auto;
}

/* ═══════════════════════════════════════════
   TIER PRICING TABLE (plugin output)
═══════════════════════════════════════════ */
.spf-tier-pricing-wrap {
    margin-top: 4px;
}

/* Hide wrapper when table is empty (plugin outputs nothing) */
.spf-tier-pricing-wrap:empty { display: none; }

/* Outer wrapper the plugin generates */
.spf-tier-pricing-wrap .tiered-pricing-wrapper {
    margin: 0 !important;
}

.spf-tier-pricing-wrap .tiered-pricing-wrapper h3 {
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.7px !important;
    color: var(--spf-muted) !important;
    margin: 0 0 8px !important;
    font-family: var(--spf-font) !important;
}

/* The table itself */
.spf-tier-pricing-wrap .tiered-pricing-table,
.spf-tier-pricing-wrap table.shop_table {
    width: 100% !important;
    border-collapse: collapse !important;
    border-radius: var(--spf-radius) !important;
    overflow: hidden !important;
    border: 1px solid var(--spf-border) !important;
    font-family: var(--spf-font) !important;
    font-size: 13px !important;
    box-shadow: none !important;
    margin: 0 !important;
    background: #fff !important;
}

/* Table header */
.spf-tier-pricing-wrap .tiered-pricing-table thead tr,
.spf-tier-pricing-wrap table.shop_table thead tr {
    background: #f8f9fa !important;
    border-bottom: 1px solid var(--spf-border) !important;
}

.spf-tier-pricing-wrap .tiered-pricing-table thead th,
.spf-tier-pricing-wrap table.shop_table thead th {
    padding: 9px 14px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: var(--spf-muted) !important;
    text-align: left !important;
    border: none !important;
    white-space: nowrap !important;
}

/* Table rows */
.spf-tier-pricing-wrap .tiered-pricing-table tbody tr,
.spf-tier-pricing-wrap table.shop_table tbody tr {
    border-bottom: 1px solid var(--spf-border) !important;
    transition: background var(--spf-ease) !important;
}

.spf-tier-pricing-wrap .tiered-pricing-table tbody tr:last-child,
.spf-tier-pricing-wrap table.shop_table tbody tr:last-child {
    border-bottom: none !important;
}

.spf-tier-pricing-wrap .tiered-pricing-table tbody td,
.spf-tier-pricing-wrap table.shop_table tbody td {
    padding: 10px 14px !important;
    color: var(--spf-text) !important;
    border: none !important;
    font-size: 13px !important;
    vertical-align: middle !important;
    background: transparent !important;
}

/* Active tier row — highlighted */
.spf-tier-pricing-wrap .tiered-pricing-table tbody tr.tiered-pricing--active,
.spf-tier-pricing-wrap table.shop_table tbody tr.tiered-pricing--active {
    background: #f0fdf4 !important;
}

.spf-tier-pricing-wrap .tiered-pricing-table tbody tr.tiered-pricing--active td,
.spf-tier-pricing-wrap table.shop_table tbody tr.tiered-pricing--active td {
    color: #166534 !important;
    font-weight: 600 !important;
    background: transparent !important;
}

/* Hover on rows */
.spf-tier-pricing-wrap .tiered-pricing-table tbody tr:hover:not(.tiered-pricing--active),
.spf-tier-pricing-wrap table.shop_table tbody tr:hover:not(.tiered-pricing--active) {
    background: #f8f9fa !important;
}

/* Price amounts inside the table */
.spf-tier-pricing-wrap .tiered-pricing-table .woocommerce-Price-amount,
.spf-tier-pricing-wrap table.shop_table .woocommerce-Price-amount {
    font-weight: 600 !important;
    font-size: 13px !important;
    color: inherit !important;
}

/* Inline price display (block style) */
.spf-tier-pricing-wrap .tiered-pricing-blocks {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.spf-tier-pricing-wrap .tiered-pricing-block {
    flex: 1 !important;
    min-width: 80px !important;
    border: 1.5px solid var(--spf-border) !important;
    border-radius: var(--spf-radius-sm) !important;
    padding: 10px 12px !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: border-color var(--spf-ease), background var(--spf-ease) !important;
    background: #fff !important;
}

.spf-tier-pricing-wrap .tiered-pricing-block.tiered-pricing--active {
    border-color: var(--spf-text) !important;
    background: #f8f9fa !important;
}

.spf-tier-pricing-wrap .tiered-pricing-block:hover:not(.tiered-pricing--active) {
    border-color: var(--spf-border-dark) !important;
}

/* Override any inline style the plugin injects */
.spf-tier-pricing-wrap .tiered-pricing-table .tiered-pricing--active td {
    background-color: transparent !important;
}

/* Divider */
.spf-divider {
    border: none;
    border-top: 1px solid var(--spf-border);
}

/* Short description */
.spf-short-desc {
    font-size: 14px;
    line-height: 1.75;
    color: var(--spf-muted);
}

.spf-short-desc p { margin: 0 0 8px; }
.spf-short-desc p:last-child { margin-bottom: 0; }

/* ═══════════════════════════════════════════
   TIER PRICING TABLE
═══════════════════════════════════════════ */
.spf-tier-table {
    border: 1px solid var(--spf-border);
    border-radius: var(--spf-radius);
    overflow: hidden;
    box-shadow: var(--spf-shadow);
}

.spf-tier-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.spf-tier-table th {
    background: #f7f7f7;
    font-weight: 600;
    color: var(--spf-muted);
    padding: 9px 14px;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 1px solid var(--spf-border);
}

.spf-tier-table td {
    padding: 9px 14px;
    border-bottom: 1px solid #f0f0f0;
    color: var(--spf-text);
}

.spf-tier-table tr:last-child td { border-bottom: none; }
.spf-tier-table tr:nth-child(even) td { background: #fafafa; }

/* ═══════════════════════════════════════════
   VARIATIONS WRAPPER
═══════════════════════════════════════════ */
.spf-variations-wrap,
.spf-simple-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.spf-variations {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Native variation selects — visible & styled when NO swatch plugin is active.
   The plugin hides them with its own inline display:none; without the plugin
   a clean themed <select> shows so the product still works. */
.spf-variation-options select {
    appearance: none;
    -webkit-appearance: none;
    height: 44px;
    padding: 0 36px 0 14px;
    border: 1.5px solid var(--spf-border);
    border-radius: var(--spf-radius);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center / 12px no-repeat;
    font-family: var(--spf-font);
    font-size: 13px;
    font-weight: 500;
    color: var(--spf-text);
    cursor: pointer;
    transition: border-color var(--spf-ease), box-shadow var(--spf-ease);
    min-width: 180px;
    max-width: 100%;
}
.spf-variation-options select:focus {
    outline: none;
    border-color: var(--spf-text);
    box-shadow: 0 0 0 2px rgba(0,0,0,0.08);
}
.spf-variation-options select:hover {
    border-color: var(--spf-border-dark);
}

.spf-variation-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.spf-variation-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--spf-text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.spf-variation-selected {
    font-weight: 400;
    color: var(--spf-muted);
}

.spf-variation-selected::before { content: '— '; }

.spf-variation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Variation swatches — Shopify style */
.ali-var-swatch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 40px;
    padding: 0 16px;
    border: 1.5px solid var(--spf-border);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    color: var(--spf-text);
    transition: border-color var(--spf-ease), background var(--spf-ease), box-shadow var(--spf-ease);
    user-select: none;
    line-height: 1;
    background: #fff;
    position: relative;
    box-sizing: border-box;
}

.ali-var-swatch:hover {
    border-color: var(--spf-border-dark);
    background: #fafafa;
}

.ali-var-swatch.active {
    border-color: var(--spf-text);
    border-width: 2px;
    background: #fff;
    color: var(--spf-text);
    box-shadow: 0 0 0 1px var(--spf-text);
}

/* Checkmark on active swatch */
.ali-var-swatch.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 14px;
    height: 14px;
    background: var(--spf-text) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8' fill='none'%3E%3Cpath d='M1 4l3 3 5-6' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/8px no-repeat;
    border-radius: 50% 0 0 0;
}

.ali-var-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}


.ali-var-swatch.is-color.active {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--spf-text);
}

.ali-var-swatch.is-color.active::after { display: none; }

.ali-color-dot {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
}

/* ═══════════════════════════════════════════
   QUANTITY STEPPER
═══════════════════════════════════════════ */
.spf-atc-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
    margin-bottom: 12px;
}

.spf-qty-control {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--spf-border);
    border-radius: var(--spf-radius);
    overflow: hidden;
    height: 52px;
    flex-shrink: 0;
    background: #fff;
    transition: border-color var(--spf-ease);
}

.spf-qty-control:focus-within { border-color: var(--spf-text); }

.ali-qty-btn {
    width: 40px;
    height: 100%;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--spf-text);
    transition: background var(--spf-ease);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    font-weight: 300;
}

.ali-qty-btn:hover { background: #f5f5f5; }

.spf-qty-control input[type="number"] {
    width: 50px;
    height: 100%;
    border: none;
    border-left: 1px solid var(--spf-border);
    border-right: 1px solid var(--spf-border);
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--spf-text);
    outline: none;
    -moz-appearance: textfield;
    background: #fff;
    font-family: var(--spf-font);
}

.spf-qty-control input[type="number"]::-webkit-inner-spin-button,
.spf-qty-control input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.spf-moq-hint {
    font-size: 12px;
    color: var(--spf-muted);
    margin-top: -4px;
}

/* ═══════════════════════════════════════════
   BUTTONS — Shopify style
═══════════════════════════════════════════ */

/* Add to Cart */
.spf-btn-atc,
.spf-btn-atc.single_add_to_cart_button,
.single_add_to_cart_button.spf-btn-atc {
    flex: 1;
    min-width: 0;
    height: 52px;
    background: var(--spf-atc-bg) !important;
    color: #fff !important;
    border: 2px solid var(--spf-atc-bg) !important;
    border-radius: var(--spf-radius) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background var(--spf-ease), border-color var(--spf-ease), transform 0.15s ease !important;
    text-decoration: none !important;
    padding: 0 24px !important;
    letter-spacing: 0.2px;
    white-space: nowrap;
    font-family: var(--spf-font) !important;
}

.spf-btn-atc:hover,
.spf-btn-atc.single_add_to_cart_button:hover {
    background: var(--spf-atc-hover) !important;
    border-color: var(--spf-atc-hover) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.spf-btn-atc:active { transform: translateY(0) !important; }

/* Buy it now */
.spf-btn-buynow {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    width: 100%;
    background: #fff !important;
    color: var(--spf-text) !important;
    border: 1.5px solid var(--spf-border-dark) !important;
    border-radius: var(--spf-radius) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: background var(--spf-ease), border-color var(--spf-ease), transform 0.15s ease !important;
    letter-spacing: 0.2px;
    font-family: var(--spf-font) !important;
}

.spf-btn-buynow:hover {
    background: #f8f8f8 !important;
    border-color: var(--spf-text) !important;
    color: var(--spf-text) !important;
    transform: translateY(-1px);
}

.spf-btn-buynow:active { transform: translateY(0) !important; }

/* RFQ button */
.spf-btn-rfq {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    width: 100%;
    background: transparent !important;
    color: var(--ali-blue) !important;
    border: 1.5px solid var(--ali-blue) !important;
    border-radius: var(--spf-radius);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    transition: background var(--spf-ease);
}

.spf-btn-rfq:hover {
    background: #eef4ff !important;
}

/* Override WC default button inside our wrappers */
.spf-variations-wrap .button,
.spf-simple-wrap .button,
.spf-atc-row .button {
    background: var(--spf-atc-bg) !important;
    color: #fff !important;
    border: 2px solid var(--spf-atc-bg) !important;
    border-radius: var(--spf-radius) !important;
}

.spf-variations-wrap .button:hover,
.spf-simple-wrap .button:hover,
.spf-atc-row .button:hover {
    background: var(--spf-atc-hover) !important;
    border-color: var(--spf-atc-hover) !important;
}

/* ═══════════════════════════════════════════
   META ROW — SKU / STOCK
═══════════════════════════════════════════ */
.spf-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    flex-wrap: wrap;
}

.spf-sku {
    color: var(--spf-muted);
}

.ali-stock {
    display: inline-block;
    font-weight: 600;
    font-size: 13px;
}

.ali-stock.in-stock    { color: var(--ali-green); }
.ali-stock.on-backorder { color: var(--ali-orange); }
.ali-stock.out-of-stock { color: var(--ali-red); }

/* ═══════════════════════════════════════════
   SHIPPING ACCORDION
═══════════════════════════════════════════ */
.spf-shipping-accordion {
    border: 1px solid var(--spf-border);
    border-radius: var(--spf-radius);
    overflow: hidden;
    transition: border-color var(--spf-ease);
}

.spf-shipping-accordion:hover { border-color: var(--spf-border-dark); }

.spf-accordion-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--spf-text);
    cursor: pointer;
    list-style: none;
    background: #fff;
    user-select: none;
    transition: background var(--spf-ease);
    font-family: var(--spf-font);
}

.spf-accordion-summary::-webkit-details-marker { display: none; }

.spf-shipping-accordion:hover .spf-accordion-summary {
    background: #fafafa;
}

.spf-accordion-chevron {
    transition: transform 0.25s ease;
    flex-shrink: 0;
    color: var(--spf-muted);
}

.spf-shipping-accordion[open] .spf-accordion-chevron {
    transform: rotate(180deg);
}

.spf-accordion-body {
    padding: 14px 16px;
    border-top: 1px solid var(--spf-border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spf-shipping-row {
    display: flex;
    gap: 10px;
    font-size: 13px;
}

.spf-shipping-key {
    width: 120px;
    flex-shrink: 0;
    color: var(--spf-muted);
    font-weight: 500;
}

.spf-shipping-val {
    color: var(--spf-text);
    font-weight: 500;
}

/* ═══════════════════════════════════════════
   SHARE BUTTON
═══════════════════════════════════════════ */
.spf-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border: 1px solid var(--spf-border);
    border-radius: 20px;
    background: transparent;
    color: var(--spf-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--spf-ease);
    align-self: flex-start;
}

.spf-share-btn:hover {
    border-color: var(--spf-text);
    color: var(--spf-text);
}

/* ═══════════════════════════════════════════
   DETAIL TABS
═══════════════════════════════════════════ */
.spf-tabs-section {
    background: var(--spf-bg);
    border: 1px solid var(--spf-border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: var(--spf-shadow);
}

/* Tab nav — underline style */
.ali-tabs-nav {
    display: flex;
    background: #fff;
    border-bottom: 1px solid var(--spf-border);
    overflow-x: auto;
    scrollbar-width: none;
}

.ali-tabs-nav::-webkit-scrollbar { display: none; }

.ali-tab-btn {
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--spf-muted);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: color var(--spf-ease), border-color var(--spf-ease);
    position: relative;
    bottom: -1px;
    line-height: 1.4;
}

.ali-tab-btn:hover { color: var(--spf-text); }

.ali-tab-btn.active {
    color: var(--spf-text);
    font-weight: 600;
    border-bottom-color: var(--spf-text);
}

.ali-tab-panel {
    display: none;
    padding: 28px;
}

.ali-tab-panel.active {
    display: block;
    animation: spfFadeIn 0.18s ease;
}

@keyframes spfFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: none; }
}

/* Tab body */
.spf-tabs-body {
    background: var(--spf-bg);
}

/* Description */
.spf-desc-content {
    font-size: 14px;
    line-height: 1.8;
    color: var(--spf-text);
    max-width: 880px;
}

.spf-desc-content h2,
.spf-desc-content h3,
.spf-desc-content h4 {
    font-weight: 700;
    margin: 18px 0 8px;
}

.spf-desc-content p { margin: 0 0 12px; }

.spf-desc-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 10px 0;
    display: block;
}

.spf-desc-content ul,
.spf-desc-content ol {
    padding-left: 20px;
    margin: 8px 0;
}

.spf-desc-content li { margin: 5px 0; }

.spf-no-content {
    color: var(--spf-faint);
    font-style: italic;
    text-align: center;
    padding: 40px 0;
}

/* Specs table */
.spf-specs-wrap { overflow-x: auto; }

.spf-specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.spf-specs-table th,
.spf-specs-table td {
    padding: 11px 16px;
    border: 1px solid #f0f0f0;
    text-align: left;
    vertical-align: top;
}

.spf-specs-table th {
    width: 28%;
    background: #fafafa;
    font-weight: 600;
    color: var(--spf-muted);
}

.spf-specs-table tr:nth-child(even) td { background: #fcfcfc; }

/* ═══════════════════════════════════════════
   REVIEWS
═══════════════════════════════════════════ */
.spf-reviews-summary {
    display: flex;
    gap: 28px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.spf-reviews-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #fafafa;
    border: 1px solid var(--spf-border);
    border-radius: var(--spf-radius);
    padding: 18px 24px;
    min-width: 110px;
}

.spf-big-score {
    font-size: 44px;
    font-weight: 800;
    color: var(--spf-text);
    line-height: 1;
}

.spf-big-stars { display: flex; gap: 2px; }
.spf-big-stars .ali-star { font-size: 17px; }

.spf-review-total {
    font-size: 11px;
    color: var(--spf-faint);
    text-align: center;
}

.spf-reviews-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.spf-rating-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.spf-bar-label {
    width: 30px;
    font-weight: 600;
    color: var(--spf-muted);
    text-align: right;
    flex-shrink: 0;
}

.spf-rating-bar {
    flex: 1;
    height: 7px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.spf-rating-bar-fill {
    height: 100%;
    background: #f5a623;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.spf-bar-count {
    width: 20px;
    font-size: 11px;
    color: var(--spf-faint);
    flex-shrink: 0;
}

.spf-review-form-wrap {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.spf-review-form-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--spf-text);
    margin-bottom: 14px;
}

/* ═══════════════════════════════════════════
   REVIEWS SECTION (Standalone - Below Tabs)
═══════════════════════════════════════════ */
.spf-reviews-section {
    background: var(--spf-bg);
    border: 1px solid var(--spf-border);
    border-radius: 12px;
    overflow: hidden;
    padding: 36px;
    margin-bottom: 28px;
    box-shadow: var(--spf-shadow);
}

.spf-reviews-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--spf-text);
    margin: 0 0 32px;
    padding: 0;
}

/* ═══════════════════════════════════════════
   RFQ SECTION
═══════════════════════════════════════════ */
.spf-rfq-section {
    background: var(--spf-bg);
    border: 1px solid var(--spf-border);
    border-radius: var(--spf-radius);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--spf-shadow);
}

.spf-rfq-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--spf-text);
    margin-bottom: 18px;
}

/* ═══════════════════════════════════════════
   RELATED PRODUCTS
═══════════════════════════════════════════ */
.spf-related-section {
    background: var(--spf-bg);
    border-top: 1px solid var(--spf-border);
    padding: 32px 30px;
    margin-bottom:0;
	border-radius:15px;
}

.spf-related-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--spf-text);
    margin: 0 0 20px;
}

.spf-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.spf-related-card {
    border: 1px solid var(--spf-border);
    border-radius: var(--spf-radius);
    overflow: hidden;
    background: var(--spf-bg);
    transition: box-shadow var(--spf-ease);
    box-shadow: var(--spf-shadow);
}

.spf-related-card:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}

.spf-related-img-link {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f9f9f9;
    position: relative;
}

.spf-related-img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.spf-related-card:hover .spf-related-img-link img { transform: scale(1.04); }

.spf-related-sale-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--spf-text);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 2px;
    letter-spacing: 0.3px;
    z-index: 2;
}

.spf-related-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.spf-related-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--spf-text);
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.spf-related-name:hover { text-decoration: underline; }

.spf-related-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.spf-related-stars .ali-star { font-size: 11px; }

.spf-related-rating {
    font-size: 11px;
    color: var(--spf-faint);
    margin-left: 3px;
}

.spf-related-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--spf-text);
}

.spf-related-price .woocommerce-Price-amount { color: var(--spf-text); }

/* ═══════════════════════════════════════════
   STICKY ADD-TO-CART BAR
═══════════════════════════════════════════ */
.ali-sticky-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border-bottom: 1px solid var(--spf-border);
    box-shadow: 0 2px 10px rgba(0,0,0,0.10);
    transform: translateY(-100%);
    transition: transform 0.28s ease;
}

.ali-sticky-bar.visible { transform: translateY(0); }

.spf-sticky-inner {
    max-width: 1440px;
    width: 90%;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-sizing: border-box;
}

.spf-sticky-product {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.spf-sticky-img {
    width: 44px;
    height: 44px;
    border-radius: var(--spf-radius);
    object-fit: cover;
    border: 1px solid var(--spf-border);
    flex-shrink: 0;
}

.spf-sticky-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--spf-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spf-sticky-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--spf-text);
}

.spf-sticky-price .woocommerce-Price-amount { color: var(--spf-text); }

.spf-sticky-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.spf-sticky-actions .spf-btn-atc {
    flex: none;
    height: 40px;
    padding: 0 18px !important;
    font-size: 13px !important;
}

.spf-sticky-actions .spf-btn-buynow {
    width: auto;
    height: 40px;
    padding: 0 18px;
    font-size: 13px;
}

/* ═══════════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════════ */
.ali-lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 99998;
}

.ali-lightbox-overlay.open { display: block; }

.ali-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.ali-lightbox.open {
    display: flex;
    pointer-events: all;
}

.ali-lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ali-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

.ali-lightbox-close {
    position: absolute;
    top: 14px;
    right: 18px;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--spf-ease);
    line-height: 1;
}

.ali-lightbox-close:hover { background: rgba(255,255,255,0.3); }

.ali-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--spf-ease);
    line-height: 1;
}

.ali-lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.ali-lightbox-nav.prev { left: 16px; }
.ali-lightbox-nav.next { right: 16px; }

/* ═══════════════════════════════════════════════════════════════
   VARIATION SWATCHES FOR WOOCOMMERCE — THEME INTEGRATION
   Plugin: woo-variation-swatches (Emran Ahmed / GetWooPlugins)
   The plugin loads its own frontend.css; these rules override its
   CSS custom-properties to match our theme palette & sizing, fix
   layout inside .spf-variation-options, and add gallery-switch
   transitions for the variation image swap.
═══════════════════════════════════════════════════════════════ */

/* ── Plugin CSS custom-property overrides ──────────────────── */
/* Map our design tokens onto the plugin's own variables so it
   inherits our palette without us having to override every rule. */
:root {
    --wvs-single-product-item-width:     40px;
    --wvs-single-product-item-height:    40px;
    --wvs-single-product-item-font-size: 13px;

    /* normal shadow — subtle inner border */
    --wvs-item-box-shadow:
        inset 0 0 0 1px rgba(0,0,0,0.10);

    /* hover shadow — outer highlight ring */
    --wvs-hover-item-box-shadow:
        inset 0 0 0 1px rgba(0,0,0,0.20),
        0 0 0 2px #fff,
        0 0 0 3px var(--spf-border-dark);

    /* selected shadow — bold outer ring using our accent */
    --wvs-selected-item-box-shadow:
        inset 0 0 0 1px rgba(0,0,0,0.15),
        0 0 0 2px #fff,
        0 0 0 4px var(--spf-text);

    /* tooltip colours */
    --wvs-tooltip-background-color: var(--spf-text);
    --wvs-tooltip-text-color:       #fff;

    /* tick / cross SVG icons used by the plugin */
    --wvs-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8' fill='none'%3E%3Cpath d='M1 4l3 3 5-6' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --wvs-cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none'%3E%3Cpath d='M2 2l6 6M8 2l-6 6' stroke='%23b40000' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ── Hide the raw <select> the plugin leaves in the DOM ────── */
select.woo-variation-raw-select {
    display: none !important;
}

/* ── Swatch list — ul.variable-items-wrapper ───────────────── */
ul.variable-items-wrapper {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Keep .spf-variation-options flex so items stay in a row */
.spf-variation-options ul.variable-items-wrapper {
    flex-direction: row;
}

/* ── Base swatch — li.variable-item ───────────────────────── */
li.variable-item {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    box-sizing: border-box;
    list-style: none;
    margin: 0;
    transition:
        border-color var(--spf-ease),
        box-shadow   var(--spf-ease),
        transform    var(--spf-ease),
        opacity      var(--spf-ease);
    outline: none;
}
li.variable-item:focus-visible {
    box-shadow: 0 0 0 3px rgba(0,0,0,0.15);
}

/* ─────────────────────────────────────────────────────────────
   BUTTON / LABEL SWATCHES  — li.button-variable-item
───────────────────────────────────────────────────────────── */
li.variable-item.button-variable-item {
    min-width: 44px;
    height: 40px;
    padding: 0 16px;
    border: 1.5px solid var(--spf-border);
    border-radius: 6px;
    font-family: var(--spf-font);
    font-size: 13px;
    font-weight: 500;
    color: var(--spf-text);
    background: #fff;
    line-height: 1;
    letter-spacing: 0.01em;
    text-align: center;
    white-space: nowrap;
}
li.variable-item.button-variable-item:hover {
    border-color: var(--spf-border-dark);
    background: #fafafa;
}
li.variable-item.button-variable-item.selected {
    border-color: var(--spf-text);
    border-width: 2px;
    background: #fff;
    color: var(--spf-text);
    box-shadow: 0 0 0 1px var(--spf-text);
}
/* Tick corner on selected button swatch */
li.variable-item.button-variable-item.selected::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 14px;
    height: 14px;
    background: var(--spf-text) var(--wvs-tick) center / 8px no-repeat;
    border-radius: 50% 0 0 0;
}

/* ─────────────────────────────────────────────────────────────
   COLOR SWATCHES  — li.color-variable-item
───────────────────────────────────────────────────────────── */
li.variable-item.color-variable-item {
    width:  40px;
    height: 40px;
    border-radius: 6px;
    border: 2px solid transparent;
    box-shadow: var(--wvs-item-box-shadow);
    overflow: hidden;
    padding: 0;
}
li.variable-item.color-variable-item:hover {
    box-shadow: var(--wvs-hover-item-box-shadow);
    transform: scale(1.08);
}
li.variable-item.color-variable-item.selected {
    box-shadow: var(--wvs-selected-item-box-shadow);
    transform: none;
}
/* The plugin renders the colour as a background on the <span> inside */
li.variable-item.color-variable-item .variable-item-span {
    display: block;
    width: 100%;
    height: 100%;
}

/* ─────────────────────────────────────────────────────────────
   IMAGE SWATCHES  — li.image-variable-item
───────────────────────────────────────────────────────────── */
li.variable-item.image-variable-item {
    width:  52px;
    height: 52px;
    border-radius: 6px;
    border: 2px solid var(--spf-border);
    overflow: hidden;
    padding: 0;
}
li.variable-item.image-variable-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
li.variable-item.image-variable-item:hover {
    border-color: var(--spf-border-dark);
    box-shadow: 0 0 0 1px var(--spf-border-dark);
    transform: scale(1.06);
}
li.variable-item.image-variable-item.selected {
    border-color: var(--spf-text);
    border-width: 2px;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--spf-text);
    transform: none;
}

/* ─────────────────────────────────────────────────────────────
   RADIO SWATCHES  — li.radio-variable-item
───────────────────────────────────────────────────────────── */
li.variable-item.radio-variable-item {
    min-width: 44px;
    height: 40px;
    padding: 0 16px;
    border: 1.5px solid var(--spf-border);
    border-radius: 6px;
    font-family: var(--spf-font);
    font-size: 13px;
    font-weight: 500;
    color: var(--spf-text);
    background: #fff;
}
li.variable-item.radio-variable-item:hover {
    border-color: var(--spf-border-dark);
    background: #fafafa;
}
li.variable-item.radio-variable-item.selected {
    border-color: var(--spf-text);
    border-width: 2px;
    box-shadow: 0 0 0 1px var(--spf-text);
}

/* ─────────────────────────────────────────────────────────────
   SHAPE VARIANTS
   Plugin adds .wvs-style-rounded / .wvs-style-squared to the ul.
───────────────────────────────────────────────────────────── */
ul.variable-items-wrapper.wvs-style-rounded li.variable-item.button-variable-item,
ul.variable-items-wrapper.wvs-style-rounded li.variable-item.radio-variable-item {
    border-radius: 999px;
}
ul.variable-items-wrapper.wvs-style-rounded li.variable-item.color-variable-item,
ul.variable-items-wrapper.wvs-style-rounded li.variable-item.image-variable-item {
    border-radius: 50%;
}
ul.variable-items-wrapper.wvs-style-rounded li.variable-item.button-variable-item.selected::after {
    border-radius: 50% 0 0 0;
}

ul.variable-items-wrapper.wvs-style-squared li.variable-item {
    border-radius: 2px !important;
}

/* ─────────────────────────────────────────────────────────────
   OUT-OF-STOCK STATES
   Plugin adds .disabled and .no-stock to the li.
───────────────────────────────────────────────────────────── */

/* Blur behaviour — body.wvs-behavior-blur */
.wvs-behavior-blur li.variable-item.disabled,
.wvs-behavior-blur li.variable-item.no-stock {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: auto;   /* still hoverable for tooltip */
    filter: grayscale(40%);
}

/* Blur+no-cross — body.wvs-behavior-blur-no-cross */
.wvs-behavior-blur-no-cross li.variable-item.disabled,
.wvs-behavior-blur-no-cross li.variable-item.no-stock {
    opacity: 0.35;
    cursor: not-allowed;
    filter: grayscale(30%);
}

/* Cross / strike-through on disabled items (default cross icon) */
.wvs-behavior-blur li.variable-item.disabled::before,
.wvs-behavior-blur li.variable-item.no-stock::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom right,
        transparent calc(50% - 1px),
        rgba(180,0,0,0.50) calc(50% - 1px),
        rgba(180,0,0,0.50) calc(50% + 1px),
        transparent calc(50% + 1px)
    );
    border-radius: inherit;
    z-index: 1;
    pointer-events: none;
}

/* Hide behaviour — body.wvs-behavior-hide */
.wvs-behavior-hide li.variable-item.disabled,
.wvs-behavior-hide li.variable-item.no-stock {
    display: none !important;
}

/* ─────────────────────────────────────────────────────────────
   TOOLTIP
   Plugin uses [data-wvstooltip] attr + CSS ::before / ::after.
   No inner span — the tooltip is pure CSS on the li itself.
───────────────────────────────────────────────────────────── */
.wvs-tooltip li.variable-item[data-wvstooltip] {
    overflow: visible;  /* let pseudo-elements escape the box */
}

/* Tooltip bubble */
.wvs-tooltip li.variable-item[data-wvstooltip]::before {
    content: attr(data-wvstooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--wvs-tooltip-background-color);
    color: var(--wvs-tooltip-text-color);
    font-family: var(--spf-font);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
    padding: 5px 9px;
    border-radius: 5px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s 0.15s;
    z-index: 199;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
/* Arrow */
.wvs-tooltip li.variable-item[data-wvstooltip]::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    border: 5px solid transparent;
    border-top-color: var(--wvs-tooltip-background-color);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s 0.15s;
    z-index: 198;
}
/* Show on hover */
.wvs-tooltip li.variable-item[data-wvstooltip]:hover::before,
.wvs-tooltip li.variable-item[data-wvstooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s 0s;
}

/* ─────────────────────────────────────────────────────────────
   ARCHIVE / SHOP PAGE SWATCHES (product loop cards)
───────────────────────────────────────────────────────────── */
.woocommerce ul.products li.product ul.variable-items-wrapper {
    margin-top: 8px !important;
    gap: 5px;
}
.woocommerce ul.products li.product li.variable-item.color-variable-item {
    width: 22px;
    height: 22px;
}
.woocommerce ul.products li.product li.variable-item.button-variable-item,
.woocommerce ul.products li.product li.variable-item.radio-variable-item {
    min-width: 32px;
    height: 28px;
    padding: 0 8px;
    font-size: 11px;
}
.woocommerce ul.products li.product li.variable-item.image-variable-item {
    width: 28px;
    height: 28px;
}

/* ─────────────────────────────────────────────────────────────
   QUICK VIEW / POPUP MODALS
───────────────────────────────────────────────────────────── */
.woo-popup-wrapper ul.variable-items-wrapper,
.quick-view-modal  ul.variable-items-wrapper {
    gap: 8px;
}

/* ─────────────────────────────────────────────────────────────
   CLEAR / RESET LINK
───────────────────────────────────────────────────────────── */
.spf-variation-options .reset_variations,
.variations .reset_variations {
    display: none;  /* shown by WC JS only when a value is selected */
    font-size: 11px;
    color: var(--spf-muted);
    text-decoration: underline;
    margin-left: 8px;
    cursor: pointer;
    vertical-align: middle;
    transition: color var(--spf-ease);
}
.spf-variation-options .reset_variations:hover,
.variations .reset_variations:hover {
    color: var(--ali-red);
}

/* ─────────────────────────────────────────────────────────────
   SINGLE PRODUCT page — explicit size overrides
   (Plugin's CSS vars above already set these; explicit rules
    prevent theme conflicts from overriding them.)
───────────────────────────────────────────────────────────── */
.single-product li.variable-item.color-variable-item {
    width:  var(--wvs-single-product-item-width,  40px);
    height: var(--wvs-single-product-item-height, 40px);
}
.single-product li.variable-item.image-variable-item {
    width:  52px;
    height: 52px;
}
.single-product li.variable-item.button-variable-item,
.single-product li.variable-item.radio-variable-item {
    min-width: 44px;
    height: var(--wvs-single-product-item-height, 40px);
    font-size: var(--wvs-single-product-item-font-size, 13px);
}

/* ─────────────────────────────────────────────────────────────
   SELECTED VARIATION DISPLAY (spf-variation-selected span)
   Updated via JS when the hidden <select> value changes.
───────────────────────────────────────────────────────────── */
.spf-variation-selected:empty     { display: none; }
.spf-variation-selected:not(:empty) { display: inline; }

/* ═══════════════════════════════════════════════════════════════════════
   WHOLESALE FORM — EMBEDDED ON SINGLE PRODUCT PAGE
   .spf-wholesale-embed  (inside .spf-container)
═══════════════════════════════════════════════════════════════════════ */

.spf-wholesale-embed {
    margin-top: 64px;
    border-top: 2px solid var(--spf-border);
    padding-top: 56px;
}

/* ── Section header ─────────────────────────────────────────────────── */
.spf-we-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 28px;
}
.spf-we-header-left { flex: 1; }

.spf-we-tag {
    display: inline-block;
    background: var(--ali-orange-lt);
    color: var(--ali-orange);
    border: 1px solid rgba(255,106,0,0.25);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 12px;
    margin-bottom: 12px;
}
.spf-we-title {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--spf-text);
    margin: 0 0 10px;
    line-height: 1.2;
}
.spf-we-sub {
    font-size: 15px;
    color: var(--spf-muted);
    line-height: 1.6;
    margin: 0;
    max-width: 520px;
}

/* Stats block (right side of header) */
.spf-we-stats {
    display: flex;
    gap: 28px;
    padding: 20px 28px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 12px;
    flex-shrink: 0;
}
.spf-we-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}
.spf-we-stat strong {
    font-size: 22px;
    font-weight: 900;
    color: var(--ali-orange);
    line-height: 1;
    letter-spacing: -0.02em;
}
.spf-we-stat strong sup { font-size: 0.5em; }
.spf-we-stat span {
    font-size: 11px;
    color: rgba(255,255,255,0.55);
    font-weight: 500;
    white-space: nowrap;
}

/* ── Product context pill ───────────────────────────────────────────── */
.spf-we-product-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f0f9ff;
    border: 1.5px solid #bae6fd;
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 28px;
    font-size: 13.5px;
    color: #0369a1;
    line-height: 1.4;
}
.spf-we-product-pill svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke: #0ea5e9;
}
.spf-we-product-pill strong { color: #0c4a6e; font-weight: 700; }
.spf-we-product-pill em { font-style: normal; color: #64748b; font-size: 12px; }

/* ── Form wrap — embedded context matches product page background ────── */

/* Card: no extra shadow — blends with the white .spf-container */
.spf-we-form-wrap .wsf-form-card {
    border-radius: 12px;
    border: 1.5px solid var(--spf-border);
    box-shadow: none;
    background: var(--spf-bg, #fff);        /* same white as product page cards */
    overflow: hidden;
}

/* Header: replace dark gradient with a clean white + orange-left-border style */
.spf-we-form-wrap .wsf-form-header {
    background: #fff;
    border-bottom: 1.5px solid var(--spf-border);
    border-left: 4px solid var(--ali-orange);
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.spf-we-form-wrap .wsf-form-header h2 {
    font-size: 17px;
    font-weight: 700;
    color: var(--spf-text);
    margin: 0;
}
.spf-we-form-wrap .wsf-form-header p {
    color: var(--spf-muted);
    margin: 0;
}
/* "Wholesale" pill badge — right side */
.spf-we-form-wrap .wsf-form-header::after {
    content: 'B2B Wholesale';
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ali-orange);
    background: var(--ali-orange-lt);
    border: 1px solid rgba(255,106,0,0.25);
    border-radius: 999px;
    padding: 4px 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Form body background inherits white */
.spf-we-form-wrap .wsf-form {
    background: #fff;
    padding: 28px 28px 32px;
}

/* Inputs inherit white backgrounds — explicitly set for the embedded context */
.spf-we-form-wrap .wsf-input,
.spf-we-form-wrap .wsf-select {
    background: var(--spf-page-bg, #f6f6f5);
}
.spf-we-form-wrap .wsf-input:focus {
    background: #fff;
}

/* Checkbox pill bg matches the light page bg */
.spf-we-form-wrap .wsf-checkbox-label {
    background: var(--spf-page-bg, #f6f6f5);
    border-color: var(--spf-border);
}
.spf-we-form-wrap .wsf-checkbox-label:hover,
.spf-we-form-wrap .wsf-checkbox-label:has(.wsf-checkbox:checked) {
    background: var(--ali-orange-lt);
    border-color: var(--ali-orange);
}

/* Char count bg matches input bg */
.spf-we-form-wrap .wsf-char-count {
    background: var(--spf-page-bg, #f6f6f5);
}

/* Success state bg */
.spf-we-form-wrap .wsf-success {
    background: #fff;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 860px) {
    .spf-we-header { flex-direction: column; gap: 20px; }
    .spf-we-stats  { width: 100%; justify-content: space-around; }
    .spf-wholesale-embed { margin-top: 48px; padding-top: 40px; }
}
@media (max-width: 540px) {
    .spf-we-stats { gap: 16px; padding: 16px 18px; }
    .spf-we-stat strong { font-size: 18px; }
    .spf-we-product-pill { font-size: 12.5px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   WHOLESALE CONTACT PAGE  —  #wsf-page
   Template : page-wholesale-contact.php
   Shortcode: [wholesale_contact_form]
═══════════════════════════════════════════════════════════════════════ */

/* ── Page wrapper ──────────────────────────────────────────────────── */
#wsf-page {
    --wsf-orange:      var(--ali-orange, #ff6a00);
    --wsf-orange-dk:   var(--ali-orange-dk, #e05c00);
    --wsf-orange-lt:   var(--ali-orange-lt, #fff3eb);
    --wsf-text:        var(--spf-text, #1a1a1a);
    --wsf-muted:       var(--spf-muted, #6b7280);
    --wsf-border:      var(--spf-border, #e5e7eb);
    --wsf-border-dk:   var(--spf-border-dark, #c8cdd4);
    --wsf-radius:      10px;
    --wsf-radius-sm:   6px;
    --wsf-shadow:      0 1px 4px rgba(0,0,0,0.07), 0 2px 12px rgba(0,0,0,0.06);
    --wsf-shadow-lg:   0 8px 32px rgba(0,0,0,0.12);
    --wsf-ease:        0.2s cubic-bezier(.4,0,.2,1);
    --wsf-font:        var(--spf-font, 'Inter', -apple-system, sans-serif);

    font-family: var(--wsf-font);
    background: #f7f8fa;
    color: var(--wsf-text);
}

/* ── Hero ───────────────────────────────────────────────────────────── */
.wsf-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    padding: 80px 24px 72px;
    text-align: center;
    color: #fff;
}
.wsf-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 640px;
    margin: 0 auto;
}
.wsf-hero-tag {
    display: inline-block;
    background: rgba(255,106,0,0.18);
    color: var(--wsf-orange);
    border: 1px solid rgba(255,106,0,0.35);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 14px;
    margin-bottom: 20px;
}
.wsf-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 16px;
    color: #fff;
}
.wsf-hero-sub {
    font-size: 17px;
    color: rgba(255,255,255,0.72);
    line-height: 1.6;
    margin: 0;
}

/* Decorative floating shapes */
.wsf-hero-shapes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.wsf-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.07;
    background: var(--wsf-orange);
}
.wsf-shape-1 { width: 360px; height: 360px; top: -120px; right: -80px; }
.wsf-shape-2 { width: 200px; height: 200px; bottom: -60px; left: 5%;   }
.wsf-shape-3 { width: 120px; height: 120px; top: 20px;    left: 55%;   }

/* ── Benefits bar ───────────────────────────────────────────────────── */
.wsf-benefits-bar {
    background: #fff;
    border-bottom: 1px solid var(--wsf-border);
    box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.wsf-benefits-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    max-width: 1160px;
    margin: 0 auto;
}
.wsf-benefit {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 32px;
    border-right: 1px solid var(--wsf-border);
    flex: 1 1 220px;
}
.wsf-benefit:last-child { border-right: none; }
.wsf-benefit svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: var(--wsf-orange);
    stroke: currentColor;
}
.wsf-benefit strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--wsf-text);
    margin-bottom: 2px;
}
.wsf-benefit span {
    font-size: 12px;
    color: var(--wsf-muted);
    line-height: 1.4;
}

/* ── Main two-column layout ─────────────────────────────────────────── */
.wsf-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}
.wsf-main-inner {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 40px;
    align-items: start;
}

/* ── Info panel (left) ──────────────────────────────────────────────── */
.wsf-info-panel {
    position: sticky;
    top: 24px;
    background: #fff;
    border-radius: var(--wsf-radius);
    border: 1px solid var(--wsf-border);
    padding: 36px 32px;
    box-shadow: var(--wsf-shadow);
}
.wsf-info-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--wsf-text);
    margin: 0 0 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--wsf-border);
}
.wsf-info-list {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.wsf-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.wsf-info-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--wsf-orange-lt);
}
.wsf-info-icon.wsf-icon-check::after {
    content: '';
    display: block;
    width: 9px;
    height: 6px;
    border-left: 2px solid var(--wsf-orange);
    border-bottom: 2px solid var(--wsf-orange);
    transform: rotate(-45deg) translateY(-1px);
}
.wsf-info-list li strong {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--wsf-text);
    margin-bottom: 3px;
}
.wsf-info-list li p {
    margin: 0;
    font-size: 13px;
    color: var(--wsf-muted);
    line-height: 1.5;
}
.wsf-info-contact {
    border-top: 1px solid var(--wsf-border);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.wsf-info-contact-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--wsf-muted);
    margin: 0;
}
.wsf-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #25d366;
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    padding: 11px 18px;
    border-radius: var(--wsf-radius-sm);
    text-decoration: none;
    transition: background var(--wsf-ease), transform var(--wsf-ease);
}
.wsf-whatsapp-btn:hover {
    background: #1da851;
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}
.wsf-whatsapp-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.wsf-email-link {
    font-size: 13.5px;
    color: var(--wsf-orange);
    font-weight: 500;
    text-decoration: none;
    word-break: break-all;
}
.wsf-email-link:hover {
    text-decoration: underline;
    color: var(--wsf-orange-dk);
}

/* ── Form card (right) ──────────────────────────────────────────────── */
.wsf-form-panel {}
.wsf-form-card {
    background: #fff;
    border-radius: var(--wsf-radius);
    border: 1px solid var(--wsf-border);
    box-shadow: var(--wsf-shadow);
    overflow: hidden;
}
.wsf-form-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 28px 36px;
    color: #fff;
}
.wsf-form-header h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 6px;
    color: #fff;
}
.wsf-form-header p {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    margin: 0;
}

/* ── Form layout ────────────────────────────────────────────────────── */
.wsf-form {
    padding: 32px 36px 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.wsf-row { display: flex; flex-direction: column; gap: 20px; }
.wsf-row-2 { flex-direction: row; gap: 20px; }
.wsf-row-2 .wsf-field-wrap { flex: 1 1 0; min-width: 0; }

/* ── Field wrapper ──────────────────────────────────────────────────── */
.wsf-field-wrap { display: flex; flex-direction: column; gap: 6px; }

.wsf-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--wsf-text);
    line-height: 1;
}
.wsf-req {
    color: var(--wsf-orange);
    margin-left: 2px;
}

/* ── Base input / select / textarea — no icon padding ───────────────── */
.wsf-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1.5px solid var(--wsf-border);
    border-radius: var(--wsf-radius-sm);
    font-family: var(--wsf-font);
    font-size: 14px;
    color: var(--wsf-text);
    background: #fff;
    outline: none;
    box-sizing: border-box;
    transition: border-color var(--wsf-ease), box-shadow var(--wsf-ease);
    -webkit-appearance: none;
    appearance: none;
    display: block;
}
.wsf-input:hover { border-color: var(--wsf-border-dk); }
.wsf-input:focus {
    border-color: var(--wsf-orange);
    box-shadow: 0 0 0 3px rgba(255,106,0,0.12);
}
.wsf-input::placeholder { color: #b0b8c1; }

/* Select wrapper — chevron arrow only */
.wsf-select-wrap {
    position: relative;
}
.wsf-select-wrap .wsf-input {
    padding-right: 38px;
    cursor: pointer;
}
.wsf-chevron {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--wsf-muted);
    pointer-events: none;
    transition: transform var(--wsf-ease), color var(--wsf-ease);
}
.wsf-select:focus ~ .wsf-chevron {
    transform: translateY(-50%) rotate(180deg);
    color: var(--wsf-orange);
}

/* Textarea */
.wsf-textarea-wrap {
    position: relative;
}
.wsf-textarea {
    height: auto;
    padding: 13px 14px;
    resize: vertical;
    min-height: 130px;
    line-height: 1.6;
}
.wsf-char-count {
    position: absolute;
    bottom: 9px;
    right: 12px;
    font-size: 11px;
    color: var(--wsf-muted);
    pointer-events: none;
    background: #fff;
    padding-left: 4px;
}

/* ── Validation error state ─────────────────────────────────────────── */
.wsf-has-error .wsf-input,
.wsf-has-error .wsf-input:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220,38,38,0.10);
}
.wsf-has-error .wsf-input-icon { color: #dc2626; }
.wsf-error {
    font-size: 12px;
    color: #dc2626;
    font-weight: 500;
    min-height: 16px;
    line-height: 1.3;
}

/* ── Checkboxes ─────────────────────────────────────────────────────── */
.wsf-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    padding: 2px 0;
}
.wsf-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13.5px;
    color: var(--wsf-text);
    user-select: none;
    padding: 8px 14px 8px 10px;
    border: 1.5px solid var(--wsf-border);
    border-radius: var(--wsf-radius-sm);
    background: #fafbfc;
    transition: border-color var(--wsf-ease), background var(--wsf-ease), box-shadow var(--wsf-ease);
}
.wsf-checkbox-label:hover {
    border-color: var(--wsf-orange);
    background: var(--wsf-orange-lt);
}
.wsf-checkbox { display: none; }
.wsf-checkbox-box {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border: 2px solid var(--wsf-border-dk);
    border-radius: 4px;
    background: #fff;
    position: relative;
    transition: border-color var(--wsf-ease), background var(--wsf-ease);
}
.wsf-checkbox-box::after {
    content: '';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity var(--wsf-ease), transform var(--wsf-ease);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 9' fill='none'%3E%3Cpath d='M1 4.5l3.5 3.5 6.5-7' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.wsf-checkbox:checked + .wsf-checkbox-box {
    background: var(--wsf-orange);
    border-color: var(--wsf-orange);
}
.wsf-checkbox:checked + .wsf-checkbox-box::after { opacity: 1; transform: scale(1); }
.wsf-checkbox:checked ~ * { color: var(--wsf-text); }
.wsf-checkbox-label:has(.wsf-checkbox:checked) {
    border-color: var(--wsf-orange);
    background: var(--wsf-orange-lt);
    box-shadow: 0 0 0 1px var(--wsf-orange);
}

/* ── Honeypot (hidden from real users) ─────────────────────────────── */
.wsf-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    tab-index: -1;
}

/* ── Submit row ─────────────────────────────────────────────────────── */
.wsf-submit-row {
    flex-direction: row !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px !important;
    margin-top: 4px;
}
.wsf-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--wsf-orange);
    color: #fff;
    font-family: var(--wsf-font);
    font-size: 15px;
    font-weight: 700;
    padding: 0 28px;
    height: 52px;
    border: none;
    border-radius: var(--wsf-radius-sm);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background var(--wsf-ease), transform var(--wsf-ease), box-shadow var(--wsf-ease);
    box-shadow: 0 2px 12px rgba(255,106,0,0.28);
    white-space: nowrap;
}
.wsf-submit-btn:hover:not(:disabled) {
    background: var(--wsf-orange-dk);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(255,106,0,0.38);
}
.wsf-submit-btn:active:not(:disabled) { transform: translateY(0); }
.wsf-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}
/* Shimmer sweep on hover */
.wsf-submit-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.22) 50%, transparent 100%);
    transition: left 0.5s ease;
    pointer-events: none;
}
.wsf-submit-btn:hover:not(:disabled)::before { left: 160%; }

.wsf-btn-arrow {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform var(--wsf-ease);
    stroke: currentColor;
}
.wsf-submit-btn:hover:not(:disabled) .wsf-btn-arrow { transform: translateX(4px); }

/* Loading spinner */
.wsf-btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wsf-spin 0.7s linear infinite;
    flex-shrink: 0;
}
.wsf-loading .wsf-btn-spinner { display: inline-block; }
.wsf-loading .wsf-btn-arrow   { display: none; }
@keyframes wsf-spin { to { transform: rotate(360deg); } }

/* No categories fallback */
.wsf-no-cats {
    font-size: 13px;
    color: var(--wsf-muted);
    font-style: italic;
    margin: 0;
    padding: 10px 14px;
    background: #fafbfc;
    border: 1px dashed var(--wsf-border);
    border-radius: var(--wsf-radius-sm);
}

.wsf-privacy-note {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--wsf-muted);
    margin: 0;
    line-height: 1.4;
}
.wsf-privacy-note svg { width: 13px; height: 13px; flex-shrink: 0; stroke: currentColor; }

/* ── Success state ──────────────────────────────────────────────────── */
.wsf-success {
    padding: 56px 36px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.wsf-success[hidden] { display: none; }
.wsf-success-icon {
    width: 80px;
    height: 80px;
    color: #1a8a1a;
    margin-bottom: 8px;
}
.wsf-success-icon svg { width: 100%; height: 100%; }

/* Animated circle draw */
.wsf-check-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: wsf-circle-draw 0.5s ease forwards 0.1s;
}
.wsf-check-path {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: wsf-check-draw 0.3s ease forwards 0.55s;
}
@keyframes wsf-circle-draw { to { stroke-dashoffset: 0; } }
@keyframes wsf-check-draw  { to { stroke-dashoffset: 0; } }

.wsf-success h3 {
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    color: var(--wsf-text);
}
.wsf-success p {
    margin: 0;
    font-size: 15px;
    color: var(--wsf-muted);
    max-width: 460px;
    line-height: 1.6;
}
.wsf-success-ref {
    font-size: 13px !important;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    padding: 10px 16px;
    color: #166534 !important;
}

/* ── Trust / stats bar ──────────────────────────────────────────────── */
.wsf-trust-bar {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 52px 24px;
}
.wsf-trust-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}
.wsf-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0 48px;
    text-align: center;
}
.wsf-stat-num {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 900;
    color: var(--wsf-orange);
    line-height: 1;
    letter-spacing: -0.02em;
}
.wsf-stat-num sup { font-size: 0.55em; }
.wsf-stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}
.wsf-stat-divider {
    width: 1px;
    height: 48px;
    background: rgba(255,255,255,0.12);
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
═══════════════════════════════════════════ */
@media (max-width: 1100px) {
    .spf-product-main {
        grid-template-columns: 1fr 1fr !important;
        gap: 36px !important;
        padding: 28px !important;
    }
}

@media (max-width: 860px) {
    .spf-product-main {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
        padding: 20px !important;
        margin: 16px 0 36px !important;
        border-radius: 8px;
    }
    .spf-gallery-col { position: static; }
    .spf-thumbs-v {
        flex-direction: row;
        width: 100%;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        height: 68px;
        scrollbar-width: none;
    }
    .spf-thumbs-v::-webkit-scrollbar { display: none; }
    .spf-gallery {
        flex-direction: column-reverse;
        gap: 10px;
    }
    .ali-thumb { width: 64px; height: 64px; }
    .spf-product-title { font-size: 24px !important; }
}

@media (max-width: 600px) {
    .spf-container { width: 96%; padding: 0 12px; }
    .spf-product-main { padding: 16px !important; gap: 20px !important; }
    .spf-product-title { font-size: 20px !important; }
    .spf-price-block .price,
    .spf-price-block .woocommerce-Price-amount { font-size: 22px; letter-spacing: -0.3px; }
    .ali-tab-btn { padding: 11px 14px; font-size: 13px; }
    .ali-tab-panel { padding: 16px; }
    .spf-reviews-section { padding: 20px; }
    .spf-reviews-title { font-size: 18px; margin-bottom: 20px; }
    .spf-related-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .spf-atc-row { flex-wrap: nowrap; }
    .spf-btn-atc { font-size: 14px !important; }
    .spf-btn-buynow { font-size: 14px !important; }
    .spf-sticky-title { display: none; }
    .spf-reviews-summary { flex-direction: column; }
    .spf-btn-atc, .spf-btn-buynow { height: 48px !important; }
    .spf-qty-control { height: 48px; }
}

@media (max-width: 480px) {
    .ali-carousel-track { height: 280px; }
    .ali-car-arrow { width: 34px; height: 34px; font-size: 20px; }
    .ali-thumb { width: 52px; height: 52px; }
    .spf-atc-row { flex-wrap: wrap; }
    .spf-qty-control { flex-shrink: 0; }
    .spf-btn-atc { width: 100%; flex: none; }
    .spf-btn-buynow { height: 44px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   SUBCATEGORY GRID  (.cat-card-*)
   Template: woocommerce/content-product-cat.php
═══════════════════════════════════════════════════════════════════════ */

/* ── Category grid resets same ul.products wrapper WooCommerce uses ── */
.woocommerce ul.products li.product-category,
.woocommerce-page ul.products li.product-category {
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    float: none !important;
}

/* ── Card shell ─────────────────────────────────────────────────────── */
.cat-card {
    --cat-accent: var(--ali-orange);   /* overridable per category */

    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    transition: box-shadow var(--spf-ease), transform var(--spf-ease);
    cursor: pointer;
}
.cat-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.06);
    transform: translateY(-4px);
}

/* ── Image wrap — 4:3 aspect ──────────────────────────────────────────── */
.cat-card__link {
    display: block;
    text-decoration: none;
}
.cat-card__img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f0f0f0;
}

/* The actual image */
.cat-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.6s cubic-bezier(.25,.46,.45,.94);
}
.cat-card:hover .cat-card__img {
    transform: scale(1.08);
}
.cat-card__img--placeholder {
    background: linear-gradient(135deg, #e8eaed 0%, #d4d6da 100%);
}

/* Gradient overlay — dark at bottom, transparent at top */
.cat-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0)   30%,
        rgba(0,0,0,0.55) 100%
    );
    transition: background 0.4s ease;
    z-index: 1;
}
.cat-card:hover .cat-card__overlay {
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.08) 0%,
        rgba(0,0,0,0.68) 100%
    );
}

/* Count pill — top right */
.cat-card__count {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--spf-text);
    font-family: var(--spf-font);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    padding: 5px 10px;
    border-radius: 999px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    white-space: nowrap;
}
.cat-card__count-label {
    font-size: 10px;
    font-weight: 500;
    color: var(--spf-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Hover CTA — appears from bottom over image */
.cat-card__cta {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%) translateY(14px);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--cat-accent);
    color: #fff;
    font-family: var(--spf-font);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 9px 20px;
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0,0,0,0.22);
}
.cat-card__cta svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    stroke: currentColor;
    transition: transform var(--spf-ease);
}
.cat-card:hover .cat-card__cta {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.cat-card:hover .cat-card__cta svg {
    transform: translateX(3px);
}

/* ── Card body — name, desc, arrow ─────────────────────────────────── */
.cat-card__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    background: #fff;
    border-top: 1px solid var(--spf-border);
    flex: 1;
}
.cat-card__body-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

/* Category name */
.cat-card__name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: var(--spf-text);
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cat-card__name a {
    color: inherit;
    text-decoration: none;
    transition: color var(--spf-ease);
}
.cat-card__name a:hover { color: var(--cat-accent); }

/* Short description */
.cat-card__desc {
    font-size: 12px;
    color: var(--spf-muted);
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sub-category count */
.cat-card__sub-count {
    font-size: 11px;
    color: var(--cat-accent);
    font-weight: 600;
}

/* Arrow button */
.cat-card__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid var(--spf-border);
    background: #fff;
    flex-shrink: 0;
    text-decoration: none;
    transition:
        background var(--spf-ease),
        border-color var(--spf-ease),
        transform var(--spf-ease);
}
.cat-card__arrow svg {
    width: 14px;
    height: 14px;
    stroke: var(--spf-muted);
    transition: stroke var(--spf-ease), transform var(--spf-ease);
}
.cat-card:hover .cat-card__arrow {
    background: var(--cat-accent);
    border-color: var(--cat-accent);
    transform: scale(1.1);
}
.cat-card:hover .cat-card__arrow svg {
    stroke: #fff;
    transform: translateX(2px);
}

/* ── View toggle (grid / list) ─────────────────────────────────────── */
.woocommerce-ordering-wrapper,
.woocommerce-products-header + .woocommerce-notices-wrapper + div {
    margin-bottom: 8px;
}

/* OceanWP injects a view-toggle bar — style it to match */
.ocean-woo-view-switcher {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 0;
}
.ocean-woo-view-switcher a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1.5px solid var(--spf-border);
    border-radius: 7px;
    color: var(--spf-muted);
    background: #fff;
    text-decoration: none;
    transition: background var(--spf-ease), border-color var(--spf-ease), color var(--spf-ease);
}
.ocean-woo-view-switcher a:hover,
.ocean-woo-view-switcher a.active,
.ocean-woo-view-switcher a.selected {
    background: var(--ali-orange);
    border-color: var(--ali-orange);
    color: #fff;
}
.ocean-woo-view-switcher a svg,
.ocean-woo-view-switcher a i {
    font-size: 14px;
    line-height: 1;
    pointer-events: none;
}

/* ── Category grid — responsive columns ─────────────────────────────── */
@media (min-width: 1201px) {
    .woocommerce ul.products.columns-4 li.product-category,
    .woocommerce ul.products li.product-category {
        /* 4 cols handled by the grid already */
    }
}
@media (max-width: 1200px) {
    /* 3 columns on mid-size screens */
    .woocommerce ul.products:has(li.product-category),
    .woocommerce-page ul.products:has(li.product-category) {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
@media (max-width: 760px) {
    .woocommerce ul.products:has(li.product-category),
    .woocommerce-page ul.products:has(li.product-category) {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }
    /* On touch — always show CTA */
    .cat-card__cta {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
        pointer-events: auto;
    }
    .cat-card__body { padding: 13px 14px; }
    .cat-card__name { font-size: 13.5px; }
}
@media (max-width: 480px) {
    .woocommerce ul.products:has(li.product-category),
    .woocommerce-page ul.products:has(li.product-category) {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
    .cat-card__cta { font-size: 11px; padding: 7px 14px; }
    .cat-card__count { font-size: 11px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   ARCHIVE / SHOP — HERO HEADER  (.ali-archive-hero)
   Professional page title replacing OceanWP's plain title bar.
   Two states:
     --has-img  → full-bleed blurred category photo, dark overlay, white text
     --plain    → white background, orange accent bar, dark text (shop / no img)
═══════════════════════════════════════════════════════════════════════ */

/* ── Suppress OceanWP plain title bar on archive pages (CSS fallback) ─ */
body.woocommerce        .page-title-bar,
body.woocommerce-page   .page-title-bar,
body.post-type-archive-product .page-title-bar {
    display: none !important;
}

/* ── Suppress WooCommerce's built-in archive description header ──────── */
.woocommerce-products-header {
    display: none !important;
}

/* ── Hero wrapper ────────────────────────────────────────────────────── */
.ali-archive-hero {
    --ali-hero-accent: var(--ali-orange);
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* ─────────────────────────────────────────────────────────────────────
   STATE A — has category thumbnail
───────────────────────────────────────────────────────────────────── */
.ali-archive-hero--has-img {
    min-height: 300px;
    display: flex;
    align-items: flex-end;
}

/* Blurred photo behind everything */
.ali-archive-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.06);
    filter: blur(4px) brightness(0.5) saturate(0.85);
    transition: transform 9s ease;
    will-change: transform;
}
.ali-archive-hero--has-img:hover .ali-archive-hero__bg {
    transform: scale(1.1);
}

/* Dark gradient scrim */
.ali-archive-hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.18) 0%,
        rgba(0,0,0,0.58) 55%,
        rgba(0,0,0,0.78) 100%
    );
    z-index: 1;
}

/* ─────────────────────────────────────────────────────────────────────
   STATE B — plain (shop page or category with no thumbnail)
───────────────────────────────────────────────────────────────────── */
.ali-archive-hero--plain {
    background: #fff;
    border-bottom: 1px solid var(--spf-border);
}

/* ── Inner container (shared) ────────────────────────────────────────── */
.ali-archive-hero__inner {
    position: relative;
    z-index: 2;
    width: 94%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 44px 24px 38px;
}
.ali-archive-hero--plain .ali-archive-hero__inner {
    padding: 30px 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ── Breadcrumb ──────────────────────────────────────────────────────── */
.ali-archive-hero__bc {
    margin-bottom: 12px;
}
.ali-archive-hero--plain .ali-archive-hero__bc {
    margin-bottom: 8px;
}

/* WooCommerce outputs .woocommerce-breadcrumb — style it inside the hero */
.ali-archive-hero__bc .woocommerce-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-family: var(--spf-font);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
}
.ali-archive-hero--has-img .ali-archive-hero__bc .woocommerce-breadcrumb,
.ali-archive-hero--has-img .ali-archive-hero__bc .woocommerce-breadcrumb a {
    color: rgba(255,255,255,0.70);
}
.ali-archive-hero--plain .ali-archive-hero__bc .woocommerce-breadcrumb,
.ali-archive-hero--plain .ali-archive-hero__bc .woocommerce-breadcrumb a {
    color: var(--spf-muted);
}
.ali-archive-hero__bc .woocommerce-breadcrumb a {
    text-decoration: none;
    transition: color var(--spf-ease);
}
.ali-archive-hero--has-img .ali-archive-hero__bc .woocommerce-breadcrumb a:hover {
    color: #fff;
}
.ali-archive-hero--plain .ali-archive-hero__bc .woocommerce-breadcrumb a:hover {
    color: var(--ali-hero-accent);
    text-decoration: underline;
}

/* Separator glyph injected via PHP (›) */
.ali-bc-sep {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.5;
    margin: 0 1px;
    line-height: 1;
}

/* ── Page title ──────────────────────────────────────────────────────── */
.ali-archive-hero__title {
    font-family: var(--spf-font);
    font-size: clamp(1.9rem, 4.5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin: 0;
}
.ali-archive-hero--has-img .ali-archive-hero__title {
    color: #fff;
    text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
.ali-archive-hero--plain .ali-archive-hero__title {
    color: var(--spf-text);
    /* Orange accent left rule — the professional brand touch */
    padding-left: 18px;
    border-left: 4px solid var(--ali-hero-accent);
}

/* ── Category description ────────────────────────────────────────────── */
.ali-archive-hero__desc {
    font-size: 14px;
    line-height: 1.65;
    margin: 8px 0 0;
    max-width: 560px;
}
.ali-archive-hero--has-img .ali-archive-hero__desc {
    color: rgba(255,255,255,0.80);
}
.ali-archive-hero--plain .ali-archive-hero__desc {
    color: var(--spf-muted);
    padding-left: 22px;   /* aligns under title (accounts for 4px border + 18px pad) */
    margin-top: 4px;
}

/* ── Product count pill ──────────────────────────────────────────────── */
.ali-archive-hero__count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--spf-font);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 13px;
    border-radius: 999px;
    margin-top: 14px;
}
.ali-archive-hero--has-img .ali-archive-hero__count {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.28);
}
.ali-archive-hero--plain .ali-archive-hero__count {
    background: var(--ali-orange-lt);
    color: var(--ali-orange);
    border: 1px solid rgba(255,106,0,0.14);
    margin-left: 22px;     /* aligns with title left edge */
    margin-top: 6px;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .ali-archive-hero--has-img { min-height: 240px; }
    .ali-archive-hero--has-img .ali-archive-hero__inner { padding: 32px 20px 28px; }
}
@media (max-width: 600px) {
    .ali-archive-hero--has-img { min-height: 190px; }
    .ali-archive-hero__title   { font-size: clamp(1.5rem, 7vw, 2rem); }
    .ali-archive-hero--plain .ali-archive-hero__inner { padding: 22px 18px 18px; }
    /* Breadcrumb collapses on very small screens */
    .ali-archive-hero__bc { display: none; }
    .ali-archive-hero__count { margin-left: 0; margin-top: 10px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   ARCHIVE / SHOP — PROFESSIONAL PRODUCT GRID  (.apc-*)
   Template: woocommerce/content-product.php
═══════════════════════════════════════════════════════════════════════ */

/* ── Shop page wrapper — background & spacing ──────────────────────── */
.woocommerce,
.woocommerce-page {
    background: #fff;
}
.woocommerce .woocommerce-notices-wrapper,
.woocommerce-page .woocommerce-notices-wrapper { margin-bottom: 0; }

/* Toolbar (count + sort) */
.woocommerce-ordering,
.woocommerce-result-count {
    font-family: var(--spf-font);
    font-size: 13px;
    color: var(--spf-muted);
}
.woocommerce-ordering select {
    font-family: var(--spf-font);
    font-size: 13px;
    border: 1.5px solid var(--spf-border);
    border-radius: var(--ali-radius);
    padding: 7px 32px 7px 12px;
    color: var(--spf-text);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") right 10px center / 10px no-repeat;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color var(--spf-ease);
}
.woocommerce-ordering select:focus { border-color: var(--ali-orange); outline: none; }

/* ── The product grid — ul.products ─────────────────────────────────── */
.woocommerce ul.products,
.woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px !important;
    margin: 0 !important;
    padding: 36px 0 !important;
    list-style: none !important;
    float: none !important;
    width: 100% !important;
}

/* ── li.product — outer shell (WooCommerce adds classes here) ────────── */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    float: none !important;
    clear: none !important;
}

/* ── apc-card-inner — the actual visible card ────────────────────────── */
.apc-card-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.06);
    overflow: hidden;
    transition:
        box-shadow var(--spf-ease),
        transform  var(--spf-ease);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
}
.apc-card-inner:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    transform: translateY(-3px);
}

/* ─────────────────────────────────────────────────────────────────────
   IMAGE ZONE
───────────────────────────────────────────────────────────────────── */
.apc-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #f8f9fa;
    flex-shrink: 0;
}
.apc-img-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}
.apc-figure {
    margin: 0;
    width: 100%;
    height: 100%;
    position: relative;
}

/* Primary image */
.apc-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.55s cubic-bezier(.25,.46,.45,.94), opacity 0.3s ease;
}
.apc-img--primary  { position: relative; z-index: 1; }
.apc-img--hover {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0;
    transform: scale(1.04);
}

/* ── Image swap — ONLY when .apc-img--hover physically exists in DOM ──
   :has() checks the actual rendered DOM, so if the element is absent
   (product has no valid second image) none of these rules fire at all. */

/* When a hover image IS present: fade primary out, bring secondary in */
.apc-card-inner:hover .apc-figure:has(.apc-img--hover) .apc-img--primary {
    opacity: 0;
    transform: scale(1.06);
}
.apc-card-inner:hover .apc-figure:has(.apc-img--hover) .apc-img--hover {
    opacity: 1;
    transform: scale(1);
}

/* When NO hover image: subtle zoom only — primary stays fully visible */
.apc-card-inner:hover .apc-figure:not(:has(.apc-img--hover)) .apc-img--primary {
    opacity: 1;
    transform: scale(1.05);
}

/* Subtle gradient overlay (always) */
.apc-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0,0,0,0.06) 100%
    );
    pointer-events: none;
    transition: background 0.3s ease;
}
.apc-card-inner:hover .apc-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.02) 0%,
        rgba(0,0,0,0.12) 100%
    );
}

/* ── Badges ─────────────────────────────────────────────────────────── */
.apc-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 5px;
    pointer-events: none;
}
.apc-badge {
    display: inline-block;
    font-family: var(--spf-font);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 4px;
    line-height: 1;
    white-space: nowrap;
    backdrop-filter: blur(4px);
}
.apc-badge--sale    { background: var(--ali-orange); color: #fff; }
.apc-badge--new     { background: #1a8a1a;           color: #fff; }
.apc-badge--featured{ background: var(--ali-blue);   color: #fff; }
.apc-badge--oos     {
    background: rgba(0,0,0,0.65);
    color: #fff;
    backdrop-filter: blur(6px);
}

/* ── Floating action buttons ─────────────────────────────────────────── */
.apc-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.apc-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.14);
    color: var(--spf-muted);
    text-decoration: none;
    transition:
        background var(--spf-ease),
        color      var(--spf-ease),
        transform  var(--spf-ease),
        opacity    var(--spf-ease);
    opacity: 0;
    transform: translateX(10px);
}
.apc-action-btn svg { width: 16px; height: 16px; flex-shrink: 0; stroke: currentColor; }
.apc-action-btn:hover {
    background: var(--ali-orange);
    color: #fff;
    transform: translateX(0) scale(1.05);
}

/* Staggered reveal on card hover */
.apc-card-inner:hover .apc-action-btn {
    opacity: 1;
    transform: translateX(0);
}
.apc-card-inner:hover .apc-action-btn:nth-child(1) { transition-delay: 0.00s; }
.apc-card-inner:hover .apc-action-btn:nth-child(2) { transition-delay: 0.05s; }
.apc-card-inner:hover .apc-action-btn:nth-child(3) { transition-delay: 0.10s; }

/* ─────────────────────────────────────────────────────────────────────
   CARD BODY
───────────────────────────────────────────────────────────────────── */
.apc-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 16px 12px;
}

/* Swatches rendered by woo-variation-swatches */
.apc-body ul.variable-items-wrapper { margin-top: 0 !important; }

/* Category */
.apc-cat {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--ali-orange);
    line-height: 1;
}

/* Title */
.apc-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--spf-text);
    margin: 0;
    /* Clamp to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.apc-title-link {
    color: inherit;
    text-decoration: none;
    transition: color var(--spf-ease);
}
.apc-title-link:hover { color: var(--ali-orange); }

/* Star rating */
.apc-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}
.apc-rating .star-rating {
    font-size: 12px;
    color: #f59e0b;
    width: auto;
    float: none;
    margin: 0;
}
.apc-rating .star-rating::before { color: #e5e7eb; }
.apc-rating-count { font-size: 11px; color: var(--spf-muted); }

/* Price */
.apc-price {
    font-family: var(--spf-font);
    margin-top: auto;
    padding-top: 4px;
}
.apc-price .woocommerce-Price-amount {
    font-size: 17px;
    font-weight: 800;
    color: var(--spf-text);
    letter-spacing: -0.01em;
}
.apc-price del {
    color: var(--spf-muted);
    font-size: 13px;
    font-weight: 400;
    margin-right: 5px;
    text-decoration: line-through;
}
.apc-price del .woocommerce-Price-amount { font-size: 13px; font-weight: 400; color: var(--spf-muted); }
.apc-price ins {
    text-decoration: none;
    font-weight: 800;
}
.apc-price ins .woocommerce-Price-amount { color: var(--ali-orange); }

/* SKU */
.apc-sku {
    font-size: 11px;
    color: var(--spf-faint);
    margin: 0;
    line-height: 1;
}
.apc-sku-label {
    font-weight: 600;
    margin-right: 3px;
    color: var(--spf-muted);
}

/* ─────────────────────────────────────────────────────────────────────
   ADD TO CART FOOTER — slides up on hover
───────────────────────────────────────────────────────────────────── */
.apc-footer {
    padding: 0 12px 12px;
    transform: translateY(4px);
    opacity: 0;
    transition:
        transform var(--spf-ease),
        opacity   var(--spf-ease);
    pointer-events: none;
}
.apc-card-inner:hover .apc-footer {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* ATC button inside the card */
.apc-footer .button,
.apc-footer a.button,
.apc-footer button.button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    height: 42px !important;
    background: var(--spf-text) !important;
    color: #fff !important;
    font-family: var(--spf-font) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: background var(--spf-ease) !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
    position: relative;
    overflow: hidden;
}
.apc-footer .button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.12) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.45s ease;
    pointer-events: none;
}
.apc-footer .button:hover { background: var(--ali-orange) !important; }
.apc-footer .button:hover::before { transform: translateX(100%); }

/* Loading spinner on AJAX add-to-cart */
.apc-footer .button.loading { color: transparent !important; }
.apc-footer .button.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: apc-spin 0.7s linear infinite;
}
.apc-footer .button.added { background: var(--ali-green) !important; }
@keyframes apc-spin { to { transform: rotate(360deg); } }

/* ─────────────────────────────────────────────────────────────────────
   LOAD MORE  (.ali-load-more-wrap / .ali-load-more-btn)
   Replaces WooCommerce numbered pagination on archive/shop pages.
───────────────────────────────────────────────────────────────────── */

/* Outer wrapper — centred column */
.ali-load-more-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 8px 0 60px;
    width: 100%;
}

/* ── Progress track ────────────────────────────────────────────────── */
.ali-lm-track {
    width: 100%;
    max-width: 320px;
    height: 3px;
    background: var(--spf-border);
    border-radius: 999px;
    overflow: hidden;
}
.ali-lm-bar {
    height: 100%;
    background: var(--ali-orange);
    border-radius: 999px;
    transition: width 0.5s cubic-bezier(.4,0,.2,1);
    min-width: 4px;
}

/* ── The button ────────────────────────────────────────────────────── */
.ali-load-more-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    padding: 0 38px;
    background: #fff;
    color: var(--spf-text);
    font-family: var(--spf-font);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 2px solid var(--spf-border);
    border-radius: 999px;
    cursor: pointer;
    outline: none;
    user-select: none;
    transition:
        background   var(--spf-ease),
        color        var(--spf-ease),
        border-color var(--spf-ease),
        box-shadow   var(--spf-ease),
        transform    var(--spf-ease);
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
.ali-load-more-btn:hover {
    background: var(--ali-orange);
    color: #fff;
    border-color: var(--ali-orange);
    box-shadow: 0 6px 24px rgba(255,106,0,0.30);
    transform: translateY(-2px);
}
.ali-load-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255,106,0,0.18);
}
.ali-load-more-btn:disabled {
    cursor: default;
}

/* ── Count badge (inside button) ───────────────────────────────────── */
.ali-lm-count {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--ali-orange-lt);
    color: var(--ali-orange);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: none;
    white-space: nowrap;
    transition: background var(--spf-ease), color var(--spf-ease);
    pointer-events: none;
}
.ali-load-more-btn:hover .ali-lm-count {
    background: rgba(255,255,255,0.22);
    color: #fff;
}

/* ── Spinner (visible only during .ali-lm--loading) ────────────────── */
.ali-lm-spinner {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: none;
    pointer-events: none;
}
.ali-load-more-btn.ali-lm--loading .ali-lm-spinner {
    display: block;
    animation: ali-lm-spin 0.7s linear infinite;
}
.ali-load-more-btn.ali-lm--loading .ali-lm-text {
    opacity: 0.55;
}

/* ── Error state ───────────────────────────────────────────────────── */
.ali-load-more-btn.ali-lm--error {
    border-color: var(--ali-red);
    color: var(--ali-red);
    animation: ali-lm-shake 0.35s ease;
}

/* ── "All products loaded" message ────────────────────────────────── */
.ali-lm-done {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--spf-font);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--spf-muted);
    letter-spacing: 0.04em;
    margin: 0;
    padding: 0;
}
.ali-lm-done svg {
    width: 16px;
    height: 16px;
    stroke: var(--ali-green);
    flex-shrink: 0;
}

/* ── Keyframes ─────────────────────────────────────────────────────── */
@keyframes ali-lm-spin {
    to { transform: rotate(360deg); }
}
@keyframes ali-lm-shake {
    0%, 100% { transform: translateX(0); }
    25%       { transform: translateX(-5px); }
    75%       { transform: translateX(5px); }
}

/* Keep WooCommerce's default nav hidden (fallback safety) */
.woocommerce nav.woocommerce-pagination {
    display: none !important;
}

/* ─────────────────────────────────────────────────────────────────────
   NO PRODUCTS FOUND
───────────────────────────────────────────────────────────────────── */
.woocommerce-info {
    border-top-color: var(--ali-orange) !important;
    font-family: var(--spf-font);
}

/* ─────────────────────────────────────────────────────────────────────
   ARCHIVE — RESPONSIVE GRID
───────────────────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px !important;
    }
}
@media (max-width: 860px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px !important;
    }
    /* ATC always visible on touch */
    .apc-footer {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .apc-action-btn {
        opacity: 1;
        transform: translateX(0);
    }
}
@media (max-width: 480px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px !important;
        padding: 20px 0 !important;
    }
    .apc-body { padding: 12px 12px 8px; gap: 4px; }
    .apc-footer { padding: 0 8px 8px; }
    .apc-title { font-size: 12.5px; }
    .apc-price .woocommerce-Price-amount { font-size: 15px; }
    .apc-action-btn { width: 30px; height: 30px; }
    .apc-action-btn svg { width: 13px; height: 13px; }
}

/* ─────────────────────────────────────────────────────────────────────
   WHOLESALE FORM — RESPONSIVE
───────────────────────────────────────────────────────────────────── */

/* Tablet: collapse two columns to one */
@media (max-width: 1040px) {
    .wsf-main-inner {
        grid-template-columns: 1fr;
    }
    .wsf-info-panel {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 28px 40px;
        align-items: start;
    }
    .wsf-info-title {
        grid-column: 1 / -1;
        margin-bottom: 0;
        padding-bottom: 16px;
    }
    .wsf-info-list { grid-column: 1; margin-bottom: 0; }
    .wsf-info-contact { grid-column: 2; border-top: none; padding-top: 0; }
}

@media (max-width: 760px) {
    /* Benefits bar wraps */
    .wsf-benefit {
        flex: 1 1 45%;
        border-right: none;
        border-bottom: 1px solid var(--wsf-border);
        padding: 16px 20px;
    }
    .wsf-benefit:nth-child(odd)  { border-right: 1px solid var(--wsf-border); }
    .wsf-benefit:nth-last-child(-n+2) { border-bottom: none; }

    /* Info panel stack */
    .wsf-info-panel {
        grid-template-columns: 1fr;
    }
    .wsf-info-contact { grid-column: 1; border-top: 1px solid var(--wsf-border); padding-top: 20px; }

    /* Form padding */
    .wsf-form        { padding: 24px 20px 28px; }
    .wsf-form-header { padding: 22px 20px; }

    /* Collapse 2-col rows to 1 col */
    .wsf-row-2 { flex-direction: column; }

    /* Submit row stacks */
    .wsf-submit-row { flex-direction: column !important; align-items: flex-start; }
    .wsf-submit-btn { width: 100%; justify-content: center; }
}

@media (max-width: 540px) {
    .wsf-hero        { padding: 56px 20px 52px; }
    .wsf-main        { padding: 36px 16px 56px; }
    .wsf-trust-inner { flex-direction: column; gap: 28px; }
    .wsf-stat-divider { width: 60px; height: 1px; }
    .wsf-stat        { padding: 0 16px; }

    .wsf-form-header h2 { font-size: 18px; }

    /* Checkbox pills go full-width on tiny screens */
    .wsf-checkboxes { flex-direction: column; }
    .wsf-checkbox-label { width: 100%; }

    /* Benefits bar single column */
    .wsf-benefit { flex: 1 1 100%; border-right: none !important; }
    .wsf-benefit:last-child { border-bottom: none; }
}
