/* Header Cart Dropdown Modern Styling */

/* Cart Button Styling */
.header-shop .mv-btn-style-11 {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.header-shop .mv-btn-style-11:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.header-shop .mv-btn-style-11 .btn-inner {
    color: white;
    font-size: 18px;
}

.header-shop .mv-btn-style-11 .icon {
    font-size: 20px;
}

.header-shop .mv-btn-style-11 .number {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

/* Dropdown Menu Styling */
.header-shop .dropdown-menu {
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0;
    margin-top: 10px;
    min-width: 350px;
    max-width: 400px;
    animation: cartDropdownFadeIn 0.3s ease;
    overflow: hidden;
}

@keyframes cartDropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-shop .dropdown-menu-inner {
    padding: 0;
}

/* Cart Header */
.mv-block-style-39 .block-39-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    margin: 0;
}

.mv-block-style-39 .block-39-header .mv-color-primary {
    color: #fff3cd !important;
    font-weight: 700;
}

/* Cart Items List */
.mv-block-style-39 .block-39-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px 0;
}

.mv-block-style-39 .block-39-list::-webkit-scrollbar {
    width: 6px;
}

.mv-block-style-39 .block-39-list::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.mv-block-style-39 .block-39-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 3px;
}

/* Cart Items */
.mv-block-style-39 .item {
    border-bottom: 1px solid #f1f3f4;
    padding: 12px 20px;
    transition: background 0.3s ease;
}

.mv-block-style-39 .item:hover {
    background: #f8f9fa;
}

.mv-block-style-39 .item:last-child {
    border-bottom: none;
}

.mv-block-style-39 .block-39-thumb {
    width: 60px;
    padding-right: 12px;
}

.mv-block-style-39 .block-39-thumb-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mv-block-style-39 .block-39-main {
    flex: 1;
    padding-right: 8px;
}

.mv-block-style-39 .block-39-title a {
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
    text-decoration: none;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mv-block-style-39 .block-39-title a:hover {
    color: #667eea;
}

.mv-block-style-39 .block-39-price .new-price {
    font-size: 14px;
    font-weight: 700;
    color: #28a745;
    margin: 5px 0;
}

.mv-block-style-39 .block-24-meta {
    padding: 0;
    margin: 0;
}

.mv-block-style-39 .block-24-meta .meta-item {
    font-size: 11px;
    color: #718096;
    padding: 0;
    margin: 0;
}

.mv-block-style-39 .block-24-meta .text {
    font-weight: 500;
}

/* Delete Button */
.mv-block-style-39 .btn-delete-product {
    background: #f8f9fa;
    color: #dc3545;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 12px;
    cursor: pointer;
}

.mv-block-style-39 .btn-delete-product:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.1);
}

/* Total Section */
.mv-block-style-39 .block-39-total {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
}

.mv-block-style-39 .block-39-total .mv-col-right {
    color: #28a745;
    font-size: 18px;
}

/* Footer Buttons */
.mv-block-style-39 .block-39-footer {
    padding: 15px 20px 20px;
    background: white;
    border-top: 1px solid #f1f3f4;
}

.mv-block-style-39 .block-39-footer .row {
    margin: 0 -5px;
}

.mv-block-style-39 .block-39-footer .col-xs-6 {
    padding: 0 5px;
}

/* Modern Button Styles */
.mv-block-style-39 .mv-btn-style-5 {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    display: block;
    width: 100%;
    line-height: 1.2;
}

/* Sepeti Görüntüle Button - Modern Gray Style */
.mv-block-style-39 .btn-5-gray {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    box-shadow: 0 3px 12px rgba(108, 117, 125, 0.3);
}

.mv-block-style-39 .btn-5-gray:hover {
    background: linear-gradient(135deg, #495057, #343a40);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.4);
    color: white;
    text-decoration: none;
}

/* Ödeme Button - Primary Style */
.mv-block-style-39 .mv-btn-style-5:not(.btn-5-gray) {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 3px 12px rgba(40, 167, 69, 0.3);
}

.mv-block-style-39 .mv-btn-style-5:not(.btn-5-gray):hover {
    background: linear-gradient(135deg, #20c997, #17a2b8);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
    color: white;
    text-decoration: none;
}

/* Empty Cart Message */
.mv-block-style-39 .text-center p {
    color: #718096;
    font-size: 14px;
    margin: 0;
    padding: 30px 20px;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .header-shop .dropdown-menu {
        min-width: 300px;
        max-width: 320px;
        margin-left: -100px;
    }

    .mv-block-style-39 .block-39-footer .col-xs-6 {
        margin-bottom: 8px;
    }

    .mv-block-style-39 .mv-btn-style-5 {
        padding: 10px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .header-shop .dropdown-menu {
        min-width: 280px;
        max-width: 300px;
        margin-left: -120px;
    }

    .mv-block-style-39 .block-39-header {
        padding: 12px 15px;
        font-size: 13px;
    }

    .mv-block-style-39 .item {
        padding: 10px 15px;
    }

    .mv-block-style-39 .block-39-total {
        padding: 12px 15px;
        font-size: 15px;
    }

    .mv-block-style-39 .block-39-footer {
        padding: 12px 15px 15px;
    }
}

/* Loading State */
.mv-block-style-39.loading {
    position: relative;
}

.mv-block-style-39.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1000;
    border-radius: 12px;
}

.mv-block-style-39.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1001;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Cart Item Animations */
.mv-block-style-39 .item {
    animation: cartItemSlideIn 0.3s ease;
}

@keyframes cartItemSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Success Feedback for Add to Cart */
.cart-feedback {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    animation: feedbackSlideIn 0.3s ease;
}

@keyframes feedbackSlideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-feedback.fadeout {
    animation: feedbackFadeOut 0.3s ease forwards;
}

@keyframes feedbackFadeOut {
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}