/* ==========================================================
   NEXORA - MASTER DESIGN SYSTEM & CORE STYLESHEET
   Brand Palette:
   - Primary: #2563EB (Royal Blue)
   - Secondary: #06B6D4 (Cyan)
   - Dark: #111827 (Rich Slate Black)
   - Light: #F8FAFC (Clean Light Surface)
   - Accent: #F97316 (Vibrant Orange CTA)
   ========================================================== */

/* Design Tokens & CSS Variables */
:root {
    --primary-color: #2563EB;
    --primary-hover: #1d4ed8;
    --secondary-color: #06B6D4;
    --secondary-hover: #0891b2;
    --dark-navy: #111827;
    --dark-hover: #1f2937;
    --accent-orange: #F97316;
    --accent-orange-hover: #ea580c;
    --bg-light: #F8FAFC;
    --surface-white: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --danger-color: #ef4444;
    --success-color: #10b981;
    --star-gold: #f59e0b;
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --shadow-subtle: 0 2px 10px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 14px 32px rgba(37, 99, 235, 0.14);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    font-family: var(--font-family);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.wrapper {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ==========================================================
   HEADER & TOP BAR (NEXORA BRANDING)
   ========================================================== */
.header {
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.logo {
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo h1, .logo h2 {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0;
    user-select: none;
    display: flex;
    align-items: center;
}

.logo-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0;
}

.logo-name {
    color: var(--dark-navy);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-tagline {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 2px;
}

/* Search Bar & Auto-Suggestions */
.search-wrapper {
    flex: 1;
    max-width: 620px;
    position: relative;
}

.searchbar {
    display: flex;
    position: relative;
    box-shadow: var(--shadow-subtle);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background-color: var(--surface-white);
    transition: var(--transition);
}

.searchbar:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.searchbar input {
    width: 100%;
    height: 46px;
    padding: 0 18px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-main);
    background: transparent;
    border: none;
    outline: none;
}

.searchbar button {
    height: 46px;
    padding: 0 22px;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
    color: white;
    cursor: pointer;
    font-size: 15px;
    transition: var(--transition);
}

.searchbar button:hover {
    background: var(--primary-hover);
}

/* Advanced Search Suggestions Box */
.search-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--surface-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    max-height: 420px;
    overflow-y: auto;
    display: none;
}

.search-suggestions.active {
    display: block;
    animation: fadeInDown 0.2s ease;
}

.suggestion-header {
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.02);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.suggestion-header button {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
}

.tags-row {
    padding: 8px 16px 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-pill {
    background: #f1f5f9;
    color: var(--text-main);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tag-pill:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: rgba(37, 99, 235, 0.06);
}

.suggestion-item img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 6px;
}

.suggestion-info {
    flex: 1;
}

.suggestion-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-main);
}

.highlight,
.suggestion-title .highlight {
    background-color: rgba(249, 115, 22, 0.25);
    color: var(--accent-orange);
    padding: 0 3px;
    border-radius: 2px;
    font-weight: 700;
}

.suggestion-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Header Action Controls */
.selected-product {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.action-btn {
    height: 44px;
    min-width: 48px;
    padding: 0 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--surface-white);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow-subtle);
    text-decoration: none;
}

.action-btn i {
    font-size: 17px;
    color: var(--primary-color);
}

.action-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.action-btn span {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.theme-btn {
    width: 44px;
    min-width: 44px;
    padding: 0;
    justify-content: center;
}

.theme-btn i {
    color: var(--accent-orange);
}

.auth-btn {
    padding: 0 14px;
    font-weight: 600;
    font-size: 13.5px;
}

/* Cart animation */
@keyframes cartBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.18); }
}

.shake-anim {
    animation: cartBounce 0.4s ease-in-out;
}

/* ==========================================================
   STICKY NAVIGATION BAR & MEGA MENU
   ========================================================== */
.navigation-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background-color: var(--surface-white);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 calc((100% - 1280px) / 2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(8px);
}

