/* ===================================================
   ⚡ Electronics Store - Cyber Luxe & Tech Aesthetic
   Theme Variables & Modern Styling
=================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Primary Cyber Palette */
    --primary-color: #4f46e5;          /* Electric Indigo */
    --primary-hover: #4338ca;          /* Deep Indigo */
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #3b82f6 50%, #06b6d4 100%);
    --btn-gradient: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    --btn-gradient-hover: linear-gradient(135deg, #4338ca 0%, #2563eb 100%);
    
    /* Accents */
    --secondary-color: #06b6d4;        /* Cyber Cyan */
    --accent-violet: #8b5cf6;          /* Electric Violet */
    --accent-emerald: #10b981;         /* Fresh Emerald */
    --accent-rose: #f43f5e;            /* Tech Rose */
    
    /* Neutrals & Surfaces */
    --bg-color: #f8fafc;               /* Clean Slate Light */
    --card-bg: #ffffff;                /* Crisp Pure White */
    --dark-bg: #0f172a;                /* Obsidian Slate */
    --text-color: #0f172a;             /* Deep Titanium Slate */
    --text-muted: #64748b;             /* Subtle Cool Slate */
    --border-color: #e2e8f0;           /* Soft Border */
    --border-hover: #c7d2fe;           /* Glowing Border Accent */
    
    /* Shadows & Radii */
    --shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
    --shadow-hover: 0 20px 30px -10px rgba(79, 70, 229, 0.18), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-glow: 0 8px 25px rgba(79, 70, 229, 0.35);
    --radius: 14px;
    --radius-sm: 8px;
    --radius-full: 9999px;
    
    /* Hero Image */
    --hero-bg-image: url('../images/hero-tech.jpg');
}

/* ===================================================
   General Reset & Base Typography
=================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ===================================================
   Glassmorphic Header & Navbar
=================================================== */
.navbar {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 16px 0;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-size: 23px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    transition: transform 0.2s;
}

.logo:hover {
    transform: scale(1.02);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 15px;
    position: relative;
    padding: 6px 0;
    transition: color 0.25s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 2px;
    transition: width 0.25s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* ===================================================
   Navbar Action Buttons
=================================================== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    line-height: 1.4;
    white-space: nowrap;
}

.btn-login {
    color: var(--primary-color);
    background-color: #ffffff;
    border: 1.5px solid #c7d2fe;
}

.btn-login:hover {
    background-color: #eef2ff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
    transform: translateY(-1px);
}

.btn-register {
    color: #ffffff;
    background-color: var(--dark-bg);
    border: 1.5px solid var(--dark-bg);
}

.btn-register:hover {
    background-color: #1e293b;
    border-color: #1e293b;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
    transform: translateY(-1px);
}

.cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    background: var(--btn-gradient);
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 700;
    border: 1.5px solid transparent;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.28);
    white-space: nowrap;
}

.cart-btn:hover {
    background: var(--btn-gradient-hover);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.42);
    transform: translateY(-1px);
    color: #ffffff !important;
}

.btn-profile {
    color: var(--text-color);
    background-color: #f1f5f9;
    border: 1.5px solid #e2e8f0;
}

.btn-profile:hover {
    background-color: #e2e8f0;
    color: var(--primary-color);
    border-color: #c7d2fe;
    transform: translateY(-1px);
}

.btn-logout {
    color: #dc2626;
    background-color: #fef2f2;
    border: 1.5px solid #fecaca;
}

.btn-logout:hover {
    background-color: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
    transform: translateY(-1px);
}

/* ===================================================
   Hero Section - Cyber Tech Glow
=================================================== */
.hero {
    position: relative;
    background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.84) 0%, rgba(30, 27, 75, 0.88) 55%, rgba(15, 23, 42, 0.92) 100%), var(--hero-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    text-align: center;
    padding: 115px 0;
    margin-bottom: 35px;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.hero-content {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 46px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.18;
    color: #ffffff;
    letter-spacing: -1px;
}

.hero p {
    font-size: 19px;
    margin-bottom: 30px;
    color: #e2e8f0;
    font-weight: 400;
    line-height: 1.6;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--btn-gradient);
    color: #ffffff !important;
    padding: 14px 34px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--btn-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.55);
}

