/* ==========================================================================
   PREMIUM UI/UX REDESIGN - OVERRIDES & NEW COMPONENTS
   ========================================================================== */

/* Variables Premium */
:root {
    --primary-color: #10b981; /* Emerald */
    --primary-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --secondary-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --magic-gradient: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%, #ec4899 100%);
    --danger-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --bg-color: #f8fafc;
    --text-color: #1e293b;
    --card-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

body.dark-theme {
    --bg-color: #0f172a;
    --text-color: #f1f5f9;
    --card-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* ==========================================================================
   1. PREMIUM NAVBAR
   ========================================================================== */
/* Fix FontAwesome conflicts */
.fa, .fas, .fa-solid, .fa-regular, .fa-brands, .fa-light {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}
.fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
}

.premium-header {
    background-color: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.6rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.header-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    white-space: nowrap;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
}

.brand-logo i {
    background: var(--primary-gradient);
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.brand-logo span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.premium-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
    margin-top: 0;
}

.menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1rem;
}

.nav-links-center {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nav-actions-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    flex-wrap: nowrap;
    white-space: nowrap;
}

/* Nav Dropdowns */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg, #ffffff);
    min-width: 180px;
    border-radius: 16px;
    padding: 8px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--glass-border, rgba(0, 0, 0, 0.08));
    z-index: 1000;
    backdrop-filter: blur(16px);
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

.nav-dropdown .dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    color: var(--text-color, #333);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown .dropdown-menu a:hover {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-color, #10b981);
}

.magic-link-frigo { color: #f59e0b; }
.magic-link-frigo:hover { background-color: rgba(245, 158, 11, 0.1); }

.magic-link-scan { color: #8b5cf6; }
.magic-link-scan:hover { background-color: rgba(139, 92, 246, 0.1); }

.btn-primary {
    background: var(--primary-gradient);
    color: white !important;
    border: none;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.4);
    background: var(--primary-gradient) !important;
}

/* Search Bar */
.search-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.search-container form {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0;
}

.search-container .search-icon {
    position: absolute;
    left: 10px;
    color: #94a3b8;
    font-size: 0.85rem;
    pointer-events: none;
}

.search-container input#search-query {
    padding: 0.4rem 0.8rem 0.4rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border, rgba(0, 0, 0, 0.15));
    background: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    width: 140px;
    transition: width 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-color);
}

body.dark-theme .search-container input#search-query {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8f9fa;
}

.search-container input#search-query:focus {
    width: 190px;
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--glass-border, rgba(0,0,0,0.1));
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 1050;
    margin-top: 5px;
    overflow: hidden;
    display: none;
}

/* Cart Icon */
.cart-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--text-color);
    text-decoration: none;
    padding: 6px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.cart-icon-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -6px;
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--card-bg, #fff);
}

/* Help Button */
.help-icon-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--primary-color);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: transform 0.2s ease;
}

.help-icon-btn:hover {
    transform: scale(1.15);
}

/* User Profile Nav */
.user-profile-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.6);
    padding: 3px 12px 3px 6px;
    border-radius: 25px;
    border: 1px solid var(--glass-border, rgba(0, 0, 0, 0.08));
    font-size: 0.85rem;
    font-weight: 600;
}

body.dark-theme .user-profile-nav {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

.user-greeting {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
}

.btn-logout {
    color: #ef4444;
    text-decoration: none;
    font-size: 0.9rem;
    margin-left: 2px;
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.btn-logout:hover {
    transform: translateX(2px);
}

/* Theme Switcher */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
}
.theme-checkbox { display: none; }
.theme-label {
    background-color: #cbd5e1;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px;
    position: relative;
    height: 24px;
    width: 46px;
    transform: scale(0.9);
}
body.dark-theme .theme-label { background-color: #334155; }
.theme-label i { color: white; font-size: 11px; z-index: 10; }
.fa-sun { color: #f59e0b !important; }
.fa-moon { color: #f1f5f9 !important; }
.theme-ball {
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    height: 20px;
    width: 20px;
    transition: transform 0.3s linear;
}
#chat-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    transition: transform 0.3s linear;
}
body.dark-theme .theme-ball {
    transform: translateX(22px);
    background-color: #0f172a;
}

/* ==========================================================================
   2. HERO & HOMEPAGE
   ========================================================================== */
.season-hero {
    margin: 2rem auto;
    max-width: 1000px;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.season-header h2 {
    color: var(--primary-color);
    margin-top: 0;
    font-weight: 700;
}

.season-badges-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    margin-top: 1.5rem;
}

.season-badges-scroll {
    display: inline-block;
    animation: scroll-left 30s linear infinite;
}

.season-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 30px;
    margin: 0 8px;
    font-weight: 600;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.recipe-count-badge {
    text-align: center;
    margin: 2rem auto;
    background: var(--card-bg);
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--glass-border);
}

.main-content-wrapper {
    text-align: center;
}

/* ==========================================================================
   3. RECIPE CARDS
   ========================================================================== */
.recipe-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
}

.recipe-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.recipe-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.recipe-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.recipe-card:hover .recipe-main-image {
    transform: scale(1.1);
}

.recipe-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.recipe-card:hover .recipe-overlay {
    opacity: 1;
}

.view-recipe-btn {
    color: white;
    font-weight: 600;
    border: 2px solid white;
    padding: 8px 20px;
    border-radius: 25px;
    backdrop-filter: blur(4px);
    pointer-events: none;
}

.recipe-card-content {
    padding: 1.5rem;
}

.recipe-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

/* ==========================================================================
   4. RECIPE DETAIL PAGE (SPLIT LAYOUT)
   ========================================================================== */
.recipe-detail-premium {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.recipe-header-premium {
    text-align: center;
    margin-bottom: 3rem;
}

.recipe-header-premium h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.recipe-meta-author {
    font-size: 1.1rem;
    color: #64748b;
}

.recipe-description {
    max-width: 700px;
    margin: 1.5rem auto;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-color);
    font-style: italic;
}

.recipe-split-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 900px) {
    .recipe-split-layout {
        grid-template-columns: 4fr 5fr;
    }
}

