/* TheStore - Premium PHP Scripts Marketplace
   Main Stylesheet - Version 1.0 */

/* ===== CSS Variables ===== */
:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #818CF8;
    --secondary: #10B981;
    --accent: #F59E0B;
    --danger: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
    --success: #10B981;

    --dark: #1F2937;
    --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;
    --white: #FFFFFF;

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Fira Code', 'Monaco', monospace;

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

    --radius-sm: 0.25rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    --transition: all 0.2s ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

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

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

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

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

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    color: var(--gray-900);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-muted { color: var(--gray-500); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }

/* ===== Layout ===== */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 3rem;
}

.container-fluid {
    width: 100%;
    padding: 0 3rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
}

.col { flex: 1; padding: 0 0.75rem; }
.col-auto { flex: 0 0 auto; padding: 0 0.75rem; }
.col-12 { flex: 0 0 100%; max-width: 100%; padding: 0 0.75rem; }
.col-6 { flex: 0 0 50%; max-width: 50%; padding: 0 0.75rem; }
.col-4 { flex: 0 0 33.333%; max-width: 33.333%; padding: 0 0.75rem; }
.col-3 { flex: 0 0 25%; max-width: 25%; padding: 0 0.75rem; }

@media (min-width: 768px) {
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
}

@media (min-width: 1024px) {
    .col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
    .col-lg-8 { flex: 0 0 66.666%; max-width: 66.666%; }
    .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
}

/* ===== Header ===== */

/* Top Bar */
.header-top {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 100%);
    color: var(--gray-400);
    font-size: 0.8rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.header-top-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-top-left span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-top-left i {
    color: #818CF8;
}

.header-top-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-top-right a {
    color: var(--gray-400);
    transition: var(--transition);
}

.header-top-right a:hover {
    color: var(--white);
}

.header-top-right .divider {
    width: 1px;
    height: 14px;
    background: rgba(255,255,255,0.15);
}

/* Main Header - Dark Theme */
.header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 0;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
}

.logo img {
    height: 42px;
}

.logo span {
    background: linear-gradient(135deg, #818CF8 0%, #6366F1 50%, #4F46E5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo:hover {
    opacity: 0.9;
}

/* Navigation - Dark Theme */
.nav-main {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-main a {
    color: var(--gray-300);
    font-weight: 500;
    padding: 0.625rem 1.125rem;
    border-radius: var(--radius);
    position: relative;
    transition: var(--transition);
}

.nav-main a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.08);
}

.nav-main a.active {
    color: var(--white);
    background: rgba(99, 102, 241, 0.2);
}

.nav-main a.active::after {
    content: '';
    position: absolute;
    bottom: -0.875rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 3px;
    background: linear-gradient(90deg, #818CF8, #6366F1);
    border-radius: var(--radius-full);
}

/* Search Bar - Dark Theme */
.header-search {
    flex: 1;
    max-width: 480px;
    margin: 0 1rem;
}

.search-form {
    display: flex;
    position: relative;
}

.search-form input {
    width: 100%;
    padding: 0.75rem 1.25rem;
    padding-right: 3.5rem;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    outline: none;
    transition: var(--transition);
    font-size: 0.9rem;
    background: rgba(255,255,255,0.05);
    color: var(--white);
}

.search-form input::placeholder {
    color: var(--gray-500);
}

.search-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
    background: rgba(255,255,255,0.08);
}

.search-form button {
    position: absolute;
    right: 0.375rem;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.search-form button:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.5);
}

/* Header Actions - Dark Theme */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    border-radius: var(--radius-full);
    position: relative;
    transition: var(--transition);
    background: rgba(255,255,255,0.05);
}

.header-icon:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    transform: translateY(-2px);
}

.header-icon .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1a1a2e;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
    line-height: 1;
}

/* User Dropdown - Dark Theme */
.user-dropdown {
    position: relative;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.375rem 0.75rem 0.375rem 0.375rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.user-dropdown-toggle:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.15);
}

.user-dropdown-toggle img {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.user-dropdown-toggle span {
    font-weight: 600;
    color: var(--gray-200);
    font-size: 0.9rem;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
    border: 1px solid var(--gray-100);
}

.user-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: var(--white);
    border-left: 1px solid var(--gray-100);
    border-top: 1px solid var(--gray-100);
    transform: rotate(45deg);
}

.user-dropdown:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    border-radius: var(--radius);
    font-size: 0.9rem;
    transition: var(--transition);
}

