#header-order-button{
    background: #ff6b00;
    border-color: #ff6b00;
}

.cart-dropdown {
    width: min(500px, 85vw);
    padding: 0.75rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: absolute;
    left: 0;
    right: auto;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    margin-top: 0.5rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    transform: translateX(-100%);
}

.cart-dropdown {
    top: 99%;
}
.cart-item {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.product-info {
    display: grid;
    grid-template-columns: 60px 1.5fr 1fr 0.8fr auto;
    gap: 0.4rem;
    align-items: center;
    padding: 0.4rem;
    border-radius: 8px;
    background-color: #fff;
    margin-bottom: 0.4rem;
}

[id^="product-image-"] {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.2s;
}

[id^="product-image-"]:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.2);
}

.product-name {
    font-weight: 500;
    margin-bottom: 0.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.9rem;
}

.product-name > div {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.3;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.9rem;
}

.product-code {
    font-size: 0.75rem;
    color: #666;
    font-weight: normal;
    padding: 0.1rem 0.25rem;
    border-radius: 4px;
    display: inline-block;
}

.product-quantity {
    min-width: 80px;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin-right: -0.2rem;
    justify-content: flex-end;
}

.product-quantity .btn {
    padding: 0.15rem 0.3rem;
    font-size: 0.8rem;
    line-height: 1;
    border-radius: 4px;
}

.product-quantity span {
    font-size: 0.85rem;
    min-width: 20px;
    text-align: center;
}

.product-price {
    font-weight: 600;
    color: black;
    font-size: 0.9rem;
    padding-right: 0.2rem;
    text-align: right;
}

.delete-icon {
    color: #dc3545;
    cursor: pointer;
    padding: 0.3rem;
    font-size: 0.85rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -0.2rem;
}

.delete-icon:hover {
    color: #FF6B00 !important;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.dropdown-menu.show {
    display: block;
    position: absolute;
}

.cart-container {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-totals {
    background-color: #f8f9fa;
    padding: 0.6rem;
    border-radius: 8px;
    margin-top: 0.6rem;
    font-size: 0.9rem;
}

.cart-totals .border-top {
    border-color: #dee2e6 !important;
}

.cart-totals strong {
    font-size: 1.2rem;
    color: black;
}

.btn-success {
    margin-top: 0.6rem;
    padding: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-success:hover {
    background-color: #FF6B00 !important;
    border-color: #FF6B00 !important;
}

.btn-outline-secondary:hover {
    background-color: #FF6B00 !important;
    border-color: #FF6B00 !important;
    color: white !important;
}

/* Büyük ekranlar (1200px ve üzeri) */
@media (min-width: 1200px) {
    .cart-dropdown {
        width: 500px;
    }
    
    .product-name > div {
        max-width: 300px;
    }
}

/* Orta ekranlar (992px - 1199px) */
@media (max-width: 1199px) {
    .cart-dropdown {
        width: min(400px, 85vw);
    }
    
    .product-name > div {
        max-width: 250px;
    }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .cart-dropdown {
        width: 100%;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        transform: none !important;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
        overflow-y: auto;
        padding: 1rem;
        background: #fff;
        z-index: 1050;
    }

    .product-info {
        grid-template-columns: 50px 1fr 0.8fr auto;
        gap: 0.4rem;
        padding: 0.4rem;
    }

    .product-price {
        text-align: right;
        padding-right: 0.5rem;
    }

    .delete-icon {
        margin-left: 0;
    }
}

/* Mobil (576px - 767px) */
@media (max-width: 767px) {
    .cart-dropdown {
        padding: 0.75rem;
    }

    .product-info {
        display: grid;
        grid-template-columns: 40px 1fr auto auto auto;
        gap: 0.4rem;
        padding: 0.4rem;
        align-items: center;
    }

    [id^="product-image-"] {
        width: 45px;
        height: 45px;
    }

    .product-name {
        display: flex;
        flex-direction: column;
        gap: 0.1rem;
    }

    .product-name > div {
        font-size: 0.8rem;
        max-width: 120px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .product-code {
        font-size: 0.7rem;
        white-space: nowrap;
    }

    .product-quantity {
        min-width: 70px;
        padding: 0.2rem;
        justify-content: flex-end;
    }

    .product-quantity .btn {
        padding: 0.15rem 0.3rem;
        font-size: 0.75rem;
    }

    .product-quantity span {
        font-size: 0.8rem;
        min-width: 18px;
    }

    .product-price {
        font-size: 0.85rem;
        text-align: right;
        padding-right: 0.3rem;
        white-space: nowrap;
    }

    .delete-icon {
        padding: 0.25rem;
        font-size: 0.8rem;
    }
}

/* Küçük mobil (575px ve altı) */
@media (max-width: 575px) {
    .cart-dropdown {
        padding: 0.5rem;
    }

    .product-info {
        grid-template-columns: 35px 1fr auto auto auto;
        gap: 0.3rem;
        padding: 0.3rem;
    }

    [id^="product-image-"] {
        width: 40px;
        height: 40px;
    }

    .product-name > div {
        font-size: 0.75rem;
        max-width: 100px;
    }

    .product-code {
        font-size: 0.65rem;
    }

    .product-quantity {
        min-width: 65px;
        padding: 0.15rem;
    }

    .product-quantity .btn {
        padding: 0.1rem 0.25rem;
        font-size: 0.7rem;
    }

    .product-quantity span {
        font-size: 0.75rem;
        min-width: 16px;
    }

    .product-price {
        font-size: 0.8rem;
        padding-right: 0.2rem;
    }

    .delete-icon {
        padding: 0.2rem;
        font-size: 0.75rem;
    }
}

.site-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0.75rem 0;
}

.navbar {
    padding: 0;
}

.navbar-brand {
    width: 150px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    
}

.nav-link {
    color: #333;
    font-weight: 500;
    
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: #FF6B00 !important;
}

.navbar-nav {
    gap: 0.5rem;
}

.navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

/* Sağ taraf ikonları için stil */
.d-flex.align-items-center.gap-3 {
    gap: 0.75rem !important;
}

#header_fav{
    color: #ff0000;
}
#header_fav:hover {
    color: #ff0000; /* kənarları narıncı */
    text-shadow: 0 0 5px #ff6b00; /* parıltı effekti */
}

