:root {
    /* Brand Colors - Premium Violet/Indigo */
    --primary: #5d5fef;
    --primary-dark: #4b4dcf;
    --primary-light: #8385ff;
    --accent: #00d2d3;

    /* Functional Colors */
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --white: #ffffff;

    /* Neutral Palette */
    --dark: #111827;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;

    /* Design Variables */
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-pill: 9999px;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

/* Reset & Global */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography Utility */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--gray-900);
    line-height: 1.25;
    font-weight: 700;
}

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

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.bg-light {
    background-color: var(--gray-50);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    font-size: 15px;
    gap: 8px;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--gray-800);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--gray-300);
    color: var(--gray-700);
}

.btn-outline:hover {
    border-color: var(--gray-400);
    background-color: var(--gray-50);
    color: var(--gray-900);
}

.btn-outline-dark {
    background: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-900);
}

.btn-outline-dark:hover {
    background: var(--dark);
    color: white;
    border-color: var(--dark);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 17px;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

.btn-pill {
    border-radius: var(--radius-pill);
}

/* Header & Nav */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-100);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: box-shadow 0.3s;
}

.header.is-sticky {
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    color: var(--gray-900);
}

.nav-desktop {
    display: none;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
        gap: 32px;
    }
}

.nav-desktop a {
    color: var(--gray-600);
    font-weight: 500;
    font-size: 15px;
}

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

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

.icon-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    color: var(--gray-600);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background-color: var(--gray-100);
    color: var(--gray-900);
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: bold;
    height: 16px;
    min-width: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link {
    color: var(--gray-600);
    font-weight: 500;
    font-size: 15px;
}

.nav-link:hover {
    color: var(--gray-900);
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* Expandable Search */
.search-bar-expandable {
    background: white;
    border-bottom: 1px solid var(--gray-100);
    padding: 16px 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    box-shadow: var(--shadow);
}

.search-bar-expandable.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.header-search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.header-search-form i.ph-magnifying-glass {
    position: absolute;
    left: 16px;
    color: var(--gray-400);
    font-size: 20px;
}

.header-search-form input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-pill);
    outline: none;
    font-size: 15px;
    transition: border 0.2s;
}

.header-search-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(93, 95, 239, 0.1);
}

.close-search {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--gray-500);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0fdfa 0%, #eff6ff 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    color: var(--gray-900);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--gray-600);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

/* Hero Search Box */
.hero-search-box {
    background: white;
    padding: 10px;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.search-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1fr 1fr auto;
    gap: 12px;
}

.search-input-group,
.search-select-group {
    position: relative;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
}

.search-input-group:focus-within,
.search-select-group:focus-within {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 2px rgba(93, 95, 239, 0.1);
}

.hero-input,
.hero-select {
    width: 100%;
    height: 48px;
    border: none;
    background: transparent;
    padding: 0 12px 0 40px;
    font-size: 15px;
    color: var(--gray-900);
    outline: none;
    cursor: pointer;
}

.hero-select {
    padding-left: 36px;
    -webkit-appearance: none;
    appearance: none;
}

.search-input-group i,
.search-select-group i {
    position: absolute;
    left: 12px;
    color: var(--primary);
    font-size: 18px;
    pointer-events: none;
}

.btn-search {
    height: 50px;
    padding: 0 32px;
    font-weight: 700;
    font-size: 16px;
    border-radius: var(--radius-sm);
}

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    padding: 60px 0 80px;
    margin-bottom: 40px;
}

.page-hero-content h1 {
    font-size: 40px;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.page-hero-content p {
    color: var(--gray-600);
    margin-bottom: 40px;
}

/* Filter Bar */
.filter-bar {
    background: white;
    padding: 10px;
    border-radius: 99px;
    /* Pill shape */
    box-shadow: var(--shadow-md);
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--gray-100);
}

.filter-bar-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1fr 1.2fr auto;
    gap: 8px;
}

.filter-group {
    position: relative;
    background: transparent;
    display: flex;
    align-items: center;
}

.search-group i {
    position: absolute;
    left: 16px;
    color: var(--gray-400);
    font-size: 18px;
}

.filter-input {
    width: 100%;
    height: 48px;
    border: none;
    background: transparent;
    padding-left: 44px;
    font-size: 15px;
    color: var(--gray-900);
    outline: none;
    border-radius: var(--radius-pill);
}