.user-dropdown-menu a:hover {
    background: var(--gray-50);
    color: var(--primary);
    transform: translateX(4px);
}

.user-dropdown-menu a i {
    width: 18px;
    color: var(--gray-400);
    font-size: 0.9rem;
}

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

.user-dropdown-menu .divider {
    height: 1px;
    background: var(--gray-100);
    margin: 0.5rem 0;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

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

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

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

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

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

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

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

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

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

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-full);
}

.btn-block {
    width: 100%;
}

/* ===== Cards ===== */
.card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

/* ===== Product Card ===== */
.product-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

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

.product-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

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

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

.product-card-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.badge-featured {
    background: var(--accent);
    color: var(--white);
}

.badge-new {
    background: var(--success);
    color: var(--white);
}

.badge-sale {
    background: var(--danger);
    color: var(--white);
}

.product-card-actions {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

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

.product-card-actions button {
    width: 36px;
    height: 36px;
    background: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    color: var(--gray-600);
    transition: var(--transition);
}

.product-card-actions button:hover {
    background: var(--primary);
    color: var(--white);
}

.product-card-body {
    padding: 1.25rem;
}

.product-card-category {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.product-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-title a {
    color: inherit;
}

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

.product-card-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.product-card-author img {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.product-card-author span {
    font-size: 0.85rem;
    color: var(--gray-500);
}

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

.product-card-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: var(--accent);
}

.product-card-rating span {
    color: var(--gray-500);
    margin-left: 0.25rem;
}

.product-card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.product-card-price .old-price {
    font-size: 0.9rem;
    color: var(--gray-400);
    text-decoration: line-through;
    margin-right: 0.5rem;
    font-weight: 400;
}

/* ===== Product Grid ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 4rem 0;
    overflow: hidden;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    min-height: 400px;
}

.hero-content {
    flex: 1;
    max-width: 550px;
}

.hero-image {
    flex: 0 0 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
}

.hero-image img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}

@media (max-width: 992px) {
    .hero-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-image {
        flex: none;
        width: 100%;
        margin-top: 2rem;
    }

    .hero-image img {
        max-height: 300px;
    }

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

    .hero-search {
        max-width: 500px;
        margin: 0 auto;
    }

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

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-search {
    display: flex;
    gap: 0.5rem;
}

.hero-search input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
}

.hero-search button {
    padding: 1rem 2rem;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.hero-stat h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.hero-stat p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

/* ===== Section ===== */
.section {
    padding: 4rem 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
}

.section-title span {
    color: var(--primary);
}

/* ===== Categories ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.category-card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
}

.category-card h4 {
    font-size: 1rem;
    margin: 0;
    color: var(--gray-900);
}

.category-card span {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ===== Forms ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-control::placeholder {
    color: var(--gray-400);
}

.form-control.error {
    border-color: var(--danger);
}

.form-error {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.form-hint {
    color: var(--gray-500);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* ===== Alerts ===== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
}

.alert-error, .alert-danger {
    background: #FEE2E2;
    color: #991B1B;
}

.alert-warning {
    background: #FEF3C7;
    color: #92400E;
}

.alert-info {
    background: #DBEAFE;
    color: #1E40AF;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pagination .page-item {
    list-style: none;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background: var(--white);
    color: var(--gray-700);
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
}

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

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

.pagination .page-item.disabled .page-link {
    background: var(--gray-100);
    color: var(--gray-400);
    cursor: not-allowed;
}

/* ===== Footer ===== */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 4rem 0 2rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    margin-top: 1rem;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
}

.footer h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    display: block;
    color: var(--gray-400);
    padding: 0.5rem 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 0.5rem;
}

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

.footer-bottom p {
    margin: 0;
}

.footer-payment {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-payment i {
    font-size: 2rem;
    color: #9ca3af;
    transition: color 0.2s;
}

.footer-payment i:hover {
    color: #fff;
}

/* ===== Star Rating ===== */
.star-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    color: var(--accent);
    font-size: 0.9rem;
}

.star-rating .rating-number {
    color: var(--gray-600);
    margin-left: 0.5rem;
}

/* ===== Auth Pages ===== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 2.5rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header .logo {
    justify-content: center;
    margin-bottom: 1.5rem;
}

.auth-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--gray-500);
    margin: 0;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.auth-divider span {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.auth-social {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.auth-social button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-weight: 500;
    color: var(--gray-700);
    transition: var(--transition);
}

.auth-social button:hover {
    border-color: var(--gray-300);
    background: var(--gray-50);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.auth-footer p {
    color: var(--gray-500);
    margin: 0;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-search {
        display: none;
    }

    .nav-main {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .hero-stat h3 {
        font-size: 1.5rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

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

    .section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ===== Utilities ===== */
