/* ============================================
   style.css – PremiumShop Complete Stylesheet
   Includes: Light/Dark Themes, Components, Pages, Animations
   ============================================ */

/* ----- Light Theme Variables (Default) ----- */
:root {
    --primary: #2c7be0;
    --primary-dark: #1a5bbf;
    --secondary: #2c3e50;
    --accent: #ff5e7c;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #1e2a3a;
    --text-secondary: #5b6877;
    --text-muted: #7f8c8d;
    --card-bg: #ffffff;
    --border-color: rgba(0, 0, 0, 0.05);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 4px 12px var(--shadow-color);
    --shadow-md: 0 8px 20px var(--shadow-color);
    --shadow-lg: 0 20px 30px -10px var(--shadow-color);
    --shadow-xl: 0 25px 40px -12px var(--shadow-color);
    --transition-base: all 0.3s ease;
}

/* ----- Dark Theme Variables ----- */
[data-theme="dark"] {
    --primary: #5a9eff;
    --primary-dark: #3f7ee0;
    --secondary: #3498db;
    --accent: #ff7b9c;
    --bg-primary: #1a1e24;
    --bg-secondary: #242a33;
    --text-primary: #e9ecef;
    --text-secondary: #a0b3c5;
    --text-muted: #7f8c8d;
    --card-bg: #2c343f;
    --border-color: rgba(255, 255, 255, 0.05);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 4px 12px var(--shadow-color);
    --shadow-md: 0 8px 20px var(--shadow-color);
    --shadow-lg: 0 20px 30px -10px var(--shadow-color);
    --shadow-xl: 0 25px 40px -12px var(--shadow-color);
}

/* ----- Global Styles ----- */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    transition: background-color 0.3s, color 0.3s;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}

/* ===== Page Loader ===== */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    pointer-events: none;
}

#page-loader.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 4px solid var(--bg-secondary);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 1px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== Toast Notification ===== */
.toast-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    animation: fadeInOut 2s ease forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(10px); }
    10% { opacity: 1; transform: translateY(0); }
    90% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

/* ===== Top Utility Bar ===== */
.top-utility-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.top-utility-bar a {
    color: var(--text-secondary);
    transition: color 0.2s;
}

.top-utility-bar a:hover {
    color: var(--primary);
}

/* ===== Navbar ===== */
.navbar {
    background: var(--card-bg) !important;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
    color: var(--text-primary) !important;
}

.navbar .btn-link {
    color: var(--text-primary);
    position: relative;
}

.navbar .btn-link:hover {
    color: var(--primary);
}

.cart-badge,
.wishlist-badge {
    font-size: 0.6rem;
    padding: 0.2rem 0.4rem;
}

.search-form .input-group {
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: var(--transition-base);
}

.search-form:focus-within .input-group {
    box-shadow: 0 4px 20px rgba(44, 123, 224, 0.2);
    transform: scale(1.02);
}

.search-form .form-control,
.search-form .form-select {
    border: 1px solid var(--border-color);
    border-right: none;
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
    background: var(--card-bg);
    color: var(--text-primary);
}

.search-form .form-select {
    background-color: var(--bg-secondary);
    font-weight: 500;
    color: var(--text-primary);
    border-radius: 40px 0 0 40px;
}

.search-form .btn {
    border-radius: 0 40px 40px 0;
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    font-weight: 500;
    transition: var(--transition-base);
    color: white;
}

.search-form .btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), #004085);
    transform: translateY(-1px);
}

.search-form .btn i {
    transition: transform 0.2s;
}

.search-form .btn:hover i {
    transform: scale(1.1);
}