.filter-select {
    width: 100%;
    height: 48px;
    border: none;
    background: transparent;
    /* No background color */
    padding: 0 16px;
    font-size: 15px;
    color: var(--gray-700);
    cursor: pointer;
    outline: none;
    border-left: 1px solid var(--gray-200);
    /* Separator */
    border-radius: 0;
}

.filter-select:hover {
    color: var(--primary);
}

/* Pagination */
.pagination {
    display: inline-flex;
    gap: 8px;
    background: white;
    padding: 8px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--gray-600);
    font-weight: 600;
    transition: all 0.2s;
}

.page-link:hover {
    background: var(--gray-50);
    color: var(--primary);
}

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

.meta-category {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--gray-500);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Responsive Filter Bar */
@media (max-width: 992px) {
    .filter-bar {
        border-radius: var(--radius);
        padding: 16px;
    }

    .filter-bar-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .filter-select {
        border-left: none;
        border: 1px solid var(--gray-200);
        border-radius: var(--radius);
        background: var(--gray-50);
    }

    .search-group {
        grid-column: span 2;
        border: 1px solid var(--gray-200);
        border-radius: var(--radius);
        background: var(--gray-50);
    }
}

@media (max-width: 992px) {
    .search-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-search-box {
        padding: 16px;
    }

    .btn-search {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .search-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .btn-search {
        grid-column: span 1;
    }
}

/* --- Grid Utilities (Tailwind-like) --- */
.grid-row {
    display: grid;
    gap: 24px;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.col-span-2 {
    grid-column: span 2;
}

.col-span-3 {
    grid-column: span 3;
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .md\:grid-cols-1 {
        grid-template-columns: repeat(1, 1fr);
    }

    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .md\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Fallback 4->2 on tablet */

    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

/* Flex Utilities */
.flex-grow {
    flex-grow: 1;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

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

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

.gap-6 {
    gap: 24px;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.object-cover {
    object-fit: cover;
}

.hidden {
    display: none;
}

.md\:block {
    display: block;
}

.block {
    display: block;
}

@media (min-width: 768px) {
    .md\:block {
        display: block !important;
    }

    .md\:hidden {
        display: none !important;
    }

    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Spacing */
.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.m-0 {
    margin: 0 !important;
}

/* Text */
.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.font-bold {
    font-weight: 700;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wide {
    letter-spacing: 0.025em;
}

.capitalize {
    text-transform: capitalize;
}

.text-gray-500 {
    color: var(--gray-500);
}

.text-gray-900 {
    color: var(--gray-900);
}

.text-primary {
    color: var(--primary);
}

/* Borders & Rounded */
.border-b {
    border-bottom: 1px solid var(--gray-100);
}

.rounded-lg {
    border-radius: var(--radius);
}

.rounded-md {
    border-radius: var(--radius-sm);
}

.rounded-full {
    border-radius: 9999px;
}

.overflow-hidden {
    overflow: hidden;
}

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

/* Colors */
.bg-gray-50 {
    background-color: var(--gray-50);
}

.bg-white {
    background-color: white;
}

.bg-blue-50 {
    background-color: #eff6ff;
}

.text-blue-600 {
    color: #2563eb;
}

.bg-green-50 {
    background-color: #f0fdf4;
}

.text-green-600 {
    color: #16a34a;
}

.bg-yellow-50 {
    background-color: #fefce8;
}

.text-yellow-600 {
    color: #ca8a04;
}


.account-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.account-nav-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}

.user-profile-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.avatar-circle {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.user-info .user-name {
    display: block;
    font-weight: 700;
    color: var(--gray-900);
    font-size: 15px;
}

.user-info .user-role {
    display: block;
    font-size: 13px;
    color: var(--gray-500);
}

.separator {
    height: 1px;
    background: var(--gray-100);
    margin: 16px 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--gray-600);
    font-weight: 500;
    border-radius: var(--radius);
    margin-bottom: 4px;
    transition: all 0.2s;
}

.nav-link i {
    font-size: 20px;
}

.nav-link:hover,
.nav-link.active {
    background: var(--gray-50);
    color: var(--primary);
}

.nav-link.text-danger:hover {
    background: #fef2f2;
    color: #ef4444;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon.purple {
    background: #eef2ff;
    color: var(--primary);
}

.stat-icon.blue {
    background: #e0f2fe;
    color: #0284c7;
}

.stat-icon.green {
    background: #dcfce7;
    color: #16a34a;
}

.stat-info h3 {
    font-size: 24px;
    margin: 0;
    line-height: 1.2;
}

.stat-info span {
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 500;
}

/* Content Card */
.content-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}

.card-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.card-header-flex h3 {
    margin: 0;
    font-size: 18px;
}

/* Modern Table */
.table-modern {
    width: 100%;
    border-collapse: collapse;
}

.table-modern th {
    text-align: left;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--gray-200);
}

.table-modern td {
    padding: 16px;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
    color: var(--gray-700);
    font-size: 14px;
}

.table-modern tr:last-child td {
    border-bottom: none;
}

.badge {
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
}

.badge-completed,
.badge-paid {
    background: #dcfce7;
    color: #16a34a;
}

.badge-pending {
    background: #fef9c3;
    color: #ca8a04;
}

.badge-failed {
    background: #fee2e2;
    color: #dc2626;
}

@media (max-width: 992px) {
    .account-grid {
        grid-template-columns: 1fr;
    }

    .account-sidebar {
        position: static;
        margin-bottom: 32px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding: 24px;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
    transition: transform 0.2s, box-shadow 0.2s;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.info-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    border-radius: 50%;
    color: var(--primary);
    font-size: 24px;
    flex-shrink: 0;
}

.info-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--gray-900);
}

.info-content a,
.info-content p {
    font-size: 15px;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.5;
}

.info-content span {
    display: block;
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 4px;
}

.contact-form-box {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
}

.form-modern .form-group {
    margin-bottom: 24px;
}

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

.form-control {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 15px;
    transition: all 0.2s;
    background: var(--gray-50);
}

textarea.form-control {
    height: auto;
    padding: 16px;
    min-height: 150px;
    resize: vertical;
}

.form-control:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(93, 95, 239, 0.1);
    outline: none;
}

.select-wrapper {
    position: relative;
}

.select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--gray-500);
}

