/* ═══════════════════════════════════════════
   SHOP ARCHIVE — HIGH-TECH REDESIGN
═══════════════════════════════════════════ */

/* ── PAGE BACKGROUND ── */
body.post-type-archive-product .site-main,
body.tax-product_cat .site-main {
    background: #f0f4f8 !important;
}

/* ── PAGE HEADER ── */
[data-widget_type="jet-woo-builder-products-page-title.default"] {
    background: linear-gradient(135deg, #0a1929 0%, #0d2137 50%, #112d4a 100%) !important;
    padding: 56px 0 48px !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
    margin-bottom: 0 !important;
}
[data-widget_type="jet-woo-builder-products-page-title.default"]::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background-image: radial-gradient(circle, rgba(47,124,162,0.06) 1px, transparent 1px) !important;
    background-size: 32px 32px !important;
    pointer-events: none !important;
}
[data-widget_type="jet-woo-builder-products-page-title.default"]::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important; right: 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, transparent, #2F7CA2, #5eb8d9, #2F7CA2, transparent) !important;
    box-shadow: 0 0 16px rgba(47,124,162,0.5) !important;
}
[data-widget_type="jet-woo-builder-products-page-title.default"] .elementor-heading-title {
    font-size: clamp(30px, 4.5vw, 48px) !important;
    font-weight: 900 !important;
    color: #fff !important;
    letter-spacing: -0.5px !important;
    position: relative !important;
    z-index: 2 !important;
    text-shadow: 0 0 40px rgba(47,124,162,0.3) !important;
}

/* ── FILTERS BAR (JetSmartFilters / category pills) ── */
.jet-smart-filters-container,
.jet-woo-products-filter,
.elementor-widget-jet-smart-filters-checkboxes,
.elementor-widget-jet-smart-filters-range,
.elementor-widget-jet-smart-filters-active-tags {
    background: rgba(255,255,255,0.7) !important;
    backdrop-filter: blur(12px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(160%) !important;
    border-radius: 16px !important;
    padding: 18px 20px !important;
    border: 1px solid rgba(47,124,162,0.1) !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04) !important;
}

/* Category filter pills */
.jet-checkboxes-list__button,
.jet-filter-item {
    border-radius: 50px !important;
    padding: 6px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border: 1.5px solid #e2e8f0 !important;
    background: #fff !important;
    color: #475569 !important;
    transition: all 0.2s !important;
    cursor: pointer !important;
}
.jet-checkboxes-list__button:hover,
.jet-filter-item:hover {
    border-color: #2F7CA2 !important;
    color: #2F7CA2 !important;
    background: #e8f4fb !important;
}
.jet-checkboxes-list__button.checked,
.jet-filter-item.active {
    background: linear-gradient(135deg, #2F7CA2, #1a5f82) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 3px 12px rgba(47,124,162,0.3) !important;
}

/* Price range slider */
.jet-range__slider {
    accent-color: #2F7CA2 !important;
}

/* ── PRODUCTS GRID ── */
.jet-woo-products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
    padding: 36px 0 !important;
}
.jet-woo-products .jet-woo-products__item {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ── PRODUCT CARD — DARK GLASS ── */
.jet-woo-products__inner-box {
    background: #fff !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid rgba(0,0,0,0.04) !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
}
.jet-woo-products__inner-box:hover {
    transform: translateY(-10px) scale(1.02) !important;
    box-shadow: 0 24px 56px rgba(47,124,162,0.18), 0 0 0 1px rgba(47,124,162,0.1) !important;
}

/* ── PRODUCT IMAGE ── */
.jet-woo-product-thumbnail {
    position: relative !important;
    overflow: hidden !important;
    aspect-ratio: 1 !important;
    background: linear-gradient(135deg, #f0f4f8, #e8edf2) !important;
}
.jet-woo-product-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease !important;
    display: block !important;
}
.jet-woo-products__inner-box:hover .jet-woo-product-thumbnail img {
    transform: scale(1.12) !important;
    filter: brightness(1.05) !important;
}

/* Gradient overlay on image bottom */
.jet-woo-product-thumbnail::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important; right: 0 !important;
    height: 40% !important;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.04)) !important;
    pointer-events: none !important;
    z-index: 1 !important;
}
.jet-woo-product-img-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: transparent !important;
    transition: background 0.35s ease !important;
    z-index: 2 !important;
}
.jet-woo-products__inner-box:hover .jet-woo-product-img-overlay {
    background: rgba(47,124,162,0.06) !important;
}

