/* ============================================ */
/* CSS VARIABLES & RESET */
/* ============================================ */

:root {
    /* Colors */
    --primary-50: #eef2ff;
    --primary-100: #3a86ff;
    --primary-200: #2667cc;
    --primary-300: #1a4f99;
    --secondary-100: #8338ec;
    --secondary-200: #6c2eb8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1f2937;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --light: #ffffff;
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #3a86ff, #8338ec);
    --primary-gradient-hover: linear-gradient(135deg, #2667cc, #6c2eb8);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.2);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --glass-blur: blur(8px);
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-base: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    --transition-fast: all 0.15s ease;
    
    /* Spacing */
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-5: 1.25rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-10: 2.5rem;
    --spacing-12: 3rem;
    --spacing-16: 4rem;
    --spacing-20: 5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================ */
/* NAVBAR STYLES */
/* ============================================ */

.avo-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    transition: var(--transition-base);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.avo-navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.98);
}

.nav-brand {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-brand i {
    color: var(--primary-100);
    margin-right: 0.5rem;
    -webkit-text-fill-color: initial;
}

.nav-link {
    color: var(--dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition-base);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-100) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
}

.login-btn {
    background: var(--primary-gradient) !important;
    color: white !important;
    border: none !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: var(--radius-full) !important;
    font-weight: 600 !important;
    transition: var(--transition-base) !important;
    cursor: pointer;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================ */
/* LOGIN MODAL STYLES */
/* ============================================ */

.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 450px;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -30%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.modal-header {
    background: var(--primary-gradient);
    color: white;
    padding: 1.5rem;
    position: relative;
    text-align: center;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.modal-title i {
    margin-right: 0.5rem;
    font-size: 2rem;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

.form-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 1rem;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    transition: var(--transition-base);
    border-radius: var(--radius-md);
}

.tab-btn.active {
    background: var(--primary-gradient);
    color: white;
}

.tab-content {
    animation: fadeIn 0.5s ease;
}

.form-container {
    margin-top: 1rem;
}

.form-label {
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 0.5rem;
    display: block;
}

.form-label i {
    color: var(--primary-100);
    margin-right: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-100);
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-base);
    margin-top: 1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================ */
/* HERO SECTION */
/* ============================================ */

.hero-section {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    overflow: hidden;
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.hero-highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray-500);
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: var(--transition-base);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-primary-hero {
    background: var(--primary-gradient);
    color: white;
    border: none;
}

.btn-primary-hero:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    color: white;
}

.btn-outline-hero {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--primary-100);
}

.btn-outline-hero:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.hero-image-container {
    position: relative;
    animation: floating 3s ease-in-out infinite;
}

.hero-image {
    max-width: 100%;
    height: auto;
}

.trust-badges .badge {
    padding: 0.75rem 1rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    background: white !important;
    box-shadow: var(--shadow-md);
}

/* ============================================ */
/* STATS SECTION */
/* ============================================ */

.stats-section {
    padding: 4rem 0;
    background: white;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.stat-item {
    padding: 1.5rem;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    font-size: 1rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* ============================================ */
/* FEATURES SECTION */
/* ============================================ */

.features-section {
    padding: 5rem 0;
    background: white;
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-500);
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    transition: var(--transition-base);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(360deg);
}

.feature-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--gray-500);
    margin-bottom: 0;
}

/* ============================================ */
/* PRODUCT CARDS */
/* ============================================ */

.featured-products {
    padding: 5rem 0;
    background: var(--gray-100);
}

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    height: 100%;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-gradient);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 2;
}

.product-badge.sale {
    background: var(--danger);
}

.product-badge.new {
    background: var(--success);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.btn-view {
    background: white;
    color: var(--dark);
    padding: 0.75rem 2rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    transform: translateY(20px);
    transition: var(--transition-base);
}

.product-card:hover .btn-view {
    transform: translateY(0);
}

.product-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(20px);
    transition: var(--transition-base);
    z-index: 3;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: var(--radius-full);
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: var(--primary-gradient);
    color: white;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
    height: 2.4rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-rating {
    margin-bottom: 0.5rem;
}

.product-rating i {
    font-size: 0.875rem;
}

.product-rating .reviews {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-left: 0.25rem;
}

.product-price {
    margin-bottom: 1rem;
}

.current-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-100);
}

.old-price {
    font-size: 0.875rem;
    color: var(--gray-500);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.btn-add-to-cart {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-add-to-cart:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-add-to-cart.requires-login {
    background: var(--gray-400);
    cursor: pointer;
}

.btn-add-to-cart.requires-login:hover {
    background: var(--gray-500);
}

/* ============================================ */
/* TESTIMONIALS */
/* ============================================ */

.testimonials-section {
    padding: 5rem 0;
    background: white;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    height: 100%;
    border: 1px solid var(--gray-200);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.testimonial-rating {
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.testimonial-author h6 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.testimonial-author small {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* ============================================ */
/* CTA SECTION */
/* ============================================ */

.cta-section {
    padding: 5rem 0;
    background: var(--primary-gradient);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons .btn {
    margin: 0.5rem;
}

/* ============================================ */
/* PAGE HEADER */
/* ============================================ */

.page-header {
    background: linear-gradient(135deg, var(--primary-50) 0%, white 100%);
    padding: 120px 0 40px;
    margin-bottom: 2rem;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-title span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--primary-100);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--gray-500);
}

/* ============================================ */
/* FILTER SIDEBAR */
/* ============================================ */

.filter-sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 100px;
}

.filter-widget {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.filter-widget:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filter-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.category-list,
.brand-list,
.rating-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li,
.brand-list li,
.rating-list li {
    margin-bottom: 1rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 30px;
    color: var(--gray-500);
    transition: var(--transition-base);
}

.checkbox-container:hover {
    color: var(--dark);
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: white;
    border: 2px solid var(--gray-300);
    border-radius: 3px;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--primary-100);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-100);
    border-color: var(--primary-100);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.count {
    margin-left: auto;
    color: var(--gray-400);
    font-size: 0.875rem;
}

.stars i {
    margin-right: 2px;
}

/* ============================================ */
/* PAGINATION */
/* ============================================ */

.pagination {
    gap: 0.5rem;
}

.page-link {
    color: var(--dark);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    transition: var(--transition-base);
}

.page-link:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.page-item.active .page-link {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
}

.page-item.disabled .page-link {
    color: var(--gray-400);
    pointer-events: none;
}

/* ============================================ */
/* FOOTER */
/* ============================================ */

.footer-section {
    background: var(--dark);
    color: white;
    padding: 4rem 0 0;
}

.footer-widget {
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-title i {
    color: var(--primary-100);
}

.footer-title span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: var(--gray-400);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.footer-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition-base);
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-links i {
    font-size: 0.75rem;
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: var(--gray-400);
}

.contact-info i {
    color: var(--primary-100);
    margin-top: 0.25rem;
    min-width: 25px;
}

.contact-info a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition-base);
}

.contact-info a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-gradient);
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: var(--gray-400);
    margin-bottom: 0;
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition-base);
    font-size: 0.9rem;
}

