/*
 * shop.css — Shop / product-archive page–only styles
 * Enqueued only on is_shop() / is_product_category().
 *
 * NOTE: bulk-banner styles live in style.css (shared).
 */

/* =====================================================
   SHOP HERO
   ===================================================== */
.shop-hero {
    background: #fff;
    padding: 56px 0 48px;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
}

.shop-hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

/* ── Left: text ── */
.shop-hero-content {
    max-width: 520px;
}

.shop-hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-dark);
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}

.shop-hero-desc {
    font-size: 0.95rem;
    color: var(--color-muted);
    line-height: 1.75;
    margin: 0;
    max-width: 420px;
}

/* ── Right: floating products panel ── */
.shop-hero-visual {
    position: relative;
    height: 300px;
    overflow: hidden;
    /* subtle inner shadow to ground the products */
}

/* All product images share these base rules */
.shv-img {
    position: absolute;
    object-fit: contain;
    /* remove default block display gap */
    display: block;
}

/* Spray paint — large, dominant, slightly tilted left-centre */
.shv-img--main {
    width: 46%;
    bottom: -4%;
    left: 6%;
    transform: rotate(-8deg);
    z-index: 3;
}

/* Pliers — upper right, angled inward */
.shv-img--pliers {
    width: 40%;
    top: -5%;
    right: 2%;
    transform: rotate(12deg);
    z-index: 4;
}

/* Tile cutter / USB — lower right, behind pliers */
.shv-img--usb {
    width: 32%;
    bottom: 10%;
    right: 8%;
    transform: rotate(-5deg);
    z-index: 2;
}

/* Tape measure — bottom centre-right, small accent */
.shv-img--tape {
    width: 28%;
    bottom: 2%;
    left: 42%;
    transform: rotate(4deg);
    z-index: 2;
}

/* ── Responsive ── */
@media (min-width: 768px) {
    .shop-hero-inner  { grid-template-columns: 1fr 1fr; }
    .shop-hero-title  { font-size: 2.8rem; }
    .shop-hero-visual { height: 340px; }
}

@media (min-width: 1024px) {
    .shop-hero-inner  { grid-template-columns: 5fr 6fr; gap: 60px; }
    .shop-hero-title  { font-size: 3.2rem; }
    .shop-hero-visual { height: 380px; }
    /* Nudge image sizes up on large screens */
    .shv-img--main   { width: 42%; }
    .shv-img--pliers { width: 38%; }
}

@media (max-width: 767px) {
    .shop-hero         { padding: 40px 0 32px; }
    .shop-hero-visual  { height: 240px; }
    .shv-img--main     { width: 50%; }
    .shv-img--pliers   { width: 44%; }
}

/* =====================================================
   CATEGORY FILTER TABS
   ===================================================== */
.shop-filter-bar {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 64px; /* below sticky header */
    z-index: 100;
}

body.admin-bar .shop-filter-bar {
    top: 96px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .shop-filter-bar {
        top: 110px;
    }
}

.shop-tabs {
    display: flex;
    gap: 4px;
    align-items: center;
    overflow-x: auto;
    padding: 12px 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.shop-tabs::-webkit-scrollbar { display: none; }

.shop-tab {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    background: transparent;
    border: 1.5px solid var(--color-border);
    white-space: nowrap;
    text-decoration: none;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.shop-tab:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(2, 97, 100, 0.05);
}

.shop-tab.is-active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* =====================================================
   SHOP MAIN LAYOUT — sidebar + grid
   ===================================================== */
.shop-main {
    background: #f8f9fa;
    padding: 32px 0 56px;
}

.shop-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

@media (min-width: 900px) {
    .shop-layout {
        grid-template-columns: 200px 1fr;
        align-items: start;
    }
}

/* =====================================================
   SHOP SIDEBAR — filters
   ===================================================== */
.shop-sidebar {
    padding: 22px 20px;
    position: sticky;
    top: 120px; /* below header + filter bar */
}

.sf-block { margin-bottom: 24px; }
.sf-block:last-child { margin-bottom: 0; }

.sf-heading {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin: 0 0 14px;
}

/* Price labels below slider — plain text, no box */
.sf-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.sf-price-val {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-dark);
    /* no background, no border, no padding — plain text */
}

/* Range slider track */
.sf-range-wrap {
    position: relative;
    height: 4px;
    background: var(--color-border);
    border-radius: 2px;
    margin-top: 8px;
}

.sf-range-fill {
    position: absolute;
    height: 100%;
    background: var(--color-primary);
    border-radius: 2px;
    left: 0;
    right: 0; /* JS updates this */
    pointer-events: none;
}

/* Native range input — overlaid on the track */
.sf-range-input {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    margin: 0;
    padding: 0;
    height: 20px; /* hit-area */
    cursor: pointer;
    outline: none;
    z-index: 2;
}

/* Track — hide the native track (we use .sf-range-fill instead) */
.sf-range-input::-webkit-slider-runnable-track {
    height: 4px;
    background: transparent;
    border-radius: 2px;
}
.sf-range-input::-moz-range-track {
    height: 4px;
    background: transparent;
    border-radius: 2px;
}