.categories {
    position: relative;
    background: linear-gradient(135deg, var(--dark-navy), #1f2937);
    color: white;
    padding: 15px 24px;
    min-width: 210px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.categories:hover {
    background: linear-gradient(135deg, #1f2937, #374151);
}

.mega-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 270px;
    background: var(--surface-white);
    box-shadow: 0 15px 35px rgba(0,0,0,0.14);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-top: none;
    z-index: 1000;
    animation: fadeInDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.categories:hover .mega-dropdown {
    display: block;
}

.mega-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
    padding: 12px 20px;
    font-size: 13.5px;
    font-weight: 600;
    border-bottom: 1px solid #f1f5f9;
    transition: var(--transition);
}

.mega-dropdown a i {
    font-size: 16px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.mega-dropdown a:hover {
    background-color: rgba(37, 99, 235, 0.06);
    color: var(--primary-color);
    padding-left: 26px;
}

.menu {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-right: 20px;
}

.menu a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 14.5px;
    font-weight: 600;
    position: relative;
    padding: 16px 0;
    transition: var(--transition);
}

.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 8px;
    width: 0;
    height: 2.5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    transition: var(--transition);
}

.menu a:hover {
    color: var(--primary-color);
}

.menu a:hover::after {
    width: 100%;
}

/* ==========================================================
   HERO BANNER SECTION
   ========================================================== */
.hero-section {
    height: 480px;
    background-image: url("https://images.unsplash.com/photo-1441986300917-64674bd600d8?w=1600&auto=format&fit=crop&q=80");
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(17, 24, 39, 0.9) 0%,
        rgba(37, 99, 235, 0.5) 100%
    );
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.hero-content {
    color: white;
    max-width: 780px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 16px;
}

.hero-content h1 {
    font-size: 60px;
    font-weight: 800;
    margin: 8px 0 16px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 17px;
    margin-bottom: 28px;
    color: #e2e8f0;
    font-weight: 400;
}

.hero-content button {
    background: linear-gradient(135deg, var(--accent-orange), #ea580c);
    color: white;
    border: none;
    padding: 14px 38px;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.4);
    transition: var(--transition);
}

.hero-content button:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.5);
}

/* ==========================================================
   FEATURED CATEGORIES
   ========================================================== */
.featured-categories {
    margin-top: 60px;
}

.section-title {
    text-align: center;
    margin-bottom: 35px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark-navy);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 15px;
    margin-top: 6px;
}

.category-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    background: var(--surface-white);
    border-radius: var(--radius-lg);
    text-align: center;
    padding: 30px 20px;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
}

.category-card i {
    font-size: 38px;
    color: var(--primary-color);
    transition: var(--transition);
}

.category-card h3 {
    margin-top: 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

.category-card:hover i {
    transform: scale(1.15);
    color: var(--secondary-color);
}

/* ==========================================================
   SKELETON LOADERS & SHIMMER EFFECT
   ========================================================== */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: var(--radius-sm);
}

.skeleton-card {
    background: var(--surface-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-img {
    width: 100%;
    height: 200px;
}

.skeleton-text-lg {
    width: 80%;
    height: 18px;
}

.skeleton-text-md {
    width: 50%;
    height: 14px;
}

.skeleton-text-sm {
    width: 35%;
    height: 22px;
}

.skeleton-btn {
    width: 100%;
    height: 38px;
    margin-top: 6px;
}

/* ==========================================================
   FEATURED PRODUCTS & MODERN TOOLBAR
   ========================================================== */
.featured-products {
    margin-top: 70px;
    margin-bottom: 60px;
}

.product-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 22px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-subtle);
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

#active-category-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-navy);
}

