/* ============================================================

   FILE: css/header.css

   PURPOSE: Global styles — CSS variables, header bar, mobile menu,

            search suggestions, cart sidebar, login modal,

            announcement bar, category nav, notification toast

   LOADED BY: shared_header.php (on every customer-facing page)

   APPROACH: Mobile-first, desktop overrides via @media (min-width: 769px)

   VARIABLES: :root defines brand colours, shadows, transitions

   ============================================================ */



/* ============================================

   SECTION 1: RESET & ROOT VARIABLES

   ============================================ */



* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}



:root {

    --primary-pink: #FFB3E6;

    --primary-purple: #E6B3FF;

    --primary-blue: #B3D9FF;

    --primary-mint: #B3FFE6;

    --primary-peach: #FFD9B3;

    --primary-lavender: #E6D9FF;

    --text-dark: #2D1B69;

    --text-medium: #4A4A4A;

    --text-light: #666666;

    --button-primary: #9B59B6;

    --button-primary-hover: #8E44AD;

    --button-secondary: #3498DB;

    --button-secondary-hover: #2980B9;

    --button-success: #27AE60;

    --button-success-hover: #229954;

    --button-danger: #E74C3C;

    --button-danger-hover: #C0392B;

    --bg-gradient: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-purple) 25%, var(--primary-blue) 50%, var(--primary-mint) 75%, var(--primary-peach) 100%);

    --card-bg: rgba(255, 255, 255, 0.95);

    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.1);

    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.15);

}



/* ============================================

   SECTION 2: BODY & MAIN LAYOUT

   ============================================ */



body {

    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    background: var(--bg-gradient);

    background-attachment: fixed;

    color: var(--text-dark);

    min-height: 100vh;

    padding-top: 120px;

    transition: padding-top 0.3s ease;

}



body.announcement-closed {

    padding-top: 80px;

}



.main-content {

    max-width: 1200px;

    margin: 0 auto;

    padding: 30px 20px;

    min-height: calc(100vh - 200px);

}



/* ============================================

   SECTION 3: HEADER STRUCTURE

   ============================================ */



.header {

    position: fixed;

    top: 0;

    left: 0;

    right: 0;

    z-index: 1000;

    transition: all 0.3s ease;

    overflow: visible;

}



.header.scrolled {

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);

}



.header.scrolled .announcement-bar {

    height: 0;

    padding: 0;

    overflow: hidden;

    opacity: 0;

}



.header.scrolled .header-main {

    padding: 8px 0;

    animation-play-state: paused;



}



.header.scrolled .logo img {

    height: 60px;

}



/* ============================================

   SECTION 4: ANNOUNCEMENT BAR

   ============================================ */



