/* ======== CSS VARIABLES & RESET ======== */
@font-face {
    font-family: 'Proxima Soft';
    src: url('./assets/fonts/proxima_soft_bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

:root {
    --bg-color: #050505;
    --surface-color: #121212;
    --surface-light: #1f1f1f;
    --primary: #3b82f6; /* Blue */
    --accent: #8b5cf6; /* Purple */
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border: rgba(255,255,255,0.1);
    --glass-bg: rgba(18, 18, 18, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
    
    --font-main: 'Proxima Soft', sans-serif;
    --font-display: 'Proxima Soft', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button, input { font-family: inherit; border: none; outline: none; }

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* ======== ANIMATIONS ======== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ======== NAVBAR ======== */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.brand-logo .accent { color: var(--primary); }

.search-container {
    display: flex;
    align-items: center;
    background: var(--surface-light);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    width: 350px;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.search-container:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.search-input {
    background: transparent;
    color: var(--text-main);
    width: 100%;
    padding: 0.25rem 0.5rem;
}

.search-btn {
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
}
.search-btn:hover { color: var(--primary); }

.nav-links {
    display: flex;
    gap: 2rem;
    font-weight: 500;
}

.nav-links a {
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 0; height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: var(--transition);
}
.nav-links a:hover::after { width: 100%; }

.highlight-link { color: #f43f5e; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-btn {
    background: transparent;
    color: var(--text-main);
    font-size: 1.25rem;
    cursor: pointer;
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px; right: -10px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 50%;
    width: 18px; height: 18px;
    display: flex;
    align-items: center; justify-content: center;
}

.login-btn {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}
.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: var(--text-main);
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    font-size: 1.1rem;
}
.mobile-menu-link:hover, .mobile-menu-link.highlight-link {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
}

/* ======== HERO SECTION ======== */
.hero {
    margin-top: 80px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    padding: 4rem 2rem;
    margin-left: auto; margin-right: auto;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    animation: fadeIn 1s ease forwards;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}
.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.6);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    animation: fadeIn 1.2s ease forwards, float 6s ease-in-out infinite;
}

.glow-effect {
    position: absolute;
    width: 300px; height: 300px;
    background: var(--accent);
    filter: blur(150px);
    opacity: 0.3;
    z-index: -1;
    border-radius: 50%;
}

.hero-image img {
    max-width: 100%;
    border-radius: 20px;
    /* Removed drop-shadow mapping if normal, keeping image aesthetic */
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid var(--border);
}

/* ======== MAIN CONTENT (PRODUCTS) ======== */
.main-container {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
}
.section-title.center {
    text-align: center;
    width: 100%;
    margin-bottom: 1rem;
}

.filter-tabs {
    display: flex;
    gap: 1rem;
    background: var(--surface-color);
    padding: 0.5rem;
    border-radius: 50px;
    border: 1px solid var(--border);
}

.tab {
    padding: 0.6rem 1.5rem;
    background: transparent;
    color: var(--text-muted);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.tab.active, .tab:hover {
    background: var(--surface-light);
    color: var(--text-main);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--surface-color);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4), 0 0 20px rgba(59, 130, 246, 0.1);
}

.discount-badge {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    background: #f43f5e;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(244, 63, 94, 0.4);
}

.product-img-wrapper {
    width: 100%;
    height: 200px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.05);
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-pill {
    align-self: flex-start;
    font-size: 0.75rem;
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
}
.category-pill.gaming {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
}
.category-pill.office {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
}

.product-name {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-family: var(--font-display);
}

.product-specs {
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.product-specs span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--surface-light);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
}

.product-price {
    margin-top: auto;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.current-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}
