/* ==========================================================
   BETÜŞ BUTİK – MODERN HEADER VE SEPET MODALI
========================================================== */

/* RESET & GLOBAL */
.hb-header * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ===============================
   DESKTOP HEADER
================================= */
.hb-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 5%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 16px;
    width: 100%;
    background: var(--header-bg);
    color: var(--header-text);
}

.hb-left {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 20px);
    flex-shrink: 0;
}

.hb-logo {
    width: clamp(80px, 10vw, 115px);
    height: clamp(80px, 10vw, 115px);
    object-fit: cover;
    border-radius: 10%;
    aspect-ratio: 1/1;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.hb-logo-title {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 700;
    white-space: nowrap;
    color: inherit;
}

.hb-right-controls {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 20px);
}

/* BUTONLAR */
.hb-btn {
    padding: clamp(8px, 1.5vw, 10px) clamp(16px, 2vw, 24px);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(14px, 1.5vw, 15px);
    white-space: nowrap;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}

.hb-login {
    background: var(--button-color) !important;
    color: white !important;
    border: 2px solid var(--button-color) !important;
}

.hb-login:hover {
    background: color-mix(in srgb, var(--button-color) 90%, #000) !important;
    border-color: color-mix(in srgb, var(--button-color) 90%, #000) !important;
}

.hb-register, .hb-logout {
    background: #ef4444 !important;
    color: white !important;
    border: 2px solid #ef4444 !important;
}

.hb-register:hover, .hb-logout:hover {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
}

.hb-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: inherit;
    font-size: 24px;
}

/* ===============================
   DESKTOP NAVIGATION
================================= */
.hb-desktop-nav {
    width: 100%;
    padding: 8px 5%;
    background: var(--menu-bg);
    color: var(--menu-text);
    position: relative;
    z-index: 1000;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.hb-main-ul {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: clamp(16px, 2.5vw, 32px);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    flex-wrap: wrap;
}

.hb-menu-item {
    position: relative;
}

.hb-main-ul > .hb-menu-item > .hb-menu-title,
.hb-main-ul > .hb-menu-item > .hb-menu-link {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid transparent;
    font-size: clamp(14px, 1.5vw, 16px);
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hb-main-ul > .hb-menu-item > .hb-menu-title:hover,
.hb-main-ul > .hb-menu-item > .hb-menu-link:hover {
    background: rgba(0, 0, 0, 0.05);
}

.hb-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: white;
    color: #374151;
    padding: 8px 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: none;
    z-index: 9999;
    margin-top: 8px;
    border: 1px solid #e5e7eb;
}

.hb-menu-item:hover > .hb-dropdown {
    display: block;
}

.hb-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hb-dropdown li {
    padding: 8px 16px;
}

.hb-dropdown li:hover {
    background: #f3f4f6;
}

.hb-dropdown li a {
    display: block;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    color: #374151;
    transition: all 0.2s ease;
}

.hb-dropdown li a:hover {
    color: #111827;
}

/* ===============================
   SEPET İKONU
================================= */
.hb-cart-container {
    position: relative;
    display: flex;
    align-items: center;
}

.hb-cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    color: inherit;
}

.hb-cart-icon {
    width: 28px;
    height: 28px;
    fill: currentColor;
    transition: all 0.3s ease;
}

.hb-cart:hover .hb-cart-icon {
    transform: scale(1.05);
}

.hb-cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 20px;
    height: 20px;
    background: #ef4444 !important;
    color: white !important;
    font-weight: bold !important;
    font-size: 12px;
    border-radius: 50%;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 10;
    border: 2px solid var(--header-bg);
    transform: translate(50%, -50%);
}

/* ===============================
   SEPET MODAL - YENİ TASARIM
================================= */
/* OVERLAY */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* MODAL CONTAINER - TÜM EKRANLAR İÇİN */
.cart-modal {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 420px;
    height: 100vh; /* Tam ekran yükseklik */
    background: white;
    z-index: 9999;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.cart-modal.active {
    right: 0;
}

/* MODAL HEADER */
.cart-header {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.cart-header h3 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.close-cart-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.close-cart-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.close-cart-btn i {
    font-size: 16px;
}

/* SEPET İÇERİK ALANI - FLEX DÜZENİ */
.cart-modal-content {
    display: flex;
    flex-direction: column;
    height: 85%;
    overflow: hidden;
}

/* ANA İÇERİK - SCROLLABLE */
.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8fafc;
    min-height: 0;
    /* İÇERİK ALANINI KISALT - FOOTER İÇİN YER BIRAK */
    max-height: calc(100vh - 200px);
}

/* SCROLLBAR STYLES */
.cart-content::-webkit-scrollbar {
    width: 6px;
}

.cart-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.cart-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.cart-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
}

