/* Custom CSS for Bright Rubber Premium E-Commerce */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    /* Premium Modern Palette */
    --primary-color: #0f172a;      /* Deep Slate/Black */
    --primary-light: #334155;
    --secondary-color: #e63946;    /* Bright Red matching logo */
    --secondary-light: #ef4444;
    --accent-color: #10b981;       /* Emerald/Mint Accent */
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #0ea5e9;
    --light-color: #f8fafc;
    --dark-color: #0f172a;
    --surface-color: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    
    /* Variables for backward compatibility */
    --brand-orange: #e63946;
}

:root[data-theme="dark"] {
    --primary-color: #ffffff;
    --primary-light: #f1f5f9;
    --secondary-color: #ef4444;
    --accent-color: #34d399;
    --success-color: #34d399;
    --danger-color: #f87171;
    --warning-color: #fbbf24;
    --info-color: #38bdf8;
    --light-color: #0f172a;
    --dark-color: #f8fafc;
    --surface-color: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: #334155;
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    background-color: var(--light-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* --- Glassmorphism & UI Utilities --- */
.glass-effect {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

body.dark-theme .glass-effect {
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.premium-shadow {
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.08);
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.12);
}

/* Dark theme surface overrides */
body.dark-theme {
    background-color: #0b1220;
    color: var(--dark-color);
}

/* Header Styles */
.navbar-brand img {
    /* Keep logo flat so it blends with header background */
    border-radius: 0;
    box-shadow: none;
    transition: none;
}

/* Disable hover animation on logo */
.navbar-brand:hover img {
    transform: none;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: #fff !important;
    border-bottom: 1px solid #eee;
}

.navbar.navbar-scrolled {
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

.navbar-nav .nav-link {
    color: #333 !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.navbar-brand {
    color: #333 !important;
    font-weight: 600;
}

.navbar-toggler {
    border-color: rgba(0, 0, 0, 0.1);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Dark theme: navbar */
body.dark-theme .navbar {
    background-color: #0f172a !important;
    border-bottom-color: rgba(255,255,255,0.06);
}
body.dark-theme .navbar-brand,
body.dark-theme .navbar-nav .nav-link {
    color: #e5e7eb !important;
}
body.dark-theme .navbar-nav .nav-link:hover,
body.dark-theme .navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

/* Cart Count Badge */
.cart-count {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Hero Section */
.hero-section {
    /* Logo-based green -> teal gradient */
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    color: white;
    padding: 80px 0;
    margin-bottom: 40px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

/* Brand text utilities */
.text-brand-orange {
    color: var(--brand-orange) !important;
}

/* Enhanced Global Button Styles */
.btn {
    border-radius: 12px;
    padding: 10px 24px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.btn-primary:hover {
    background-color: var(--secondary-light);
    border-color: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    border: none;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    color: white !important;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    color: white !important;
}

.btn-success {
    background: linear-gradient(135deg, var(--accent-color), #34d399);
    border: none;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #34d399, var(--accent-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

/* Product Cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background: white;
}

body.dark-theme .card,
body.dark-theme .product-card,
body.dark-theme .dashboard-card,
body.dark-theme .table-container,
body.dark-theme .cart-item,
body.dark-theme .cart-summary {
    background: #111827;
    color: #e5e7eb;
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.08) !important;
}
body.dark-theme .card-header,
body.dark-theme .table thead th {
    background-color: #0f172a !important;
    color: #e5e7eb !important;
}
body.dark-theme .table tbody tr:hover {
    background-color: rgba(96, 165, 250, 0.08);
}

/* Advanced Product Page Styles */

/* Products Hero Section */
.products-hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--info-color) 50%, var(--secondary-color) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.products-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-stats .stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.hero-stats .stat-item:hover {
    transform: translateY(-5px);
}

/* Filters Section */
.filters-section {
    background: #fff;
    padding: 30px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

.filters-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
}

.filters-card .form-label {
    font-weight: 600;
    margin-bottom: 8px;
}

.filters-card .form-control,
.filters-card .form-select {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.filters-card .form-control:focus,
.filters-card .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.view-toggle .btn-check:checked + .btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Products Section */
.products-section {
    padding: 60px 0;
    background: #f8f9fa;
    min-height: 60vh;
}

/* Results Summary */
.results-summary {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
}

.results-summary h5 {
    color: #2c3e50;
    font-weight: 700;
}

/* Advanced Product Cards */
.product-card-advanced {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.product-card-advanced:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Product Image Container */
.product-image-container {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card-advanced:hover .product-image {
    transform: scale(1.1);
}

.product-image-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #6c757d;
}

.product-image-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

.product-image-placeholder span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Product Overlay */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card-advanced:hover .product-overlay {
    opacity: 1;
}

.overlay-actions {
    display: flex;
    gap: 10px;
}

.overlay-actions .btn {
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.overlay-actions .btn:hover {
    transform: scale(1.1);
}

/* Stock Badge */
.stock-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.stock-badge.out-of-stock {
    background: rgba(220, 53, 69, 0.9);
    color: white;
    backdrop-filter: blur(10px);
}

.stock-badge.low-stock {
    background: rgba(255, 193, 7, 0.9);
    color: #000;
    backdrop-filter: blur(10px);
}

/* Product Info */
.product-info {
    padding: 25px;
}

.product-category {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    margin-bottom: 12px;
}

.product-title a {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Product Price Section */
.product-price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--success-color);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stars {
    color: #ffc107;
    font-size: 0.9rem;
}

.rating-text {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

/* Product Actions */
.product-actions .btn {
    width: 100%;
    border-radius: 12px;
    font-weight: 600;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.product-actions .btn:hover {
    transform: translateY(-2px);
}

/* Empty State */
.empty-state {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
}

.empty-icon {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 20px;
}

/* List View Styles */
.products-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-item-list {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.product-item-list:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.product-image-container-list {
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image-list {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item-list:hover .product-image-list {
    transform: scale(1.05);
}

.product-image-placeholder-list {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #6c757d;
    font-size: 2rem;
}

.product-info-list {
    padding-left: 20px;
}

.product-category-list {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title-list {
    margin-bottom: 10px;
}

.product-title-list a {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.product-title-list a:hover {
    color: var(--primary-color);
}

.product-description-list {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.product-rating-list {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-price-section-list {
    text-align: right;
}

.product-price-list {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--success-color);
    margin-bottom: 10px;
}

.product-stock-list {
    margin-bottom: 15px;
}

.product-actions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-actions-list .btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.product-actions-list .btn:hover {
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .products-hero-section {
        padding: 60px 0;
        text-align: center;
    }
    
    .hero-stats .stat-item {
        margin-bottom: 15px;
    }
    
    .filters-card {
        padding: 20px;
    }
    
    .filters-card .row {
        gap: 15px;
    }
    
    .product-image-container {
        height: 220px;
    }
    
    .product-info {
        padding: 20px;
    }
    
    .product-item-list {
        padding: 20px;
    }
    
    .product-info-list {
        padding-left: 0;
        margin-top: 15px;
    }
    
    .product-price-section-list {
        text-align: left;
        margin-top: 15px;
    }
    
    .product-actions-list {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (max-width: 576px) {
    .products-hero-section h1 {
        font-size: 2rem;
    }
    
    .product-image-container {
        height: 200px;
    }
    
    .product-price-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .product-rating {
        align-self: flex-end;
    }
}

/* Dark Theme Support */
body.dark-theme .products-hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #020617 100%);
}

body.dark-theme .filters-section,
body.dark-theme .filters-card,
body.dark-theme .results-summary,
body.dark-theme .product-card-advanced,
body.dark-theme .product-item-list,
body.dark-theme .empty-state {
    background: #1e293b;
    border-color: rgba(255,255,255,0.1);
    color: #e2e8f0;
}

body.dark-theme .product-title a,
body.dark-theme .product-title-list a {
    color: #e2e8f0;
}

body.dark-theme .product-description,
body.dark-theme .product-description-list {
    color: #94a3b8;
}

body.dark-theme .product-category,
body.dark-theme .product-category-list {
    color: #60a5fa;
}

body.dark-theme .rating-text {
    color: #94a3b8;
}

body.dark-theme .product-image-placeholder,
body.dark-theme .product-image-placeholder-list {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    color: #9ca3af;
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card-advanced,
.product-item-list {
    animation: fadeInUp 0.6s ease-out;
}

.product-card-advanced:nth-child(1) { animation-delay: 0.1s; }
.product-card-advanced:nth-child(2) { animation-delay: 0.2s; }
.product-card-advanced:nth-child(3) { animation-delay: 0.3s; }
.product-card-advanced:nth-child(4) { animation-delay: 0.4s; }
.product-card-advanced:nth-child(5) { animation-delay: 0.5s; }
.product-card-advanced:nth-child(6) { animation-delay: 0.6s; }
.product-card-advanced:nth-child(7) { animation-delay: 0.7s; }
.product-card-advanced:nth-child(8) { animation-delay: 0.8s; }

/* Advanced Wishlist Page Styles */

/* Wishlist Hero Section */
.wishlist-hero-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.wishlist-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hearts" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M25,10 C20,5 10,5 10,15 C10,25 25,40 25,40 C25,40 40,25 40,15 C40,5 30,5 25,10 Z" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23hearts)"/></svg>');
    opacity: 0.3;
}

.wishlist-stats .stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

.wishlist-stats .stat-item:hover {
    transform: translateY(-5px);
}

/* Wishlist Actions Section */
.wishlist-actions-section {
    background: #fff;
    padding: 30px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

.wishlist-actions-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
}

.wishlist-summary h5 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 8px;
}

.wishlist-bulk-actions .btn {
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.wishlist-bulk-actions .btn:hover {
    transform: translateY(-2px);
}

/* Wishlist Section */
.wishlist-section {
    padding: 60px 0;
    background: #f8f9fa;
    min-height: 60vh;
}

/* Empty Wishlist State */
.empty-wishlist-state {
    background: white;
    border-radius: 20px;
    padding: 80px 40px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
}

.empty-wishlist-icon {
    font-size: 5rem;
    color: #e91e63;
    margin-bottom: 30px;
    opacity: 0.7;
}

.empty-wishlist-icon i {
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Wishlist Items Grid */
.wishlist-items-grid {
    margin-top: 30px;
}

.wishlist-item-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.wishlist-item-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Item Selection */
.item-selection {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 3;
}

.item-selection .form-check-input {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid #fff;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.item-selection .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.item-selection .form-check-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Wishlist Image Container */
.wishlist-image-container {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: #f8f9fa;
}

.wishlist-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.wishlist-item-card:hover .wishlist-image {
    transform: scale(1.1);
}

.wishlist-image-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #6c757d;
}

.wishlist-image-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

.wishlist-image-placeholder span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Wishlist Overlay */
.wishlist-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wishlist-item-card:hover .wishlist-overlay {
    opacity: 1;
}

.wishlist-overlay .overlay-actions {
    display: flex;
    gap: 10px;
}

.wishlist-overlay .overlay-actions .btn {
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.wishlist-overlay .overlay-actions .btn:hover {
    transform: scale(1.1);
}

/* Added Date Badge */
.added-date-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(233, 30, 99, 0.9);
    color: white;
    backdrop-filter: blur(10px);
    z-index: 2;
}

/* Wishlist Item Info */
.wishlist-item-info {
    padding: 25px;
}

.wishlist-item-info .product-category {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wishlist-item-info .product-title {
    margin-bottom: 12px;
}

.wishlist-item-info .product-title a {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.wishlist-item-info .product-title a:hover {
    color: var(--primary-color);
}

.wishlist-item-info .product-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.wishlist-item-info .product-price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.wishlist-item-info .product-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--success-color);
}

.wishlist-item-info .product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.wishlist-item-info .stars {
    color: #ffc107;
    font-size: 0.9rem;
}

.wishlist-item-info .rating-text {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

/* Wishlist Item Actions */
.wishlist-item-actions {
    display: flex;
    gap: 10px;
}

.wishlist-item-actions .btn {
    flex: 1;
    border-radius: 12px;
    font-weight: 600;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.wishlist-item-actions .btn:hover {
    transform: translateY(-2px);
}

.wishlist-item-actions .btn:last-child {
    flex: 0 0 auto;
    width: 45px;
    padding: 12px;
}

/* Wishlist Footer */
.wishlist-footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
    color: white;
}

.wishlist-tips h6,
.wishlist-share h6 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 15px;
}

.wishlist-tips ul li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.wishlist-share .btn {
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.wishlist-share .btn:hover {
    transform: translateY(-2px);
}

/* Responsive Design for Wishlist */
@media (max-width: 768px) {
    .wishlist-hero-section {
        padding: 60px 0;
        text-align: center;
    }
    
    .wishlist-stats .stat-item {
        margin-bottom: 15px;
    }
    
    .wishlist-actions-card {
        padding: 20px;
    }
    
    .wishlist-bulk-actions {
        margin-top: 15px;
    }
    
    .wishlist-bulk-actions .d-flex {
        flex-direction: column;
        gap: 10px;
    }
    
    .wishlist-image-container {
        height: 220px;
    }
    
    .wishlist-item-info {
        padding: 20px;
    }
    
    .wishlist-item-actions {
        flex-direction: column;
    }
    
    .wishlist-item-actions .btn:last-child {
        width: 100%;
        margin-top: 10px;
    }
    
    .wishlist-footer {
        padding: 20px;
    }
    
    .wishlist-share {
        text-align: left !important;
        margin-top: 20px;
    }
    
    .wishlist-share .d-flex {
        justify-content: flex-start !important;
    }
}

@media (max-width: 576px) {
    .wishlist-hero-section h1 {
        font-size: 2rem;
    }
    
    .wishlist-image-container {
        height: 200px;
    }
    
    .wishlist-item-info .product-price-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .wishlist-item-info .product-rating {
        align-self: flex-end;
    }
    
    .empty-wishlist-state {
        padding: 60px 20px;
    }
    
    .empty-wishlist-state .d-flex {
        flex-direction: column;
        gap: 15px;
    }
}

/* Dark Theme Support for Wishlist */
body.dark-theme .wishlist-hero-section {
    background: linear-gradient(135deg, #111827 0%, #1e293b 50%, #020617 100%);
}

body.dark-theme .wishlist-actions-section,
body.dark-theme .wishlist-actions-card,
body.dark-theme .wishlist-section,
body.dark-theme .wishlist-item-card,
body.dark-theme .empty-wishlist-state {
    background: #1e293b;
    border-color: rgba(255,255,255,0.1);
    color: #e2e8f0;
}

body.dark-theme .wishlist-footer {
    background: linear-gradient(135deg, #0f172a, #111827) !important;
    border-color: rgba(255,255,255,0.08);
    color: #e2e8f0;
}

body.dark-theme .wishlist-summary h5,
body.dark-theme .wishlist-tips h6,
body.dark-theme .wishlist-share h6 {
    color: #e2e8f0;
}

body.dark-theme .wishlist-item-info .product-title a {
    color: #e2e8f0;
}

body.dark-theme .wishlist-item-info .product-description {
    color: #94a3b8;
}

body.dark-theme .wishlist-item-info .product-category {
    color: #60a5fa;
}

body.dark-theme .wishlist-item-info .rating-text {
    color: #94a3b8;
}

body.dark-theme .wishlist-image-placeholder {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    color: #9ca3af;
}

/* Product page gallery */
.product-gallery .main-image-wrapper {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 10px;
}

.product-thumb-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .2s ease, transform .2s ease;
}

.product-thumb-image:hover { transform: translateY(-2px); }
.product-thumb-image.active { border-color: var(--primary-color); }

body.dark-theme .item-selection .form-check-input {
    background-color: rgba(30, 41, 59, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Animation Classes for Wishlist */
.wishlist-item-card {
    animation: fadeInUp 0.6s ease-out;
}

.wishlist-item-card:nth-child(1) { animation-delay: 0.1s; }
.wishlist-item-card:nth-child(2) { animation-delay: 0.2s; }
.wishlist-item-card:nth-child(3) { animation-delay: 0.3s; }
.wishlist-item-card:nth-child(4) { animation-delay: 0.4s; }
.wishlist-item-card:nth-child(5) { animation-delay: 0.5s; }
.wishlist-item-card:nth-child(6) { animation-delay: 0.6s; }
.wishlist-item-card:nth-child(7) { animation-delay: 0.7s; }
.wishlist-item-card:nth-child(8) { animation-delay: 0.8s; }

/* Product Thumbnail in Admin */
.product-thumbnail {
    transition: transform 0.2s ease;
    cursor: pointer;
}

.product-thumbnail:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Image Upload Preview */
.image-preview {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background-color: #f8f9fa;
    transition: border-color 0.3s ease;
}

.image-preview:hover {
    border-color: var(--primary-color);
}

.image-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.product-card .card-body {
    padding: 1.5rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--success-color);
}

/* Dashboard Cards */
.dashboard-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
}

.dashboard-card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.dashboard-card .number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.dashboard-card .label {
    color: var(--secondary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Stats Cards */
.stats-card {
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
}

.bg-gradient-success {
    background: linear-gradient(135deg, var(--success-color), #146c43);
}

.bg-gradient-info {
    background: linear-gradient(135deg, var(--info-color), #0aa2c0);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, var(--warning-color), #e0a800);
}

.stats-number {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stats-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.stats-icon {
    opacity: 0.8;
}

/* Form Styles */
.form-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 0 auto;
}

/* Advanced Auth (Login / Register) Pages */
.auth-page {
    min-height: calc(100vh - 160px);
    padding: 40px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(0, 200, 83, 0.16), transparent 55%),
        radial-gradient(circle at bottom right, rgba(108, 92, 231, 0.18), transparent 55%),
        linear-gradient(135deg, #f8f9fa 0%, #e9ecef 40%, #f8f9fa 100%);
    overflow: hidden;
}

.auth-page::before,
.auth-page::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    filter: blur(18px);
    opacity: 0.7;
    z-index: 0;
}

.auth-page::before {
    top: -60px;
    right: -40px;
    background: radial-gradient(circle at center, rgba(0, 200, 83, 0.55), transparent 65%);
}

.auth-page::after {
    bottom: -80px;
    left: -40px;
    background: radial-gradient(circle at center, rgba(38, 198, 218, 0.45), transparent 65%);
}

.auth-page .form-container {
    position: relative;
    z-index: 1;
    max-width: 540px;
    padding: 36px 32px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.18),
        0 0 0 1px rgba(148, 163, 184, 0.18);
}

.auth-logo {
    height: 68px;
    filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.25));
}

.auth-page h2 {
    font-weight: 700;
    letter-spacing: 0.03em;
}

.auth-page p.text-muted {
    font-size: 0.95rem;
}

.auth-page .input-group-text {
    border-radius: 12px 0 0 12px;
}

.auth-page .form-control {
    border-radius: 0 12px 12px 0;
}

.auth-page .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    border: none;
    box-shadow: 0 10px 25px rgba(0, 200, 83, 0.35);
}

.auth-page .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 200, 83, 0.4);
}

.auth-page .form-check-label a {
    font-weight: 500;
}

.auth-page .text-decoration-none:hover {
    text-decoration: underline !important;
}

body.dark-theme .auth-page {
    background:
        radial-gradient(circle at top left, rgba(96, 165, 250, 0.18), transparent 55%),
        radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.18), transparent 55%),
        linear-gradient(135deg, #020617 0%, #020617 45%, #020617 100%);
}

body.dark-theme .auth-page .form-container {
    background: rgba(15, 23, 42, 0.97);
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.9),
        0 0 0 1px rgba(148, 163, 184, 0.28);
}

body.dark-theme .auth-page h2,
body.dark-theme .auth-page p,
body.dark-theme .auth-page label {
    color: #e5e7eb;
}

body.dark-theme .auth-page .form-control {
    background-color: #020617;
    border-color: rgba(148, 163, 184, 0.4);
    color: #e5e7eb;
}

body.dark-theme .auth-page .form-control:focus {
    border-color: #60a5fa;
}

@media (max-width: 768px) {
    .auth-page {
        padding: 30px 0;
        border-radius: 18px;
    }

    .auth-page .form-container {
        padding: 28px 22px;
        margin: 0 8px;
    }
}

.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.btn {
    border-radius: 10px;
    padding: 12px 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Table Styles */
.table-container {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px;
    font-weight: 600;
}

.table tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
}

/* Badge Styles */
.badge {
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: 600;
}

/* High-contrast Out of Stock badge */
.out-of-stock-badge {
    background-color: #111827 !important; /* near-black */
    color: #ffffff !important; /* white text for readability */
    border: 1px solid rgba(255,255,255,0.2);
}

/* Cart Styles */
.cart-item {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cart-summary {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
}

/* Footer Styles */
footer {
    margin-top: auto;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    border-top: 3px solid var(--info-color);
    font-family: 'Poppins', Tahoma, Geneva, Verdana, sans-serif;
}

body.dark-theme footer {
    background: linear-gradient(135deg, #0f172a, #111827) !important;
    border-top-color: rgba(255,255,255,0.08);
}

.social-links a {
    transition: color 0.3s ease;
    font-size: 1.2rem;
}

.social-links a:hover {
    color: #ffc107 !important;
    transform: scale(1.2);
}

/* Enhanced Footer Styling */
footer h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

footer .list-unstyled a:hover {
    color: #ffc107 !important;
    text-decoration: underline !important;
}

footer p,
footer li,
footer a {
    font-size: 0.975rem;
    line-height: 1.6;
}

footer .list-unstyled a {
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

/* Removed custom circular footer logo styling to restore original */

/* Advanced footer layout */
.alimart-footer {
    font-family: 'Poppins', Tahoma, Geneva, Verdana, sans-serif;
}

.alimart-footer .footer-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.18);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    white-space: nowrap;
}

.alimart-footer .footer-pill i {
    font-size: 0.9rem;
}

.alimart-footer .footer-divider {
    border-color: rgba(255, 255, 255, 0.18);
}

.alimart-footer .footer-payments i {
    font-size: 1.25rem;
}

@media (max-width: 767.98px) {
    .alimart-footer .footer-payments {
        justify-content: center;
    }
}

/* Admin Panel Specific Styles */
.card.shadow-sm {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card.shadow-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.card-header {
    border-bottom: none;
    font-weight: 600;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
    transform: scale(1.01);
    transition: all 0.2s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .dashboard-card {
        margin-bottom: 20px;
    }
    
    .form-container {
        margin: 20px;
        padding: 20px;
    }
    
    .stats-card {
        margin-bottom: 15px;
    }
    
    .stats-number {
        font-size: 1.5rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Product Grid Improvements */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Search dropdown container */
#searchResults {
    max-height: 360px;
    overflow: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
body.dark-theme #searchResults {
    background: #0f172a !important;
    color: #e5e7eb;
    border-color: rgba(255,255,255,0.08) !important;
}
body.dark-theme .search-result-item:hover {
    background-color: rgba(96, 165, 250, 0.08) !important;
}

/* =============================== */
/* Admin Theme (Aligned with logo) */
/* =============================== */
.admin-theme {
    --admin-primary: #e11d48;   /* Logo Red */
    --admin-primary-2: #c1121f; /* Darker Red for gradients */
    --admin-accent: #1e293b;    /* Logo Dark/Slate */
    --admin-highlight: #ffedf0; /* Soft Red highlight */
}

/* Admin: Sidebar */
.admin-theme .sidebar {
    min-height: 100vh;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
}
.admin-theme .sidebar.collapsed {
    width: 80px !important;
}
.admin-theme .sidebar.collapsed .admin-brand h5,
.admin-theme .sidebar.collapsed .menu-text {
    display: none !important;
}
.admin-theme .sidebar h5 {
    color: #1e293b !important;
    font-weight: 700;
}
.admin-theme .sidebar.collapsed .nav-link {
    text-align: center;
}
.admin-theme .sidebar.collapsed .nav-link i {
    margin-right: 0;
}
.admin-theme .main-content.sidebar-collapsed {
    margin-left: 80px;
}
.admin-theme .sidebar .nav-link {
    color: #475569;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    margin: 0.25rem 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.admin-theme .sidebar .nav-link i {
    width: 20px;
    margin-right: 0.5rem;
}
.admin-theme .sidebar .nav-link:hover {
    color: var(--admin-primary);
    background-color: var(--admin-highlight);
}
.admin-theme .sidebar .nav-link.active {
    color: var(--admin-primary);
    background-color: var(--admin-highlight);
    font-weight: 600;
}
.admin-theme .sidebar .nav-link:active {
    transform: translateY(1px);
}

/* Admin: Main content */
.admin-theme .main-content {
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Admin: Brand/logo styling */
.admin-theme .admin-brand-logo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    border: none;
    padding: 10px;
}
.admin-theme .admin-brand-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.2));
}

/* Admin: Footer */
.admin-theme .admin-footer {
    background: linear-gradient(135deg, var(--admin-primary), var(--admin-primary-2)) !important;
    color: #fee2e2;
    border-top: 2px solid var(--admin-highlight) !important;
}
.admin-theme .admin-footer h6 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.admin-theme .admin-footer a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}
.admin-theme .admin-footer a:hover {
    color: var(--admin-highlight);
    text-decoration: underline;
}
.admin-theme .admin-footer .small {
    opacity: 0.9;
}

/* Admin: Cards and tables */
.admin-theme .card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}
.admin-theme .table th {
    border-top: none;
    font-weight: 600;
}

/* Admin: table spacing and zebra striping for readability */
.admin-theme .table.table-hover tbody tr {
    transition: background-color 0.15s ease, transform 0.15s ease;
}
.admin-theme .table tbody td {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}
.admin-theme .table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-accent-bg: rgba(0,0,0,0.015);
}
.admin-theme .table-hover tbody tr:hover {
    background-color: var(--admin-highlight);
}

/* Admin: card header/body spacing */
.admin-theme .card-header {
    padding: 0.85rem 1rem;
}
.admin-theme .card-body {
    padding: 1.1rem 1rem;
}

/* Responsive: collapse sidebar spacing */
@media (max-width: 991.98px) {
    .admin-theme .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 260px;
        z-index: 1030;
        box-shadow: 0 0 20px rgba(0,0,0,0.25);
    }
    .admin-theme .sidebar.collapsed { width: 80px; }
    .admin-theme .main-content {
        padding-top: 1rem;
    }
}

/* Admin: body background and text */
.admin-theme body, .admin-theme {
    background-color: #f6f8f5;
}

/* Admin: Navbar */
.admin-theme .navbar {
    background: #ffffff !important;
    border-bottom: 1px solid var(--border-color);
}
.admin-theme .navbar .nav-link,
.admin-theme .navbar-brand {
    color: var(--text-primary) !important;
}
.admin-theme .navbar .nav-link:hover,
.admin-theme .navbar .nav-link.active {
    color: var(--admin-primary) !important;
}

/* Admin: Cards */
.admin-theme .dashboard-card,
.admin-theme .table-container,
.admin-theme .card {
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.admin-theme .card-header {
    background: #f8fafc;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-weight: 600;
}

/* Admin: Buttons */
.admin-theme .btn-primary {
    background: linear-gradient(135deg, var(--admin-primary), var(--admin-primary-2));
    border: none;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}
.admin-theme .btn-primary:hover {
    background: linear-gradient(135deg, var(--admin-primary-2), var(--admin-primary));
    transform: translateY(-1px);
}
.admin-theme .btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
}
.admin-theme .btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white !important;
}

/* Admin: Tables */
.admin-theme .table thead th {
    background-color: #f8fafc;
    color: var(--text-primary);
}
.admin-theme .table-hover tbody tr:hover {
    background-color: var(--admin-highlight);
}

/* Admin: Badges */
.admin-theme .badge.bg-danger {
    background-color: var(--admin-highlight) !important;
    color: var(--admin-primary) !important;
}

/* Admin: Stats and gradients */
.admin-theme .bg-gradient-primary {
    background: linear-gradient(135deg, var(--admin-primary), var(--admin-primary-2)) !important;
}
.admin-theme .bg-gradient-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
}
.admin-theme .bg-gradient-info {
    background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
}
.admin-theme .bg-gradient-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: white !important;
}
.admin-theme .bg-gradient-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
}
.admin-theme .bg-gradient-danger .stats-number,
.admin-theme .bg-gradient-danger .stats-label,
.admin-theme .bg-gradient-danger .stats-icon i {
    color: #0b1a14 !important;
}

/* Admin: Inputs focus */
.admin-theme .form-control:focus {
    border-color: var(--admin-accent);
    box-shadow: 0 0 0 0.2rem rgba(151, 176, 103, 0.25);
}

/* Admin: Links */
.admin-theme a { color: var(--admin-primary-2); }
.admin-theme a:hover { color: var(--admin-accent); }

/* Search Results */
.search-result-item {
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Cart Quantity Input */
.cart-quantity {
    text-align: center;
    font-weight: 600;
}

.cart-quantity:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Newsletter Section Styling */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), #0056b3) !important;
}

.newsletter-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.2);
    transition: transform 0.3s ease;
}

.newsletter-card:hover {
    transform: translateY(-5px);
}

.newsletter-card .card-body {
    padding: 2rem;
}

.newsletter-card h4 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.newsletter-card .input-group {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    overflow: hidden;
}

.newsletter-card .form-control {
    border: none;
    padding: 15px 20px;
    font-size: 1rem;
}

.newsletter-card .form-control:focus {
    box-shadow: none;
    border-color: transparent;
}

.newsletter-card .btn {
    padding: 15px 25px;
    font-weight: 600;
    border-radius: 0 15px 15px 0;
}

/* Newsletter background override */
.newsletter-card.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

/* Empty State Styling */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--secondary-color);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h4 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.empty-state p {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

/* =============================== */
/* Advanced Profile Page Styles */
/* =============================== */

/* Profile Hero Section */
.profile-hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    border-radius: 20px;
}

.profile-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="profile-pattern" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23profile-pattern)"/></svg>');
    opacity: 0.3;
}

.profile-hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.profile-avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
}

.profile-avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.avatar-upload-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid white;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.avatar-upload-btn:hover {
    background: var(--success-color);
    transform: scale(1.1);
}

.avatar-upload-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.avatar-upload-btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.profile-welcome {
    text-align: center;
}

.profile-welcome h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.profile-welcome p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.profile-stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
    min-width: 120px;
}

.profile-stat-item:hover {
    transform: translateY(-5px);
}

.profile-stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.profile-stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Profile Layout */
.profile-layout {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.profile-sidebar {
    flex: 0 0 280px;
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.profile-sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-sidebar-nav li {
    margin-bottom: 8px;
}

.profile-sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #6c757d;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.profile-sidebar-nav a:hover,
.profile-sidebar-nav a.active {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    transform: translateX(5px);
}

.profile-sidebar-nav a i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.profile-main-content {
    flex: 1;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Profile Tabs */
.profile-tab-content {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.profile-tab-content.active {
    display: block;
}

.profile-tab-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f8f9fa;
}

.profile-tab-header h3 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 8px;
}

.profile-tab-header p {
    color: #6c757d;
    margin: 0;
}

/* Profile Form Styles */
.profile-form-section {
    margin-bottom: 30px;
}

.profile-form-section h5 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.profile-form-group {
    margin-bottom: 25px;
}

.profile-form-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.profile-form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.profile-form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
    background: white;
}

.profile-form-control.is-invalid {
    border-color: var(--danger-color);
}

.profile-form-control.is-valid {
    border-color: var(--success-color);
}

/* Profile Action Buttons */
.profile-action-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.profile-btn {
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.profile-btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
}

.profile-btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
}

.profile-btn-secondary {
    background: #6c757d;
    color: white;
}

.profile-btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 117, 125, 0.3);
}

