/* Montserrat Font Import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,600;1,400;1,600&display=swap');

/* Sepet İkonu Butonu */
.hp-cart-icon-btn {
    position: relative !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    color: #ffffff !important;
    transition: none !important;
    z-index: 999999 !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    user-select: none !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 !important;
}

.hp-cart-icon-btn:hover {
    background: transparent !important;
    color: #ffffff !important;
    transform: none !important;
    opacity: 1 !important;
}

.hp-cart-icon-btn:active {
    background: transparent !important;
    color: #ffffff !important;
    transform: none !important;
    opacity: 1 !important;
}

.hp-cart-icon-btn.hp-cart-icon-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.2s ease;
}

.hp-cart-icon-btn svg {
    width: 32px;
    height: 32px;
    display: block;
    pointer-events: none !important;
}

.hp-cart-count-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #BCF10E;
    color: #000000;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 11px;
    font-weight: 600;
    font-style: normal;
    line-height: 1;
}

/* Sepet Popup */
.hp-cart-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    pointer-events: none;
}

.hp-cart-popup.hp-cart-popup-open {
    display: block;
    pointer-events: all;
}

.hp-cart-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: auto;
}

.hp-cart-popup.hp-cart-popup-open .hp-cart-popup-overlay {
    opacity: 1;
}

/* Kapanma animasyonu için overlay */
.hp-cart-popup:not(.hp-cart-popup-open) .hp-cart-popup-overlay {
    opacity: 0;
}

.hp-cart-popup-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    height: 100%;
    background: #ffffff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: visible;
    z-index: 100000;
}

.hp-cart-popup.hp-cart-popup-open .hp-cart-popup-content {
    transform: translateX(0);
}

/* Kapanma animasyonu için */
.hp-cart-popup:not(.hp-cart-popup-open) .hp-cart-popup-content {
    transform: translateX(100%);
}

/* Popup Header */
.hp-cart-popup-header {
    padding: 30px 20px 20px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.hp-cart-popup-icon {
    position: relative;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: #000000;
    margin: 0 auto 4px;
}

.hp-cart-popup-icon svg {
    width: 32px;
    height: 32px;
    display: block;
}

.hp-cart-popup-header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hp-cart-popup-count {
    position: absolute;
    top: -10px;
    right: -8px;
    background: #BCF10E;
    color: #000000;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 11px;
    font-weight: 600;
    font-style: normal;
    line-height: 1;
    z-index: 1; /* Kapatma tuşunun altında kalmalı */
    pointer-events: none; /* Tıklamaları engelle */
}

.hp-cart-popup-title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 18px;
    font-weight: 600;
    font-style: italic;
    color: #000000;
    margin: 0;
    text-transform: uppercase;
    text-align: center;
}

.hp-cart-popup-close {
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    padding: 0 !important;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: none !important;
    position: relative;
    z-index: 100001 !important; /* Badge'in üstünde olmalı */
}

.hp-cart-popup-close:hover {
    background: transparent !important;
    border: none !important;
    color: inherit !important;
    opacity: 1 !important;
    transform: none !important;
}

.hp-cart-popup-close:active {
    background: transparent !important;
    border: none !important;
    color: inherit !important;
    opacity: 1 !important;
    transform: none !important;
}

.hp-cart-popup-close-floating {
    position: fixed;
    left: calc(10% - 20px);
    top: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #dddddd !important;
    background: #ffffff !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    z-index: 100002 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-cart-popup-close-floating svg {
    width: 14px;
    height: 14px;
}

.hp-cart-popup-close svg {
    width: 24px;
    height: 24px;
}

/* Popup Body */
.hp-cart-popup-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.hp-cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    min-height: 0;
}

.hp-cart-item {
    display: flex;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

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

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

.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-family: 'Montserrat', sans-serif !important;
    font-size: 14px;
    font-weight: 600;
    font-style: italic;
    color: #000000;
    margin: 0 0 8px 0;
    line-height: 1.4;
    text-transform: uppercase;
}

.hp-cart-item-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hp-cart-item-quantity-price {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13px;
    font-weight: 400;
    font-style: italic;
    color: #000000;
}

.hp-cart-item-sku {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 12px;
    font-weight: 400;
    font-style: italic;
    color: #666666;
}

/* Popup Footer */
.hp-cart-popup-footer {
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    margin-top: auto;
    flex-shrink: 0;
}

.hp-cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.hp-cart-subtotal-label {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px;
    font-weight: 400;
    font-style: italic;
    color: #000000;
}

.hp-cart-subtotal-amount {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 16px;
    font-weight: 600;
    font-style: italic;
    color: #000000;
}

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

.hp-cart-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 0;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px;
    font-weight: 600;
    font-style: italic;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hp-cart-btn-primary {
    background: #000000;
    color: #ffffff;
}

.hp-cart-btn-primary:hover {
    background: #333333;
    color: #ffffff;
}

.hp-cart-btn-secondary {
    background: #000000;
    color: #ffffff;
}

.hp-cart-btn-secondary:hover {
    background: #333333;
    color: #ffffff;
}

/* Empty Cart */
.hp-cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    min-height: 300px;
}

.hp-cart-empty-icon {
    position: relative;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: #000000;
}

.hp-cart-empty-icon svg {
    width: 48px;
    height: 48px;
    display: block;
}

.hp-cart-empty-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #BCF10E;
    color: #000000;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 11px;
    font-weight: 600;
    font-style: normal;
    line-height: 1;
}

.hp-cart-empty-text {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px;
    font-weight: 400;
    font-style: italic;
    color: #000000;
    margin: 0 0 30px 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hp-cart-icon-btn {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 999999 !important;
        pointer-events: auto !important;
        width: 32px !important;
        height: 32px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Tüm ekran boyutlarında görünür olmalı */
    #hp-cart-icon-btn {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .hp-cart-popup-content {
        max-width: 100%;
    }
    
    #hp-cart-popup-mobile .hp-cart-popup-content {
        width: 80%;
        max-width: 80%;
        border-top-left-radius: 24px;
        border-bottom-left-radius: 24px;
    }
    
    #hp-cart-popup-mobile .hp-cart-popup-close-floating {
        left: calc(10% - 20px);
        top: 24px;
        position: fixed;
    }
}

/* Tüm ekran boyutları için görünürlük garantisi */
#hp-cart-icon-btn,
button.hp-cart-icon-btn,
.hp-cart-icon-btn {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

