/* ===== CSS VARIABLES & RESET ===== */
:root {
    /* ======================================================
       CORE BRAND COLORS
    ====================================================== */
    --theme-color: #000000; /* ADDED - This was missing! */
    --brand-black: #000000;
    --brand-white: #ffffff;

    --primary-color: #eeeeee;
    --secondary-color: #e6e6e6;

    --main-text-color: #000000;
    --secondary-text-color: #404040;

    --bg-black: #000000;
    --bg-light: #f8f9fa;

    /* ======================================================
       UI GOLD SYSTEM (Buttons, Borders, Accents)
    ====================================================== */
    --gold-ui-light: #FFD966;
    --gold-ui-main: #FFD700;
    --gold-ui-dark: #D4A017;
    --gold-ui-muted: #D1A24A;
    --gold-ui-accent: #DAA520;

    /* Shadows */
    --shadow-gold: 0 4px 12px rgba(255, 215, 0, 0.3);

    /* ======================================================
       LOGO COLOR SYSTEM
    ====================================================== */
    --logo-ring-light: #e6b65c;
    --logo-ring-mid: #d39c3f;
    --logo-ring-dark: #b8872f;

    --logo-l-top: #f2b84b;
    --logo-l-bottom: #e67e22;

    --logo-text-top: #f0a93b;
    --logo-text-bottom: #d97706;

    /* ======================================================
       TYPOGRAPHY
    ====================================================== */
    --primary-font: 'Afacad', sans-serif;
    --secondary-font: 'Baloo 2', sans-serif;
    --accent-font: 'Montserrat', sans-serif;

    /* ======================================================
       BOOTSTRAP OVERRIDES
    ====================================================== */
    --bs-primary: var(--brand-black);
    --bs-secondary: var(--gold-ui-main);
    --bs-light: #e8e8e8;
    --bs-dark: #0a0a0a;
    --bs-success: #28a745;

    /* ======================================================
       SPACING
    ====================================================== */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;

    /* ======================================================
       TRANSITIONS
    ====================================================== */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* ======================================================
       SHADOWS
    ====================================================== */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.15);

    /* ======================================================
       BORDERS
    ====================================================== */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 15px;
    --border-radius-xl: 25px;

    /* ======================================================
       Z-INDEX SCALE
    ====================================================== */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-modal: 1050;
    --z-popover: 1070;
    --z-tooltip: 1080;
    --z-toast: 1090;
}

/* ===== BASE STYLES ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--primary-font);
    background-color: var(--primary-color);
    color: var(--main-text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--theme-color);
    font-family: var(--secondary-font);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

h1 {
    font-weight: 700;
}

h2, h3, h4 {
    font-weight: 600;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-normal);
}

button, 
.btn {
    transition: all var(--transition-normal);
    cursor: pointer;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid var(--gold-ui-main);
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background-color: var(--gold-ui-main);
    color: var(--theme-color);
}

/* ===== TOP BAR ===== */
.top-bar {
    background-color: var(--bg-black);
    color: var(--gold-ui-main);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    font-size: 0.9rem;
    position: relative;
    z-index: var(--z-sticky);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.top-bar a {
    color: var(--gold-ui-main) !important;
    text-decoration: none;
    margin-right: 15px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.top-bar a:hover {
    color: var(--gold-ui-light) !important;
    transform: translateY(-1px);
}

.top-bar .social-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.top-bar .social-icons a {
    color: var(--gold-ui-main) !important;
    font-size: 1.1rem;
    margin-right: 0;
    transition: all var(--transition-normal);
}

.top-bar .social-icons a:hover {
    color: var(--gold-ui-light) !important;
    transform: scale(1.2);
}

/* ===== NAVIGATION ===== */
.navbar {
    background-color: var(--primary-color) !important;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
}

.navbar-brand {
    color: var(--gold-ui-main) !important;
    font-weight: 700;
    font-family: var(--secondary-font);
    transition: all var(--transition-normal);
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
}

.navbar-brand:hover {
    color: var(--gold-ui-dark) !important;
}

/* Logo Styles */
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle-outer {
    width: 100%;
    height: 100%;
    border: 2px solid;
    border-color: var(--logo-ring-light) var(--logo-ring-mid) var(--logo-ring-dark) var(--logo-ring-mid);
    border-radius: 50%;
    position: absolute;
    transition: transform var(--transition-normal);
}

.circle-inner {
    width: 80%;
    height: 80%;
    border: 2px solid;
    border-color: var(--logo-ring-light) var(--logo-ring-mid) var(--logo-ring-dark) var(--logo-ring-mid);
    border-radius: 50%;
    position: absolute;
    transition: transform var(--transition-normal) 0.1s;
}

.logo-l {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 28px;
    background: linear-gradient(180deg, var(--logo-l-top), var(--logo-l-bottom));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    z-index: 2;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
}

.logo-text-primary {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 500;
    background: linear-gradient(180deg, var(--logo-text-top), var(--logo-text-bottom));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    letter-spacing: 1px;
}

.logo-text-secondary {
    font-family: var(--accent-font);
    font-size: 12px;
    font-weight: 500;
    color: var(--secondary-text-color);
    line-height: 1;
    letter-spacing: 2px;
}

/* Logo hover effects */
.navbar-brand:hover .circle-outer {
    transform: rotate(10deg);
}

.navbar-brand:hover .circle-inner {
    transform: rotate(-10deg);
}

/* Nav Links */
.navbar-nav {
    gap: var(--space-sm);
}

.nav-link {
    color: var(--main-text-color) !important;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-normal);
}

.nav-link:hover {
    color: var(--gold-ui-main) !important;
    background-color: rgba(255, 215, 0, 0.1);
}

.nav-item.active .nav-link {
    color: var(--gold-ui-main) !important;
    font-weight: 600;
}

.nav-item.active {
    position: relative;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-ui-main), var(--gold-ui-light));
    border-radius: 2px;
}