/* ===================================================
   Section Headers
=================================================== */
.section-title {
    text-align: center;
    margin: 55px 0 30px;
    font-size: 30px;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: -0.5px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 4px;
    margin: 10px auto 0;
}

/* ===================================================
   Category Cards Grid
=================================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 20px;
    margin-bottom: 55px;
}

.category-card {
    background-color: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius);
    padding: 26px 18px;
    text-align: center;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.category-icon {
    font-size: 34px;
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    transition: all 0.25s ease;
}

.category-card h3 {
    font-size: 16px;
    color: var(--text-color);
    font-weight: 700;
    transition: color 0.25s ease;
}

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

.category-card:hover .category-icon {
    background: var(--btn-gradient);
    color: #ffffff;
    transform: scale(1.08) rotate(3deg);
}

.category-card:hover h3 {
    color: var(--primary-color);
}

/* ===================================================
   Product Cards & Grid
=================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 26px;
    margin-bottom: 65px;
}

.product-card {
    background-color: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-img-wrapper {
    width: 100%;
    height: 220px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    overflow: hidden;
    position: relative;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.06);
}

.product-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    display: inline-block;
    align-self: flex-start;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--primary-color);
    background-color: #eef2ff;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.product-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
    line-height: 1.35;
}

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

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.product-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.add-cart-btn {
    background: var(--btn-gradient);
    border: none;
    color: #ffffff;
    padding: 9px 18px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    transition: all 0.25s ease;
}

.add-cart-btn:hover {
    background: var(--btn-gradient-hover);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
    transform: translateY(-1px);
}

/* ===================================================
   Single Product Details Page
=================================================== */
.product-details-wrapper {
    background-color: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 40px;
    margin: 40px auto 60px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 45px;
    align-items: center;
}

.details-img-wrapper {
    width: 100%;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid var(--border-color);
}

.details-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.details-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.details-info h1 {
    font-size: 34px;
    font-weight: 800;
    color: var(--text-color);
    line-height: 1.2;
}

.details-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.details-desc {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
}

.quantity-control input {
    width: 75px;
    padding: 12px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
}

.quantity-control input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* ===================================================
   Auth Forms (Login & Register)
=================================================== */
.auth-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px 15px;
}

.auth-card {
    background-color: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    width: 100%;
    max-width: 440px;
    padding: 40px 34px;
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-header h2 {
    color: var(--text-color);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text-color);
    background-color: #f8fafc;
    outline: none;
    transition: all 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    background-color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.auth-btn {
    width: 100%;
    background: var(--btn-gradient);
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
    transition: all 0.25s ease;
    margin-top: 10px;
}

.auth-btn:hover {
    background: var(--btn-gradient-hover);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
    transform: translateY(-1px);
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ===================================================
   Category Banner / Filter Page
=================================================== */
.category-banner {
    background-color: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 18px;
    padding: 30px;
    margin: 30px 0 40px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.category-banner-info h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-banner-info p {
    color: var(--text-muted);
    font-size: 15px;
    margin-top: 5px;
}

.back-link {
    text-decoration: none;
    color: var(--text-color);
    background-color: #f1f5f9;
    border: 1.5px solid var(--border-color);
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.25s ease;
}

.back-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: #eef2ff;
}

/* ===================================================
   Shopping Cart Page
=================================================== */
.cart-wrapper {
    margin: 40px auto 60px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

.cart-card {
    background-color: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 18px;
    padding: 28px;
    box-shadow: var(--shadow);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th, 
.cart-table td {
    padding: 16px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.cart-table th {
    background-color: #f8fafc;
    color: var(--text-color);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-item img {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.cart-item-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-color);
}

.cart-qty-input {
    width: 60px;
    padding: 8px 10px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    outline: none;
}

.btn-remove {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 20px;
    cursor: pointer;
    text-decoration: none;
    padding: 6px;
    transition: transform 0.2s, color 0.2s;
}

.btn-remove:hover {
    color: #b91c1c;
    transform: scale(1.18);
}

/* Summary Card */
.summary-card {
    background-color: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 18px;
    padding: 28px;
    box-shadow: var(--shadow);
}

.summary-card h3 {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-color);
    border-bottom: 1.5px solid var(--border-color);
    padding-bottom: 12px;
}

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

.summary-total {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-color);
    border-top: 1.5px dashed var(--border-color);
    padding-top: 16px;
    margin-top: 16px;
}

.checkout-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--btn-gradient);
    color: #ffffff !important;
    text-decoration: none;
    padding: 15px;
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 700;
    margin-top: 22px;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
}

.checkout-btn:hover {
    background: var(--btn-gradient-hover);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.5);
    transform: translateY(-2px);
}