.form-note {
    font-size: 13px;
}

.section-cta-simple {
    padding: 40px 0;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 32px;
    margin-bottom: 8px;
    position: relative;
}

.section-subtitle {
    color: var(--gray-500);
    font-size: 16px;
}

.section-header {
    margin-bottom: 40px;
}

.flex-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.link-arrow {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 14px;
}

/* Category Grid */
.category-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

.category-card-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--white);
    padding: 32px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

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

.category-icon {
    width: 56px;
    height: 56px;
    background: var(--gray-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 16px;
    transition: background 0.3s;
}

.category-card-modern:hover .category-icon {
    background: var(--primary);
    color: white;
}

.category-card-modern h3 {
    font-size: 17px;
    margin-bottom: 4px;
    color: var(--gray-800);
}

.category-card-modern .count {
    font-size: 13px;
    color: var(--gray-500);
}

/* Product Cards */
.product-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 32px;
}

.product-card-modern {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--gray-100);
}

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

.card-image {
    position: relative;
    aspect-ratio: 4/3;
    background: var(--gray-100);
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card-modern:hover .card-image img {
    transform: scale(1.05);
}

.placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--gray-400);
    font-size: 14px;
}

.file-type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-new {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.card-title a {
    color: var(--gray-900);
}

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

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
}

.price-current {
    font-weight: 700;
    font-size: 18px;
    color: var(--gray-900);
}

.price-sale {
    font-weight: 700;
    font-size: 18px;
    color: var(--danger);
    margin-right: 8px;
}

/* Search Filter Section */
.section-search-filter {
    background: var(--gray-900);
    color: white;
    padding: 80px 0;
    border-radius: var(--radius-lg);
    margin: 40px auto;
    max-width: 1280px;
    /* Constrain width mostly */
    width: calc(100% - 48px);
    /* Margins on mobile */
}

.search-filter-box h2 {
    color: white;
}

.search-filter-box p {
    color: var(--gray-400);
}

.filter-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 150px;
    gap: 16px;
    max-width: 1000px;
    margin: 32px auto 0;
}

.form-group {
    position: relative;
}

.search-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    font-size: 20px;
}

.form-control-lg,
.form-select-lg {
    width: 100%;
    height: 56px;
    padding: 0 16px;
    border: 1px solid #374151;
    background: #1f2937;
    color: white;
    border-radius: var(--radius);
    font-size: 16px;
}

.form-control-lg {
    padding-left: 48px;
}

