/*
Theme Name: Chocoloom
Theme URI: https://chocoloom.com/
Author: Antigravity
Author URI: https://chocoloom.com/
Description: Premium Online Bakery WordPress theme featuring a luxury golden and chocolate aesthetic.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chocoloom
*/

/* Custom CSS for Chocoloom - Golden Theme */
:root {
    --bg-dark: #0f0a07;
    /* Very dark rich brown/black */
    --bg-surface: #1a110a;
    /* Slightly lighter surface */
    --gold-primary: #d4af37;
    /* Classic Gold */
    --gold-light: #f3e5ab;
    /* Vanilla Gold */
    --gold-hover: #eccc68;
    /* Bright Gold */
    --text-primary: #f8f5f0;
    /* Off-white for text */
    --text-muted: #b4a89f;
    /* Muted brown-grey */
    --accent: #5c3a21;
    /* Rich chocolate brown */

    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Scrollbar styling for aesthetic */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

/* ==================================
   Preloader
================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* CSS failsafe — auto-hide even if JS fails */
    animation: preloader-failsafe 0.8s ease-in-out 4s forwards;
}

@keyframes preloader-failsafe {
    0% {
        opacity: 1;
        visibility: visible;
    }

    100% {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

.preloader-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at center, #1a110a 0%, #0f0a07 100%);
    opacity: 0.8;
}

.preloader-content {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--gold-primary) 0%, transparent 70%);
    opacity: 0;
    filter: blur(40px);
    z-index: 1;
}

.preloader-logo-img {
    height: 180px;
    width: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.6));
    opacity: 0;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ==================================
   Offer Banner & Marquee
================================== */
.offer-banner {
    background: linear-gradient(90deg, var(--bg-dark), var(--accent), var(--bg-dark));
    color: var(--gold-primary);
    font-size: 0.95rem;
    position: relative;
    z-index: 1000;
    transition: all 0.3s ease;
    height: 40px;
    display: flex;
    overflow: hidden;
}

.offer-banner.hidden {
    transform: translateY(-100%);
    margin-top: -40px;
    opacity: 0;
}

.marquee-container {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    line-height: 40px;
    padding-left: 100%;
    animation: marquee-new 30s linear infinite;
}

.marquee-item {
    display: inline-block;
    padding-right: 15vw;
    font-weight: 500;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.offer-banner .sparkle {
    display: inline-block;
    color: #fff;
    margin: 0 5px;
}

.close-banner {
    position: relative;
    z-index: 10;
    background-color: var(--bg-dark);
    border-left: 1px solid rgba(212, 175, 55, 0.2);
    padding: 0 15px;
    height: 100%;
    border: none;
    font-size: 1.5rem;
    color: #1a110a;
    cursor: pointer;
    line-height: 40px;
    box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
}

@keyframes marquee-new {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.char {
    display: inline-block;
    white-space: pre;
    will-change: transform, opacity;
}

/* ==================================
   Navbar
================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 998;
    background-color: rgba(15, 10, 7, 0.85);
    /* faded black/dark brown */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: padding 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo-img {
    height: 80px;
    /* Increased size */
    width: auto;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.15));
    transition: var(--transition);
}

.brand-logo-img:hover {
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.3));
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--gold-primary);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--gold-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-divider {
    width: 1px;
    height: 20px;
    background-color: rgba(212, 175, 55, 0.3);
}

.auth-toggle-btn,
.cart-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: var(--transition);
    position: relative;
    text-decoration: none;
}

.auth-toggle-btn:hover,
.cart-btn:hover {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--gold-primary);
}

.btn-label {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    /* Show labels for professional look */
}

.cart-count {
    position: absolute;
    top: 2px;
    left: 28px;
    background-color: var(--gold-primary);
    color: var(--bg-dark);
    font-size: 0.7rem;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* ==================================
   Buttons
================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.btn-primary {
    background-color: var(--gold-primary);
    color: var(--bg-dark);
    border: 1px solid var(--gold-primary);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-hover));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
    color: var(--bg-dark);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.btn-outline {
    background-color: transparent;
    color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background-color: var(--gold-primary);
    color: var(--bg-dark);
}

.btn-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--gold-primary);
    color: var(--bg-dark);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    transform: scale(1.1);
    background-color: var(--gold-hover);
}

/* ==================================
   Hero Section
================================== */
.hero {
    height: auto;
    padding: 40px 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--bg-surface);
    background-image: radial-gradient(circle at center, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 10, 7, 0.4), rgba(15, 10, 7, 0.9));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(1.2rem, 2.8vw, 2.8rem);
    margin-bottom: 10px;
    color: var(--gold-light);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gold-light);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ==================================
   About Section
================================== */
.about {
    padding: 100px 20px;
    background-color: var(--bg-dark);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 4px;
}

.about-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.floating-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background-color: var(--gold-primary);
    color: var(--bg-dark);
    padding: 20px;
    border-radius: 2px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.badge-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1;
}

.badge-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
}

.section-title {
    font-size: 3rem;
    color: var(--gold-primary);
    margin-bottom: 10px;
}

.title-separator {
    width: 60px;
    height: 3px;
    background-color: var(--gold-primary);
    margin-bottom: 30px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-features {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    color: var(--gold-primary);
}

/* ==================================
   Featured Creations (Horizontal Scroll)
================================== */
.creations {
    padding: 0 0 80px;
    background-color: var(--bg-surface);
    overflow: hidden;
}

.creations-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

.section-subtitle {
    color: var(--text-muted);
}

.horizontal-scroll-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.scroll-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    padding-bottom: 40px;
    /* Space for shadow */
    cursor: grab;
}

