/**
 * ======================================================
 * Header Wishlist
 * ======================================================
 */
/* Wishlist Icon Styling */
.header-wishlist .header-icon {
    font-size: 1.5rem;
    text-decoration: none;
    position: relative;
}

.header-wishlist .wishlist-count {
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 50%;
    top: 5px;
    background-color: var(--bs-red);
}

/* Make icons responsive for mobile */
@media (max-width: 768px) {
    .header-wishlist {
        margin-left: 10px;
    }

    .header-wishlist .header-icon {
        font-size: 1rem;
    }
}

/**
 * ======================================================
 * Header Account
 * ======================================================
 */
/* Account Icon Styling */
.header-account .header-icon {
    font-size: 1.5rem;
    text-decoration: none;
    position: relative;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-account {
        margin-left: 10px;
    }

    .header-account .header-icon {
        font-size: 1rem;
    }
}

/* Hover dropdown for account */
.header-account.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

/* Optional styling */
.header-account .dropdown-menu {
    min-width: 150px;
    padding: 0;
}

.header-account .dropdown-item {
    font-size: 0.9rem;
    padding: 8px 15px;
}

/**
 * ======================================================
 * Header Mini Cart
 * ======================================================
 */
/* HEADER ICONS */
.header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* MINI CART WRAPPER */
.header-mini-cart {
    position: relative;
}

/* CART ICON */
.header-icon {
    font-size: 20px;
    position: relative;
    cursor: pointer;
    text-decoration: none;
}

/* CART COUNT */
.cart-count {
    top: -10px;
    right: -10px;
    background: var(--bs-red);
    color: var(--bs-white);
    font-size: 0.7rem;
    padding: 5px 5px;
    border-radius: 50%;
}

/* CART TITLE */
.cart-title a {
    font-size: 14px;
    color: var(--bs-black);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: calc(1.4em * 2);
    text-decoration: none;
}

.cart-title a:hover {
    color: var(--bs-primary);
}

/* MINI CART DROPDOWN */
.mini-cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 360px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 15px;
    z-index: 9999;

    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.25s ease;
}

/* OPEN STATE (JS CONTROLLED) */
.mini-cart-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* CLOSE BUTTON */
.mini-cart-close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--bs-danger);
    font-weight: 700;
    background: none;
}

/* ITEMS */
.mini-cart-items {
    max-height: 300px;
    overflow-y: auto;
}

/* SINGLE ITEM */
.mini-cart-item {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    position: relative;
}

/* REMOVE BUTTON */
.remove {
    position: absolute;
    right: 0;
    top: 5px;
    font-size: 18px;
    color: var(--bs-danger);
    text-decoration: none;
    font-weight: 700;
}

/* FOOTER */
.mini-cart-footer {
    border-top: 1px solid #eee;
    margin-top: 10px;
    padding-top: 10px;
}

/* HIDE WOOCOMMERCE "VIEW CART" */
.product-bottom .wc-forward {
    display: none !important;
}

/* MOBILE */
@media (max-width: 991px) {
    .mini-cart-dropdown {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100%;
        transform: none;
        border-radius: 0;
    }

    .mini-cart-dropdown.active {
        right: 0;
    }
}