/* BOŞ SEPET */
.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.empty-cart i {
    font-size: 48px;
    color: #cbd5e1;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-cart p {
    font-size: 16px;
    margin-bottom: 8px;
    color: #64748b;
}

.btn-shopping {
    padding: 12px 24px;
    background: var(--button-color);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 16px;
    display: inline-block;
}

.btn-shopping:hover {
    background: color-mix(in srgb, var(--button-color) 90%, #000);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* SEPET ÜRÜN KARTI - DESKTOP DÜZENİ */
.cart-item {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    animation: cartItemFadeIn 0.3s ease forwards;
}

.cart-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.cart-item-content {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

/* RESİM */
.cart-item-image {
    flex-shrink: 0;
}

.cart-item-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

/* ÜRÜN BİLGİLERİ */
.cart-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.cart-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    margin: 0;
    flex: 1;
}

.cart-item-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cart-item-title a:hover {
    color: var(--button-color);
}

.cart-item-remove {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 1px solid #fca5a5;
    color: #dc2626;
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
}

.cart-item-remove:hover {
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
    border-color: #ef4444;
    color: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.2);
}

.cart-item-remove i {
    font-size: 12px;
}

/* VARYANT BİLGİLERİ */
.cart-item-variant {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
}

.variant-label {
    font-weight: 500;
    color: #475569;
    min-width: 40px;
}

.color-display {
    display: flex;
    align-items: center;
    gap: 6px;
}

.color-swatch {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    display: inline-block;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.size-value {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}

/* FİYAT VE MİKTAR ALANI */
.cart-item-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.cart-item-price {
    font-size: 18px;
    font-weight: 700;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 2px;
}

/* MİKTAR KONTROLLERİ */
.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border-radius: 8px;
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: white;
    border: 1px solid #e2e8f0;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
}

.quantity-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-color: #3b82f6;
    color: white;
    transform: translateY(-1px);
}

.quantity-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f1f5f9;
}

.quantity-input {
    width: 40px;
    text-align: center;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 4px;
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
    background: white;
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* BENZER ÜRÜNLER ALANI KALDIRILDI */
.similar-products-section {
    display: none !important;
}

#similarProductsTitle,
.similar-products-grid,
.similar-product-item,
.similar-product-image,
.similar-product-info,
.similar-product-title,
.similar-product-price,
.add-to-cart-similar {
    display: none !important;
}

/* SEPET FOOTER - SABİT VE GÖRÜNÜR */
.cart-footer {
    padding: 20px;
    background: white;
    border-top: 2px solid #e2e8f0;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    /* FOOTER HER ZAMAN GÖRÜNÜR OLSUN */
    position: sticky;
    bottom: 0;
    z-index: 100;
    margin-top: auto;
}

.cart-footer.hidden {
    display: none;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px dashed #e2e8f0;
}

.total-label {
    font-size: 20px;
    color: #334155;
    font-weight: 700;
}

.total-amount {
    font-size: 28px;
    font-weight: 900;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 4px;
    text-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.total-amount::before {
    content: "₺";
    font-size: 22px;
    font-weight: 700;
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.continue-shopping {
    padding: 14px 20px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.continue-shopping:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.checkout-btn {
    width: 100%;
    padding: 20px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    /* BUTON HER ZAMAN GÖRÜNÜR OLSUN */
    min-height: 60px;
}

.checkout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.6s;
}

.checkout-btn:hover::before {
    left: 100%;
}

.checkout-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.6);
}

.checkout-btn i {
    font-size: 22px;
    transition: transform 0.3s ease;
}

.checkout-btn:hover i {
    transform: translateX(8px);
}

/* BİLDİRİMLER */
.cart-notification {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #000000 !important;
    padding: 14px 20px !important;
    border-radius: 12px !important;
    margin-bottom: 16px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    animation: slideDown 0.3s ease forwards !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.15) !important;
    border: 2px solid #047857 !important;
    width: 100% !important;
    text-align: left !important;
}