.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    margin-bottom: 2rem;
}

.recipe-image-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
}

.recipe-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.floating-actions {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    background: rgba(255,255,255,0.9);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

body.dark-theme .floating-actions {
    background: rgba(15,23,42,0.9);
}

.btn-action {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-action:hover { transform: scale(1.1); }
.like-btn:hover, .like-btn i { color: #ef4444; }
.copy-ingredients-btn:hover { color: #3b82f6; }
.add-cart-btn:hover { color: #10b981; }

.like-count {
    font-size: 1rem;
    font-weight: 700;
}

.ingredients-header {
    margin-bottom: 1.5rem;
}
.ingredients-header h2 { margin-top: 0; color: var(--primary-color); }

.styled-list {
    list-style: none;
    padding: 0;
}

.styled-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.styled-list li i { color: var(--primary-color); }

.styled-steps {
    padding-left: 1.5rem;
}

.styled-steps li {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.styled-steps li::marker {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.2rem;
}

/* ==========================================================================
   5. AI & FORMS
   ========================================================================== */
.premium-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-magic {
    background: var(--magic-gradient);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(217, 70, 239, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-magic:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(217, 70, 239, 0.5);
}

.premium-form textarea {
    width: 100%;
    min-height: 100px;
    background: rgba(255,255,255,0.5);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

body.dark-theme .premium-form textarea {
    background: rgba(0,0,0,0.2);
    color: white;
}

.premium-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.comment-bubble {
    background: rgba(0,0,0,0.03);
    padding: 15px 20px;
    border-radius: 20px 20px 20px 0;
    margin-bottom: 15px;
}

body.dark-theme .comment-bubble {
    background: rgba(255,255,255,0.05);
}

/* ==========================================================================
   6. NUTRITION BADGES
   ========================================================================== */
.nutrition-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
}

.badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.calories-badge {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.nutriscore-badge {
    font-family: 'Arial Black', sans-serif;
    letter-spacing: 1px;
}

.nutriscore-a { background: #038141; }
.nutriscore-b { background: #85bb2f; }
.nutriscore-c { background: #fecb02; color: #333; }
.nutriscore-d { background: #ee8100; }
.nutriscore-e { background: #e63e11; }

/* ==========================================================================
   6. TWEMOJI SIZING
   ========================================================================== */
img.emoji {
    width: 1.2em;
    height: 1.2em;
    vertical-align: -0.1em;
    margin: 0 0.1em;
}

/* ==========================================================================
   7. SCROLLABLE FILTERS (Alphabet & Authors)
   ========================================================================== */
.alphabet-filter, .authors-filter {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 15px 20px;
    margin: 15px auto;
    max-width: 1000px;
    background: var(--card-bg);
    border-radius: 30px;
    box-shadow: var(--shadow-soft);
    scrollbar-width: none; /* Firefox */
    white-space: nowrap;
    align-items: center;
}

.alphabet-filter::-webkit-scrollbar, .authors-filter::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.alphabet-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
    padding-right: 10px;
    border-right: 2px solid var(--glass-border);
}

.alphabet-letter, .author-badge {
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.05);
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}

.alphabet-letter:hover, .author-badge:hover {
    background: rgba(16, 185, 129, 0.1);
    transform: translateY(-2px);
}

.author-badge.active, .alphabet-letter.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

body.dark-theme .alphabet-letter, body.dark-theme .author-badge {
    background: rgba(255, 255, 255, 0.05);
}
body.dark-theme .alphabet-letter:hover, body.dark-theme .author-badge:hover {
    background: rgba(255, 255, 255, 0.1);
}
body.dark-theme .author-badge.active {
    background: var(--primary-gradient);
}

/* ==========================================================================
   8. COMPACT SEASON TICKER & FILTERS
   ========================================================================== */
.season-ticker {
    display: flex;
    align-items: center;
    background: var(--primary-gradient);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    max-width: 1000px;
    margin: 15px auto;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
    overflow: hidden;
}

.ticker-label {
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    padding-right: 15px;
    border-right: 1px solid rgba(255,255,255,0.3);
    margin-right: 15px;
    z-index: 2;
    background: inherit;
}

.ticker-scroll {
    flex: 1;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.ticker-content {
    display: inline-block;
    animation: scroll-left 40s linear infinite;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
    font-weight: 600;
}

.modern-filters-container {
    max-width: 1000px;
    margin: 10px auto 20px auto;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.filters-toggle-btn {
    width: 100%;
    padding: 15px 20px;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 700;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.3s ease;
}

.filters-toggle-btn:hover {
    background: rgba(16, 185, 129, 0.05);
}

.toggle-icon {
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.filters-collapsible {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.filters-collapsible.open {
    max-height: 500px; /* Adjust if needed */
}

.filters-inner {
    padding: 0 20px 20px 20px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filter-group {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.02);
    border-radius: 16px;
    padding: 10px;
}

body.dark-theme .filter-group {
    background: rgba(255,255,255,0.02);
}

.filter-label {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 100px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-right: 1px solid var(--glass-border);
    padding-right: 10px;
    margin-right: 10px;
}

/* Override previous horizontal filters for the new container */
.modern-filters-container .alphabet-filter, 
.modern-filters-container .authors-filter {
    flex: 1;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

/* TOAST NOTIFICATION */
.premium-toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(100px); background: #10b981; color: white; padding: 12px 24px; border-radius: 30px; font-weight: 600; box-shadow: 0 10px 25px rgba(16,185,129,0.4); display: flex; align-items: center; gap: 10px; opacity: 0; transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); z-index: 9999; }
.premium-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ==========================================================================
   LOGIN PAGE REDESIGN
   ========================================================================== */
body.login-page { background: transparent !important; }
body.login-page .premium-header { display: none; }
.login-page .slideshow-container { z-index: -1; }
.login-page .login-container-google { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 20px; padding: 40px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); max-width: 500px; margin: auto; }
.login-page .login-container-google h1 { font-size: 2em; margin-bottom: 20px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.login-page .login-container-google p { font-size: 1.1em; margin-bottom: 30px; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.login-page .google-btn { background: white; color: #333; border-radius: 30px; padding: 12px 24px; font-weight: bold; font-size: 1.1em; box-shadow: 0 4px 6px rgba(0,0,0,0.1); transition: transform 0.2s, box-shadow 0.2s; }
.login-page .google-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 15px rgba(0,0,0,0.2); }

/* SUPER HEADER STYLES */
.season-ticker-ribbon {
    background: var(--primary-color);
    color: white;
    font-size: 0.85rem;
    padding: 5px 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    position: relative;
    z-index: 900;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.season-ticker-ribbon .ticker-label {
    background: #064e3b;
    color: #a7f3d0;
    padding: 4px 16px;
    font-weight: 700;
    z-index: 2;
    box-shadow: 2px 0 6px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.season-ticker-ribbon .ticker-scroll {
    flex: 1;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}
.season-ticker-ribbon .ticker-content {
    display: inline-block;
    animation: scroll-left 45s linear infinite;
}
.season-ticker-ribbon .ticker-item {
    display: inline-flex;
    align-items: center;
    margin-right: 24px;
    font-weight: 500;
}
.nav-filters-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}
.nav-filters-dropdown .filters-collapsible {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(-50%) translateY(-10px);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    min-width: 400px;
    z-index: 1000;
        padding: 15px;
    max-height: 400px;
    overflow-y: auto;
}

body.dark-theme .nav-filters-dropdown .filters-collapsible {
    background: var(--card-bg);
}


.nav-filters-dropdown.open .filters-collapsible {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Fix for QR code showing on screen */
.print-qr-code {
    display: none;
}

/* Quick Add to Cart Button */
.quick-add-cart-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: none;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    z-index: 10;
}
.quick-add-cart-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 15px rgba(236, 72, 153, 0.4);
}
body.dark-theme .quick-add-cart-btn {
    background: rgba(30, 41, 59, 0.9);
    color: #ec4899;
}
body.dark-theme .quick-add-cart-btn:hover {
    background: #ec4899;
    color: white;
}

/* Edit Section and Action Buttons */
.edit-section {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #64748b;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn-secondary:hover {
    background: #475569;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
}
.btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ef4444;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}