/* ===== Category Navigation ===== */
.category-nav {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.category-nav .nav-link {
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    white-space: nowrap;
    transition: color 0.2s;
}

.category-nav .nav-link:hover {
    color: var(--primary);
}

.category-nav .dropdown-menu {
    background: var(--card-bg);
    border: none;
    border-radius: 0;
    box-shadow: var(--shadow-lg);
    padding: 2rem;
}

.category-nav .dropdown-menu h6 {
    color: var(--text-primary);
}

.category-nav .dropdown-menu a {
    color: var(--text-secondary);
}

.category-nav .dropdown-menu a:hover {
    color: var(--primary);
}

/* ===== Mini Cart Dropdown ===== */
.mini-cart-dropdown {
    width: 320px;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

/* ===== Product Card ===== */
.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-base);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.product-image-wrapper {
    position: relative;
    padding-top: 100%;
    background: var(--bg-secondary);
    overflow: hidden;
}

.product-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.05);
}

.product-wishlist,
.quick-view-btn {
    position: absolute;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
    z-index: 2;
    border: none;
    color: var(--text-primary);
}

.product-wishlist {
    top: 12px;
    right: 12px;
}

.quick-view-btn {
    top: 12px;
    left: 12px;
}

.product-wishlist:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.1);
}

.quick-view-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.product-content {
    padding: 1.2rem 1rem 1rem;
}

.product-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.8px;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.product-card .btn-outline-primary {
    border-radius: 50px;
    border-width: 1.5px;
    font-weight: 500;
    transition: var(--transition-base);
    border-color: var(--primary);
    color: var(--primary);
}

.product-card .btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

/* ===== Star Rating ===== */
.star-rating {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.stars-outer {
    position: relative;
    display: inline-block;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 1rem;
    color: #d1d9e6;
}

.stars-outer::before {
    content: "\f005 \f005 \f005 \f005 \f005";
    letter-spacing: 2px;
}

.stars-inner {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
    color: #fabf35;
}

.stars-inner::before {
    content: "\f005 \f005 \f005 \f005 \f005";
    letter-spacing: 2px;
}

.rating-value {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-left: 4px;
}

/* ===== Section Headers ===== */
section h2 {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: 4rem 0;
}

.hero-section h1 {
    font-size: 3.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.hero-section .btn-primary {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--secondary), var(--primary-dark));
    border: none;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
    color: white;
}

.hero-section .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* ===== Category Cards ===== */
.category-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem 1rem;
    transition: var(--transition-base);
    text-align: center;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.category-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--bg-secondary);
    transition: var(--transition-base);
}

.category-card:hover img {
    border-color: var(--primary);
    transform: scale(1.05);
}

.category-card h5 {
    font-weight: 600;
    color: var(--text-primary);
}

/* ===== Promotional Banner ===== */
.promo-banner .row {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border-radius: 20px;
    padding: 4rem 3rem;
    box-shadow: var(--shadow-lg);
}

.promo-banner h2 {
    color: white;
    font-size: 2.5rem;
}

.promo-banner .btn-light {
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-weight: 600;
    transition: var(--transition-base);
    background: white;
    color: var(--text-primary);
    border: none;
}

.promo-banner .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== Newsletter ===== */
.newsletter {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
}

.newsletter input {
    border-radius: 50px 0 0 50px;
    border: 1px solid var(--border-color);
    height: 54px;
    background: var(--card-bg);
    color: var(--text-primary);
}

.newsletter button {
    border-radius: 0 50px 50px 0;
    height: 54px;
    background: linear-gradient(135deg, var(--secondary), var(--primary-dark));
    border: none;
    font-weight: 600;
    transition: var(--transition-base);
    color: white;
}