/* ── SALE BADGE — NEON ── */
.jet-woo-product-badge {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    background: linear-gradient(135deg, #e74c3c, #ff6b6b) !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 5px 14px !important;
    border-radius: 50px !important;
    z-index: 5 !important;
    letter-spacing: 0.8px !important;
    box-shadow: 0 3px 14px rgba(231,76,60,0.4), 0 0 0 2px rgba(255,255,255,0.2) !important;
    text-transform: uppercase !important;
}

/* ── PRODUCT INFO ── */
.jet-woo-product-title {
    padding: 18px 18px 6px !important;
}
.jet-woo-product-title a,
.jet-woo-product-title .woocommerce-loop-product__title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.45 !important;
    text-decoration: none !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    transition: color 0.2s !important;
    margin: 0 !important;
    letter-spacing: -0.2px !important;
}
.jet-woo-products__inner-box:hover .jet-woo-product-title a {
    color: #2F7CA2 !important;
}

/* ── PRICE — LARGE + ACCENT ── */
.jet-woo-product-price {
    padding: 4px 18px 10px !important;
    margin-top: auto !important;
}
.jet-woo-product-price .price {
    font-size: 22px !important;
    font-weight: 900 !important;
    color: #0d2137 !important;
    letter-spacing: -0.5px !important;
}
.jet-woo-product-price .price .woocommerce-Price-currencySymbol {
    font-size: 14px !important;
    color: #2F7CA2 !important;
    font-weight: 700 !important;
}
.jet-woo-product-price .price del {
    font-size: 14px !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
    margin-left: 8px !important;
}
.jet-woo-product-price .price ins {
    text-decoration: none !important;
    font-weight: 900 !important;
}

