﻿/* ==============================
   GLOBAL LAYOUT
   ============================== */
.cart-btn {
    position: relative;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.25s ease;
}

    .cart-btn:hover {
        color: #ffcc00;
        transform: scale(1.05);
    }

.cart-icon {
    width: 1.625rem; /* 26px ≈ 1.625rem */
    height: 1.625rem;
    vertical-align: middle;
    transition: all 0.25s ease;
    filter: drop-shadow(0 0 0.375rem rgba(255, 255, 255, 0.3)); /* 6px → 0.375rem */
}

.cart-btn:hover .cart-icon {
    filter: drop-shadow(0 0 0.625rem rgba(255, 204, 0, 0.6)); /* 10px → 0.625rem */
}

#cartCountDesktop,
#cartCountMobile {
    margin-left: 0.375rem; /* 6px → 0.375rem */
    font-size: 0.75rem; /* küçük badge metni */
    line-height: 1;
    transform: translateY(-0.0625rem); /* -1px → -0.0625rem */
    background: #ffcc00;
    color: #fff;
    border-radius: 0.625rem; /* 10px → 0.625rem */
    padding: 0.1875rem 0.375rem; /* 3px 6px → 0.1875rem 0.375rem */
    font-weight: 600;
}

/* USER MENU */
.user-menu {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background-color: #ff7000;
    border-radius: 0.375rem;
}

.user-email,
.logout-link {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.25rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

    .user-email:hover,
    .logout-link:hover {
        background-color: #ff8500;
    }

/* MEGA MENU */
.dropdown-megamenu {
    position: static;
}

.dropdown-menu {
    width: 100%;
    top: 100%;
    left: 0;
    border: none;
    border-radius: 0;
    padding: 1rem;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .3s ease;
}

.dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* PRE HEADER */
.my-pre-header-wrapper {
    width: 100%;
    background-color: #000;
    min-height: 32px;
}

.my-pre-header {
    max-width: 73.125rem;
    margin: 0 auto;
    padding: 0 0.625rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 32px;
    font-size: clamp(0.625rem, 1vw, 0.675rem);
    white-space: nowrap;
    box-sizing: border-box;
}

    .my-pre-header .right-links {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        background-color: #ff7000;
        border-radius: 0.375rem;
        padding: 0.25rem 0.4rem;
    }

    .my-pre-header a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 24px;
        line-height: 1;
        text-decoration: none;
        color: #fff;
    }

    .my-pre-header .login,
    .my-pre-header .other-link {
        background-color: #c851001f;
        padding: 0 0.5rem;
        color: #fff;
        font-weight: 600;
        border-radius: 0.25rem;
    }

        .my-pre-header .login:hover,
        .my-pre-header .other-link:hover {
            background-color: #a84300;
            border-color: #fff;
        }
a.checkoutLink.other-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 0.6rem;
    background-color: #c851001f;
    color: #fff;
    font-weight: 600;
    border-radius: 0.25rem;
    text-decoration: none;
    border: 1px solid transparent;
}
    a.checkoutLink.other-link:hover {
        background-color: #a84300;
        border-color: #fff;
    }
    a.checkoutLink.other-link:focus {
        outline: 2px solid #fff;
        outline-offset: 2px;
    }
    a.checkoutLink.other-link svg,
    a.checkoutLink.other-link i {
        color: #fff;
        fill: #fff;
    }