/* Navbar Toggler */
.navbar-toggler {
    border: 1px solid var(--gold-ui-main);
    padding: 0.375rem 0.75rem;
    transition: all var(--transition-normal);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.3);
    outline: none;
}

/* ===== BUTTONS ===== */
.btn {
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--brand-black) !important;
    border-color: var(--brand-black) !important;
    color: white !important;
}

.btn-primary:hover {
    background-color: #333 !important;
    border-color: #333 !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-success {
    background: linear-gradient(135deg, var(--gold-ui-main) 0%, var(--gold-ui-dark) 100%);
    color: var(--theme-color);
    border: none;
    font-weight: 600;
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--gold-ui-light) 0%, var(--gold-ui-main) 100%);
    color: var(--theme-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-outline-primary {
    color: var(--gold-ui-main);
    border: 2px solid var(--gold-ui-main);
    background: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary.active {
    background-color: var(--gold-ui-main);
    border-color: var(--gold-ui-main);
    color: var(--theme-color);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* ===== CARDS ===== */
.card {
    background-color: var(--primary-color);
    border: 1px solid var(--secondary-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    overflow: hidden;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 215, 0, 0.3);
}

.card-header {
    background-color: var(--primary-color) !important;
    color: var(--theme-color) !important;
    border-bottom: 1px solid var(--secondary-color);
    padding: var(--space-sm) var(--space-md);
    font-weight: 600;
}

.card-body {
    padding: var(--space-md);
}

.card-title {
    color: var(--theme-color);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.card-text {
    color: var(--secondary-text-color);
}

/* ===== FORMS ===== */
.form-label {
    font-weight: 600;
    color: var(--theme-color);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border-radius: var(--border-radius-sm) !important;
    border: 1px solid var(--secondary-color);
    background-color: var(--primary-color);
    color: var(--main-text-color);
    transition: all var(--transition-fast);
    padding: 0.625rem 0.875rem;
    font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--gold-ui-main) !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.25);
    outline: none;
}

.form-control::placeholder {
    color: var(--secondary-text-color);
    opacity: 0.7;
}

/* ===== PRODUCT CARDS ===== */
.product-card {
    background-color: var(--primary-color);
    border: 1px solid var(--secondary-color);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-normal);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 215, 0, 0.3);
}

.product-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    background-color: var(--secondary-color);
    padding: var(--space-md);
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
    transition: transform var(--transition-normal);
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-card-body {
    padding: var(--space-md);
}