.d-flex { display: flex; }
.d-none { display: none; }
.d-block { display: block; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.w-100 { width: 100%; }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }
.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* ===== Main Navigation ===== */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.main-nav a {
    color: var(--gray-300);
    font-weight: 500;
    padding: 0.625rem 1.125rem;
    border-radius: var(--radius);
    position: relative;
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.08);
}

.main-nav a.active {
    color: var(--white);
    background: rgba(99, 102, 241, 0.2);
}

/* ===== Logo Text Fallback ===== */
.logo-text {
    background: linear-gradient(135deg, #818CF8 0%, #6366F1 50%, #4F46E5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
    font-weight: 800;
}

/* ===== Mobile Menu Toggle ===== */
.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius);
    color: var(--gray-300);
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: rgba(255,255,255,0.15);
    color: var(--white);
}

/* ===== Mobile Menu ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: #1a1a2e;
    z-index: 2000;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: var(--white);
    font-weight: 600;
}

.mobile-menu-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius);
    color: var(--gray-300);
    cursor: pointer;
}

.mobile-nav {
    padding: 1rem 0;
}

.mobile-nav a {
    display: block;
    padding: 0.875rem 1.25rem;
    color: var(--gray-300);
    transition: var(--transition);
}

.mobile-nav a:hover {
    background: rgba(255,255,255,0.08);
    color: var(--white);
}

.mobile-nav-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 0.75rem 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

/* ===== Responsive Header ===== */
@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-main {
        padding: 0.75rem 0;
    }
    
    .search-form {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-top {
        display: none;
    }
    
    .header-actions {
        gap: 0.5rem;
    }
    
    .header-icon {
        width: 38px;
        height: 38px;
    }
    
    .user-dropdown-toggle span {
        display: none;
    }
    
    .logo img {
        height: 36px;
    }
}

/* Fix header-main container layout */
.header-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}


/* Fix Logo Text Color */
.logo-text {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #818CF8 0%, #6366F1 50%, #4F46E5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Fallback for browsers that don't support gradient text */
@supports not (-webkit-background-clip: text) {
    .logo-text {
        color: #ffffff;
        background: none;
    }
}

/* Fix Navigation Links Visibility */
.main-nav a {
    color: #ffffff !important;
    font-weight: 500;
}

.main-nav a:hover {
    color: #ffffff !important;
    background: rgba(255,255,255,0.15);
}

.main-nav a.active {
    color: #ffffff !important;
    background: #6366F1;
}

/* HEADER FIX - WHITE TEXT ON DARK BACKGROUND */
.header-main .main-nav a {
    color: #fff !important;
    opacity: 1 !important;
}
.header-main .main-nav a.active {
    background: #6366F1 !important;
    color: #fff !important;
}
.header-main .logo-text {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}
.header-main .user-dropdown-toggle span {
    color: #fff !important;
}
.header-main .header-icon {
    color: #fff !important;
}

/* FORCE WHITE TEXT IN HEADER */
header.header-main .main-nav a,
header.header-main .main-nav a:link,
header.header-main .main-nav a:visited {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
}
header.header-main .logo,
header.header-main .logo-text,
header.header-main a.logo {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
header.header-main .user-dropdown-toggle,
header.header-main .user-dropdown-toggle span {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
header.header-main .header-icon,
header.header-main .header-icon i {
    color: #ffffff !important;
}

/* FINAL FIX - NAV LINKS WHITE */
nav.main-nav a {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: none !important;
}
nav.main-nav a.active {
    background: #6366F1 !important;
}
.logo span,
a.logo span.logo-text {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: none !important;
}


/* Input Group with Prefix/Suffix */
.input-group {
    display: flex;
    align-items: stretch;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.input-group .form-control {
    border: none;
    border-radius: 0;
    flex: 1;
    min-width: 0;
}

.input-group .form-control:focus {
    box-shadow: none;
}

.input-group:focus-within {
    border-color: #6366F1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.input-prefix,
.input-suffix {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    background: #f3f4f6;
    color: #6b7280;
    font-weight: 500;
    font-size: 0.95rem;
    border-right: 1px solid #e5e7eb;
    min-width: 50px;
}

.input-suffix {
    border-right: none;
    border-left: 1px solid #e5e7eb;
}