.old-price {
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.add-to-cart-btn {
    width: 100%;
    padding: 0.8rem;
    border-radius: 12px;
    background: var(--surface-light);
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}
.add-to-cart-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ======== SUPPORT & WARRANTY POLICY ======== */
.support-section {
    background: var(--surface-color);
    padding: 5rem 2rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.support-features {
    max-width: 1400px;
    margin: 0 auto 5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-box {
    text-align: center;
    padding: 2rem;
    background: var(--surface-light);
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.feature-box:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-box h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.feature-box p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.qa-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.accordion-item {
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 1.2rem;
    background: transparent;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}
.accordion-header:hover { color: var(--primary); }

.accordion-header i { transition: transform 0.3s ease; }
.accordion-header.active i { transform: rotate(180deg); color: var(--primary); }

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 1.2rem;
    color: var(--text-muted);
}
.accordion-header.active + .accordion-content {
    max-height: 200px; /* arbitrary max height */
    padding-bottom: 1.2rem;
}

/* ======== FOOTER ======== */
.footer {
    padding: 4rem 2rem 2rem;
    background: var(--bg-color);
    max-width: 1400px;
    margin: 0 auto;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}
.social-links a {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--surface-light);
    display: flex;
    align-items: center; justify-content: center;
    transition: var(--transition);
}
.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-links h3, .footer-newsletter h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
}

.footer-links ul li { margin-bottom: 0.8rem; }
.footer-links ul li a {
    color: var(--text-muted);
    transition: var(--transition);
    font-size: 0.95rem;
}
.footer-links ul li a:hover { color: var(--primary); }

.footer-newsletter p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    margin-bottom: 1.5rem;
}
.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    border-radius: 8px 0 0 8px;
    background: var(--surface-light);
    color: var(--text-main);
    border: 1px solid var(--border);
    border-right: none;
}
.newsletter-form button {
    padding: 0.8rem 1.5rem;
    border-radius: 0 8px 8px 0;
    background: var(--primary);
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}
.newsletter-form button:hover {
    background: var(--accent);
}

.certifications {
    display: flex;
    gap: 1rem;
}
.cert-img {
    height: 40px;
    border-radius: 4px;
    opacity: 0.8;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ======== MODAL ======== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content.glass-panel {
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    width: 100%;
    max-width: 450px;
    padding: 2.5rem;
    position: relative;
    transform: scale(0.9);
    transition: var(--transition);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}
.close-btn:hover { color: var(--text-main); transform: rotate(90deg); }

.modal-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.auth-tab {
    background: transparent;
    color: var(--text-muted);
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-display);
    padding-bottom: 0.5rem;
    cursor: pointer;
    position: relative;
}
.auth-tab.active { color: var(--text-main); }
.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; width: 100%; height: 2px;
    background: var(--primary);
}

.auth-form {
    display: none;
    animation: fadeIn 0.3s ease forwards;
}
.auth-form.active { display: block; }

.input-group {
    position: relative;
    margin-bottom: 1.2rem;
}
.input-group i {
    position: absolute;
    top: 50%; left: 1rem;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.input-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-main);
    transition: var(--transition);
}
.input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}
.forgot-pwd { color: var(--primary); }
.forgot-pwd:hover { text-decoration: underline; }

.w-100 { width: 100%; }

.social-login {
    margin-top: 2rem;
    text-align: center;
}
.social-login p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    position: relative;
}
.social-login p::before, .social-login p::after {
    content: '';
    position: absolute;
    top: 50%; width: 30%; height: 1px;
    background: var(--border);
}
.social-login p::before { left: 0; }
.social-login p::after { right: 0; }

.social-btns {
    display: flex;
    gap: 1rem;
}
.btn-social {
    flex: 1;
    padding: 0.8rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-main);
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}
.btn-social:hover {
    background: var(--surface-light);
}
.btn-social.google { color: #ea4335; }
.btn-social.facebook { color: #1877f2; }

/* ======== CART DRAWER ======== */
.cart-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0; right: 0;
    width: 420px;
    max-width: 100%;
    height: 100%;
    background: var(--surface-color);
    border-left: 1px solid var(--border);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
}
.cart-drawer.open {
    transform: translateX(0);
}

.cart-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.cart-drawer-header h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.cart-drawer-header h3 i {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cart-drawer-count {
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-family: var(--font-main);
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: 50px;
    -webkit-text-fill-color: white;
}

.cart-drawer-close {
    background: transparent;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 0.3rem;
    border-radius: 8px;
}
.cart-drawer-close:hover {
    color: var(--text-main);
    background: var(--surface-light);
}

.cart-drawer-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--surface-light) transparent;
}

