/* Mini Cart - Sağdan Açılan Panel */

.hp-mini-cart-wrapper {
    position: relative;
}

/* Overlay (Arka plan) */
.hp-mini-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hp-mini-cart-wrapper.hp-cart-open .hp-mini-cart-overlay {
    opacity: 1;
    visibility: visible;
}

/* Cart Panel (Sağdan açılan) */
.hp-mini-cart-panel {
    position: fixed;
    top: 0;
    right: -500px;
    width: 500px;
    max-width: 90vw;
    height: 100vh;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow: hidden;
}

.hp-mini-cart-wrapper.hp-cart-open .hp-mini-cart-panel {
    right: 0;
}

/* Header */
.hp-mini-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #ffffff;
}

.hp-mini-cart-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    color: #000;
}

.hp-mini-cart-close {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.hp-mini-cart-close:hover {
    color: #000;
}

/* Cart Items */
.hp-mini-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.hp-mini-cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.hp-mini-cart-empty p {
    margin: 0;
    font-size: 16px;
}

/* Cart Item */
.hp-cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.hp-cart-item:last-child {
    border-bottom: none;
}

.hp-cart-item-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    overflow: hidden;
    background: #fafafa;
    border-radius: 4px;
}

.hp-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp-cart-item-details {
    flex: 1;
    min-width: 0;
}

.hp-cart-item-name {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.hp-cart-item-name a {
    color: #000;
    text-decoration: none;
}

.hp-cart-item-name a:hover {
    text-decoration: underline;
}

.hp-cart-item-attr {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.hp-cart-item-sku {
    font-size: 11px;
    color: #999;
    margin-bottom: 8px;
}

.hp-cart-item-price-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #000;
    font-weight: 500;
}

.hp-cart-item-remove {
    position: absolute;
    top: 15px;
    right: 0;
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-cart-item-remove:hover {
    color: #e74c3c;
}

/* Footer */
.hp-mini-cart-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    background: #ffffff;
}

.hp-mini-cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.hp-subtotal-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.hp-subtotal-amount {
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.hp-mini-cart-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hp-btn-cart,
.hp-btn-checkout {
    display: block;
    width: 100%;
    padding: 14px 20px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 0;
    transition: all 0.2s ease;
    border: 2px solid #000;
    background: #000;
    color: #fff;
}

.hp-btn-cart {
    background: #fff;
    color: #000;
}

.hp-btn-cart:hover {
    background: #f5f5f5;
    color: #000;
}

.hp-btn-checkout:hover {
    background: #333;
    border-color: #333;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .hp-mini-cart-panel {
        width: 100vw;
        max-width: 100vw;
        right: -100vw;
    }
    
    .hp-mini-cart-wrapper.hp-cart-open .hp-mini-cart-panel {
        right: 0;
    }
}

/* Elementor'un default mini cart'ı kullanılıyor - custom popup kaldırıldı */