.form-control-lg:focus,
.form-select-lg:focus {
    border-color: var(--primary);
    outline: none;
}

.btn-block {
    width: 100%;
    height: 56px;
}

/* Value Props */
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

.value-card {
    background: var(--gray-50);
    padding: 32px;
    border-radius: var(--radius);
    transition: transform 0.3s;
}

.value-card:hover {
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.value-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.value-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.value-card p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* CTA */
.section-cta-modern {
    padding: 100px 0;
    background: radial-gradient(circle at center, #1e1b4b 0%, #000000 100%);
    color: white;
}

.section-cta-modern h2 {
    color: white;
    font-size: 40px;
    margin-bottom: 16px;
}

.section-cta-modern p {
    color: var(--gray-400);
    font-size: 20px;
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Footer */
.footer {
    background: white;
    border-top: 1px solid var(--gray-100);
    padding: 80px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
}

.footer-brand p {
    margin-top: 16px;
    color: var(--gray-500);
    max-width: 280px;
    font-size: 15px;
}

.footer-links h5 {
    font-size: 16px;
    margin-bottom: 24px;
    color: var(--gray-900);
}

.footer-links a {
    display: block;
    margin-bottom: 12px;
    color: var(--gray-600);
    font-size: 15px;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--gray-100);
}

.footer-bottom p {
    color: var(--gray-400);
    font-size: 14px;
}

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

.social-links a {
    color: var(--gray-400);
    font-size: 20px;
}

.social-links a:hover {
    color: var(--gray-900);
}

/* Responsive */
@media (max-width: 992px) {
    .filter-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }

    .header-actions .cart-btn {
        margin-right: -8px;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
    }

    .category-grid-modern {
        grid-template-columns: 1fr 1fr;
    }

    .section-search-filter {
        width: 100%;
        border-radius: 0;
    }
}

/* Download Grid */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.download-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 16px;
    transition: transform 0.2s;
}

.download-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.download-preview {
    height: 140px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-icon {
    font-size: 32px;
    color: var(--gray-400);
}

/* --- Product Detail Premium Layout --- */
.product-layout-premium {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 48px;
    margin-top: 32px;
}

.product-gallery {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
}

.product-gallery img {
    width: 100%;
    height: auto;
    display: block;
}

.product-info-section {
    margin-bottom: 40px;
}

.product-info-section h3 {
    font-size: 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list-premium {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.feature-list-premium li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-700);
    font-size: 15px;
}

.feature-list-premium li i {
    color: var(--success);
    font-size: 18px;
}

.sticky-sidebar {
    position: sticky;
    top: 100px;
}

.price-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    margin-bottom: 24px;
}

.price-header {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-100);
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-right: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tech-specs {
    background: var(--gray-50);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}

.spec-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.spec-item:last-child {
    margin-bottom: 0;
}

/* --- Checkout Premium Layout --- */
.checkout-split {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 40px;
    margin-top: 32px;
}