.profile-btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.profile-btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Profile Cards */
.profile-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.profile-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.profile-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.profile-card-header i {
    font-size: 1.5rem;
    margin-right: 12px;
    color: var(--primary-color);
}

.profile-card-header h5 {
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
}

.profile-card-body {
    color: #6c757d;
    line-height: 1.6;
}

/* Profile Stats Grid */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.profile-stat-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.profile-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.profile-stat-card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.profile-stat-card-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.profile-stat-card-label {
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Profile Orders */
.profile-order-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.profile-order-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.profile-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.profile-order-id {
    font-weight: 600;
    color: #2c3e50;
}

.profile-order-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.profile-order-status.completed {
    background: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
}

.profile-order-status.pending {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.profile-order-status.cancelled {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

.profile-order-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Profile Security */
.profile-security-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
}

.profile-security-info h6 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-weight: 600;
}

.profile-security-info p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.profile-security-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.profile-security-status.active {
    background: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
}

.profile-security-status.inactive {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

/* Dark Theme Support for Profile */
body.dark-theme .profile-hero-section {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

body.dark-theme .profile-sidebar,
body.dark-theme .profile-main-content,
body.dark-theme .profile-card,
body.dark-theme .profile-order-item,
body.dark-theme .profile-stat-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

body.dark-theme .profile-sidebar-nav a {
    color: #94a3b8;
}

body.dark-theme .profile-sidebar-nav a:hover,
body.dark-theme .profile-sidebar-nav a.active {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    color: white;
}

body.dark-theme .profile-tab-header h3,
body.dark-theme .profile-card-header h5,
body.dark-theme .profile-order-id,
body.dark-theme .profile-security-info h6 {
    color: #e2e8f0;
}

body.dark-theme .profile-tab-header p,
body.dark-theme .profile-card-body,
body.dark-theme .profile-order-details,
body.dark-theme .profile-security-info p {
    color: #94a3b8;
}

body.dark-theme .profile-form-control {
    background: #374151;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

body.dark-theme .profile-form-control:focus {
    background: #4b5563;
    border-color: #60a5fa;
}

body.dark-theme .profile-security-item {
    background: #374151;
    border-color: rgba(255, 255, 255, 0.1);
}

/* Responsive Design for Profile */
@media (max-width: 768px) {
    .profile-hero-section {
        padding: 60px 0;
        text-align: center;
    }
    
    .profile-welcome h1 {
        font-size: 2rem;
    }
    
    .profile-stats {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .profile-layout {
        flex-direction: column;
    }
    
    .profile-sidebar {
        position: static;
        margin-bottom: 20px;
    }
    
    .profile-sidebar-nav {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 10px;
    }
    
    .profile-sidebar-nav li {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .profile-sidebar-nav a {
        white-space: nowrap;
    }
    
    .profile-action-buttons {
        flex-direction: column;
    }
    
    .profile-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .profile-order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .profile-order-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 576px) {
    .profile-hero-section {
        padding: 40px 0;
    }
    
    .profile-avatar,
    .profile-avatar-placeholder {
        width: 80px;
        height: 80px;
    }
    
    .profile-avatar-placeholder {
        font-size: 2rem;
    }
    
    .profile-welcome h1 {
        font-size: 1.5rem;
    }
    
    .profile-welcome p {
        font-size: 1rem;
    }
    
    .profile-main-content,
    .profile-sidebar {
        padding: 20px;
    }
    
    .profile-stats-grid {
        grid-template-columns: 1fr;
    }

}

/* --- Contact Page Redesign --- */

.contact-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    color: white;
    text-align: center;
    margin-bottom: -50px;
    z-index: 1;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 30px 30px;
}

.contact-hero .container {
    position: relative;
    z-index: 2;
}

.contact-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.contact-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.contact-container-wrapper {
    position: relative;
    z-index: 2;
    padding-bottom: 80px;
}

.contact-card-glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

body.dark-theme .contact-card-glass {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.05);
}

.contact-info-panel {
    background: var(--primary-color);
    color: white;
    padding: 60px 40px;
    height: 100%;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-content h5 {
    font-weight: 700;
    margin-bottom: 5px;
}

.info-content p {
    opacity: 0.9;
    margin-bottom: 0;
    line-height: 1.6;
}

.contact-form-panel {
    padding: 60px 50px;
}

.contact-form-panel h3 {
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--dark-color);
}

.form-floating > .form-control:focus, 
.form-floating > .form-control:not(:placeholder-shown) {
    padding-top: 1.625rem !important;
    padding-bottom: 0.625rem !important;
}

.form-floating > .form-control {
    border: 2px solid #edf2f7;
    border-radius: 12px;
    height: calc(3.5rem + 2px);
}

.form-floating > textarea.form-control {
    height: 150px;
}

.form-floating > .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.btn-contact-submit {
    padding: 15px 40px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    background: var(--primary-color);
    border: none;
    color: white;
}

.btn-contact-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 200, 83, 0.3);
    color: white;
}

.social-links-contact {
    margin-top: 40px;
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: white;
    color: var(--primary-color);
    transform: scale(1.1);
}

@media (max-width: 991px) {
    .contact-hero h1 { font-size: 2.5rem; }
    .contact-form-panel, .contact-info-panel { padding: 40px; }
}

@media (max-width: 767px) {
    .contact-hero { padding: 80px 0; }
    .contact-hero h1 { font-size: 2rem; }
    .contact-container-wrapper { margin-top: 20px; }
}

/* =============================== */
/* Alimart AI Chatbot Widget       */
/* =============================== */

#alimartChatbotWidget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.alimart-chatbot-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.alimart-chatbot-button:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.alimart-chatbot-logo-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.alimart-chatbot-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.alimart-chatbot-panel {
    width: 320px;
    max-height: 480px;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    display: none;
    flex-direction: column;
}

.alimart-chatbot-panel.open {
    display: flex;
}

.alimart-chatbot-header {
    padding: 12px 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
}

.alimart-chatbot-title {
    font-weight: 700;
    font-size: 0.95rem;
}

.alimart-chatbot-subtitle {
    font-size: 0.8rem;
    opacity: 0.9;
}

.alimart-chatbot-messages {
    padding: 10px 12px;
    background: #f9fafb;
    flex: 1;
    overflow-y: auto;
}

.alimart-chatbot-input {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
}

.alimart-chatbot-input .form-control {
    font-size: 0.85rem;
}

.alimart-chatbot-input .btn {
    padding: 8px 12px;
}

.alimart-chatbot-message {
    display: flex;
    margin-bottom: 8px;
}

.alimart-chatbot-message.user {
    justify-content: flex-end;
}

.alimart-chatbot-message.bot {
    justify-content: flex-start;
}

.alimart-chatbot-bubble {
    max-width: 85%;
    padding: 8px 11px;
    border-radius: 14px;
    font-size: 0.82rem;
    line-height: 1.4;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    white-space: pre-line;
}

.alimart-chatbot-message.user .alimart-chatbot-bubble {
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.alimart-chatbot-message.bot .alimart-chatbot-bubble {
    background: #ffffff;
    color: #111827;
    border-bottom-left-radius: 4px;
}

/* Dark theme adjustments */
body.dark-theme #alimartChatbotWidget .alimart-chatbot-panel {
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

body.dark-theme #alimartChatbotWidget .alimart-chatbot-messages {
    background: #020617;
}

body.dark-theme #alimartChatbotWidget .alimart-chatbot-input {
    background: #020617;
    border-top-color: rgba(148, 163, 184, 0.5);
}

body.dark-theme #alimartChatbotWidget .alimart-chatbot-bubble {
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.8);
}

body.dark-theme #alimartChatbotWidget .alimart-chatbot-message.bot .alimart-chatbot-bubble {
    background: #111827;
    color: #e5e7eb;
}

@media (max-width: 576px) {
    #alimartChatbotWidget {
        bottom: 12px;
        right: 12px;
    }

    .alimart-chatbot-panel {
        width: 100vw;
        max-width: 100%;
        right: 0;
    }
}