.cart-notification i {
    font-size: 20px !important;
    color: #000000 !important;
    background: rgba(255, 255, 255, 0.3) !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.cart-notification span,
.cart-notification p {
    color: #000000 !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    flex: 1 !important;
}

.cart-notification.fade-out {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* TÜM BİLDİRİM TÜRLERİ */
.cart-notification.error,
.cart-notification.success,
.cart-notification.info,
.cart-notification.warning {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border-color: #047857 !important;
    color: #000000 !important;
}

/* ANİMASYONLAR */
@keyframes cartItemFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(40px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============================
   MOBILE VIEW - YENİ DÜZEN
================================= */
@media (max-width: 992px) {
    /* HEADER MOBİL */
    .hb-desktop-nav {
        display: none;
    }
    
    .hb-right-controls .hb-login,
    .hb-right-controls .hb-register {
        display: none;
    }
    
    .hb-top-row {
        padding: 16px 5%;
        gap: 12px;
    }
    
    .hb-logo {
        width: clamp(90px, 12vw, 110px);
        height: clamp(90px, 12vw, 110px);
    }
    
    /* HAMBURGER */
    .hb-mobile-toggle {
        display: block;
    }
    
    /* SEPET MODAL MOBİL - ÜSTTE BOŞLUK YOK */
    .cart-modal {
        max-width: 100%;
        top: 0; /* ÜSTTE BOŞLUK YOK */
        height: 100vh; /* TAM EKRAN */
        border-radius: 0; /* KÖŞELER YUVARLAK DEĞİL */
    }
    
    /* SEPET İÇERİĞİ - DAHA KISA */
    .cart-content {
        max-height: calc(100vh - 250px); /* FOOTER İÇİN DAHA FAZLA YER */
        padding: 16px;
        padding-bottom: 80px; /* ALTTAN BOŞLUK */
    }
    
    /* MOBİL İÇİN YATAY DİKDÖRTGEN DÜZENİ */
    .cart-item {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .cart-item-content {
        display: grid;
        grid-template-columns: 70px 1fr;
        grid-template-rows: auto auto auto;
        gap: 8px;
        align-items: start;
    }
    
    .cart-item-image {
        grid-row: 1 / 4;
        grid-column: 1;
    }
    
    .cart-item-image img {
        width: 70px;
        height: 70px;
    }
    
    /* ÜRÜN İSMİ VE SİL İKONU - YAN YANA */
    .cart-item-title-row {
        grid-row: 1;
        grid-column: 2;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 8px;
    }
    
    .cart-item-title {
        font-size: 14px;
        line-height: 1.3;
        flex: 1;
    }
    
    .cart-item-remove {
        padding: 6px 10px;
        font-size: 11px;
        margin: 0;
        width: auto;
        flex-shrink: 0;
    }
    
    /* RENK/BEDEN BİLGİLERİ - HEMEN ALTA */
    .cart-item-variant {
        grid-row: 2;
        grid-column: 2;
        font-size: 12px;
        margin-top: 2px;
    }
    
    /* FİYAT VE MİKTAR - YATAY, EN ALTA */
    .cart-item-bottom-row {
        grid-row: 3;
        grid-column: 2;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 4px;
    }
    
    .cart-item-price {
        font-size: 15px;
        flex-shrink: 0;
    }
    
    .cart-item-quantity {
        padding: 4px 8px;
        flex-shrink: 0;
    }
    
    .quantity-btn {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    
    .quantity-input {
        width: 30px;
        font-size: 12px;
    }
    
    /* SEPET FOOTER - HER ZAMAN GÖRÜNÜR */
    .cart-footer {
        padding: 16px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        background: white;
        z-index: 100;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        border-radius: 0;
        display: none; /* Varsayılan olarak gizli */
    }
    
    /* MODAL AÇIKKEN FOOTER'IN POZİSYONU */
    .cart-modal.active .cart-footer {
        display: block;
        right: 0;
        max-width: 100%;
    }
   /* SEPET FOOTER - SADECE MODAL AÇIKKEN GÖRÜNÜR */
.cart-footer {
    padding: 20px;
    background: white;
    border-top: 2px solid #e2e8f0;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    display: none; /* Varsayılan olarak gizli */
    position: sticky;
    bottom: 0;
    z-index: 100;
    margin-top: auto;
}

.cart-modal.active .cart-footer {
    display: block; /* Modal aktifken göster */
} 
    
    .total-amount {
        font-size: 22px;
    }
    
    .checkout-btn {
        padding: 16px 20px;
        font-size: 16px;
        min-height: 56px;
    }
    
    /* BİLDİRİMLER MOBİL */
    .cart-notification {
        padding: 12px 16px !important;
        font-size: 14px !important;
    }
    
    .cart-notification i {
        width: 32px !important;
        height: 32px !important;
        font-size: 18px !important;
    }
    
    /* MOBİL MENÜ */
    .hb-mobile-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: white;
        z-index: 2000;
        transition: left 0.3s ease;
        overflow-y: auto;
        padding: 20px 0;
        color: #374151;
    }
    
    .hb-mobile-menu.active {
        left: 0;
    }
    
    .hb-mobile-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1999;
    }
    
    .hb-mobile-overlay.active {
        display: block;
    }
    
    .hb-mobile-menu-header {
        padding: 20px;
        border-bottom: 1px solid #e5e7eb;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .hb-mobile-close {
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #374151;
        padding: 4px;
    }
    
    .hb-mobile-row {
        padding: 16px 20px;
        border-bottom: 1px solid #f3f4f6;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .hb-mobile-title {
        font-size: 16px;
        font-weight: 500;
        color: #374151;
    }
    
    .hb-mobile-arrow {
        background: none;
        border: none;
        color: #9ca3af;
        font-size: 16px;
        cursor: pointer;
        padding: 4px;
        transition: transform 0.3s;
    }
    
    .hb-mobile-arrow.rotated {
        transform: rotate(180deg);
    }
    
    .hb-mobile-sub {
        background: #f9fafb;
        display: none;
    }
    
    .hb-mobile-sub.active {
        display: block;
    }
    
    .hb-mobile-sub li {
        padding: 12px 20px 12px 40px;
        border-bottom: 1px solid #f3f4f6;
    }
    
    .hb-mobile-sub a {
        color: #4b5563;
        text-decoration: none;
        font-size: 14px;
    }
    
    .hb-mobile-auth {
        padding: 20px;
        margin-top: 20px;
        border-top: 1px solid #e5e7eb;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .hb-mobile-auth a {
        padding: 14px;
        border-radius: 8px;
        text-align: center;
        text-decoration: none;
        font-weight: 500;
    }
    
    .hb-mobile-login {
        background: #3b82f6;
        color: white;
    }
    
    .hb-mobile-register {
        background: #ef4444;
        color: white;
    }
}

@media (max-width: 768px) {
    .cart-modal {
        max-width: 100%;
    }
    
    .cart-content {
        max-height: calc(100vh - 230px);
        padding: 14px;
        padding-bottom: 70px;
    }
    
    .cart-item {
        padding: 10px;
    }
    
    .cart-item-content {
        grid-template-columns: 60px 1fr;
    }
    
    .cart-item-image img {
        width: 60px;
        height: 60px;
    }
    
    .cart-item-title {
        font-size: 13px;
    }
    
    .cart-item-variant {
        font-size: 11px;
    }
    
    .cart-item-price {
        font-size: 14px;
    }
    
    .cart-item-quantity {
        padding: 3px 6px;
    }
    
    .quantity-btn {
        width: 22px;
        height: 22px;
    }
    
    .quantity-input {
        width: 28px;
        font-size: 11px;
    }
    
    .total-amount {
        font-size: 20px;
    }
    
    .checkout-btn {
        padding: 15px 18px;
        font-size: 15px;
        min-height: 54px;
    }
    
    .cart-footer {
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .cart-content {
        max-height: calc(100vh - 210px);
        padding: 12px;
        padding-bottom: 60px;
    }
    
    .cart-item {
        padding: 10px;
    }
    
    .cart-item-content {
        grid-template-columns: 50px 1fr;
        gap: 6px;
    }
    
    .cart-item-image img {
        width: 50px;
        height: 50px;
    }
    
    .cart-item-title-row {
        gap: 6px;
    }
    
    .cart-item-title {
        font-size: 12px;
    }
    
    .cart-item-remove {
        padding: 5px 8px;
        font-size: 10px;
    }
    
    .cart-item-variant {
        font-size: 10px;
    }
    
    .cart-item-price {
        font-size: 13px;
    }
    
    .cart-item-quantity {
        padding: 2px 5px;
    }
    
    .quantity-btn {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    
    .quantity-input {
        width: 25px;
        font-size: 10px;
    }
    
    .cart-footer {
        padding: 12px;
    }
    
    .total-row {
        margin-bottom: 15px;
    }
    
    .total-label {
        font-size: 16px;
    }
    
    .total-amount {
        font-size: 18px;
    }
    
    .checkout-btn {
        padding: 14px 16px;
        font-size: 14px;
        min-height: 52px;
    }
    
    .cart-header {
        padding: 16px;
    }
    
    .cart-header h3 {
        font-size: 16px;
    }
    
    .hb-top-row {
        padding: 12px 4%;
    }
    
    .hb-logo {
        width: 70px;
        height: 70px;
    }
    
    .hb-logo-title {
        font-size: 16px;
    }
    
    .hb-cart-icon {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 360px) {
    .cart-content {
        max-height: calc(100vh - 190px);
        padding: 10px;
        padding-bottom: 50px;
    }
    
    .cart-item-content {
        grid-template-columns: 45px 1fr;
    }
    
    .cart-item-image img {
        width: 45px;
        height: 45px;
    }
    
    .cart-item-title {
        font-size: 11px;
    }
    
    .cart-item-remove {
        padding: 4px 6px;
        font-size: 9px;
    }
    
    .cart-item-price {
        font-size: 12px;
    }
    
    .checkout-btn {
        padding: 12px 14px;
        font-size: 13px;
        min-height: 48px;
    }
    
    .cart-footer {
        padding: 10px;
    }
    
    .total-row {
        margin-bottom: 10px;
    }
    
    .total-label {
        font-size: 14px;
    }
    
    .total-amount {
        font-size: 16px;
    }
}

/* ÇOK KISA EKRANLAR İÇİN */
@media (max-height: 600px) {
    .cart-content {
        max-height: calc(100vh - 180px);
        padding-bottom: 40px;
    }
    
    .cart-footer {
        padding: 10px;
    }
    
    .checkout-btn {
        padding: 10px 12px;
        font-size: 14px;
        min-height: 46px;
    }
    
    .cart-item {
        padding: 8px;
        margin-bottom: 8px;
    }
    
    .cart-header {
        padding: 12px 16px;
    }
    
    .cart-header h3 {
        font-size: 15px;
    }
}

/* DESKTOP'TA MOBİL MENÜYÜ GİZLE */
@media (min-width: 993px) {
    .hb-mobile-menu,
    .hb-mobile-overlay {
        display: none !important;
    }
}

/* DARK MODE DESTEĞİ */
@media (prefers-color-scheme: dark) {
    .cart-modal {
        background-color: #1e293b;
        color: #f1f5f9;
    }
    
    .cart-header {
        background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    }
    
    .cart-content {
        background: #0f172a;
    }
    
    .cart-item,
    .cart-footer {
        background: #1e293b;
        border-color: #334155;
        color: #f1f5f9;
    }
    
    .cart-item-title {
        color: #f1f5f9;
    }
    
    .cart-item-price,
    .total-amount {
        color: #10b981;
    }
    
    .cart-item-quantity {
        background: #0f172a;
        border-color: #334155;
    }
    
    .quantity-btn {
        background: #334155;
        border-color: #475569;
        color: #f1f5f9;
    }
    
    .quantity-input {
        background: #334155;
        border-color: #475569;
        color: #f1f5f9;
    }
    
    .cart-notification {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
        border-color: #047857 !important;
        color: #000000 !important;
    }
    
    .checkout-btn {
        background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    }
    
    .empty-cart p {
        color: #94a3b8;
    }
    
    .continue-shopping {
        background: #334155;
        color: #cbd5e1;
        border-color: #475569;
    }
    
    .continue-shopping:hover {
        background: #475569;
        color: #f1f5f9;
    }
    
    .cart-content::-webkit-scrollbar-track {
        background: #334155;
    }
    
    .cart-content::-webkit-scrollbar-thumb {
        background: #475569;
    }
    
    .hb-desktop-nav {
        background: color-mix(in srgb, var(--menu-bg) 80%, #1f2937);
    }
}

/* YÜKLEME ANİMASYONU */
.cart-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.cart-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* STOK DURUMU */
.product-stock {
    font-size: 11px;
    color: #10b981;
    font-weight: 500;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-stock.low {
    color: #f59e0b;
}

.product-stock.out {
    color: #ef4444;
}

.product-stock i {
    font-size: 10px;
}