.announcement-bar {

    background: linear-gradient(90deg, var(--button-danger), #FF6B6B);

    color: white;

    padding: 10px 0;

    text-align: center;

    font-size: 14px;

    font-weight: 600;

    position: relative;

}



.announcement-content {

    max-width: 1200px;

    margin: 0 auto;

    padding: 0 60px 0 20px;

    position: relative;

}



.announcement-close {

    position: absolute;

    right: 20px;

    top: 50%;

    transform: translateY(-50%);

    background: rgba(255, 255, 255, 0.2);

    border: none;

    color: white;

    width: 30px;

    height: 30px;

    border-radius: 50%;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 16px;

    transition: all 0.3s ease;

}



.announcement-close:hover {

    background: rgba(255, 255, 255, 0.3);

}



/* ============================================

   SECTION 5: HEADER MAIN & CONTAINER

   ============================================ */



.header-main {

    background: linear-gradient(135deg,

            rgba(255, 179, 230, 0.6),

            rgba(230, 179, 255, 0.6),

            rgba(179, 217, 255, 0.6),

            rgba(179, 255, 230, 0.6));

    transition: padding 0.3s ease, background-position 0.3s ease;

    background-size: 400% 400%;

    backdrop-filter: blur(12px);

    -webkit-backdrop-filter: blur(18px) saturate(140%);

    animation: gradientShift 20s ease infinite;

}



@keyframes gradientShift {

    0% {

        background-position: 0% 50%;

    }



    50% {

        background-position: 100% 50%;

    }



    100% {

        background-position: 0% 50%;

    }

}





.header-container {

    max-width: 1400px;

    margin: 0 auto;

    padding: 0 20px;

    display: flex;

    align-items: center;

    gap: 15px;

    height: 100%;

    justify-content: space-between;

}



/* ============================================

   SECTION 6: LOGO

   ============================================ */



.logo-container {

    position: relative;

    z-index: 1001;

    transition: all 0.3s ease;

    background: transparent;

    isolation: isolate;

}



.logo {

    display: flex;

    align-items: center;

    text-decoration: none;

    transition: all 0.3s ease;

}



.logo:hover {

    transform: scale(1.05);

}



.logo img {

    height: 130px;

    width: auto;

    background: transparent;

    mix-blend-mode: multiply;

    transition: all 0.3s ease;

}



/* ============================================

   SECTION 7: FLOATING ICONS CONTAINER

   ============================================ */



.floating-icons {

    display: flex;

    align-items: center;

    gap: 12px;

    flex: 1;

    margin-left: auto;

    justify-content: flex-end;

}



/* ============================================

   SECTION 8: SEARCH WRAPPER

   ============================================ */



.search-wrapper {

    position: relative;

    transition: all 0.3s ease;

    z-index: 1010;

}



.search-wrapper.expanded {

    flex: 1;

    max-width: 500px;

}



.search-input-container {

    position: relative;

    display: none;

    width: 100%;

    z-index: 1010;

}



.search-wrapper.expanded .search-input-container {

    display: block;

}



/* Hide other icons when search is expanded on mobile */

.floating-icons.has-expanded-search>*:not(.search-wrapper) {

    display: none;

}



.search-input-header {

    width: 100%;

    padding: 10px 36px 10px 14px;

    border: 2px solid var(--primary-purple);

    border-radius: 25px;

    font-size: 14px;

    background: white;

    color: var(--text-dark);

    transition: all 0.3s ease;

}



.search-input-header:focus {

    outline: none;

    border-color: var(--button-primary);

    box-shadow: 0 0 10px rgba(155, 89, 182, 0.25);

}



.search-close-btn {

    position: absolute;

    right: 8px;

    top: 50%;

    transform: translateY(-50%);

    background: var(--button-danger);

    color: white;

    border: none;

    width: 24px;

    height: 24px;

    border-radius: 50%;

    cursor: pointer;

    font-size: 13px;

    display: flex;

    align-items: center;

    justify-content: center;

}



/* ============================================

   SECTION 9: SEARCH SUGGESTIONS

   ============================================ */



.search-suggestions {

    position: absolute;

    top: calc(100% + 4px);

    left: 0;

    right: 0;

    background: white;

    border: 1.5px solid var(--primary-purple);

    border-radius: 12px;

    max-height: 360px;

    overflow-y: auto;

    z-index: 1005;

    display: none;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);

}



.search-suggestions.show {

    display: block;

}



.suggestion-item {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 8px 12px;

    cursor: pointer;

    border-bottom: 1px solid #f5f5f5;

    transition: background 0.2s ease;

}



.suggestion-item:first-child {

    border-radius: 12px 12px 0 0;

}



.suggestion-item:last-child {

    border-bottom: none;

    border-radius: 0 0 12px 12px;

}



.suggestion-item:hover {

    background: var(--primary-lavender);

}



.suggestion-item img {

    width: 40px;

    height: 40px;

    object-fit: cover;

    border-radius: 6px;

    flex-shrink: 0;

}



.suggestion-info {

    flex: 1;

    min-width: 0;

}



.suggestion-name {

    font-weight: 600;

    font-size: 13px;

    color: var(--text-dark);

    margin-bottom: 2px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}



.suggestion-price {

    font-size: 12px;

    display: flex;

    align-items: center;

    gap: 6px;

    flex-wrap: wrap;

}



.suggestion-price .srch-original {

    text-decoration: line-through;

    color: #aaa;

    font-size: 11px;

}



.suggestion-price .srch-sale {

    color: var(--button-success);

    font-weight: 700;

    font-size: 13px;

}



.suggestion-price .srch-discount {

    background: #ff69b4;

    color: white;

    padding: 1px 5px;

    border-radius: 3px;

    font-size: 10px;

    font-weight: 600;

}



.suggestion-price .srch-regular {

    color: var(--text-dark);

    font-weight: 700;

    font-size: 13px;

}



.search-no-results {

    padding: 16px;

    text-align: center;

    font-size: 13px;

    color: var(--text-medium);

}



/* ============================================

   SECTION 10: ICON BUTTONS

   ============================================ */



