/* =============================================================
   Malco Tools – Cart Upsell Slider + Popup
   Styled to match VetoProPac theme (orange #f05a28, navy #1a2238)
   Place at: your-theme/malco-tools/malco-tools.css
   ============================================================= */

/* ── Brand tokens ─────────────────────────────────────────────── */
:root {
    --vpp-orange      : #f05a28;
    --vpp-orange-dark : #d44a1a;
    --vpp-navy        : #1a2238;
    --vpp-navy-light  : #2b3655;
    --vpp-text        : #333333;
    --vpp-border      : #e0e0e0;
    --vpp-bg          : #f8f8f8;
    --vpp-radius      : 30px;       /* pill radius – matches site CTAs */
    --vpp-radius-card : 6px;
    --vpp-radius-pop  : 10px;
}

/* ── Section ──────────────────────────────────────────────────── */
.malco-upsell-section {
    margin: 0 0 32px;
    padding: 28px 0 0;
}
.malco-upsell-heading {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--vpp-navy);
    margin: 0 0 20px;
    letter-spacing: .01em;
    text-transform: uppercase;
}

/* ── Slider wrapper (room for arrows) ────────────────────────── */
.malco-addon-slider {
    position: relative;
    margin: 0 50px;
}

/* ── Product card ─────────────────────────────────────────────── */
.malco-upsell-card {
    background: #fff;
    border: 1px solid var(--vpp-border);
    border-radius: var(--vpp-radius-card);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow .2s ease, transform .2s ease;
    display: flex;
    flex-direction: column;
    margin: 0 7px;
    user-select: none;
    -webkit-user-select: none;
}
.malco-upsell-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.13);
    transform: translateY(-3px);
    border-color: var(--vpp-orange);
}
.malco-upsell-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    background: var(--vpp-bg);
    pointer-events: none;
    -webkit-user-drag: none;
}
.malco-upsell-card-body {
    padding: 10px 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #fff;
}
.malco-upsell-card-title {
    font-size: .82rem;
    font-weight: 700;
    color: var(--vpp-navy);
    line-height: 1.35;
    margin: 0;
}
.malco-upsell-card-price {
    font-size: .82rem;
    color: var(--vpp-orange);
    font-weight: 600;
    margin: 0;
}

/* ── Popup overlay ────────────────────────────────────────────── */
.malco-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26,34,56,.65);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(4px);
}
.malco-popup-overlay.is-open {
    display: flex;
    animation: malcoFadeIn .22s ease;
}
@keyframes malcoFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Popup box ────────────────────────────────────────────────── */
.malco-popup-box {
    background: #fff;
    border-radius: var(--vpp-radius-pop);
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(26,34,56,.3);
    animation: malcoSlideUp .25s ease;
    position: relative;
}
@keyframes malcoSlideUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Popup header banner ──────────────────────────────────────── */
.malco-popup-header {
    display: grid;
    grid-template-columns: 150px 1fr;
    background: var(--vpp-orange);
    border-radius: var(--vpp-radius-pop) var(--vpp-radius-pop) 0 0;
}
.malco-popup-header img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: var(--vpp-radius-pop) 0 0 0;
    display: block;
}
.malco-popup-header-info {
    padding: 20px 48px 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}
.malco-popup-header-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}
.malco-popup-price {
    font-size: 1rem;
    color: #fff;
    font-weight: 700;
}

/* ── Close button ─────────────────────────────────────────────── */
.malco-popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: rgba(255,255,255,.15);
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background .15s;
    z-index: 2;
}
.malco-popup-close:hover { background: rgba(255,255,255,.3); }

/* ── Popup body ───────────────────────────────────────────────── */
.malco-popup-body { padding: 22px 26px 26px; }
.malco-popup-body > h4 {
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--vpp-navy);
    margin: 0 0 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--vpp-orange);
    display: inline-block;
}
.malco-popup-description, .malco-popup-additional {
    font-size: .9rem;
    color: var(--vpp-text);
    line-height: 1.7;
}
.malco-popup-description p, .malco-popup-additional ul { margin: 0 0 10px; }
.malco-popup-description p:last-child { margin-bottom: 5px; }
.description-malco {
    margin-bottom: 20px;
}
/* ── Actions row ──────────────────────────────────────────────── */
#malcoPopupActions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
}

/* ── Shared pill button base ──────────────────────────────────── */
.malco-popup-video-link,
.malco-atc-btn.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: var(--vpp-radius);   /* pill */
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    line-height: 1;
    transition: background .2s, transform .15s;
    white-space: nowrap;
}
.malco-popup-video-link:hover,
.malco-atc-btn.button:hover {
    transform: translateY(-1px);
}

/* ── Video button (navy) ──────────────────────────────────────── */
.malco-popup-video-link {
    background: var(--vpp-navy);
    color: #fff !important;
}
.malco-popup-video-link:hover { background: var(--vpp-navy-light); }

/* ── Add to Cart button (orange pill – matches screenshot) ────── */
.malco-atc-btn.button {
    background-color: #f05a28 !important;
    color: #fff !important;
    min-width: 150px;
    justify-content: center;
}
.malco-atc-btn.button:hover { background: var(--vpp-orange-dark); }
.malco-atc-btn.button.loading {
    opacity: .75;
    cursor: wait;
}
.malco-atc-btn.button.added {
    background: #2e7d32;
    cursor: default;
}
.malco-atc-btn.button.added:hover {
    background: #2e7d32;
    transform: none;
}

/* ── View full product link ───────────────────────────────────── */
.malco-popup-product-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--vpp-navy);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: underline;
    transition: color .15s;
}
.malco-popup-product-link:hover { color: var(--vpp-orange); }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    .malco-addon-slider { margin: 0; }
}
@media (max-width: 520px) {
    .malco-popup-header { grid-template-columns: 110px 1fr; }
    .malco-popup-header img { width: 110px; height: 110px; }
    .malco-popup-header-info h3 { font-size: .95rem; }
    #malcoPopupActions { flex-direction: column; align-items: stretch; }
    .malco-popup-video-link,
    .malco-atc-btn.button { justify-content: center; width: 100%; }
}


.malco-addon-slider .product {
    width: 100%;
    margin: 0;
    float: none;
}




.malco-addon-slider a.add_to_cart_button.button.br_compare_button.berocket_product_smart_compare, .malco-addon-slider a.button.read-more-button,.malco-addon-slider .add-to-wishlist {
    display:none !important;
}


.malco-upsell-card .product-name.product_title a{
    height:50px !important;
}