/* ── ADD TO CART — GRADIENT PILL ── */
.jet-woo-product-button {
    padding: 0 18px 18px !important;
}
.jet-woo-product-button a.button,
.jet-woo-product-button .add_to_cart_button {
    display: block !important;
    text-align: center !important;
    background: linear-gradient(135deg, #2F7CA2 0%, #1a5f82 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 14px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    padding: 13px 16px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    letter-spacing: 0.3px !important;
    position: relative !important;
    overflow: hidden !important;
}
/* Shine sweep on hover */
.jet-woo-product-button a.button::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 60% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent) !important;
    transition: left 0.4s ease !important;
    pointer-events: none !important;
}
.jet-woo-product-button a.button:hover::after {
    left: 150% !important;
}
.jet-woo-product-button a.button:hover {
    background: linear-gradient(135deg, #1a5f82 0%, #0e4060 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(47,124,162,0.4) !important;
    color: #fff !important;
}
.jet-woo-product-button a.button.product_type_variable {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
}

/* ── CQW ICONS ── */
.jet-woo-products-cqw-wrapper {
    position: absolute !important;
    top: 14px !important;
    left: 14px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    z-index: 6 !important;
    opacity: 0 !important;
    transform: translateX(-10px) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.jet-woo-products__inner-box:hover .jet-woo-products-cqw-wrapper {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

/* DISABLE overlay link — prevents ATC button interference */
.jet-woo-item-overlay-link {
    display: none !important;
}
/* Make image area clickable instead */
.jet-woo-product-thumbnail {
    cursor: pointer !important;
    position: relative !important;
}
/* Product title clickable */
.jet-woo-product-title a {
    cursor: pointer !important;
}
/* ATC button — clean, no overlay */
.jet-woo-product-button {
    position: relative !important;
    z-index: 5 !important;
}

/* ── ORDERING ── */
.woocommerce-ordering select {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    background: #fff !important;
    transition: all 0.2s !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
}
.woocommerce-ordering select:focus {
    border-color: #2F7CA2 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(47,124,162,0.1) !important;
}

/* ── PAGINATION — MODERN ── */
.woocommerce-pagination,
.jet-woo-products-pagination {
    text-align: center !important;
    padding: 24px 0 48px !important;
}
.woocommerce-pagination ul,
.jet-woo-products-pagination .page-numbers {
    display: inline-flex !important;
    gap: 8px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.woocommerce-pagination .page-numbers li a,
.woocommerce-pagination .page-numbers li span,
.jet-woo-products-pagination .page-numbers a,
.jet-woo-products-pagination .page-numbers span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    background: #fff !important;
    border: 1.5px solid #e2e8f0 !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
}
.woocommerce-pagination .page-numbers li .current,
.jet-woo-products-pagination .page-numbers .current {
    background: linear-gradient(135deg, #2F7CA2, #1a5f82) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 14px rgba(47,124,162,0.35) !important;
}
.woocommerce-pagination .page-numbers li a:hover,
.jet-woo-products-pagination .page-numbers a:hover {
    background: #e8f4fb !important;
    border-color: #2F7CA2 !important;
    color: #2F7CA2 !important;
    transform: translateY(-2px) !important;
}

/* ── EMPTY STATE ── */
.woocommerce-info {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    color: #475569 !important;
    padding: 48px !important;
    text-align: center !important;
    font-size: 16px !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04) !important;
}

/* ═══ CARD ENTRANCE ANIMATION ═══ */
@keyframes cardFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.jet-woo-products__item {
    animation: cardFadeUp 0.5s ease both !important;
}
.jet-woo-products__item:nth-child(1) { animation-delay: 0s !important; }
.jet-woo-products__item:nth-child(2) { animation-delay: 0.06s !important; }
.jet-woo-products__item:nth-child(3) { animation-delay: 0.12s !important; }
.jet-woo-products__item:nth-child(4) { animation-delay: 0.18s !important; }
.jet-woo-products__item:nth-child(5) { animation-delay: 0.24s !important; }
.jet-woo-products__item:nth-child(6) { animation-delay: 0.30s !important; }
.jet-woo-products__item:nth-child(7) { animation-delay: 0.36s !important; }
.jet-woo-products__item:nth-child(8) { animation-delay: 0.42s !important; }

/* ── MOBILE ── */
@media (max-width: 1024px) {
    .jet-woo-products {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 18px !important;
    }
}
@media (max-width: 767px) {
    .jet-woo-products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 20px 0 !important;
    }
    [data-widget_type="jet-woo-builder-products-page-title.default"] {
        padding: 36px 0 30px !important;
    }
    .jet-woo-product-title { padding: 12px 12px 3px !important; }
    .jet-woo-product-title a { font-size: 13px !important; }
    .jet-woo-product-price { padding: 3px 12px 6px !important; }
    .jet-woo-product-price .price { font-size: 18px !important; }
    .jet-woo-product-button { padding: 0 12px 12px !important; }
    .jet-woo-product-button a.button {
        font-size: 12px !important;
        padding: 10px 12px !important;
        border-radius: 10px !important;
    }
    .jet-woo-products__inner-box:hover {
        transform: none !important;
    }
    .jet-woo-products__inner-box {
        border-radius: 16px !important;
    }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
    .jet-woo-products__inner-box,
    .jet-woo-product-thumbnail img,
    .jet-woo-product-button a.button {
        transition: none !important;
    }
    .jet-woo-products__inner-box:hover {
        transform: none !important;
    }
    .jet-woo-products__inner-box:hover .jet-woo-product-thumbnail img {
        transform: none !important;
    }
    .jet-woo-products__item {
        animation: none !important;
    }
}