.scroll-track:active {
    cursor: grabbing;
}

.scroll-track::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

/* Category Filter Styles */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--text-muted);
    padding: 10px 25px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 20px;
}

.filter-btn:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.filter-btn.active {
    background-color: var(--gold-primary);
    color: var(--bg-dark);
    border-color: var(--gold-primary);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.cake-card.hidden {
    display: none;
}

.cake-card {
    min-width: 320px;
    max-width: 320px;
    background-color: var(--bg-dark);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 4px;
    overflow: hidden;
    scroll-snap-align: start;
    transition: var(--transition);
    position: relative;
}

.cake-card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--gold-primary);
    color: var(--bg-dark);
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    border-radius: 2px;
}

.card-image {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background-color: #2a1f18;
    /* Dark brown for background */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
}

/* Background pattern */
.bg-pattern {
    background-image: radial-gradient(var(--gold-primary) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0;
    opacity: 0.3;
}

.cake-card:hover .card-image img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 10, 7, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(2px);
}

.cake-card:hover .card-overlay {
    opacity: 1;
}

.card-info {
    padding: 25px;
}

.card-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--gold-light);
}

.cake-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

.price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gold-primary);
}

/* Size-based add-to-cart buttons */
.size-options {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

.btn-size {
    flex: 1;
    padding: 9px 6px;
    font-size: 0.8rem;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--gold-primary);
    border-radius: 3px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-size:hover {
    background-color: var(--gold-primary);
    color: var(--bg-dark);
    border-color: var(--gold-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.scroll-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.scroll-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.scroll-btn:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    background-color: rgba(212, 175, 55, 0.05);
}

/* ==================================
   Footer
================================== */
.footer {
    background-color: #080503;
    padding: 60px 20px 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 40px;
}

.footer-logo-img {
    height: 120px;
    width: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.footer p {
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto 25px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: var(--gold-primary);
    width: 45px;
    height: 45px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    background-color: rgba(212, 175, 55, 0.05);
}

.social-links a:hover {
    color: var(--bg-dark);
    background-color: var(--gold-primary);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* ==================================
   Cart Sidebar
================================== */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--bg-surface);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(212, 175, 55, 0.2);
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    color: var(--gold-primary);
    font-size: 1.5rem;
    margin: 0;
}

.close-cart {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-cart:hover {
    color: var(--gold-primary);
    transform: rotate(90deg);
}

.cart-items {
    flex-grow: 1;
    padding: 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.empty-cart-msg {
    color: var(--text-muted);
    text-align: center;
    margin-top: 50px;
    font-style: italic;
}

.cart-item {
    display: flex;
    gap: 15px;
    align-items: center;
    background-color: var(--bg-dark);
    padding: 15px;
    border-radius: 4px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
    background-color: #2a1f18;
    /* placeholder bg for transparent images */
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-title {
    font-family: var(--font-heading);
    color: var(--gold-light);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--gold-primary);
    font-weight: bold;
}

.cart-item-remove {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.cart-item-remove:hover {
    color: #ff4757;
}

.cart-footer {
    padding: 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    background-color: var(--bg-dark);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: bold;
}

#cart-total-price {
    color: var(--gold-primary);
    font-size: 1.5rem;
}

.checkout-btn {
    width: 100%;
    text-align: center;
}

/* ==================================
   Responsive
================================== */
@media (max-width: 900px) {
    .about-container {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .floating-badge {
        right: 10px;
    }

    .nav-links {
        display: none;
        /* Normally would add a hamburger menu here */
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .offer-banner {
        font-size: 0.8rem;
        padding: 10px 30px 10px 10px;
    }
}

/* ==================================
   Auth & Profile Sidebar
================================== */
.auth-toggle-btn {
    background: none;
    border: none;
    color: var(--gold-primary);
    cursor: pointer;
    margin-left: 20px;
    transition: var(--transition);
}

.auth-toggle-btn:hover {
    transform: scale(1.1);
}

.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.auth-overlay.active {
    opacity: 1;
    visibility: visible;
}

.auth-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background-color: var(--bg-surface);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(212, 175, 55, 0.2);
}

.auth-sidebar.open {
    right: 0;
}

.auth-header {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-header h2 {
    color: var(--gold-primary);
    font-size: 1.5rem;
    margin: 0;
}

.close-auth {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
}

#auth-form-container,
#profile-container {
    padding: 30px;
    flex-grow: 1;
    overflow-y: auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--gold-light);
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background-color: var(--bg-dark);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--text-primary);
    border-radius: 4px;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}

.auth-switch {
    margin-top: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-switch a {
    color: var(--gold-primary);
    text-decoration: none;
}

.auth-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

.auth-message.error {
    display: block;
    background-color: rgba(255, 71, 87, 0.1);
    color: #ff4757;
}

.auth-message.success {
    display: block;
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

/* Profile Styles */
.profile-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.profile-welcome {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.profile-welcome span {
    color: var(--gold-primary);
    font-weight: 600;
}

.profile-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 8px 15px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1rem;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: var(--gold-primary);
    border-bottom-color: var(--gold-primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-card {
    background-color: var(--bg-dark);
    border: 1px solid rgba(212, 175, 55, 0.1);
    padding: 15px;
    border-radius: 4px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.order-total {
    color: var(--gold-primary);
    font-weight: 600;
}

.order-items {
    font-size: 0.95rem;
}

.account-details .detail-item {
    margin-bottom: 20px;
}

.account-details label {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.account-details p {
    font-size: 1rem;
    color: var(--text-primary);
    margin-top: 5px;
}

.w-100 {
    width: 100%;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 0.8rem;
}

.empty-msg {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 30px;
}