/* VIZIRI CUSTOM CART */

.vz-cart-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    padding: 8px 12px;
}

.vz-cart-symbol {
    font-size: 25px;
    line-height: 1;
}

.vz-cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: #d50000;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Overlay */

#vz-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.60);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}

body.vz-cart-open #vz-cart-overlay {
    opacity: 1;
    visibility: visible;
}

/* Slide-out panel */

#vz-cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 440px;
    max-width: 100%;
    height: 100dvh;
    background: #fff;
    z-index: 999999;
    transform: translateX(105%);
    transition: transform .35s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0,0,0,.12);
    font-family: inherit;
    color: #151515;
}

body.vz-cart-open #vz-cart-panel {
    transform: translateX(0);
}

body.vz-cart-open {
    overflow: hidden;
}

/* Header */

.vz-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 28px;
    border-bottom: 1px solid #eee;
}

.vz-cart-header h2 {
    font-size: 23px;
    font-weight: 750;
    margin: 0;
    padding: 0;
    color: #111;
}

.vz-cart-close {
    background: transparent;
    border: 0;
    font-size: 32px;
    color: #111;
    cursor: pointer;
    line-height: 1;
}

/* Products */

.vz-cart-content {
    padding: 20px 26px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

#vz-cart-panel ul.woocommerce-mini-cart {
    list-style: none;
    padding: 0;
    margin: 0;
}

#vz-cart-panel .woocommerce-mini-cart-item {
    position: relative;
    display: flow-root;
    padding: 16px 28px 22px 0 !important;
    border-bottom: 1px solid #eee;
    min-height: 110px;
}

#vz-cart-panel .woocommerce-mini-cart-item > a:not(.remove) {
    display: block;
    color: #161616;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    line-height: 1.5;
}

#vz-cart-panel .woocommerce-mini-cart-item img {
    width: 85px !important;
    height: 85px !important;
    object-fit: contain;
    float: left !important;
    margin: 0 16px 8px 0 !important;
    background: #f6f6f6;
    border-radius: 8px;
}

#vz-cart-panel a.remove {
    position: absolute !important;
    right: 0 !important;
    top: 18px !important;
    left: auto !important;
    color: #777 !important;
    background: transparent !important;
    font-size: 22px;
    text-decoration: none;
}

#vz-cart-panel a.remove:hover {
    color: #d50000 !important;
}

/* Quantity controls */

.vz-item-controls {
    display: inline-flex;
    align-items: center;
    margin: 10px 8px 0 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    vertical-align: middle;
}

.vz-item-controls button {
    width: 30px;
    height: 32px;
    background: #fff;
    color: #222;
    border: 0;
    cursor: pointer;
    font-size: 18px;
}

.vz-item-controls button:hover {
    background: #f2f2f2;
}

.vz-qty {
    min-width: 25px;
    text-align: center;
    font-weight: 600;
}

.vz-item-price {
    display: inline-block;
    margin-top: 10px;
    color: #d50000;
    font-weight: 750;
    font-size: 14px;
}

/* Totals */

#vz-cart-panel .woocommerce-mini-cart__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #ddd;
    padding: 22px 0 14px;
    margin: 12px 0 0;
    font-size: 18px;
    font-weight: 700;
}

#vz-cart-panel .woocommerce-mini-cart__total .amount {
    color: #d50000;
    font-weight: 800;
}

/* Checkout buttons */

#vz-cart-panel .woocommerce-mini-cart__buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

#vz-cart-panel .woocommerce-mini-cart__buttons a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 50px;
    padding: 12px !important;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 750;
    box-sizing: border-box;
}

#vz-cart-panel .woocommerce-mini-cart__buttons a.checkout {
    order: -1;
    background: linear-gradient(135deg,#e00b00,#b80000);
    color: white !important;
    border: 1px solid #d50000;
}

#vz-cart-panel .woocommerce-mini-cart__buttons a:not(.checkout) {
    background: #fff;
    color: #222 !important;
    border: 1px solid #ddd;
}

/* Bottom benefits */

.vz-cart-benefits {
    display: flex;
    justify-content: space-around;
    gap: 8px;
    padding: 20px 12px;
    border-top: 1px solid #eee;
    background: #fff;
    font-size: 11px;
    text-align: center;
}

/* Full WooCommerce classic cart page */

.woocommerce-cart .woocommerce table.shop_table {
    border: 1px solid #eee;
    border-radius: 9px;
    overflow: hidden;
    border-collapse: separate;
    background: #fff;
}

.woocommerce-cart .woocommerce table.shop_table th {
    background: #f8f8f8;
    color: #333;
    padding: 18px;
}

.woocommerce-cart .woocommerce table.shop_table td {
    padding: 18px;
    border-color: #eee;
}

.woocommerce-cart .woocommerce table.shop_table img {
    width: 85px;
    border-radius: 7px;
}

.woocommerce-cart .cart_totals {
    background: #fafafa;
    padding: 25px;
    border: 1px solid #eee;
    border-radius: 10px;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    background: linear-gradient(135deg,#e00b00,#b80000) !important;
    color: #fff !important;
    border-radius: 6px;
    padding: 17px !important;
}

/* Mobile */

@media(max-width: 767px) {
    #vz-cart-panel {
        width: 100%;
    }

    .vz-cart-header {
        padding: 20px;
    }

    .vz-cart-content {
        padding: 14px 18px;
    }

    .vz-cart-benefits {
        padding: 15px 8px;
        font-size: 10px;
    }
}