.icon-button {

    width: 50px;

    height: 50px;

    border-radius: 50%;

    border: none;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 20px;

    text-decoration: none;

    transition: all 0.3s ease;

    box-shadow: var(--shadow-soft);

    position: relative;

    flex-shrink: 0;

}



.icon-button:hover {

    transform: translateY(-3px);

    box-shadow: var(--shadow-hover);

}



.hamburger-icon {

    background: var(--button-primary);

    color: white;

}



.search-icon {

    background: var(--button-secondary);

    color: white;

}



.search-wrapper.expanded .search-icon {

    display: none;

}



.search-icon svg,

.favorites-icon svg,

.user-icon svg,

.cart-icon svg,

.whatsapp-icon svg {

    width: 24px;

    height: 24px;

    fill: white;

}



.favorites-icon {

    background: #E91E63;

    color: white;

}



.user-icon {

    background: #FF9800;

    color: white;

}



.cart-icon {

    background: var(--button-success);

    color: white;

}



.whatsapp-icon {

    background: #25D366;

    color: white;

}



/* ============================================

   SECTION 11: ICON BADGES

   ============================================ */



.icon-badge {

    position: absolute;

    top: -5px;

    right: -5px;

    background: var(--button-danger);

    color: white;

    border-radius: 50%;

    width: 22px;

    height: 22px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 11px;

    font-weight: bold;

    transition: all 0.3s ease;

}



@keyframes cartPulse {



    0%,

    100% {

        transform: scale(1);

    }



    50% {

        transform: scale(1.2);

    }

}



.icon-badge.updated {

    animation: cartPulse 0.5s ease, flashGreen 0.6s ease;

}



@keyframes flashGreen {

    0% {

        background-color: var(--button-danger);

    }



    50% {

        background-color: #27AE60;

        transform: scale(1.3);

    }



    100% {

        background-color: var(--button-danger);

    }

}



@keyframes heartbeat {



    0%,

    100% {

        transform: scale(1);

    }



    10%,

    30% {

        transform: scale(0.9);

    }



    20%,

    40%,

    60%,

    80% {

        transform: scale(1.1);

    }



    50%,

    70% {

        transform: scale(1.05);

    }

}



.heartbeat {

    animation: heartbeat 0.6s ease !important;

}



/* ============================================

   SECTION 12: SLIDE MENUS BASE

   ============================================ */



.slide-menu {

    position: fixed;

    top: 0;

    width: 400px;

    height: 100vh;

    background: linear-gradient(180deg, var(--primary-lavender), var(--primary-mint));

    z-index: 1003;

    overflow-y: auto;

    padding: 20px;

    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.2);



    /* 🔥 FIX */

    transition: transform 0.3s ease;

    transform: translate3d(-100%, 0, 0);

    will-change: transform;

}





.slide-menu.hamburger-menu {

    left: 0;

    transform: translateX(-100%);

}



.slide-menu.cart-menu {

    right: 0;

    transform: translateX(100%);

    background: white;

}



.slide-menu.favorites-menu {

    right: 0;

    transform: translateX(100%);

    background: linear-gradient(180deg, #FFE5F0, #FFF5F8);

}



.slide-menu.open {

    transform: translate3d(0, 0, 0);

}



/* ============================================

   SECTION 13: MENU HEADER

   ============================================ */



.menu-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 20px;

    padding-bottom: 15px;

    border-bottom: 2px solid rgba(155, 89, 182, 0.3);

}



.menu-title {

    font-size: 24px;

    font-weight: bold;

    color: var(--text-dark);

}



.close-menu {

    background: var(--button-danger);

    color: white;

    border: none;

    width: 35px;

    height: 35px;

    border-radius: 50%;

    cursor: pointer;

    font-size: 18px;

    display: flex;

    align-items: center;

    justify-content: center;

}



.close-menu:hover {

    background: var(--button-danger-hover);

}



/* ============================================

   SECTION 14: MENU OVERLAY

   ============================================ */



.menu-overlay {

    position: fixed;

    top: 0;

    left: 0;

    width: 100vw;

    height: 100vh;

    background: rgba(0, 0, 0, 0.5);

    z-index: 1002;

    opacity: 0;

    visibility: hidden;

    transition: all 0.3s ease;

}



.menu-overlay.open {

    opacity: 1;

    visibility: visible;

}



/* ============================================

   SECTION 15: HAMBURGER MENU SECTIONS

   ============================================ */



.menu-section {

    margin-bottom: 30px;

}