.reset-filter-btn {
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.reset-filter-btn:hover {
    background: #e2e8f0;
    color: var(--text-main);
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toolbar-right label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.toolbar-right select {
    padding: 8px 14px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--surface-white);
    color: var(--text-main);
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.toolbar-right select:focus {
    border-color: var(--primary-color);
}

/* Product Grid */
.product-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Product Card */
.product-card {
    background: var(--surface-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: #bfdbfe;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--accent-orange), #ea580c);
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 5;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.wishlist-toggle-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: var(--transition);
    color: var(--text-muted);
}

.wishlist-toggle-btn:hover,
.wishlist-toggle-btn.active {
    background: white;
    color: var(--danger-color);
    transform: scale(1.15);
    border-color: var(--danger-color);
}

.product-image-wrap {
    position: relative;
    width: 100%;
    height: 230px;
    overflow: hidden;
    cursor: pointer;
    background-color: #f8fafc;
}

.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image-wrap img {
    transform: scale(1.08);
}

.quick-view-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    padding: 14px;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.quick-view-overlay span {
    font-size: 13px;
    font-weight: 600;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(4px);
    padding: 5px 12px;
    border-radius: 20px;
}

.product-card:hover .quick-view-overlay {
    opacity: 1;
    transform: translateY(0);
}

.product-info {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-brand-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.product-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 8px;
    line-height: 1.35;
    cursor: pointer;
    transition: var(--transition);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title:hover {
    color: var(--primary-color);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 13px;
}

.stars {
    color: var(--star-gold);
    display: flex;
    gap: 2px;
    font-size: 12px;
}

.rating-num {
    font-weight: 700;
    color: var(--text-main);
}

.reviews-count {
    color: var(--text-muted);
    font-size: 12px;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 14px;
}

.current-price {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-main);
}

.original-price {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.discount-pill {
    font-size: 11px;
    font-weight: 700;
    background-color: #ecfdf5;
    color: var(--success-color);
    padding: 2px 7px;
    border-radius: var(--radius-sm);
}

/* Card Button Group */
.card-actions {
    display: flex;
    gap: 8px;
}

.btn-add-cart {
    flex: 1;
    padding: 11px;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
    color: white;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-add-cart:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn-add-cart:disabled,
.btn-add-cart[disabled] {
    background: #94a3b8 !important;
    color: #f8fafc !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.65;
    pointer-events: none;
}

.btn-view-details {
    padding: 11px 14px;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-view-details:hover {
    background: #e2e8f0;
    color: var(--primary-color);
}

/* Pagination Bar */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding: 15px 0;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--border-color);
    background: var(--surface-white);
    color: var(--text-main);
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.page-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================================
   SLIDE-OVER CART DRAWER & OVERLAY
   ========================================================== */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 90vw;
    height: 100%;
    background: var(--surface-white);
    z-index: 1001;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active {
    transform: translateX(0);
}

.cart-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-navy);
    display: flex;
    align-items: center;
    gap: 10px;
}

#close-cart-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

#close-cart-btn:hover {
    color: var(--text-main);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item {
    display: flex;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.cart-item img {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: #f1f5f9;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.3;
}

.cart-item-price {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qty-control button {
    width: 28px;
    height: 28px;
    background: #f8fafc;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.qty-control button:hover {
    background: #e2e8f0;
}

.qty-control span {
    width: 32px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}

.cart-item-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
}

.item-total {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-main);
}

.btn-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    padding: 4px;
}

.btn-remove:hover {
    color: var(--danger-color);
}

.empty-drawer {
    text-align: center;
    padding: 60px 20px;
}

.empty-drawer i {
    font-size: 45px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.empty-drawer p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 18px;
}

.cart-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    background: #fbfcfd;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.free-shipping-tag {
    font-weight: 700;
    color: var(--success-color);
}

.total-row {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    padding-top: 10px;
    border-top: 1px dashed var(--border-color);
    margin-bottom: 20px;
}

.checkout-btn {
    width: 100%;
    padding: 14px;
    border: none;
    background: linear-gradient(135deg, var(--accent-orange), #ea580c);
    color: white;
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    text-decoration: none;
}

.checkout-btn:hover {
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.35);
}

/* ==========================================================
   MODALS (WISHLIST & PRODUCT QUICK VIEW)
   ========================================================== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1010;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: var(--surface-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: #f1f5f9;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 22px;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: #e2e8f0;
}

.wishlist-box {
    width: 600px;
    max-width: 95vw;
    padding: 24px;
}

.product-detail-box {
    width: 800px;
    max-width: 95vw;
    padding: 30px;
}

.modal-product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.modal-product-img img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.modal-product-details h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    margin: 4px 0 10px;
}

.modal-price {
    margin: 16px 0;
}

.product-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 18px;
}

.stock-status {
    font-size: 13px;
    font-weight: 600;
    color: var(--success-color);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 22px;
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.modal-cart-btn {
    flex: 2;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-view-full-btn {
    flex: 1;
    padding: 12px;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ==========================================================
   TOAST NOTIFICATION SYSTEM
   ========================================================== */
.toast-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--dark-navy);
    color: white;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    pointer-events: auto;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.toast-success i {
    color: var(--success-color);
    font-size: 18px;
}

