﻿/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   CHEVIO BEST DEAL SRL â€” Shop / Catalog
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€â”€ ASTRA RESET â”€â”€â”€ */
body.chevio-dark-shop .site-content,
body.chevio-dark-shop #primary,
body.chevio-dark-shop #content,
body.chevio-dark-shop .ast-container {
    background-color: var(--chv-bg-main) !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

body.chevio-dark-shop .woocommerce-result-count,
body.chevio-dark-shop .woocommerce-ordering,
body.chevio-dark-shop .woocommerce-breadcrumb,
body.chevio-dark-shop .ast-woocommerce-container,
body.chevio-dark-shop .woocommerce-products-header {
    display: none !important;
}

/* â”€â”€â”€ WRAPPER â”€â”€â”€ */
#chevio-shop-page {
    padding-top: 140px;
    min-height: 100vh;
    background: var(--chv-bg-main);
}

.chv-shop-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 80px) clamp(60px, 8vw, 120px);
}


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SHOP HERO
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.chv-shop-hero {
    margin-bottom: clamp(36px, 5vw, 56px);
}

.chv-shop-hero .sec-h {
    color: var(--chv-ink);
}


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   LAYOUT: sidebar + main
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.chv-shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: clamp(28px, 3vw, 48px);
    align-items: flex-start;
}


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SIDEBAR
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.chv-shop-sidebar {
    position: sticky;
    top: 160px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.chv-sidebar-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chv-sidebar-label {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--chv-muted);
}

/* Search */
.chv-search-wrap {
    position: relative;
}

.chv-search-ico {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--chv-muted);
    pointer-events: none;
}

.chv-search-input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1.5px solid var(--chv-v100);
    border-radius: 12px;
    background: var(--chv-bg-white);
    font-family: var(--chv-font-main);
    font-size: .85rem;
    color: var(--chv-ink);
    transition: border-color var(--chv-transition);
    outline: none;
}

.chv-search-input::placeholder {
    color: var(--chv-muted);
    opacity: .6;
}

.chv-search-input:focus {
    border-color: var(--chv-v400);
}

/* Category Filters */
.chv-filter-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chv-filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: none;
    border-radius: 10px;
    background: transparent;
    font-family: var(--chv-font-main);
    font-size: .84rem;
    font-weight: 500;
    color: var(--chv-muted);
    cursor: pointer;
    transition: all var(--chv-transition);
    text-align: left;
    width: 100%;
}

.chv-filter-btn:hover {
    background: var(--chv-v50);
    color: var(--chv-ink);
}

.chv-filter-btn.is-active {
    background: var(--chv-v100);
    color: var(--chv-v600);
    font-weight: 600;
}


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   TOOLBAR
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.chv-shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.chv-shop-count {
    font-size: .82rem;
    color: var(--chv-muted);
    font-weight: 400;
}

.chv-sort-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chv-sort-label {
    font-size: .78rem;
    color: var(--chv-muted);
    font-weight: 500;
}

.chv-sort-select {
    padding: 8px 14px;
    border: 1.5px solid var(--chv-v100);
    border-radius: 10px;
    background: var(--chv-bg-white);
    font-family: var(--chv-font-main);
    font-size: .82rem;
    color: var(--chv-ink);
    cursor: pointer;
    outline: none;
    transition: border-color var(--chv-transition);
}

.chv-sort-select:focus {
    border-color: var(--chv-v400);
}


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PRODUCT GRID
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.chv-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

/* â”€â”€â”€ Product Card â”€â”€â”€ */
.chv-product-card {
    display: flex;
    flex-direction: column;
    background: var(--chv-bg-white);
    border-radius: 20px;
    border: 1.5px solid transparent;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all .45s cubic-bezier(.76, 0, .24, 1);
}

.chv-product-card:hover {
    transform: translateY(-5px);
    border-color: var(--chv-v200);
    box-shadow: 0 20px 50px rgba(255, 107, 53, .08);
}

/* Thumbnail */
.chv-card-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--chv-v50);
}

.chv-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.76, 0, .24, 1);
}

.chv-product-card:hover .chv-card-thumb img {
    transform: scale(1.05);
}

.chv-card-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--chv-v300);
}

/* Card Body */
.chv-card-body {
    padding: 20px 22px 0;
    flex: 1;
}

.chv-card-cat {
    display: inline-block;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--chv-v500);
    margin-bottom: 8px;
}

.chv-card-title {
    font-family: var(--chv-font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--chv-ink);
    margin-bottom: 6px;
}

.chv-card-desc {
    font-size: .82rem;
    color: var(--chv-muted);
    line-height: 1.6;
    font-weight: 300;
}

/* Card Footer */
.chv-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px 20px;
}

.chv-card-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: .76rem;
    font-weight: 600;
}

.chv-badge-price {
    background: var(--chv-v100);
    color: var(--chv-v600);
}

.chv-badge-config {
    background: rgba(255, 107, 53, .08);
    color: var(--chv-v500);
}

.chv-badge-quote {
    background: var(--chv-v50);
    color: var(--chv-muted);
}

.chv-card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--chv-v50);
    color: var(--chv-v400);
    transition: all .35s;
}

.chv-product-card:hover .chv-card-arrow {
    background: var(--chv-v600);
    color: #fff;
}


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   EMPTY STATE
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.chv-shop-empty {
    text-align: center;
    padding: clamp(60px, 8vw, 100px) 24px;
}

.chv-empty-ico {
    color: var(--chv-v300);
    margin-bottom: 20px;
}

