/* 
   SRP Enterprise - Custom Style Sheet
   Theme: Modern Tech, Premium Glassmorphism & High-contrast typography
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette - Premium White/Slate Theme */
    --bg-primary: #F8FAFC; /* Light slate background */
    --bg-secondary: #FFFFFF; /* Pure white for cards, headers, sections */
    --bg-tertiary: #F1F5F9; /* Slate 100 for subtle areas and hover states */
    --accent-color: #2563EB; /* Premium Royal Blue for active elements and links */
    --accent-glow: rgba(37, 99, 235, 0.15); /* Soft royal blue glow */
    --text-light: #334155; /* Slate 700 - primary body text with high contrast */
    --text-muted: #64748B; /* Slate 500 - readable secondary text */
    --text-dark: #0F172A; /* Slate 900 - headers and dark accents */
    --text-white: #0F172A; /* Slate 900 - mapped to headings */
    --text-white-pure: #FFFFFF; /* Actual white for button texts and badges */
    --success: #10B981; /* Emerald green for positive items, pricing */
    --warning: #F59E0B; /* Amber orange for warning and pending states */
    --danger: #EF4444; /* Red for alerts and cancel states */
    --border-color: rgba(15, 23, 42, 0.08); /* Soft slate border */
    
    /* Layout Tokens */
    --max-width: 1200px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --transition-speed: 0.3s;
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-white);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 5px;
    border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Reusable Components */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Glassmorphism Card Base */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.05);
    transition: transform var(--transition-speed) ease, border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: 0 12px 40px 0 rgba(37, 99, 235, 0.08);
}

/* Custom Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    color: var(--text-white-pure);
    box-shadow: 0 4px 15px var(--accent-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px var(--accent-glow);
    filter: brightness(1.1);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-color);
    border: 1.5px solid var(--accent-color);
}
.btn-secondary:hover {
    background: rgba(37, 99, 235, 0.06);
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--success);
    color: var(--text-white-pure);
}
.btn-accent:hover {
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger);
    color: var(--text-white-pure);
}
.btn-danger:hover {
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
}

.btn-disabled {
    background: var(--bg-tertiary) !important;
    color: var(--text-muted) !important;
    cursor: not-allowed;
    box-shadow: none !important;
    transform: none !important;
}

/* Custom Header / Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

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

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--accent-color), #0072FF);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px var(--accent-glow);
}

.logo-text h1 {
    font-size: 20px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.logo-text span {
    font-size: 10px;
    color: var(--accent-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    display: block;
}

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

.nav-link {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: var(--text-light);
    position: relative;
    padding: 6px 0;
}
.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed) ease;
}
.nav-link:hover {
    color: var(--accent-color);
}
.nav-link:hover:after {
    width: 100%;
}
.nav-link.active {
    color: var(--accent-color);
}
.nav-link.active:after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-btn {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    width: 45px;
    height: 45px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.cart-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--text-light);
    transition: fill var(--transition-speed) ease;
}
.cart-btn:hover svg {
    fill: var(--accent-color);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: var(--text-white-pure);
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.3);
}

/* Burger menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
}
.menu-toggle span {
    width: 26px;
    height: 3px;
    background: var(--text-light);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Home Hero Section */
.hero {
    padding: 120px 0 80px 0;
    position: relative;
    overflow: hidden;
}
.hero:before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.15) 0%, rgba(10, 25, 47, 0) 70%);
    z-index: -1;
}
.hero:after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.1) 0%, rgba(10, 25, 47, 0) 70%);
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-content h2 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-white) 30%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-content h2 span {
    color: var(--accent-color);
    -webkit-text-fill-color: var(--accent-color);
}

.hero-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.stat-item h4 {
    font-size: 28px;
    color: var(--accent-color);
    margin-bottom: 2px;
}
.stat-item p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration {
    width: 100%;
    max-width: 480px;
    filter: drop-shadow(0 20px 40px rgba(0, 210, 255, 0.2));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* Feature/Category Section */
.section {
    padding: 80px 0;
}
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header h3 {
    font-size: 36px;
    margin-bottom: 12px;
}
.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.category-card {
    text-align: center;
    cursor: pointer;
}

.category-icon {
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    color: var(--accent-color);
    border: 1px solid rgba(37, 99, 235, 0.12);
    transition: all var(--transition-speed) ease;
    overflow: hidden; /* Prevent image overflow */
}
.category-card:hover .category-icon {
    background: rgba(37, 99, 235, 0.12);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.15);
}