.product-card-title {
    font-size: 1rem;
    font-weight: 600;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--theme-color);
    margin-bottom: var(--space-xs);
}

.product-card-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--theme-color);
    margin-bottom: var(--space-sm);
}

.product-card-price .old-price {
    font-size: 0.9rem;
    color: var(--secondary-text-color);
    text-decoration: line-through;
    margin-right: 5px;
}

.product-card-price .discount {
    color: #dc3545;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 8px;
}

/* ===== UTILITY CLASSES ===== */
.text-gold {
    color: var(--gold-ui-main) !important;
}

.bg-gold-light {
    background-color: rgba(255, 215, 0, 0.1) !important;
}

.border-gold {
    border-color: var(--gold-ui-main) !important;
}

.text-success { 
    color: var(--gold-ui-main) !important; 
}

.text-muted { 
    color: var(--secondary-text-color) !important; 
}

.badge-position {
    position: absolute;
    top: 10px;
    z-index: 1;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 600;
}

.stock-badge { 
    right: 10px; 
    background-color: #28a745;
    color: white;
}

.featured-badge {
    left: 10px;
    background: linear-gradient(135deg, var(--gold-ui-main) 0%, var(--gold-ui-dark) 100%);
    color: var(--theme-color);
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, var(--bg-black), #333);
    background-size: cover;
    background-position: center;
    color: white;
    padding: var(--space-xl) 0;
    text-align: center;
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold-ui-main), transparent);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    color: var(--gold-ui-main);
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.hero-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto var(--space-lg);
    line-height: 1.6;
}

/* ===== CATEGORY SECTION ===== */
.category-section {
    padding: var(--space-xl) 0;
    background-color: var(--bg-light);
}

.category-section h2 {
    text-align: center;
    margin-bottom: var(--space-sm);
}

.category-section .text-muted {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.categories-scroll-container {
    position: relative;
    overflow: hidden;
    padding: 0 50px;
}

.categories-scroll {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: var(--space-md) 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.category-card-horizontal {
    flex: 0 0 auto;
    width: 200px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-md);
}

.category-card-horizontal:hover {
    transform: translateY(-5px);
    border-color: var(--gold-ui-main);
    box-shadow: var(--shadow-lg);
}

.category-image-horizontal {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-bottom: 2px solid var(--bg-light);
}

.category-card-horizontal .card-body {
    padding: var(--space-sm);
}

.category-card-horizontal h5 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--theme-color);
}

.category-card-horizontal p {
    font-size: 0.875rem;
    color: var(--secondary-text-color);
    margin-bottom: 0;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid var(--gold-ui-main);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    z-index: var(--z-tooltip);
    box-shadow: var(--shadow-sm);
    color: var(--gold-ui-main);
}

.scroll-btn:hover {
    background: var(--gold-ui-main);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-gold);
}

.scroll-left { left: 10px; }
.scroll-right { right: 10px; }

/* Category Filters */
#categoryFilters {
    display: flex;
    gap: var(--space-xs);
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: var(--space-md);
    scrollbar-width: thin;
}

.category-btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
    border-radius: 20px !important;
    white-space: nowrap;
    flex-shrink: 0;
    border-width: 2px !important;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--theme-color);
    color: var(--primary-color);
    padding: var(--space-xl) 0 var(--space-md);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-ui-main), var(--gold-ui-light), var(--gold-ui-main));
}

.footer h5 {
    color: var(--gold-ui-main);
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer li {
    margin-bottom: var(--space-xs);
}

.footer a {
    color: var(--primary-color);
    transition: all var(--transition-normal);
    display: inline-block;
}

.footer a:hover {
    color: var(--gold-ui-main);
    transform: translateX(5px);
}

.footer .social-icons {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.footer .social-icons a {
    color: var(--gold-ui-main);
    font-size: 1.2rem;
}

.footer .social-icons a:hover {
    color: var(--gold-ui-light);
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--space-md);
    margin-top: var(--space-lg);
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    text-align: center;
}

/* ===== FLOATING ELEMENTS ===== */
#miniCart {
    position: fixed;
    bottom: var(--space-md);
    right: var(--space-md);
    background: linear-gradient(135deg, var(--gold-ui-main) 0%, var(--gold-ui-dark) 100%);
    border-radius: 50%;
    padding: var(--space-sm);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    text-decoration: none;
    color: var(--theme-color);
    font-weight: bold;
    border: 2px solid white;
}