.checkout-step {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--gray-900);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.payment-method-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.payment-method-card {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-method-card:hover {
    border-color: var(--primary-light);
    background: var(--gray-50);
}

.payment-method-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.payment-method-card i {
    font-size: 24px;
}

.order-summary-card {
    background: var(--gray-50);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    position: sticky;
    top: 100px;
}

.summary-item {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.summary-thumb {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    background: white;
}

@media (max-width: 900px) {

    .product-layout-premium,
    .checkout-split {
        grid-template-columns: 1fr;
    }

    .sticky-sidebar,
    .order-summary-card {
        position: static;
        margin-top: 32px;
    }
}

.download-info h4 {
    font-size: 15px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.download-meta {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.empty-state-small {
    text-align: center;
    padding: 40px;
    color: var(--gray-500);
}

.icon-circle {
    width: 56px;
    height: 56px;
    background: var(--gray-100);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
}

/* --- Premium Purchase Actions --- */
.price-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-premium {
    position: relative;
    padding: 0 32px;
    height: 56px;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.3px;
    border-radius: 8px;
    /* Slightly rounder */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: white;
}

.btn-premium:active {
    transform: translateY(0);
}

/* Buy Now - Primary Gradient */
.btn-buy-now {
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    color: white;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
}

.btn-buy-now:hover {
    box-shadow: 0 8px 15px rgba(79, 70, 229, 0.3);
}

/* Add to Cart - Dark Premium */
.btn-add-cart {
    background: var(--gray-900);
    color: white;
    border: 1px solid var(--gray-900);
}

.btn-add-cart:hover {
    background: black;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Added State */
.btn-added {
    background: var(--success);
    color: white;
    pointer-events: none;
}

/* --- Related Products Section --- */
.related-section {
    padding: 80px 0;
    background: #fafafa;
    border-top: 1px solid var(--gray-200);
    margin-top: 60px;
}

.related-header {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.related-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--gray-900);
    display: inline-block;
    position: relative;
}

.related-header p {
    color: var(--gray-500);
    margin-top: 8px;
    font-size: 16px;
}

/* Ensure product grid in related section looks good */
.related-section .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 32px;
}

.related-section .product-card {
    background: white;
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.related-section .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.related-section .product-image {
    position: relative;
    aspect-ratio: 4/3;
    background: var(--gray-100);
    overflow: hidden;
}

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

.related-section .product-card:hover .product-image img {
    transform: scale(1.05);
}

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

.related-section .product-title a {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-section .product-footer {
    margin-top: auto;
    padding-top: 16px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .related-section .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
}

/* --- Premium Cart Layout --- */
/* --- Premium Cart Layout Refactored --- */

/* Wrapper to ensure centered max-width if .container is generic */
.cart-layout-premium {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* Items take twice the space of summary */
    gap: 48px;
    /* Increased gap for better separation */
    margin-top: 40px;
    width: 100%;
    max-width: 1200px;
    /* Constrain width for readability */
    margin-left: auto;
    margin-right: auto;
}

.cart-items-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    /* Vertical rhythm between items */
}

/* Individual Cart Card */
.cart-item-premium {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 24px;
    /* Increased padding */
    display: grid;
    grid-template-columns: 100px 1fr auto;
    /* Thumb | Details | Actions */
    gap: 24px;
    align-items: center;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.cart-item-premium:hover {
    border-color: var(--primary-light);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.cart-image-wrapper {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.cart-item-thumb {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    background: var(--gray-100);
    border: 1px solid var(--gray-100);
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cart-item-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    text-decoration: none;
    line-height: 1.3;
}

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

.cart-item-meta {
    font-size: 14px;
    color: var(--gray-500);
}

.cart-item-price-large {
    font-weight: 700;
    font-size: 18px;
    color: var(--gray-900);
    margin-top: 4px;
}

/* Remove Button */
.cart-item-actions {
    display: flex;
    align-items: center;
}

.btn-remove-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--gray-400);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-remove-icon:hover {
    background: #FEF2F2;
    /* Soft red bg */
    color: var(--danger);
    border-color: #FEE2E2;
}

/* Sticky Summary Panel */
.cart-sidebar {
    position: relative;
    /* Context for sticky */
}

.cart-summary-premium {
    background: white;
    padding: 32px;
    border-radius: 16px;
    /* Rounder */
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 100px;
    /* Clear fixed headers */
}

/* Summary Typography */
.cart-summary-premium h3 {
    letter-spacing: -0.5px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    color: var(--gray-600);
    font-size: 15px;
}

.summary-row.total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
    margin-bottom: 24px;
}

.summary-row.total span {
    font-size: 18px;
    font-weight: 800;
    color: var(--gray-900);
}

.summary-row.total .total-amount {
    font-size: 24px;
    color: var(--primary);
}

/* Responsive */
@media (max-width: 991px) {
    .cart-layout-premium {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cart-summary-premium {
        position: static;
        margin-top: 0;
    }
}

@media (max-width: 576px) {
    .cart-item-premium {
        grid-template-columns: 80px 1fr;
        grid-template-areas:
            "thumb details"
            "thumb actions";
        padding: 16px;
        align-items: flex-start;
    }

    .cart-image-wrapper {
        grid-area: thumb;
        width: 80px;
        height: 80px;
    }

    .cart-item-details {
        grid-area: details;
    }

    .cart-item-actions {
        grid-area: actions;
        justify-self: end;
        margin-top: -30px;
        /* Pull up next to price if possible, or leave as is */
    }
}

.cart-items-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cart-item-premium {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    gap: 24px;
    align-items: center;
    transition: all 0.2s;
}

.cart-item-premium:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.cart-image-wrapper {
    flex-shrink: 0;
}

.cart-item-thumb {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--gray-100);
}

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

.cart-item-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
    text-decoration: none;
    display: block;
}

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

.cart-item-meta {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.cart-item-price-large {
    font-weight: 700;
    font-size: 18px;
    color: var(--gray-900);
}

.btn-remove-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--gray-400);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-remove-icon:hover {
    background: #ffeeee;
    color: var(--danger);
}

.cart-summary-premium {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 100px;
}

.empty-cart-premium {
    text-align: center;
    padding: 80px 0;
}

@media (max-width: 900px) {
    .cart-layout-premium {
        grid-template-columns: 1fr;
    }

    .cart-item-premium {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item-thumb {
        width: 100%;
        height: 180px;
    }

    .btn-remove-icon {
        position: absolute;
        top: 20px;
        right: 20px;
        background: white;
        box-shadow: var(--shadow-sm);
    }

    .cart-item-premium {
        position: relative;
    }

    .cart-image-wrapper {
        width: 100%;
    }
}

@media (min-width: 600px) and (max-width: 900px) {
    .cart-item-premium {
        flex-direction: row;
    }

    .cart-item-thumb {
        width: 120px;
        height: 120px;
    }

    .btn-remove-icon {
        position: static;
        background: transparent;
        box-shadow: none;
    }

    .cart-image-wrapper {
        width: auto;
    }
}

/* --- Helper Classes --- */
.mb-1 {
    margin-bottom: 4px;
}

.mb-2 {
    margin-bottom: 8px;
}

.mb-3 {
    margin-bottom: 16px;
}

.mb-4 {
    margin-bottom: 24px;
}

.mb-5 {
    margin-bottom: 48px;
}

.mt-4 {
    margin-top: 24px;
}

.pb-4 {
    padding-bottom: 24px;
}

.pt-3 {
    padding-top: 16px;
}

.py-3 {
    padding-top: 16px;
    padding-bottom: 16px;
}

.w-100 {
    width: 100%;
}

.d-block {
    display: block;
}

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

.d-flex {
    display: flex;
}

.justify-content-center {
    justify-content: center;
}

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

.flex-column {
    flex-direction: column;
}

.gap-2 {
    gap: 8px;
}

.border-top {
    border-top: 1px solid var(--gray-200);
}

.border-bottom {
    border-bottom: 1px solid var(--gray-200);
}

.border-gray-100 {
    border-color: var(--gray-100);
}

/* Button Outline */
.btn-outline {
    background: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    padding: 0 24px;
    height: 56px;
    /* Match premium button height */
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}



/* --- Mobile Responsiveness & Header Fixes --- */

/* Header Layout */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 80px;
    /* Explicit height */
}

/* Hide Mobile Menu Button on Desktop */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--gray-700);
    cursor: pointer;
    padding: 8px;
    margin-left: 16px;
    z-index: 1000;
    /* Ensure clickable */
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

/* Mobile Drawer Styles */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    /* Extremely High */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible !important;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -110%;
    /* Ensure purely off-screen */
    width: 300px;
    /* Fixed width */
    height: 100vh;
    background: white;
    z-index: 2001;
    /* Above overlay */
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.mobile-nav-drawer.active {
    right: 0 !important;
}

@media (min-width: 992px) {
    .mobile-nav-drawer {
        display: none;
    }
}

/* Specific Mobile Styles */
@media (max-width: 991px) {

    .nav-desktop,
    .user-menu,
    .auth-buttons {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-actions {
        gap: 8px;
    }

    .mobile-nav-drawer {
        width: 85%;
        max-width: 320px;
    }

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

    .close-drawer {
        background: none;
        border: none;
        font-size: 24px;
        color: var(--gray-500);
        cursor: pointer;
    }

    .drawer-body {
        padding: 24px;
        flex: 1;
        overflow-y: auto;
    }

    .mobile-nav-links {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 32px;
    }

    .mobile-nav-links a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px;
        color: var(--gray-700);
        text-decoration: none;
        font-weight: 500;
        font-size: 16px;
        border-radius: 8px;
        transition: background 0.2s;
    }

    .mobile-nav-links a i {
        font-size: 20px;
        color: var(--primary);
    }

    .mobile-nav-links a:hover {
        background: var(--gray-50);
        color: var(--primary);
    }

    /* Global Container Padding on Mobile */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Product Grid Mobile */
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
        gap: 24px;
    }

    .section-header h2 {
        font-size: 28px;
        /* Smaller headings on mobile */
    }
}