.newsletter button:hover {
    background: linear-gradient(135deg, var(--primary-dark), #004085);
    transform: translateX(2px);
}

@media (max-width: 576px) {
    .newsletter input,
    .newsletter button {
        border-radius: 50px;
    }
    .newsletter input {
        margin-bottom: 1rem;
    }
}

/* ===== Tabs ===== */
.nav-tabs {
    border-bottom: 2px solid var(--border-color);
}

.nav-tabs .nav-link {
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    margin: 0 0.25rem;
    transition: all 0.3s;
    border-radius: 50px;
}

.nav-tabs .nav-link:hover {
    color: var(--primary);
    background: rgba(44, 123, 224, 0.05);
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    background: linear-gradient(135deg, rgba(44, 123, 224, 0.1), rgba(44, 62, 80, 0.05));
    font-weight: 700;
}

.tab-content {
    padding: 1rem 0;
}

/* ===== Product Details Page ===== */
.product-gallery img {
    width: 100%;
    border-radius: 16px;
}

.product-gallery .thumb {
    width: 80px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.2s;
}

.product-gallery .thumb:hover,
.product-gallery .thumb.active {
    border-color: var(--primary);
}

.quantity-input {
    width: 80px;
    text-align: center;
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

/* ===== Cart Page ===== */
.cart-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.cart-item img {
    width: 80px;
    border-radius: 8px;
}

.cart-item .btn-outline-danger {
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ===== Wishlist Page ===== */
.wishlist-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.wishlist-item img {
    width: 80px;
    border-radius: 8px;
}

/* ===== Checkout Page ===== */
.checkout-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.checkout-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.payment-method {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--card-bg);
}

.payment-method:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
}

.payment-method.selected {
    border-color: var(--primary);
    background: var(--bg-secondary);
}

.order-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.order-summary-total {
    font-weight: 700;
    font-size: 1.2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
}

/* ===== Profile Page ===== */
.profile-sidebar {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem 1rem;
    text-align: center;
    height: 100%;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--card-bg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
}

.profile-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.profile-email {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    margin: 1.5rem 0;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.order-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-id {
    font-weight: 600;
    color: var(--text-primary);
}

.order-date {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.order-status {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-delivered {
    background: #d4edda;
    color: #155724;
}

.status-shipped {
    background: #cce5ff;
    color: #004085;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.address-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
}

/* ===== About Page ===== */
.about-hero {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    padding: 4rem 0;
    border-radius: 0 0 50px 50px;
}

.about-hero h1 {
    font-size: 3rem;
    font-weight: 700;
}

.about-section {
    padding: 4rem 0;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--card-bg);
    box-shadow: var(--shadow-lg);
}

.about-stat-card,
.about-value-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.about-stat-card {
    padding: 1.5rem;
}

.about-stat-card .stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.about-media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.about-media-card {
    background: var(--card-bg);
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.about-media-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 180px;
}

.about-value-card {
    padding: 1.5rem;
}

.about-value-card i {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(44, 123, 224, 0.12);
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* ===== Auth Pages ===== */
.auth-section {
    position: relative;
    padding: 4rem 0 5rem;
    background:
        radial-gradient(circle at top right, rgba(44, 123, 224, 0.12), transparent 28%),
        radial-gradient(circle at bottom left, rgba(255, 94, 124, 0.12), transparent 24%),
        var(--bg-secondary);
}

.auth-showcase,
.auth-form-card {
    border-radius: 28px;
    box-shadow: var(--shadow-xl);
    height: 100%;
}

.auth-showcase {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.auth-showcase::after {
    content: "";
    position: absolute;
    inset: auto -60px -60px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.auth-benefit {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.auth-benefit:first-of-type {
    margin-top: 1.5rem;
}

.auth-benefit i {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
}

.auth-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.auth-mini-stat {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 1rem;
    text-align: center;
}

.auth-mini-stat strong {
    display: block;
    font-size: 1.35rem;
}

.auth-form-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2.25rem;
}

.auth-form-card .form-control,
.auth-form-card .form-select {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    color: var(--text-primary);
    padding: 0.85rem 1rem;
    min-height: 52px;
}

.auth-form-card .form-control::placeholder {
    color: var(--text-muted);
}

.auth-form-card .form-control:focus,
.auth-form-card .form-select:focus {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(44, 123, 224, 0.16);
}

.auth-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 0.85rem 1rem;
    transition: var(--transition-base);
}

.auth-social-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.auth-links,
.auth-links a,
.auth-note {
    color: var(--text-secondary);
}

.auth-links a:hover,
.auth-note a:hover {
    color: var(--primary);
}

.auth-trust-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: grid;
    gap: 0.75rem;
}

.auth-trust-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ===== Contact Page ===== */
.contact-info {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
}

.contact-info i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    width: 100%;
    background: var(--card-bg);
    color: var(--text-primary);
}

.contact-form button {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    color: white;
    font-weight: 500;
    transition: var(--transition-base);
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== Error Pages (404, 403, 500) ===== */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.error-card {
    background: var(--card-bg);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.error-icon {
    font-size: 6rem;
    margin-bottom: 1rem;
}

.error-code {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.error-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.error-message {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.btn-home {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition-base);
    color: white;
    display: inline-block;
}

.btn-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(44, 123, 224, 0.3);
    color: white;
}

/* ===== Quick View Modal ===== */
.modal-content {
    background: var(--card-bg);
    border-radius: 24px;
    border: none;
    color: var(--text-primary);
}

.modal-header {
    border-bottom: none;
}

.modal .btn-close {
    filter: var(--btn-close-filter, none);
}

/* ===== Product Filter Sidebar ===== */
.filter-sidebar {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
}

.filter-section {
    margin-bottom: 1.5rem;
}

.filter-section h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.filter-section .list-unstyled li {
    margin-bottom: 0.5rem;
}

.filter-section .form-check-label {
    color: var(--text-secondary);
    cursor: pointer;
}

.filter-section input[type="checkbox"] {
    accent-color: var(--primary);
}

.price-range {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.price-range input {
    width: 80px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.3rem;
    text-align: center;
    background: var(--card-bg);
    color: var(--text-primary);
}

.apply-filter-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    width: 100%;
    transition: var(--transition-base);
}

.apply-filter-btn:hover {
    background: var(--primary-dark);
}

/* Mobile filter toggle */
@media (max-width: 991px) {
    .filter-sidebar {
        display: none;
    }
    .filter-sidebar.show {
        display: block;
        margin-bottom: 1rem;
    }
}

/* ===== Coupon Input ===== */
.coupon-input {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.coupon-input input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    background: var(--card-bg);
    color: var(--text-primary);
}

.coupon-input button {
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 1rem;
    transition: var(--transition-base);
}

.coupon-input button:hover {
    background: var(--primary);
}


/* ===== Theme Switcher ===== */
.theme-switcher {
    margin-left: 1rem;
}

.theme-toggle-btn,
#themeToggle {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 50px;
    padding: 0.25rem 1rem;
    transition: var(--transition-base);
}

.theme-toggle-btn:hover,
#themeToggle:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.theme-switcher-floating {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1055;
    margin-left: 0;
}

.theme-switcher-floating .theme-toggle-btn {
    box-shadow: var(--shadow-lg);
}

/* ===== Demo Theme Panel ===== */
.theme-demo-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.theme-demo-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: var(--transition-base);
}

.theme-demo-toggle:hover {
    transform: scale(1.1);
}

.theme-demo-colors {
    display: none;
    position: absolute;
    bottom: 60px;
    right: 0;
    background: var(--card-bg);
    border-radius: 8px;
    padding: 10px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.theme-demo-colors span {
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-base);
}

.theme-demo-colors span:hover {
    transform: scale(1.2);
    border-color: var(--primary);
}

.theme-demo-panel:hover .theme-demo-colors {
    display: block;
}

/* ===== Footer ===== */
footer {
    background: var(--secondary);
    color: white;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}

footer a:hover {
    color: white !important;
}

/* ===== Responsive Utilities ===== */
@media (max-width: 991px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .filter-sidebar {
        margin-bottom: 1rem;
    }
    .about-hero h1 {
        font-size: 2rem;
    }
    .profile-sidebar {
        margin-bottom: 1rem;
    }
    .about-media-grid,
    .auth-mini-stats {
        grid-template-columns: 1fr;
    }
    .auth-showcase,
    .auth-form-card {
        padding: 1.75rem;
    }
}

@media (max-width: 576px) {
    .product-gallery .thumb {
        width: 60px;
    }
    .error-code {
        font-size: 4rem;
    }
    .theme-demo-panel {
        bottom: 10px;
        right: 10px;
    }
}