.footer-bottom-links a:hover {
    color: white;
}

/* ============================================ */
/* RESPONSIVE DESIGN */
/* ============================================ */

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .filter-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 40px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        max-width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-hero {
        width: 100%;
        text-align: center;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .footer-bottom-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .copyright {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .modal-content {
        width: 95%;
    }
    
    .form-tabs {
        flex-direction: column;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-buttons .btn {
        display: block;
        margin: 0.5rem 0;
    }
}

/* ============================================ */
/* UTILITY CLASSES */
/* ============================================ */

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: var(--primary-gradient);
}

.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
}

/* Animation Utilities */
.animate__animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.animate__fadeIn {
    animation-name: fadeIn;
}

.animate__fadeInDown {
    animation-name: fadeInDown;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -100%, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate__shakeX {
    animation-name: shakeX;
}

@keyframes shakeX {
    from, to {
        transform: translate3d(0, 0, 0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translate3d(-10px, 0, 0);
    }
    20%, 40%, 60%, 80% {
        transform: translate3d(10px, 0, 0);
    }
}

.animate__bounceIn {
    animation-name: bounceIn;
}

@keyframes bounceIn {
    from, 20%, 40%, 60%, 80%, to {
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    }
    0% {
        opacity: 0;
        transform: scale3d(0.3, 0.3, 0.3);
    }
    20% {
        transform: scale3d(1.1, 1.1, 1.1);
    }
    40% {
        transform: scale3d(0.9, 0.9, 0.9);
    }
    60% {
        opacity: 1;
        transform: scale3d(1.03, 1.03, 1.03);
    }
    80% {
        transform: scale3d(0.97, 0.97, 0.97);
    }
    to {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

/* Add to style.css */
img[onerror] {
    position: relative;
    min-height: 200px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

img[onerror]::after {
    content: 'Image not found';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #6c757d;
    font-size: 0.875rem;
}


/* Image fallback styles */
img {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    position: relative;
    min-height: 100px;
}

img[src$="placeholder.jpg"],
img[src*="image.php"] {
    object-fit: contain;
    padding: 20px;
}

/* Loading skeleton animation */
@keyframes skeleton-loading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s infinite;
}







/* Cart Page Styles */
.cart-section .table th,
.cart-section .table td {
    vertical-align: middle;
}

.cart-section .input-group {
    width: 120px;
}

.cart-section .input-group input {
    text-align: center;
}

.cart-section .btn-outline-danger {
    border-radius: 50%;
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Quantity input styling */
.cart-section input[type="number"]::-webkit-inner-spin-button,
.cart-section input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
}

/* Card styling */
.cart-section .card {
    border: none;
    border-radius: 15px;
}

.cart-section .card-header {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1rem 1.5rem;
}

.cart-section .table th {
    font-weight: 600;
    color: #495057;
}

/* Responsive */
@media (max-width: 768px) {
    .cart-section .table th:nth-child(2),
    .cart-section .table td:nth-child(2),
    .cart-section .table th:nth-child(4),
    .cart-section .table td:nth-child(4) {
        display: none;
    }
    
    .cart-section .table td:first-child {
        min-width: 200px;
    }
}

/* ============================================ */
/* RESPONSIVE FIXES FOR ALL DASHBOARDS          */
/* ============================================ */

/* Fix for mobile sidebar toggle */
@media (max-width: 768px) {
    .admin-sidebar,
    .user-sidebar,
    .sidebar {
        position: fixed !important;
        left: -280px !important;
        transition: left 0.3s ease !important;
        z-index: 1050 !important;
    }
    
    .admin-sidebar.active,
    .user-sidebar.active,
    .sidebar.active {
        left: 0 !important;
    }
    
    .admin-main-content,
    .user-main-content,
    .content-wrapper {
        margin-left: 0 !important;
        padding-top: 70px !important;
    }
    
    /* Fix for stat cards on mobile */
    .stat-card .stat-value {
        font-size: 1.3rem;
    }
    
    /* Fix for tables */
    .table-responsive {
        overflow-x: auto;
        display: block;
    }
    
    /* Fix for product grid */
    .products-section .row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    /* Fix for consultation cards */
    .consultation-card .row,
    .appointment-card .row {
        display: flex;
        flex-direction: column;
    }
    
    /* Fix for buttons in cards */
    .consultation-card .text-md-end,
    .appointment-card .text-md-end {
        text-align: left !important;
        margin-top: 12px;
    }
}