.category-card h4 {
    font-size: 18px;
    margin-bottom: 8px;
}
.category-card p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Services Catalog Page */
.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin-top: 40px;
}

.catalog-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.search-box {
    position: relative;
    margin-bottom: 30px;
}
.search-box input {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 14px 20px 14px 45px;
    color: var(--text-light);
    font-size: 15px;
    transition: all var(--transition-speed) ease;
}
.search-box input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.15);
}
.search-box svg {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    fill: var(--text-muted);
}

.filter-group-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 700;
}

.filter-tabs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
}

.filter-tab-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--border-radius-sm);
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all var(--transition-speed) ease;
}
.filter-tab-btn:hover, .filter-tab-btn.active {
    background: var(--bg-secondary);
    color: var(--accent-color);
    border-color: rgba(0, 210, 255, 0.15);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Force exactly 2 columns side-by-side */
    gap: 20px;
}

.service-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 24px;
}

.service-card-icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    margin-bottom: 6px;
    display: block;
}

.service-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.service-category-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-color);
    background: rgba(0, 210, 255, 0.08);
    padding: 3px 8px;
    border-radius: 20px;
    border: 0.5px solid rgba(0, 210, 255, 0.15);
}

.service-card h4 {
    font-size: 18px;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Clamp title to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-bottom: 2px; /* Prevent baseline clipping on Outfit font */
}

.service-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Clamp description to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    margin-top: auto;
}

.service-price {
    display: flex;
    flex-direction: column;
}
.service-price span:first-child {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
}
.service-price span:last-child {
    font-size: 19px;
    font-weight: 700;
    color: var(--success);
    font-family: 'Outfit', sans-serif;
}

/* Mobile responsive adjustments for detailed, flexible layout */
@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* Retain 2-columns side-by-side */
        gap: 12px;
    }
    .service-card {
        padding: 16px 14px;
        aspect-ratio: auto; /* Remove fixed aspect ratio to prevent content collapse */
        min-height: auto;
        display: flex;
        flex-direction: column;
    }
    .service-card-icon img {
        width: 32px;
        height: 32px;
        margin-bottom: 2px;
    }
    .service-card h4 {
        font-size: 15px !important; /* Scale down title and override large inline styles */
        margin-bottom: 6px;
        line-height: 1.35;
        padding-bottom: 2px;
    }
    .service-card p {
        display: -webkit-box; /* Restore description visibility on mobile */
        -webkit-line-clamp: 2; /* Clamp to 2 lines for uniform card heights */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 11.5px;
        line-height: 1.4;
        margin-bottom: 12px;
        color: var(--text-muted);
    }
    .service-price span:last-child {
        font-size: 15px;
    }
    .add-to-cart-btn {
        padding: 8px 10px !important;
        font-size: 11px !important;
    }
    .service-card-icon {
        margin-bottom: 4px !important;
    }
}


/* Cart Page styles */
.cart-table-container {
    overflow-x: auto;
    margin-bottom: 30px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.cart-table th {
    border-bottom: 2px solid var(--border-color);
    padding: 16px;
    font-family: 'Outfit', sans-serif;
    color: var(--text-muted);
    font-weight: 600;
}
.cart-table td {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 16px;
    vertical-align: middle;
}

.cart-item-info h5 {
    font-size: 16px;
    margin-bottom: 4px;
}
.cart-item-info span {
    font-size: 12px;
    color: var(--accent-color);
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: var(--border-radius-sm);
    width: fit-content;
}
.qty-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qty-btn:hover {
    color: var(--accent-color);
}
.qty-val {
    width: 40px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
}

.btn-remove {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-remove:hover {
    filter: brightness(1.2);
}

.cart-summary-card {
    position: sticky;
    top: 100px;
}
.cart-summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}
.cart-summary-line.total {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    font-size: 18px;
    font-weight: 700;
}
.cart-summary-line.total span:last-child {
    color: var(--success);
}

/* Form Styling (Login, Register, Checkout) */
.auth-container {
    max-width: 480px;
    margin: 60px auto;
}

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

.form-group label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-light);
}

.form-control {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    color: var(--text-white);
    font-size: 15px;
    font-family: inherit;
    transition: all var(--transition-speed) ease;
}
.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.alert {
    padding: 16px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 24px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.alert-danger {
    background: rgba(255, 94, 98, 0.1);
    border: 1.5px solid var(--danger);
    color: var(--danger);
}
.alert-success {
    background: rgba(100, 255, 218, 0.1);
    border: 1.5px solid var(--success);
    color: var(--success);
}

/* Checkout Page Specifics */
.checkout-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    margin-top: 40px;
}