/* Thumb — the draggable circle */
.sf-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid var(--color-primary);
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
    cursor: grab;
    margin-top: -6px; /* centre on track */
    transition: transform 0.15s, box-shadow 0.15s;
}
.sf-range-input::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.2); }

.sf-range-input::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid var(--color-primary);
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
    cursor: grab;
}

/* Availability checkbox */
.sf-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--color-text);
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

.sf-checkbox input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--color-primary);
    cursor: pointer;
    flex-shrink: 0;
}

/* On mobile: sidebar goes horizontal */
@media (max-width: 899px) {
    .shop-sidebar {
        display: flex;
        gap: 24px;
        flex-wrap: wrap;
        position: static;
    }

    .sf-block { margin-bottom: 0; min-width: 140px; }
}

/* =====================================================
   PRODUCT GRID AREA
   ===================================================== */
.shop-grid { min-width: 0; }

/* Woo clearfix pseudo-elements become ghost grid cells — hide them */
.woocommerce .shop-grid ul.products::before,
.woocommerce .shop-grid ul.products::after {
    content: none !important;
    display: none !important;
}

/* 2-col on mobile, 3-col from 640px — tighter gap for narrower cards */
.woocommerce .shop-grid ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    list-style: none !important;
}

@media (min-width: 640px) {
    .woocommerce .shop-grid ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px !important;
    }
}

/* =====================================================
   PRODUCT CARD — matches About → Core Collections
   ===================================================== */
.woocommerce .shop-grid ul.products li.product {
    position: relative !important;
    background: #fff !important;
    border: 1px solid #f8f9fa !important;
    border-radius: 12px !important;
    overflow: visible !important;
    box-shadow: 0 2px 10px rgba(2, 33, 34, 0.07) !important;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition) !important;
    margin: 0 !important;
    width: auto !important;
    float: none !important;
    clear: none !important;
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
}

.woocommerce .shop-grid ul.products li.product:hover {
    box-shadow: 0 12px 28px rgba(2, 33, 34, 0.12) !important;
    transform: translateY(-4px) !important;
}

.woocommerce .shop-grid ul.products li.product .ebh-product-card__link-wrap {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
    text-decoration: none !important;
    color: inherit !important;
}

.woocommerce .shop-grid ul.products li.product .ebh-product-card__img {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.woocommerce .shop-grid ul.products li.product .ebh-product-card__img img {
    max-width: 88% !important;
    max-height: 88% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 !important;
}

.woocommerce .shop-grid ul.products li.product .ebh-product-card__body {
    flex: 1;
}

.woocommerce .shop-grid ul.products li.product .ebh-product-card__title {
    font-family: var(--font-display);
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin: 0 0 8px !important;
    color: #1a1c1c !important;
    line-height: 1.3 !important;
    padding: 0 !important;
}

.woocommerce .shop-grid ul.products li.product .ebh-product-card__desc {
    font-size: 0.8rem;
    color: #3f4949;
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
}

.woocommerce .shop-grid ul.products li.product .ebh-product-card__price {
    margin: 10px 0 0 !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #1a1c1c !important;
    line-height: 1.3 !important;
    display: block !important;
}

.woocommerce .shop-grid ul.products li.product .ebh-product-card__price .amount,
.woocommerce .shop-grid ul.products li.product .ebh-product-card__price .woocommerce-Price-amount {
    font-weight: 700 !important;
    color: #1a1c1c !important;
}

.woocommerce .shop-grid ul.products li.product .ebh-product-card__cta {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* Hide default WC card chrome (price lives in .ebh-product-card__price) */
.woocommerce .shop-grid ul.products li.product > .button,
.woocommerce .shop-grid ul.products li.product > .price,
.woocommerce .shop-grid ul.products li.product .onsale {
    display: none !important;
}

/* WooCommerce pagination */
.woocommerce .shop-grid .woocommerce-pagination {
    margin-top: 32px;
    text-align: center;
}

.woocommerce .shop-grid nav.woocommerce-pagination ul {
    display: inline-flex !important;
    gap: 6px !important;
    border: none !important;
    list-style: none !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
}

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

.woocommerce .shop-grid nav.woocommerce-pagination ul li a,
.woocommerce .shop-grid nav.woocommerce-pagination ul li span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
    border: 1px solid var(--color-border) !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: var(--color-text) !important;
    background: #fff !important;
    transition: all var(--transition) !important;
    text-decoration: none !important;
}

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

.woocommerce .shop-grid nav.woocommerce-pagination ul li span.current {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: #fff !important;
}

/* =====================================================
   SHOP BULK / TEAM CTA — Figma Section - Bulk Order CTA
   ===================================================== */
.shop-bulk-cta {
    background: #f5f5f5;
    padding: 80px 0 88px;
    border-top: none;
}

.shop-bulk-inner {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.shop-bulk-icon {
    width: 64px;
    height: 64px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(26, 28, 28, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--color-primary);
}

.shop-bulk-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 16px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.shop-bulk-desc {
    font-size: 1rem;
    color: var(--color-muted);
    line-height: 1.6;
    margin: 0 auto 32px;
    max-width: 640px;
}

.shop-bulk-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    background: #25d366;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    border: none;
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.35);
}

.shop-bulk-btn:hover {
    background: #1ebe5b;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(37, 211, 102, 0.4);
}