.chv-empty-title {
    font-family: var(--chv-font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--chv-ink);
    margin-bottom: 8px;
}

.chv-empty-desc {
    font-size: .9rem;
    color: var(--chv-muted);
    font-weight: 300;
    margin-bottom: 24px;
}

.chv-empty-reset {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    border-radius: 60px;
    border: 1.5px solid var(--chv-v200);
    background: transparent;
    font-family: var(--chv-font-main);
    font-size: .86rem;
    font-weight: 600;
    color: var(--chv-v600);
    cursor: pointer;
    transition: all .35s;
}

.chv-empty-reset:hover {
    background: var(--chv-v600);
    color: #fff;
    border-color: var(--chv-v600);
}


/* â•â•â• MOBILE â•â•â• */
@media (max-width: 921px) {
    .chv-shop-layout {
        grid-template-columns: 1fr;
    }

    .chv-shop-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
    }

    .chv-sidebar-block {
        flex: 1;
        min-width: 200px;
    }

    .chv-filter-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }

    .chv-filter-btn {
        padding: 8px 14px;
        border-radius: 50px;
        font-size: .78rem;
        width: auto;
    }
}

@media (max-width: 768px) {
    #chevio-shop-page {
        padding-top: 120px;
    }

    .chv-shop-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .chv-shop-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* â•â•â• DESKTOP MARE â•â•â• */
@media (min-width: 1400px) {
    .chv-shop-container {
        max-width: 1400px;
    }

    .chv-shop-layout {
        grid-template-columns: 280px 1fr;
    }
}


/* ===========================================
   ELEVATION PASS - hero accent + card depth
   =========================================== */

/* Hero - subtle accent line + animated underline on heading */
.chv-shop-hero {
    position: relative;
    padding-bottom: clamp(20px, 3vw, 36px);
}
.chv-shop-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, var(--chv-v600), var(--chv-v400));
    border-radius: 3px;
    box-shadow: 0 0 14px rgba(255, 107, 53, .35);
}
.chv-shop-hero .sec-h {
    position: relative;
    display: inline-block;
}
.chv-shop-hero .sec-h::after {
    content: '';
    position: absolute;
    right: -28px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--chv-v600);
    box-shadow: 0 0 0 5px rgba(255, 107, 53, .18);
    animation: stPulseDot 2s ease-in-out infinite;
}
@keyframes stPulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(.6); opacity: .35; }
}

/* Search input - animated focus glow */
.chv-search-wrap {
    position: relative;
    transition: transform .35s ease;
}
.chv-search-wrap:focus-within {
    transform: translateY(-1px);
}
.chv-search-input:focus {
    box-shadow: 0 0 0 4px rgba(255, 107, 53, .15),
                0 8px 24px -4px rgba(255, 107, 53, .18);
}
.chv-search-ico {
    transition: color .3s ease, transform .3s ease;
}
.chv-search-wrap:focus-within .chv-search-ico {
    color: var(--chv-v600);
    transform: scale(1.08);
}

/* Filter pills - shimmer on active, lift on hover */
.chv-filter-btn {
    position: relative;
    overflow: hidden;
}
.chv-filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, .35),
        transparent
    );
    transition: left .6s cubic-bezier(.4, 0, .2, 1);
}
.chv-filter-btn:hover::before {
    left: 100%;
}
.chv-filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -4px rgba(255, 107, 53, .25);
}
.chv-filter-btn.is-active {
    box-shadow: 0 8px 20px -4px rgba(255, 107, 53, .45);
}

/* Product card - depth + accent border on hover + corner accent */
.chv-product-card {
    position: relative;
}
.chv-product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--chv-v600), var(--chv-v400));
    transition: width .5s cubic-bezier(.4, 0, .2, 1);
    z-index: 2;
    border-radius: 20px 20px 0 0;
}
.chv-product-card:hover::after {
    width: 100%;
}
.chv-product-card:hover {
    transform: translateY(-6px);
    border-color: var(--chv-v300);
    box-shadow: 0 28px 60px -12px rgba(255, 107, 53, .18),
                0 0 0 1px rgba(255, 107, 53, .08);
}

/* Card thumb - radial gradient overlay on hover */
.chv-card-thumb {
    position: relative;
}
.chv-card-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 50% 50%,
        transparent 40%,
        rgba(255, 107, 53, .12) 100%
    );
    opacity: 0;
    transition: opacity .45s ease;
    pointer-events: none;
}
.chv-product-card:hover .chv-card-thumb::after {
    opacity: 1;
}

/* Card badges - subtle accent glow */
.chv-badge-price {
    box-shadow: 0 2px 8px rgba(255, 107, 53, .15);
    transition: transform .3s ease, box-shadow .3s ease;
}
.chv-product-card:hover .chv-badge-price {
    transform: scale(1.04);
    box-shadow: 0 4px 14px rgba(255, 107, 53, .28);
}

/* Card arrow - more dramatic transition */
.chv-card-arrow {
    transition: transform .35s cubic-bezier(.4, 0, .2, 1), background .35s, color .35s, box-shadow .35s;
}
.chv-product-card:hover .chv-card-arrow {
    transform: translateX(2px) rotate(-12deg);
    box-shadow: 0 6px 16px rgba(255, 107, 53, .4);
}

/* Card title - subtle accent fade on hover */
.chv-card-title {
    transition: color .3s ease;
}
.chv-product-card:hover .chv-card-title {
    color: var(--chv-v700);
}

@media (prefers-reduced-motion: reduce) {
    .chv-shop-hero .sec-h::after,
    .chv-filter-btn::before { animation: none !important; transition: none !important; }
}