.visit-option-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--bg-secondary);
    transition: all var(--transition-speed) ease;
}
.visit-option-card:hover {
    border-color: var(--accent-color);
}
.visit-option-card.active {
    border-color: var(--accent-color);
    background: rgba(0, 210, 255, 0.05);
}
.visit-option-radio {
    margin-top: 4px;
}
.visit-option-info h5 {
    font-size: 16px;
    margin-bottom: 4px;
}
.visit-option-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.visit-option-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--success);
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.slot-pill {
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: var(--border-radius-sm);
    padding: 12px;
    text-align: center;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
}
.slot-pill:hover {
    border-color: var(--accent-color);
}
.slot-pill.active {
    background: var(--accent-color);
    color: var(--text-white-pure);
    border-color: var(--accent-color);
    font-weight: 700;
}

/* User Dashboard & Invoices */
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    margin-top: 40px;
}

.dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dashboard-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--border-radius-sm);
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    cursor: pointer;
}
.dashboard-nav-item.active, .dashboard-nav-item:hover {
    background: var(--bg-secondary);
    color: var(--accent-color);
}

.booking-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: var(--bg-secondary);
    padding: 24px;
    margin-bottom: 20px;
}
.booking-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 16px;
}
.booking-id {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 18px;
}
.booking-date-time {
    font-size: 13px;
    color: var(--text-muted);
}

/* Badge Styles */
.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-pending {
    background: rgba(255, 174, 0, 0.1);
    color: var(--warning);
    border: 1px solid var(--warning);
}
.badge-confirmed {
    background: rgba(0, 210, 255, 0.1);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}
.badge-completed {
    background: rgba(100, 255, 218, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}
.badge-cancelled {
    background: rgba(255, 94, 98, 0.1);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.booking-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.booking-details-group label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}
.booking-details-group p {
    font-size: 14px;
    font-weight: 500;
}

/* Footer styling */
footer {
    background: #0F172A; /* Premium Slate 900 footer */
    border-top: 1px solid var(--border-color);
    padding: 80px 0 30px 0;
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 8px;
    color: var(--text-white-pure); /* Explicitly white for dark footer contrast */
}
.footer-col h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-col p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
}
.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 14px;
}
.footer-contact-item svg {
    width: 20px;
    height: 20px;
    fill: var(--accent-color);
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-content h2 {
        font-size: 44px;
    }
    .hero-content p {
        margin: 0 auto 30px auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .catalog-layout {
        grid-template-columns: 1fr;
    }
    .catalog-sidebar {
        position: static;
    }
    .checkout-layout {
        grid-template-columns: 1fr;
    }
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-primary);
        flex-direction: column;
        padding: 40px;
        transition: left 0.3s ease;
        border-top: 1px solid var(--border-color);
    }
    .nav-menu.open {
        left: 0;
    }
    .menu-toggle {
        display: flex;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* Profile Dropdown Styles */
.profile-dropdown-container {
    position: relative;
    display: inline-block;
}

.profile-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    width: 45px;
    height: 45px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-light);
    transition: all var(--transition-speed) ease;
}

.profile-btn:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.profile-dropdown-menu {
    position: absolute;
    top: 100%; /* Flush with the header to prevent losing hover state */
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    width: 220px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    display: none;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
    animation: fadeIn 0.2s ease;
}

/* Show menu on hover */
.profile-dropdown-container:hover .profile-dropdown-menu {
    display: flex;
}

.profile-dropdown-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.profile-dropdown-header strong {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    color: var(--text-dark); /* Dark text color */
    display: block;
}

.profile-dropdown-header span {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
}

.profile-dropdown-item {
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-light);
    transition: all var(--transition-speed) ease;
    display: block;
    text-align: left;
}

.profile-dropdown-item:hover {
    background: rgba(37, 99, 235, 0.05);
    color: var(--accent-color);
    padding-left: 22px;
}

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


/* Sticky Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--border-color);
    display: none; /* Hidden on desktop */
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
    padding: 0 10px;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 600;
    gap: 4px;
    padding: 8px 0;
    flex-grow: 1;
    transition: all 0.2s ease;
}

.mobile-nav-item svg {
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.mobile-nav-item:hover, .mobile-nav-item.active {
    color: var(--accent-color);
}

.mobile-nav-item.active svg {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Media Query to show bottom nav on mobile and adjust body padding */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
    body {
        padding-bottom: 65px; /* Prevent footer content from being blocked by sticky nav */
    }
}