/* =====================================================
   VIZIRI - DIVI HEADER CART
   ===================================================== */

#et-top-navigation .et-cart-info {
    position: relative !important;
    display: inline-flex !important;
    /*align-items: center !important;*/
    justify-content: center !important;

    width: 40px !important;
    height: 40px !important;

    margin-left: 22px !important;
    padding: 0 !important;

    color: #d50000 !important;
    text-decoration: none !important;
}

/* ONLY Divi's original icon span */
#et-top-navigation .et-cart-info > span:first-child {
    display: flex !important;
    /*align-items: center !important;
    justify-content: center !important;*/

    width: 40px !important;
    height: 40px !important;
}

/* ONLY create cart icon on Divi's original span */
#et-top-navigation .et-cart-info > span:first-child:before {
    font-size: 26px !important;
    color: #d50000 !important;

    position: static !important;
    margin: 0 !important;
}

/* Quantity badge */
#et-top-navigation .et-cart-info > .vz-header-count {
    position: absolute !important;

    top: -10px !important;
    right: 3px !important;

    width: 18px !important;
    min-width: 18px !important;
    height: 18px !important;

    padding: 0 !important;
    margin: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: #d50000 !important;
    color: #fff !important;

    border: 2px solid #fff !important;
    border-radius: 50% !important;

    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 18px !important;

    box-sizing: content-box !important;

    z-index: 10 !important;
}

/* CRITICAL:
   Don't allow Divi to generate another cart icon
   inside our quantity badge */
#et-top-navigation .et-cart-info > .vz-header-count:before,
#et-top-navigation .et-cart-info > .vz-header-count:after {
    content: none !important;
    display: none !important;
}

/* Keep icon centered even when cart is empty */
#et-top-navigation .et-cart-info > span:first-child:after {
    display: none !important;
}

/* Disable Divi automatic hover arrows in Viziri cart */
#vz-cart-panel .woocommerce-mini-cart__buttons a:after,
#vz-cart-panel .woocommerce-mini-cart__buttons a:before {
    display: none !important;
    content: none !important;
}

/* Prevent Divi from moving button text on hover */
#vz-cart-panel .woocommerce-mini-cart__buttons a:hover {
    padding-left: 12px !important;
    padding-right: 12px !important;
}

/* Viziri cart button hover effects */

#vz-cart-panel .woocommerce-mini-cart__buttons a {
    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease,
        box-shadow .2s ease !important;
}

/* Checkout */
#vz-cart-panel .woocommerce-mini-cart__buttons a.checkout:hover {
    background: linear-gradient(135deg, #c90a00, #a90000) !important;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(180, 0, 0, .18);
}

/* Continue shopping */
#vz-cart-panel .woocommerce-mini-cart__buttons a:not(.checkout):hover {
    background: #fafafa !important;
    border-color: #d50000 !important;
    color: #d50000 !important;
    transform: translateY(-1px);
}


/* =========================================
   VIZIRI CUSTOM CHEVRON ARROWS
   ========================================= */

#vz-cart-panel .woocommerce-mini-cart__buttons a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 18px !important;
}

/* Chevron base */
#vz-cart-panel .vz-chevron {
    display: inline-block !important;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;

    border-top: 6px solid currentColor;
    border-right: 6px solid currentColor;

    transition: transform .2s ease;
}

/* → */
#vz-cart-panel .vz-chevron-right {
    transform: rotate(45deg);
}

/* ← */
#vz-cart-panel .vz-chevron-left {
    transform: rotate(-135deg);
}

/* Checkout arrow */
#vz-cart-panel .checkout .vz-chevron {
    color: #fff;
}

/* Continue shopping arrow */
#vz-cart-panel .vz-continue-shopping .vz-chevron {
    color: #222;
}


/* HOVER ANIMATION */

#vz-cart-panel .checkout:hover .vz-chevron-right {
    transform: rotate(45deg) translate(4px, -4px);
}

#vz-cart-panel .vz-continue-shopping:hover .vz-chevron-left {
    transform: rotate(-135deg) translate(4px, -4px);
}

/* =========================================
   EMPTY CART
   ========================================= */

#vz-cart-panel .woocommerce-mini-cart__empty-message {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin: 45px 0 25px;
}

/* Continue shopping button */
#vz-cart-panel .vz-empty-continue {
    width: 100%;
    min-height: 56px;

    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 18px;

    box-sizing: border-box;

    background: #fff;
    border: 1px solid #ddd;
    border-radius: 7px;

    color: #222 !important;
    text-decoration: none !important;

    font-size: 14px;
    font-weight: 750;

    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

/* Hover */
#vz-cart-panel .vz-empty-continue:hover {
    background: #fafafa;
    border-color: #d50000;
    color: #d50000 !important;
    transform: translateY(-1px);
}

/* Prevent Divi's automatic button arrow */
#vz-cart-panel .vz-empty-continue:before,
#vz-cart-panel .vz-empty-continue:after {
    content: none !important;
    display: none !important;
}

/* Chevron */
#vz-cart-panel .vz-empty-continue .vz-chevron {
    color: currentColor;
}

#vz-cart-panel .vz-empty-continue:hover .vz-chevron-left {
    transform: rotate(-135deg) translate(4px, -4px);
}