.menu-section h3 {

    font-size: 18px;

    color: var(--text-dark);

    margin-bottom: 15px;

    padding: 10px 15px;

    background: rgba(255, 255, 255, 0.3);

    border-radius: 10px;

}



.menu-item {

    display: block;

    padding: 12px 15px;

    color: var(--text-dark);

    text-decoration: none;

    border-radius: 8px;

    margin-bottom: 5px;

    transition: all 0.3s ease;

    background: rgba(255, 255, 255, 0.2);

}



.menu-item:hover {

    background: rgba(255, 255, 255, 0.4);

    transform: translateX(10px);

    color: var(--button-primary);

}



.show-more {

    background: var(--button-secondary);

    color: white;

    border: none;

    padding: 8px 15px;

    border-radius: 20px;

    cursor: pointer;

    font-size: 12px;

    margin: 10px 0;

}



/* ============================================

   SECTION 16: TRACK ORDER SECTION

   ============================================ */



.track-order-section {

    background: linear-gradient(135deg, rgba(155, 89, 182, 0.2), rgba(52, 152, 219, 0.2));

    padding: 20px;

    border-radius: 15px;

}



.track-order-input {

    width: 100%;

    padding: 12px;

    border: 2px solid var(--button-primary);

    border-radius: 10px;

    margin: 10px 0;

    font-size: 14px;

}



.track-button {

    width: 100%;

    background: var(--button-primary);

    color: white;

    border: none;

    padding: 12px;

    border-radius: 10px;

    cursor: pointer;

    font-weight: bold;

}



/* ============================================

   HOME ICON

   ============================================ */



.home-icon {

    background: #FF6F61;

    /* coral red */

    color: #0f5132;

}



.home-icon svg {

    width: 24px;

    height: 24px;

    fill: white;

}



/* ============================================

   SECTION 17: CART MENU CONTENT

   ============================================ */



.cart-empty {

    text-align: center;

    padding: 40px 20px;

}



.cart-empty-icon {

    font-size: 60px;

    margin-bottom: 15px;

}



.cart-items {

    margin-bottom: 20px;

}



.cart-item {

    display: flex;

    gap: 15px;

    padding: 15px;

    background: rgba(155, 89, 182, 0.05);

    border-radius: 10px;

    margin-bottom: 10px;

}



.cart-item-image {

    width: 80px;

    height: 80px;

    object-fit: cover;

    border-radius: 8px;

}



.cart-item-details {

    flex: 1;

}



.cart-item-name {

    font-weight: 600;

    color: var(--text-dark);

    margin-bottom: 5px;

}



.cart-item-price {

    margin-bottom: 8px;

    display: flex;

    align-items: center;

    gap: 8px;

}



.cart-item-price .original {

    font-size: 12px;

    color: var(--text-light);

    text-decoration: line-through;

}



.cart-item-price .discounted {

    font-size: 16px;

    color: var(--button-success);

    font-weight: bold;

}



.cart-item-price .single-price {

    font-size: 16px;

    color: var(--button-success);

    font-weight: bold;

}



.cart-item-quantity {

    display: flex;

    align-items: center;

    gap: 10px;

}



.qty-btn {

    width: 30px;

    height: 30px;

    border: none;

    background: var(--button-primary);

    color: white;

    border-radius: 5px;

    cursor: pointer;

    font-weight: bold;

}



.qty-btn:hover {

    background: var(--button-primary-hover);

}



.qty-display {

    min-width: 30px;

    text-align: center;

    font-weight: 600;

}



.cart-remove {

    background: var(--button-danger);

    color: white;

    border: none;

    padding: 5px 12px;

    border-radius: 5px;

    cursor: pointer;

    font-size: 12px;

}