#miniCart:hover {
    background: linear-gradient(135deg, var(--gold-ui-light) 0%, var(--gold-ui-main) 100%);
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-gold);
}

#miniCart .badge {
    font-size: 0.7rem;
    padding: 0.25em 0.5em;
}

.cart-notification {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background-color: var(--primary-color);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    padding: var(--space-md);
    z-index: var(--z-toast);
    max-width: 200px;
    transform: scale(0);
    display: none;
    transform-origin: bottom right;
    transition: all var(--transition-normal);
    opacity: 0;
    border: 2px solid var(--gold-ui-main);
}

.cart-notification.show {
    transform: scale(1);
    opacity: 1;
    animation: bounceIn 0.5s ease;
}

/* ===== MODAL STYLES ===== */
.modal-content {
    background-color: var(--primary-color);
    color: var(--main-text-color);
    border: 1px solid var(--secondary-color);
    border-radius: var(--border-radius-md);
    animation: modalSlideIn 0.3s ease-out;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    background: linear-gradient(135deg, var(--theme-color) 0%, #333 100%);
    color: var(--gold-ui-main);
    border-bottom: 2px solid var(--gold-ui-main);
    padding: var(--space-md) var(--space-lg);
}

.modal-title {
    font-weight: 700;
    color: var(--gold-ui-main);
}

.btn-close {
    filter: invert(1) brightness(2);
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.btn-close:hover {
    opacity: 1;
}

/* ===== PRODUCT DETAILS MODAL ===== */
#productDetailsModal .modal-header {
    background: linear-gradient(135deg, var(--theme-color) 0%, #222 100%);
}

#productDetailsModal .modal-header h4 {
    color: var(--gold-ui-main);
}

.product-main-img {
    border: 2px solid var(--secondary-color);
    border-radius: var(--border-radius-md);
    transition: transform var(--transition-normal);
}

.product-main-img:hover {
    transform: scale(1.02);
}

#productThumbnailsContainer {
    margin-top: var(--space-md);
}

.thumbnail-item {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: var(--gold-ui-main);
    transform: scale(1.05);
}

.product-current-price {
    color: var(--gold-ui-main);
    font-weight: 700;
}

.discount-badge {
    background-color: #dc3545;
    color: white;
    padding: 0.25em 0.5em;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
}

.quantity-control {
    background-color: var(--bg-light);
    border-radius: var(--border-radius-md);
    padding: 5px;
    max-width: 140px;
}

.quantity-control button {
    background: transparent;
    border: none;
    color: var(--theme-color);
    font-size: 1.2rem;
    padding: 0.25rem 0.5rem;
    transition: all var(--transition-fast);
}

.quantity-control button:hover {
    background-color: rgba(255, 215, 0, 0.2);
    color: var(--gold-ui-main);
}

.quantity-control input {
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 600;
    max-width: 60px;
}

/* ===== ANIMATIONS ===== */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes spinner-border {
    to { 
        transform: rotate(360deg); 
    }
}

@keyframes bounceIn {
    0% { 
        transform: scale(0); 
        opacity: 0; 
    }
    50% { 
        transform: scale(1.1); 
        opacity: 1; 
    }
    100% { 
        transform: scale(1); 
        opacity: 1; 
    }
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
    }
    to { 
        opacity: 1; 
    }
}

.loading-spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--gold-ui-main) 0%, var(--gold-ui-dark) 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--gold-ui-light) 0%, var(--gold-ui-main) 100%);
}

/* ===== RESPONSIVE STYLES ===== */

