﻿/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   CHEVIO BEST DEAL SRL â€” CoÈ™
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€â”€ ASTRA RESET â”€â”€â”€ */
body.chevio-dark-cart .site-content,
body.chevio-dark-cart #primary,
body.chevio-dark-cart #content,
body.chevio-dark-cart .ast-container {
    background-color: var(--chv-bg-main) !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

/* â”€â”€â”€ WRAPPER â”€â”€â”€ */
#chevio-cart-page {
    padding-top: 140px;
    min-height: 100vh;
    background: var(--chv-bg-main);
}

.chv-cart-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 80px) clamp(60px, 8vw, 120px);
}


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   HERO
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.chv-cart-hero {
    margin-bottom: clamp(36px, 5vw, 56px);
}

.chv-cart-hero .sec-h {
    color: var(--chv-ink);
}


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   LAYOUT: items + summary
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.chv-cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: clamp(28px, 4vw, 48px);
    align-items: flex-start;
}


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   CART ITEMS
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.chv-cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chv-cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    gap: 20px;
    align-items: center;
    background: var(--chv-bg-white);
    border-radius: 18px;
    padding: 18px 22px;
    border: 1.5px solid transparent;
    transition: border-color var(--chv-transition);
}

.chv-cart-item:hover {
    border-color: var(--chv-v100);
}

/* Thumbnail */
.chv-cart-thumb {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--chv-v50);
    flex-shrink: 0;
}

.chv-cart-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chv-cart-thumb-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--chv-v300);
}

/* Info */
.chv-cart-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.chv-cart-name {
    font-family: var(--chv-font-serif);
    font-size: .95rem;
    font-weight: 700;
    color: var(--chv-ink);
    text-decoration: none;
    transition: color .3s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chv-cart-name:hover {
    color: var(--chv-v600);
}

.chv-cart-config {
    font-size: .72rem;
    color: var(--chv-muted);
    font-weight: 400;
    line-height: 1.5;
}

.chv-cart-unit-price {
    font-size: .76rem;
    color: var(--chv-muted);
    font-weight: 400;
}

/* Quantity Controls */
.chv-cart-qty-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid var(--chv-v100);
    border-radius: 12px;
    overflow: hidden;
}

.chv-qty-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--chv-muted);
    cursor: pointer;
    transition: all .25s;
    font-family: var(--chv-font-main);
}

.chv-qty-btn:hover {
    background: var(--chv-v50);
    color: var(--chv-v600);
}

.chv-qty-input {
    width: 40px;
    height: 36px;
    border: none;
    border-left: 1.5px solid var(--chv-v100);
    border-right: 1.5px solid var(--chv-v100);
    background: transparent;
    text-align: center;
    font-family: var(--chv-font-main);
    font-size: .86rem;
    font-weight: 600;
    color: var(--chv-ink);
    outline: none;
    -moz-appearance: textfield;
}

.chv-qty-input::-webkit-inner-spin-button,
.chv-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Subtotal */
.chv-cart-subtotal {
    text-align: right;
    min-width: 100px;
}

.chv-cart-subtotal-val {
    font-size: .95rem;
    font-weight: 700;
    color: var(--chv-ink);
}

/* Remove */
.chv-cart-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--chv-muted);
    transition: all .3s;
    text-decoration: none;
    flex-shrink: 0;
}

.chv-cart-remove:hover {
    background: rgba(220, 38, 38, .08);
    color: var(--chv-error);
}


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   CART SUMMARY
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.chv-cart-summary {
    position: sticky;
    top: 160px;
    background: var(--chv-bg-white);
    border-radius: 22px;
    padding: clamp(26px, 3vw, 36px);
    border: 1.5px solid var(--chv-v100);
}

.chv-summary-title {
    font-family: var(--chv-font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--chv-ink);
    margin-bottom: 24px;
}

.chv-summary-rows {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

.chv-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .86rem;
    color: var(--chv-muted);
    font-weight: 400;
}

.chv-summary-val {
    font-weight: 600;
    color: var(--chv-ink);
}

.chv-summary-total {
    padding-top: 14px;
    border-top: 1px solid rgba(255, 107, 53, .08);
    font-size: 1rem;
    font-weight: 700;
    color: var(--chv-ink);
}

.chv-summary-total .chv-summary-val {
    font-size: 1.1rem;
    color: var(--chv-v600);
}

/* Checkout Button */
.chv-summary-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    border-radius: 60px;
    background: var(--chv-v600);
    color: #fff;
    font-family: var(--chv-font-main);
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .35s cubic-bezier(.76, 0, .24, 1);
    margin-bottom: 14px;
}

.chv-summary-checkout:hover {
    background: var(--chv-v500);
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(255, 107, 53, .3);
}

/* Continue Shopping */
.chv-summary-continue {
    display: block;
    text-align: center;
    font-size: .82rem;
    color: var(--chv-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color .3s;
}

.chv-summary-continue:hover {
    color: var(--chv-v600);
}


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   EMPTY CART
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.chv-cart-empty {
    text-align: center;
    padding: clamp(60px, 10vw, 120px) 24px;
}

.chv-cart-empty-ico {
    color: var(--chv-v300);
    margin-bottom: 24px;
}

.chv-cart-empty-title {
    font-family: var(--chv-font-serif);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: var(--chv-ink);
    margin-bottom: 10px;
}

.chv-cart-empty-desc {
    font-size: .95rem;
    color: var(--chv-muted);
    font-weight: 300;
    margin-bottom: 28px;
}

.chv-cart-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 34px;
    border-radius: 60px;
    background: var(--chv-v600);
    color: #fff;
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .35s cubic-bezier(.76, 0, .24, 1);
}