/* ===================================================
   User Profile & Order History
=================================================== */
.profile-wrapper {
    margin: 40px auto 60px;
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 30px;
    align-items: start;
}

.profile-card {
    background-color: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 18px;
    padding: 34px 24px;
    box-shadow: var(--shadow);
    text-align: center;
}

.profile-avatar {
    width: 86px;
    height: 86px;
    background: var(--btn-gradient);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    margin: 0 auto 16px;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.profile-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 5px;
}

.profile-email {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 25px;
    word-break: break-all;
}

.orders-card {
    background-color: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 18px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1.5px solid var(--border-color);
}

.orders-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-color);
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th, 
.orders-table td {
    padding: 16px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.orders-table th {
    background-color: #f8fafc;
    color: var(--text-color);
    font-weight: 700;
}

.badge {
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
}

.badge-pending {
    background-color: #fef3c7;
    color: #b45309;
}

.badge-completed {
    background-color: #d1fae5;
    color: #065f46;
}

.btn-view-order {
    display: inline-block;
    background-color: #f1f5f9;
    color: var(--primary-color);
    border: 1px solid #c7d2fe;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-view-order:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
}

/* ===================================================
   Alerts & Notifications (Modern Success & Error)
=================================================== */
.alert {
    padding: 14px 20px;
    margin: 20px 0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    box-sizing: border-box;
    transition: all 0.3s ease;
    border: 1px solid #a7f3d0;
    background-color: #ecfdf5;
    color: #065f46;
}

.alert-danger {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

/* ===================================================
   Promotional Banners (Promo Grid)
=================================================== */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 26px;
    margin: 45px 0 65px;
}

.promo-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 250px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-end;
    padding: 32px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.promo-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.88) 100%);
    z-index: 1;
    transition: background 0.3s ease;
}

.promo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.promo-card:hover::before {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.94) 100%);
}

.promo-card img.promo-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.promo-card:hover img.promo-bg {
    transform: scale(1.08);
}

.promo-content {
    position: relative;
    z-index: 2;
}

.promo-badge {
    display: inline-block;
    background: var(--btn-gradient);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 10px;
}

.promo-card h3 {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
    line-height: 1.25;
}

.promo-card p {
    font-size: 14px;
    color: #e2e8f0;
    margin-bottom: 12px;
}

.promo-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #38bdf8;
    transition: gap 0.2s;
}

.promo-card:hover .promo-link {
    gap: 10px;
    color: #ffffff;
}

/* ===================================================
   Footer - Dark Midnight Obsidian
=================================================== */
.footer {
    background-color: var(--dark-bg);
    border-top: 3px solid;
    border-image: var(--primary-gradient) 1;
    padding: 35px 0;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
    margin-top: 60px;
}

.footer p {
    color: #94a3b8;
    font-weight: 500;
}

/* ===================================================
   Responsive Mobile Optimization
=================================================== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }

    .nav-links {
        gap: 16px;
        font-size: 14px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .hero {
        padding: 75px 0;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
    }

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

    .product-details-wrapper {
        grid-template-columns: 1fr;
        padding: 22px;
        gap: 25px;
    }

    .details-img-wrapper {
        height: 280px;
    }

    .profile-wrapper {
        grid-template-columns: 1fr;
    }

    .cart-wrapper {
        grid-template-columns: 1fr;
    }

    .cart-table, .orders-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