/* Cart Item */
.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    animation: fadeIn 0.3s ease;
}
.cart-item:last-child {
    border-bottom: none;
}

.cart-item-img {
    width: 75px;
    height: 75px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface-light);
    flex-shrink: 0;
    border: 1px solid var(--border);
}
.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.cart-item-name {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--surface-light);
    border: 1px solid var(--border);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.7rem;
    transition: var(--transition);
}
.qty-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.qty-value {
    font-weight: 700;
    min-width: 28px;
    text-align: center;
    font-size: 0.9rem;
}

.cart-item-remove {
    margin-left: auto;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.3rem;
    border-radius: 6px;
    transition: var(--transition);
}
.cart-item-remove:hover {
    color: #f43f5e;
    background: rgba(244, 63, 94, 0.1);
}

/* Cart Empty State */
.cart-drawer-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    color: var(--text-muted);
    padding: 2rem;
}
.cart-drawer-empty i {
    font-size: 3.5rem;
    opacity: 0.3;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.cart-drawer-empty p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}
.cart-drawer-empty span {
    font-size: 0.9rem;
}

/* ======== MOBILE MENU DRAWER ======== */
.drawer-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 1050;
    opacity: 0; visibility: hidden;
    transition: var(--transition);
}
.drawer-overlay.open {
    opacity: 1; visibility: visible;
}

.drawer {
    position: fixed;
    top: 0; bottom: 0;
    width: 100%; max-width: 320px;
    background: var(--surface-color);
    z-index: 1051;
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
}
.drawer.right-drawer {
    right: 0;
    transform: translateX(100%);
}
.drawer.open {
    transform: translateX(0);
}
.drawer-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.drawer-header h3 { font-size: 1.2rem; display: flex; align-items: center; gap: 0.5rem; }
.drawer-close {
    background: transparent; border: none; font-size: 1.3rem; color: var(--text-muted); cursor: pointer; transition: 0.3s;
}
.drawer-close:hover { color: #f43f5e; }
.drawer-body {
    flex: 1;
    overflow-y: auto;
}

/* Cart Footer */
.cart-drawer-footer {
    border-top: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
    flex-shrink: 0;
    background: var(--surface-light);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1rem;
}
.cart-total-price {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--primary);
}

.cart-checkout-btn {
    width: 100%;
    margin-bottom: 0.6rem;
    text-align: center;
    justify-content: center;
}

.cart-clear-btn {
    width: 100%;
    padding: 0.6rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
}
.cart-clear-btn:hover {
    border-color: #f43f5e;
    color: #f43f5e;
    background: rgba(244, 63, 94, 0.05);
}

/* ======== USER PROFILE (NAVBAR) ======== */
.user-profile {
    position: relative;
    display: flex;
    align-items: center;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 0.4rem 1rem 0.4rem 0.4rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-main);
}
.user-profile-btn:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(139, 92, 246, 0.25));
    border-color: var(--accent);
    transform: translateY(-1px);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 1.3rem;
    overflow: hidden;
}
.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-display-name {
    font-weight: 600;
    font-size: 0.9rem;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-chevron {
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}
.user-profile-btn:hover .user-chevron {
    color: var(--primary);
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 260px;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    z-index: 1001;
}
.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-user-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem;
    margin-bottom: 0.25rem;
}

.dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 1.6rem;
    overflow: hidden;
    flex-shrink: 0;
}
.dropdown-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.dropdown-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