#header_compare{
    color: #ff6b00;
}

#basket-icon{
    color: #40b659;
}
#basket-icon:hover {
    color: #40b659; /* kənarları narıncı */
    text-shadow: 0 0 5px #ff6b00; /* parıltı effekti */
}
/* İkonlar için ortak stil */
#user-icon,
#basket-icon,
#header_fav,
#header_compare {
    font-size: 1.5rem !important;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* bura */
#basket-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

#total{
    font-size: 1rem;
}


.btn-link {
    color: #333;
    padding: 0;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-link:hover {
    color: #FF6B00 !important;
}

.cart-items {
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    padding-right: 0.5rem;
}

.cart-items::-webkit-scrollbar {
    width: 6px;
}

.cart-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.cart-items::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.cart-items::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive Tasarım */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #fff;
        padding: 1rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    .navbar-nav {
        margin: 1rem 0;
    }

    .nav-item {
        margin: 0.5rem 0;
    }

    .d-flex.align-items-center.gap-3 {
        gap: 0.5rem !important;
    }

    /* Mobilde ikonlar için stil */
   

    #icon-icon {
        font-size: 1.25rem !important;
        width: 20px;
        height: 20px;
    }
    #basket-icon {
        font-size: 1.25rem !important;
        width: 20px;
        height: 20px;
    }
    #header_fav{
        font-size: 1.25rem !important;
        width: 20px;
        height: 20px;
    }
    #header_compare{
         font-size: 1.25rem !important;
        width: 20px;
        height: 20px;
    }

    .navbar-toggler {
        margin-left: 0.5rem;
    }

    .cart-dropdown {
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100vh;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
        z-index: 1050;
        border: none;
        transform: none;
        padding: 1rem;
    }

    .cart-dropdown .btn-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        z-index: 1051;
        padding: 0.5rem;
    }

    .cart-items {
        max-height: calc(100vh - 250px);
        padding-right: 0.25rem;
    }

    .cart-totals {
        padding: 0.75rem;
        margin-top: 0.75rem;
    }

    .btn-success {
        margin-top: 0.75rem;
        padding: 0.6rem;
    }
}

/* Animasyonlar */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.btn-close:focus {
    box-shadow: none;
}

/* Küçük ekranlar için ek düzenlemeler */
@media (max-width: 575.98px) {
    .cart-dropdown {
        padding: 0.75rem;
    }

    .cart-dropdown h5 {
        font-size: 1.1rem;
    }

    .cart-totals {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .btn-success {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
} 


.navbar>.container-fluid{
    flex-wrap: initial;
}

@media (max-width: 466px) {
    .navbar {
        padding: 0.25rem 0.5rem;
    }

    .navbar-brand {
        width: 110px !important;
        font-size: 1rem;
        font-weight: bold;
        color: #333;
    }

    .d-flex.align-items-center.gap-3 {
    gap: 0.15rem !important;
}
    .nav-link {
       
        color: #333;
        font-weight: 500;
        padding: 0.2rem 0.4rem;
        transition: color 0.3s ease;
        display: flex;
        align-items: center;
        font-size: 0.8rem;
    }

    .nav-link:hover {
        color: #FF6B00 !important;
    }

    .navbar-nav {
        gap: 0.25rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar-nav .nav-item {
        display: flex;
        align-items: center;
    }

    .d-flex.align-items-center.gap-3 {
        gap: 0rem !important;
    }
    .navbar-toggler{
        margin-left: 1px;
    }
    .container-fluid{
    --bs-gutter-x:0.5rem;
    
    

    }

     #user-icon{
        visibility: hidden;
        font-size: 1.4rem !important;
        width: 18px;
        height: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
     }
     #header_fav{
        visibility: hidden;
        font-size: 1.4rem !important;
        width: 18px;
        height: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
     }


    #basket-icon {
        visibility: hidden;
        font-size: 1.2rem !important;
        width: 18px;
        height: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
     #header_compare{
         visibility: hidden;
        font-size: 1.2rem !important;
        width: 18px;
        height: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
     }

    #basket-badge {
        position: absolute;
        top: -5px;
        right: -5px;
        background-color: #dc3545;
        color: white;
        border-radius: 50%;
        width: 14px;
        height: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.6rem;
    }

    #user-icon:hover,
    #basket-icon:hover
    #header_compare:hover {
        color: #FF6B00 !important;
    }
    #cart-mobile-hidden{visibility: hidden;}
}

.cart-alert {
    background: linear-gradient(135deg, #4CAF50, #45A049);
    color: #fff;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    padding: 16px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    margin-top: 12px;
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
    cursor: default;
    pointer-events: auto;
    min-width: 200px;
    max-width: 300px;
}

.cart-alert.hide {
    opacity: 0;
    transform: translateX(120%);
}

.cart-alert:hover {
    transform: translateX(0) scale(1.03);
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}