.chv-cart-empty-btn:hover {
    background: var(--chv-v500);
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(255, 107, 53, .3);
}


/* â•â•â• MOBILE â•â•â• */
@media (max-width: 921px) {
    .chv-cart-layout {
        grid-template-columns: 1fr;
    }

    .chv-cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    #chevio-cart-page {
        padding-top: 120px;
    }

    .chv-cart-item {
        grid-template-columns: 64px 1fr;
        grid-template-rows: auto auto;
        gap: 12px 16px;
        padding: 16px 18px;
    }

    .chv-cart-thumb {
        width: 64px;
        height: 64px;
        grid-row: 1 / 2;
    }

    .chv-cart-info {
        grid-column: 2 / -1;
        grid-row: 1 / 2;
    }

    .chv-cart-qty-wrap {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }

    .chv-cart-subtotal {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
        text-align: left;
        min-width: 0;
    }

    .chv-cart-remove {
        position: absolute;
        top: 12px;
        right: 12px;
    }

    .chv-cart-item {
        position: relative;
    }
}

@media (max-width: 480px) {
    .chv-cart-item {
        grid-template-columns: 1fr auto;
    }

    .chv-cart-thumb {
        display: none;
    }

    .chv-cart-info {
        grid-column: 1 / -1;
    }

    .chv-cart-qty-wrap {
        grid-column: 1 / 2;
    }

    .chv-cart-subtotal {
        grid-column: 2 / 3;
        text-align: right;
    }
}

/* â•â•â• DESKTOP MARE â•â•â• */
@media (min-width: 1400px) {
    .chv-cart-container {
        max-width: 1400px;
    }

    .chv-cart-layout {
        grid-template-columns: 1fr 400px;
    }
}


/* ===========================================
   ELEVATION PASS - cart tactile + summary glow
   =========================================== */

.chv-cart-hero {
    position: relative;
}
.chv-cart-hero::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 70px;
    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);
}

/* Cart items - hover with depth */
.chv-cart-item {
    position: relative;
    overflow: hidden;
    transition: transform .35s cubic-bezier(.4, 0, .2, 1), box-shadow .35s, border-color .35s;
}
.chv-cart-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--chv-v600), var(--chv-v400));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}
.chv-cart-item:hover::before {
    transform: scaleY(1);
}
.chv-cart-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px -12px rgba(255, 107, 53, .18);
}

/* Qty controls - tactile feedback */
.chv-qty-btn {
    transition: all .25s cubic-bezier(.4, 0, .2, 1);
}
.chv-qty-btn:hover {
    background: var(--chv-v600);
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(255, 107, 53, .35);
}
.chv-qty-btn:active {
    transform: scale(.92);
}
.chv-qty-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 53, .18);
    border-color: var(--chv-v600);
}

/* Subtotal value - color emphasis on change */
.chv-cart-subtotal-val {
    background: linear-gradient(135deg, var(--chv-ink) 0%, var(--chv-v700) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    transition: transform .3s ease;
}
.chv-cart-item:hover .chv-cart-subtotal-val {
    transform: scale(1.04);
}

/* Summary card - elevated with accent glow */
.chv-cart-summary {
    position: relative;
    background: linear-gradient(180deg, var(--chv-bg-white) 0%, var(--chv-v50) 100%);
    overflow: hidden;
    box-shadow: 0 18px 50px -14px rgba(255, 107, 53, .14);
}
.chv-cart-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--chv-v600), var(--chv-v400), var(--chv-v600));
    background-size: 200% 100%;
    animation: stSlideAccentCart 5s linear infinite;
}
@keyframes stSlideAccentCart {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
.chv-cart-summary::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 107, 53, .14), transparent 70%);
    pointer-events: none;
}

/* Summary total - dramatic emphasis */
.chv-summary-total .chv-summary-val {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--chv-v700) 0%, var(--chv-v500) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: 0 0 24px rgba(255, 107, 53, .25);
}

/* Checkout button - shimmer + accent shadow */
.chv-summary-checkout {
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 28px -8px rgba(255, 107, 53, .45);
}
.chv-summary-checkout::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 .7s cubic-bezier(.4, 0, .2, 1);
}
.chv-summary-checkout:hover::before {
    left: 100%;
}
.chv-summary-checkout:hover {
    box-shadow: 0 24px 50px -10px rgba(255, 107, 53, .55),
                0 0 0 1px rgba(255, 107, 53, .35);
}

/* Empty cart - hero-like centered with animated icon */
.chv-cart-empty {
    position: relative;
}
.chv-cart-empty::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 53, .12), transparent 70%);
    pointer-events: none;
    animation: stEmptyPulse 4s ease-in-out infinite;
    z-index: 0;
}
@keyframes stEmptyPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .8; }
    50%      { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}
.chv-cart-empty-ico {
    position: relative;
    z-index: 1;
    color: var(--chv-v600);
    filter: drop-shadow(0 8px 20px rgba(255, 107, 53, .25));
    animation: stEmptyFloat 3.5s ease-in-out infinite;
}
@keyframes stEmptyFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
.chv-cart-empty-title,
.chv-cart-empty-desc {
    position: relative;
    z-index: 1;
}

/* Remove button - subtle red hover */
.chv-cart-remove {
    transition: all .25s ease;
}
.chv-cart-remove:hover {
    background: rgba(220, 38, 38, .08);
    border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
    .chv-cart-summary::before,
    .chv-summary-checkout::before,
    .chv-cart-empty::before,
    .chv-cart-empty-ico {
        animation: none !important;
        transition: none !important;
    }
}
