
/* --- TRIGGER BUTTON --- */
.inf-woo-cart-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: transparent;
    color: var(--inf-text-main);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.inf-woo-cart-trigger:hover {
    color: var(--inf-accent);
}

.inf-woo-cart-count-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--inf-accent);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* --- SLIDE-OUT PANEL --- */
.inf-woo-cart-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.inf-woo-cart-sidebar {
    position: fixed;
    top: 0; right: 0;
    width: 400px;
    height: 100%;
    background: white;
    z-index: 99999;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

@media (max-width: 480px) {
    .inf-woo-cart-sidebar { width: 100%; }
}

/* OPEN STATE */
body.inf-woo-cart-open { overflow: hidden; }
body.inf-woo-cart-open .inf-woo-cart-overlay { opacity: 1; visibility: visible; }
body.inf-woo-cart-open .inf-woo-cart-sidebar { transform: translateX(0); }

/* --- HEADER --- */
.inf-woo-cart-header {
    padding: 20px;
    border-bottom: 1px solid var(--inf-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inf-woo-cart-title { font-size: 18px; font-weight: 700; margin: 0; }
.inf-woo-cart-close {
    background: none; border: none; cursor: pointer;
    font-size: 24px; color: var(--inf-text-light);
    transition: color 0.2s;
    padding: 0;
    line-height: 1;
}
.inf-woo-cart-close:hover { color: var(--inf-sale); }

/* --- SHIPPING BAR --- */
.inf-woo-shipping-bar { padding: 15px 20px; background: #f8fafc; border-bottom: 1px solid var(--inf-border); }
.inf-woo-sb-text { font-size: 13px; margin-bottom: 8px; color: var(--inf-text-main); }
.inf-woo-sb-track { height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; }
.inf-woo-sb-progress { height: 100%; background: var(--inf-accent); width: 0%; transition: width 0.5s ease; }
.inf-woo-sb-success { color: var(--inf-success); font-weight: 700; }

/* --- BODY (WooCommerce List Override) --- */
.inf-woo-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Hiding default WC junk */
.inf-woo-cart-body .widget_shopping_cart_content .total, 
.inf-woo-cart-body .widget_shopping_cart_content .buttons {
    display: none !important; 
}

.inf-woo-cart-body ul.cart_list { margin: 0; padding: 0; list-style: none; }
.inf-woo-cart-body ul.cart_list li {
    padding: 0 0 20px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--inf-border);
    display: flex;
    gap: 15px;
    position: relative;
}
.inf-woo-cart-body ul.cart_list li:last-child { border: none; margin: 0; padding: 0; }

.inf-woo-cart-body ul.cart_list li img {
    width: 70px; height: 70px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--inf-border);
}

.inf-woo-cart-body ul.cart_list li a { font-weight: 600; text-decoration: none; color: var(--inf-text-main); line-height: 1.3; }
.inf-woo-cart-body ul.cart_list li .quantity { font-size: 13px; color: var(--inf-text-light); display: block; margin-top: 5px; }
.inf-woo-cart-body ul.cart_list li .remove {
    position: absolute; top: 0; right: 0;
    color: #ef4444 !important;
    font-size: 18px;
    background: transparent !important;
}

/* --- FOOTER --- */
.inf-woo-cart-footer {
    padding: 20px;
    border-top: 1px solid var(--inf-border);
    background: white;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.02);
}

.inf-woo-cart-subtotal {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 15px;
}
.inf-woo-cart-subtotal span { font-size: 14px; color: var(--inf-text-muted); }
.inf-woo-cart-subtotal strong { font-size: 20px; color: var(--inf-text-main); font-weight: 800; }

.inf-woo-btn-checkout {
    display: flex; justify-content: center; align-items: center; gap: 8px;
    width: 100%;
    padding: 14px;
    background: var(--inf-primary);
    color: white;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}
.inf-woo-btn-checkout:hover { background: #000; color: white; transform: translateY(-2px); }

.inf-woo-btn-view-cart {
    display: block; width: 100%; text-align: center;
    margin-top: 10px;
    font-size: 13px; font-weight: 600;
    color: var(--inf-text-main);
    text-decoration: underline;
}
.inf-woo-btn-view-cart:hover { color: var(--inf-accent); }