/* Mobile First Approach */
@media (max-width: 767.98px) {
    /* Top Bar Mobile */
    .top-bar .container {
        flex-direction: column;
        text-align: center;
        gap: var(--space-xs);
    }
    
    .top-bar a {
        margin-right: 10px;
        font-size: 0.85rem;
    }
    
    .top-bar .social-icons {
        justify-content: center;
        margin-top: 5px;
    }
    
    /* Navigation Mobile */
    .navbar-nav {
        text-align: center;
        padding: var(--space-sm) 0;
    }
    
    .nav-item {
        margin: 2px 0;
    }
    
    .nav-item.active {
        background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
        border-radius: var(--border-radius-sm);
    }
    
    .nav-item.active::after {
        display: none;
    }
    
    .nav-item.active .nav-link {
        color: var(--gold-ui-main) !important;
        font-weight: 700;
    }
    
    /* Logo Mobile */
    .logo-container {
        gap: 8px;
    }
    
    .logo-icon-wrapper {
        width: 40px;
        height: 40px;
    }
    
    .logo-l {
        font-size: 22px;
    }
    
    .logo-text-primary {
        font-size: 16px;
    }
    
    .logo-text-secondary {
        font-size: 10px;
    }
    
    /* Hero Section Mobile */
    .hero-section {
        min-height: 50vh;
        padding: var(--space-lg) 0;
    }
    
    .hero-section h1 {
        font-size: 1.75rem !important;
        margin-bottom: var(--space-sm);
    }
    
    .hero-section p {
        font-size: 1rem;
        padding: 0 var(--space-sm);
    }
    
    /* Category Section Mobile */
    .category-section {
        padding: var(--space-lg) 0;
    }
    
    .categories-scroll-container {
        padding: 0 40px;
    }
    
    .category-card-horizontal {
        width: 160px;
    }
    
    .category-image-horizontal {
        height: 100px;
    }
    
    .scroll-btn {
        width: 35px;
        height: 35px;
    }
    
    /* Category Filters Mobile */
    .category-btn {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.8rem !important;
    }
    
    #categoryFilters {
        gap: 0.4rem;
        margin-bottom: var(--space-sm);
    }
    
    /* Products Grid Mobile */
    .row-cols-md-2 .col,
    .row-cols-lg-3 .col,
    .row-cols-xl-4 .col {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: var(--space-md);
    }
    
    /* Buttons Mobile */
    .btn {
        width: 100%;
        margin-bottom: var(--space-xs);
    }
    
    .btn-group .btn {
        width: auto;
        flex: 1;
    }
    
    /* Footer Mobile */
    .footer .row > div {
        margin-bottom: var(--space-lg);
        text-align: center;
    }
    
    .footer h5 {
        margin-bottom: var(--space-sm);
    }
    
    /* Floating Elements Mobile */
    #miniCart {
        bottom: var(--space-sm);
        right: var(--space-sm);
        width: 50px;
        height: 50px;
        font-size: 0.9rem;
    }
    
    .cart-notification {
        bottom: 80px;
        right: 20px;
        max-width: 180px;
        font-size: 0.875rem;
    }
    
    /* Modal Mobile */
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-content {
        border-radius: var(--border-radius-md);
    }
    
    /* Hide hover effects on mobile */
    .card:hover,
    .product-card:hover,
    .category-card-horizontal:hover {
        transform: none;
    }
}

/* Tablet Styles */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .logo-icon-wrapper {
        width: 45px;
        height: 45px;
    }
    
    .logo-l {
        font-size: 24px;
    }
    
    .logo-text-primary {
        font-size: 18px;
    }
    
    .logo-text-secondary {
        font-size: 11px;
    }
}

/* Desktop adjustments */
@media (min-width: 992px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects for touch devices */
    .card:hover,
    .product-card:hover,
    .category-card-horizontal:hover,
    .btn:hover {
        transform: none;
    }
    
    .category-card-horizontal:active,
    .btn:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
    
    /* Increase tap target sizes */
    .btn, 
    .nav-link, 
    .category-card-horizontal,
    .category-btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
    }
    
    input,
    select,
    textarea {
        font-size: 16px;
    }
}

/* Print Styles */
@media print {
    .top-bar,
    .navbar,
    #miniCart,
    .footer,
    .scroll-btn,
    .btn {
        display: none !important;
    }
    
    .container {
        width: 100%;
        max-width: none;
        padding: 0;
    }
    
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
    }
    
    a {
        color: black !important;
        text-decoration: underline;
    }
    
    .card {
        break-inside: avoid;
        border: 1px solid #ddd;
        box-shadow: none;
    }
}