.toast-info i {
    color: var(--secondary-color);
    font-size: 18px;
}

.toast-fade {
    opacity: 0;
    transform: translateY(10px);
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================
   MODERN NEXORA FOOTER
   ========================================================== */
.footer {
    background-color: var(--dark-navy);
    color: #e5e7eb;
    margin-top: 60px;
    padding-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 1.8fr;
    gap: 40px;
    padding-bottom: 50px;
}

.brand-col p {
    margin: 16px 0 20px;
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 38px;
    height: 38px;
    background: #1f2937;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-col h3 {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    background: var(--primary-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-col p {
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #374151;
    border-radius: var(--radius-sm);
    background: #1f2937;
    color: white;
    font-size: 14px;
    font-family: inherit;
    outline: none;
}

.newsletter-form input:focus {
    border-color: var(--primary-color);
}

.newsletter-form button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0 18px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--primary-hover);
}

.payment-methods {
    display: flex;
    gap: 14px;
    font-size: 24px;
    color: #9ca3af;
}

.footer-bottom {
    background: #0b1120;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #9ca3af;
}

.footer-badges {
    display: flex;
    gap: 20px;
}

.footer-badges span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================
   ACCESSIBILITY & FOCUS INDICATORS
   ========================================================== */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
[tabindex="0"]:focus-visible {
    outline: 2px solid var(--primary-color) !important;
    outline-offset: 2px !important;
}

/* ==========================================================
   RESPONSIVE DESIGN (DESKTOP / TABLET / MOBILE)
   ========================================================== */
@media (max-width: 1024px) {
    .product-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .category-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .modal-product-grid {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .logo,
    .search-wrapper,
    .selected-product {
        width: 100%;
    }

    .logo {
        text-align: center;
        align-items: center;
    }

    .selected-product {
        justify-content: center;
        gap: 10px;
    }

    .navigation-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
    }

    .categories {
        justify-content: center;
    }

    .mega-dropdown {
        width: 100%;
    }

    .menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
        padding: 10px;
    }

    .hero-section {
        height: 380px;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .category-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .product-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .toolbar-right {
        justify-content: space-between;
    }

    .product-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    /* Modal Responsive */
    .modal-product-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .modal-product-img img {
        height: 240px;
    }

    .product-detail-box {
        padding: 20px;
        max-width: 95vw;
    }

    /* Cart Drawer Responsive */
    .cart-drawer {
        width: 380px;
        max-width: 92vw;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .product-container {
        grid-template-columns: 1fr;
    }
    
    .category-container {
        grid-template-columns: 1fr;
    }

    .hero-section {
        height: 320px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .selected-product {
        justify-content: space-between;
        gap: 6px;
    }

    .action-btn {
        padding: 0 10px;
        min-width: 38px;
        height: 40px;
        font-size: 13px;
    }

    .cart-drawer {
        width: 100vw;
        max-width: 100vw;
    }

    .product-detail-box {
        padding: 16px;
        max-width: 100vw;
        border-radius: 0;
    }

    .footer-badges {
        flex-direction: column;
        gap: 8px;
    }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .skeleton,
    .shimmer,
    .product-card:hover,
    .category-card:hover,
    .shake-anim {
        animation: none !important;
        transform: none !important;
        background-image: none !important;
    }
}