/* ── New icon action buttons on cart items ── */
.cart-remove-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: #fee2e2;
    color: #dc2626;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, transform 0.12s;
    margin-left: 2px;
}
.cart-remove-icon:hover  { background: #dc2626; color: #fff; }
.cart-remove-icon:active { transform: scale(0.9); }

.cart-save-later {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: #ede9fe;
    color: #7c3aed;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, transform 0.12s;
    margin-left: 2px;
}
.cart-save-later:hover  { background: #7c3aed; color: #fff; }
.cart-save-later:active { transform: scale(0.9); }

/* ── Saved-for-later section action pair ── */
.rec-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}
.rec-remove-saved {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 8px;
    background: #fee2e2;
    color: #dc2626;
    cursor: pointer;
    transition: background 0.15s;
}
.rec-remove-saved:hover  { background: #dc2626; color: #fff; }



/* ============================================

   SECTION 18: CART SUMMARY

   ============================================ */



.cart-summary {

    background: rgba(155, 89, 182, 0.1);

    padding: 20px;

    border-radius: 10px;

    margin-bottom: 15px;

}



.cart-summary-row {

    display: flex;

    justify-content: space-between;

    margin-bottom: 10px;

}



.cart-summary-row.total {

    font-size: 20px;

    font-weight: bold;

    color: var(--button-primary);

    padding-top: 10px;

    border-top: 2px solid rgba(155, 89, 182, 0.3);

}



.checkout-btn {

    width: 100%;

    background: var(--button-success);

    color: white;

    border: none;

    padding: 15px;

    border-radius: 10px;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;

    transition: all 0.3s ease;

}



.checkout-btn:hover {

    background: var(--button-success-hover);

    transform: translateY(-2px);

}



/* ============================================

   SECTION 19: RECOMMENDED PRODUCTS

   ============================================ */



.recommended-in-cart {

    margin-top: 20px;

    padding: 15px;

    background: var(--primary-lavender);

    border-radius: 10px;

}



.recommended-in-cart h4 {

    margin-bottom: 12px;

    color: var(--text-dark);

    font-size: 16px;

}



.recommended-list {

    display: flex;

    flex-direction: column;

    gap: 10px;

}



.rec-item {

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 8px;

    background: white;

    border-radius: 8px;

    transition: all 0.2s ease;

}



.rec-item:hover {

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

}



.rec-item-link {

    display: flex;

    align-items: center;

    gap: 8px;

    flex: 1;

    min-width: 0;

    text-decoration: none;

    color: inherit;

}



.rec-item img {

    width: 46px;

    height: 46px;

    object-fit: cover;

    border-radius: 6px;

    flex-shrink: 0;

}



.rec-info {

    flex: 1;

    min-width: 0;

}



.rec-info h5 {

    font-size: 12px;

    margin: 0 0 3px 0;

    color: var(--text-dark);

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}



.rec-price {

    display: flex;

    align-items: center;

    gap: 5px;

    flex-wrap: wrap;

}



.rec-current {

    font-size: 13px;

    font-weight: 700;

    color: var(--button-success);

}



.rec-original {

    font-size: 11px;

    color: var(--text-medium);

    text-decoration: line-through;

}



.rec-off {

    font-size: 10px;

    color: #E74C3C;

    font-weight: 700;

}



.rec-add-btn {

    flex-shrink: 0;

    width: 32px;

    height: 32px;

    border: none;

    background: var(--primary-lavender);

    border-radius: 8px;

    font-size: 14px;

    cursor: pointer;

    transition: background 0.15s;

    display: flex;

    align-items: center;

    justify-content: center;

}



.rec-add-btn:active {

    background: var(--button-primary);

}



/* ============================================

   SECTION 20: FAVORITES MENU CONTENT

   ============================================ */



.favorites-items { margin-bottom: 12px; }

.favorite-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: white;
    border-radius: 10px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
 
.favorite-item-image {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
 
.favorite-item-details {
    flex: 1;
    min-width: 0;
}
 
.favorite-item-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
 
.favorite-item-price {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
 
.favorite-item-price .original {
    font-size: 11px;
    color: var(--text-light);
    text-decoration: line-through;
}
 
.favorite-item-price .discounted,
.favorite-item-price .single-price {
    font-size: 14px;
    color: var(--button-success);
    font-weight: bold;
}
 
.fav-disc-badge {
    background: #ff69b4;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
}
 
/* ── Pill buttons in a row below the price ── */
.fav-item-icons {
    display: flex;
    flex-direction: row;
    gap: 5px;
    margin-top: 7px;
    flex-wrap: wrap;
}

.fav-icon-cart,
.fav-icon-view,
.fav-icon-remove {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: background 0.15s, transform 0.12s;
    text-decoration: none;
    white-space: nowrap;
}
.fav-icon-cart:active,
.fav-icon-view:active,
.fav-icon-remove:active { transform: scale(0.95); }

/* Cart pill — green */
.fav-icon-cart {
    background: #dcfce7;
    color: #16a34a;
}
.fav-icon-cart:hover { background: #16a34a; color: #fff; }

/* View pill — blue */
.fav-icon-view {
    background: #dbeafe;
    color: #2563eb;
}
.fav-icon-view:hover { background: #2563eb; color: #fff; }

/* Remove pill — red, icon only (no label) */
.fav-icon-remove {
    background: #fee2e2;
    color: #dc2626;
    padding: 4px 8px;
}
.fav-icon-remove:hover { background: #dc2626; color: #fff; }



/* ============================================

   SECTION 21: FAVORITE BUTTON (on products)

   ============================================ */



.fav-btn {

    position: absolute;

    top: 8px;

    left: 8px;

    width: 24px;

    height: 24px;

    border-radius: 50%;

    background: transparent;

    border: none;

    color: #666;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 14px;

    z-index: 10;

    transition: all 0.2s ease;

}



.fav-btn:hover {

    transform: scale(1.15);

    color: #E91E63;

}



.fav-btn.favorited {

    color: #E91E63 !important;

}



/* ============================================

   SECTION 22: NOTIFICATIONS

   ============================================ */



.notification {

    position: fixed;

    top: 140px;

    right: 20px;

    padding: 15px 20px;

    border-radius: 8px;

    color: white;

    font-weight: bold;

    z-index: 10000;

    transform: translateX(400px);

    transition: transform 0.3s ease;

}



.notification.show {

    transform: translateX(0);

}



.notification.success {

    background: var(--button-success);

}



.notification.error {

    background: var(--button-danger);

}



.notification.info {

    background: var(--button-secondary);

}



/* ============================================

   SECTION 23: LOADING STATE

   ============================================ */



.loading {

    text-align: center;

    padding: 20px;

    color: var(--text-medium);

}



/* ============================================

   SECTION 24: MOBILE RESPONSIVE

   ============================================ */

/* ============================================

   SECTION 25: FULLY RESPONSIVE MOBILE

   clamp() scales on ALL screen sizes

   ============================================ */



@media (max-width: 768px) {



    /* ── Body ── */

    body {

        padding-top: clamp(55px, 11vw, 80px);

    }



    /* ── Header Container ── */

    .header-main {

        padding: 0;

    }



    .header-container {

        padding: clamp(5px, 1.5vw, 10px) clamp(8px, 2vw, 15px);

        gap: clamp(3px, 1.2vw, 8px);

        height: auto;

        min-height: unset;

    }



    /* ── Logo scales with screen ── */

    .logo img {

        height: clamp(35px, 9vw, 60px);

        width: auto;

    }



    /* ── All Icon Buttons ── */

    .icon-button {

        width: clamp(28px, 7.5vw, 44px);

        height: clamp(28px, 7.5vw, 44px);

        font-size: clamp(12px, 3vw, 18px);

        flex-shrink: 0;

    }



    /* ── SVG Icons inside buttons ── */

    .icon-button svg {

        width: clamp(12px, 3vw, 18px);

        height: clamp(12px, 3vw, 18px);

    }



    /* ── Gap between icons ── */

    .floating-icons {

        gap: clamp(2px, 1vw, 6px);

    }



    /* ── Search: full-width takeover on mobile ── */

    .search-wrapper.expanded {

        position: absolute;

        left: 8px;

        right: 8px;

        top: 50%;

        transform: translateY(-50%);

        max-width: none;

        z-index: 1020;

    }



    .search-input-header {

        padding: 8px 32px 8px 12px;

        font-size: 13px;

        border-radius: 20px;

    }



    .search-close-btn {

        width: 22px;

        height: 22px;

        font-size: 12px;

        right: 6px;

    }



    .search-suggestions {

        position: fixed;

        top: auto;

        left: 8px;

        right: 8px;

        max-height: 55vh;

        border-radius: 10px;

        border: 1.5px solid var(--primary-purple);

        margin-top: 4px;

    }



    .suggestion-item {

        gap: 8px;

        padding: 7px 10px;

    }



    .suggestion-item img {

        width: 34px;

        height: 34px;

        border-radius: 5px;

    }



    .suggestion-name {

        font-size: 12px;

    }



    .suggestion-price {

        font-size: 11px;

        gap: 4px;

    }



    .suggestion-price .srch-sale,

    .suggestion-price .srch-regular {

        font-size: 12px;

    }



    .suggestion-price .srch-original {

        font-size: 10px;

    }



    .suggestion-price .srch-discount {

        font-size: 9px;

        padding: 1px 4px;

    }



    /* ── Badges ── */

    .icon-badge {

        width: clamp(13px, 3.5vw, 18px);

        height: clamp(13px, 3.5vw, 18px);

        font-size: clamp(7px, 1.8vw, 11px);

        top: -2px;

        right: -2px;

    }



    /* ── Slide Menus width ── */

    .slide-menu {

        width: 88vw;

        max-width: 360px;

    }



    /* ── Login Banner ── */

    .login-encouragement-banner {

        padding: clamp(8px, 2vw, 12px) clamp(10px, 3vw, 20px);

        position: relative;

        top: 0;

    }



    .login-banner-content {

        gap: clamp(6px, 1.5vw, 15px);

    }



    .login-banner-icon {

        font-size: clamp(18px, 5vw, 26px);

    }



    .login-banner-text strong {

        font-size: clamp(11px, 2.8vw, 14px);

    }



    .login-banner-text span {

        display: none;

    }



    .login-banner-btn {

        padding: clamp(6px, 1.5vw, 10px) clamp(8px, 2vw, 16px);

        font-size: clamp(11px, 2.8vw, 13px);

        white-space: nowrap;

    }



    .login-banner-close {

        width: clamp(22px, 5vw, 28px);

        height: clamp(22px, 5vw, 28px);

        font-size: clamp(14px, 3.5vw, 18px);

    }



    /* ── Notifications ── */

    .notification {

        top: clamp(60px, 12vw, 90px);

        right: 10px;

        left: 10px;

        font-size: clamp(11px, 2.8vw, 14px);

    }

}





/* ============================================

   LOGIN MODAL STYLES - Updated Design

   ============================================ */



.login-modal {

    display: none;

    position: fixed;

    inset: 0;

    z-index: 10000;

    animation: fadeIn 0.3s ease;

}



.login-modal.active {

    display: flex;

    align-items: center;

    justify-content: center;

}



.login-modal-overlay {

    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, 0.4);

    backdrop-filter: blur(4px);

}



.login-card {

    position: relative;

    background: linear-gradient(135deg, #ffe6f7, #e6f0ff, #e6fff5);

    border-radius: 24px;

    padding: 30px;

    width: 90%;

    max-width: 380px;

    text-align: center;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);

    animation: popup 0.4s ease;

    z-index: 10001;

}



@keyframes popup {

    from {

        transform: scale(0.9);

        opacity: 0;

    }



    to {

        transform: scale(1);

        opacity: 1;

    }

}



@keyframes fadeIn {

    from {

        opacity: 0;

    }



    to {

        opacity: 1;

    }

}



.login-close {

    position: absolute;

    top: 12px;

    right: 12px;

    border: none;

    background: white;

    border-radius: 50%;

    width: 30px;

    height: 30px;

    font-size: 18px;

    cursor: pointer;

    transition: all 0.2s;

}



.login-close:hover {

    background: #f5f5f5;

    transform: rotate(90deg);

}



.login-icon {

    font-size: 48px;

    margin-bottom: 10px;

}



.login-favicon {

    width: 48px;

    height: 48px;

    border-radius: 12px;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

    transition: transform 0.3s ease;

}



.login-favicon:hover {

    transform: scale(1.1);

}



.login-header h2 {

    margin: 10px 0 5px;

    color: #4a2c82;

    font-size: 24px;

    font-weight: 700;

}



.login-header p {

    font-size: 14px;

    color: #555;

    margin: 0;

}



.google-btn {

    margin-top: 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    padding: 12px;

    border-radius: 14px;

    background: white;

    color: #333;

    font-weight: 600;

    text-decoration: none;

    border: 1px solid #ddd;

    transition: all 0.2s;

}



.google-btn:hover {

    transform: translateY(-2px);

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);

    border-color: #4285F4;

}



.google-btn img,

.google-btn svg {

    width: 20px;

    height: 20px;

    flex-shrink: 0;

}



.login-benefits {

    margin-top: 20px;

    font-size: 13px;

    color: #444;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 8px;

}



.login-benefits div {

    padding: 8px;

    background: rgba(255, 255, 255, 0.6);

    border-radius: 8px;

    transition: all 0.2s;

}



.login-benefits div:hover {

    background: rgba(255, 255, 255, 0.8);

    transform: translateY(-1px);

}



.login-footer {

    margin-top: 20px;

    font-size: 11px;

    color: #666;

}



.login-footer a {

    color: #6b3cff;

    text-decoration: none;

    font-weight: 500;

}



.login-footer a:hover {

    text-decoration: underline;

}



/* Mobile Responsive */

@media (max-width: 768px) {

    .login-card {

        width: 95%;

        margin: 16px;

        padding: 24px;

    }



    .login-icon {

        font-size: 40px;

    }



    .login-header h2 {

        font-size: 20px;

    }



    .login-header p {

        font-size: 13px;

    }



    .google-btn {

        padding: 10px;

        font-size: 14px;

    }



    .login-benefits {

        font-size: 12px;

        gap: 6px;

    }

}



/* ============================================

   USER PROFILE DROPDOWN STYLES

   ============================================ */



.user-profile-dropdown {

    position: relative;

}



.user-icon.logged-in {

    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

}



.user-icon.logged-in svg {

    fill: white !important;

}



.user-icon.logged-in:hover {

    transform: scale(1.1);

    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);

}



.user-dropdown-menu {

    position: absolute;

    top: calc(100% + 12px);

    right: 0;

    background: white;

    border-radius: 12px;

    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);

    min-width: 260px;

    opacity: 0;

    visibility: hidden;

    transform: translateY(-10px);

    transition: all 0.3s ease;

    z-index: 9999;

    overflow: hidden;

}



.user-dropdown-menu.active {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);

}



/* Dropdown arrow */

.user-dropdown-menu::before {

    content: '';

    position: absolute;

    top: -6px;

    right: 20px;

    width: 12px;

    height: 12px;

    background: white;

    transform: rotate(45deg);

    box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.05);

}



.user-dropdown-header {

    padding: 20px;

    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    color: white;

}



.user-dropdown-name {

    font-size: 16px;

    font-weight: 700;

    margin-bottom: 4px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}



.user-dropdown-email {

    font-size: 13px;

    opacity: 0.9;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}



.user-dropdown-divider {

    height: 1px;

    background: #e5e7eb;

    margin: 8px 0;

}



.user-dropdown-item {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 12px 20px;

    color: #374151;

    text-decoration: none;

    font-size: 14px;

    font-weight: 500;

    transition: all 0.2s;

}



.user-dropdown-item:hover {

    background: #f3f4f6;

    color: #667eea;

}



.user-dropdown-item svg {

    flex-shrink: 0;

    fill: currentColor;

}



.user-dropdown-item.logout {

    color: #ef4444;

}



.user-dropdown-item.logout:hover {

    background: #fef2f2;

    color: #dc2626;

}



/* Mobile adjustments */

@media (max-width: 768px) {

    .user-dropdown-menu {

        right: -10px;

        min-width: 240px;

    }



    .user-dropdown-menu::before {

        right: 25px;

    }

}



/* ============================================

   USER ICON COIN FLIP ANIMATION

   ============================================ */



@keyframes coinFlip {

    0% {

        transform: rotateY(0deg) scale(1);

    }



    25% {

        transform: rotateY(90deg) scale(1.1);

    }



    50% {

        transform: rotateY(180deg) scale(1.2);

    }



    75% {

        transform: rotateY(270deg) scale(1.1);

    }



    100% {

        transform: rotateY(360deg) scale(1);

    }

}



@keyframes zoomPulse {



    0%,

    100% {

        transform: scale(1);

    }



    25% {

        transform: scale(1.2);

    }



    50% {

        transform: scale(0.9);

    }



    75% {

        transform: scale(1.15);

    }

}



.user-icon.flip-animation {

    animation: coinFlip 0.8s ease-in-out;

    transform-style: preserve-3d;

}



.favorites-icon.flip-animation {

    animation: zoomPulse 0.6s ease-in-out;

}



.cart-icon.flip-animation {

    animation: zoomPulse 0.6s ease-in-out;

}





/* ============================================

   SECTION 25: CART SIDEBAR SHIPPING PROGRESS

   Green progress bar matching checkout page

   ============================================ */



.cart-shipping-progress {

    margin: 8px 0;

    padding: 10px;

    background: var(--primary-mint);

    border-radius: 8px;

}



.cart-ship-text {

    font-size: 11px;

    color: var(--text-dark);

    text-align: center;

    font-weight: 600;

    margin-bottom: 6px;

}



.cart-progress-bar {

    height: 5px;

    background: rgba(255, 255, 255, 0.5);

    border-radius: 3px;

    overflow: hidden;

}



.cart-progress-fill {

    height: 100%;

    background: var(--button-success);

    border-radius: 3px;

    transition: width 0.3s;

}



.cart-free-ship {

    color: var(--button-success);

    font-weight: 700;

}





/* ============================================

   END OF HEADER.CSS

   Total: 25 sections, ~920 lines

   ============================================ */