.dropdown-role {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: capitalize;
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    padding: 0.7rem 0.8rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 10px;
    transition: var(--transition);
    font-family: inherit;
}
.dropdown-item:hover {
    background: rgba(244, 63, 94, 0.1);
    color: #f43f5e;
}
.dropdown-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* ======== TOAST NOTIFICATION ======== */
.toast-notification {
    position: fixed;
    top: 90px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    z-index: 3000;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.4s ease, transform 0.4s ease, top 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    width: 380px;
    backdrop-filter: blur(10px);
    pointer-events: auto;
}
.toast-notification.show {
    opacity: 1;
    transform: translateX(0);
}
.toast-notification.hide {
    opacity: 0;
    transform: translateX(40px);
}
.toast-notification i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast-info {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #93c5fd;
}
.toast-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}
.toast-error {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #fda4af;
}

/* ======== NEW PAGES ======== */
.page-content {
    padding-top: 100px;
    min-height: 100vh;
    background: var(--bg-color);
}
.page-header {
    text-align: center;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(180deg, rgba(var(--primary-rgb, 99, 102, 241), 0.08) 0%, transparent 100%);
}
.page-title {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.page-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}
.content-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}
.content-section {
    background: var(--surface-color);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}
.content-section h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.content-section h2 i {
    color: var(--primary);
}
.content-section p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.2rem;
}
.info-card {
    padding: 1.5rem;
    border-radius: 14px;
    text-align: center;
    transition: var(--transition);
}
.info-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}
.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.3rem;
    color: white;
}
.info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.info-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    text-align: center;
}
.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: var(--font-display);
}
.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

/* Policy List */
.policy-list {
    list-style: none;
    padding: 0;
}
.policy-list li {
    position: relative;
    padding: 0.8rem 0 0.8rem 1.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    line-height: 1.6;
}
.policy-list li:last-child {
    border-bottom: none;
}
.policy-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 0.8rem;
}

/* Job Cards */
.job-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.job-card {
    padding: 1.5rem;
    border-radius: 14px;
    transition: var(--transition);
}
.job-card:hover {
    border-color: var(--primary);
}
.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}
.job-header h3 {
    font-size: 1.1rem;
}
.job-tag {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    padding: 0.25rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}
.job-tag.tech {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}
.job-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}
.job-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.job-meta i {
    color: var(--primary);
    margin-right: 0.3rem;
}

/* Feedback & Profile Forms */
.feedback-form,
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.form-group label i {
    color: var(--primary);
    font-size: 0.85rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}
.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Inline Field Save */
.inline-input-wrap {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.inline-input-wrap input {
    flex: 1;
}
.inline-save-btn {
    padding: 0.6rem 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
    animation: fadeIn 0.2s ease;
}
.inline-save-btn:hover {
    background: var(--primary-dark, #4f46e5);
    transform: translateY(-1px);
}
.inline-save-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.w-100 { width: 100%; }

/* Toggle Switch */
.settings-toggles {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border);
}
.toggle-row:last-child {
    border-bottom: none;
}
.toggle-info h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}
.toggle-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.toggle-switch {
    position: relative;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 28px;
    transition: 0.3s;
}
.toggle-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    left: 2px;
    bottom: 2px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider {
    background: var(--primary);
    border-color: var(--primary);
}
.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

/* ======== RESPONSIVE ======== */
@media (max-width: 1024px) {
    .hero { flex-direction: column; text-align: center; }
    .hero-buttons { justify-content: center; }
    .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links, .search-container, .nav-actions .login-btn, .nav-actions .user-profile { display: none !important; }
    .nav-actions { gap: 1rem; }
    .mobile-menu-btn { display: block; }
    .hero-title { font-size: 2.8rem; }
    .section-header { flex-direction: column; align-items: flex-start; }
    .footer-container { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .user-display-name { display: none; }
    .user-chevron { display: none; }
    .toast-notification { right: 10px; left: 10px; width: auto; }
    .page-title { font-size: 2rem; }
    .form-row { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

