﻿/* ===== CSS VARIABLES ===== */
:root {
    --primary: #f68b1e;
    --primary-dark: #db7108;
    --primary-light: #fff3e3;
    --secondary: #12a05c;
    --secondary-dark: #0d8048;
    --dark: #202124;
    --darker: #111827;
    --text: #2f343b;
    --text-light: #6b7280;
    --gray: #f2f4f7;
    --gray-dark: #d9dee7;
    --white: #ffffff;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --shadow: 0 1px 8px rgba(17,24,39,0.08);
    --shadow-lg: 0 12px 30px rgba(17,24,39,0.14);
    --radius: 8px;
    --radius-sm: 6px;
    --transition: all 0.3s ease;
    --max-width: 1400px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: #f6f7fb;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: #f7f8fa;
    border-bottom: 1px solid #e5e7eb;
    color: #4b5563;
    padding: 8px 0;
    font-size: 13px;
}

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

.top-bar-info {
    display: flex;
    gap: 20px;
}

.top-bar-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-bar-info i {
    color: var(--primary);
}

/* ===== HEADER ===== */
.header {
    background: var(--white);
    border-bottom: 1px solid #e8ebf0;
    box-shadow: 0 2px 10px rgba(17,24,39,0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-lg);
}

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

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

.brand-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    max-width: 210px;
    height: 58px;
    overflow: hidden;
}

.brand-logo-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-brand-logo {
    margin-bottom: 20px;
    max-width: 220px;
    height: 64px;
}

.login-brand-logo {
    justify-content: center;
    margin: 0 auto 15px;
    max-width: 260px;
    height: 82px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    font-weight: bold;
}

.logo-text h1 {
    font-size: 21px;
    font-weight: 800;
    background: none;
    -webkit-background-clip: text;
    -webkit-text-fill-color: var(--dark);
    background-clip: text;
}

.logo-text span {
    font-size: 11px;
    color: var(--text-light);
    display: block;
    margin-top: -2px;
    -webkit-text-fill-color: var(--text-light);
}

/* ===== NAVIGATION ===== */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-menu a {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

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

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

.search-box {
    display: flex;
    align-items: center;
    background: #fff7ed;
    border-radius: var(--radius-sm);
    padding: 7px 12px;
    border: 2px solid var(--primary);
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--primary);
    background: var(--white);
}

.search-box input {
    border: none;
    background: none;
    outline: none;
    padding: 5px;
    width: 240px;
    font-size: 14px;
}

.search-box button {
    border: none;
    background: none;
    cursor: pointer;
    color: var(--primary);
    font-size: 16px;
}

.cart-btn {
    position: relative;
    background: var(--dark);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}

.cart-btn:hover {
    background: var(--primary);
    transform: scale(1.05);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    font-size: 11px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.admin-link {
    background: var(--secondary);
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 50px;
    font-size: 13px !important;
    transition: var(--transition);
}

.admin-link:hover {
    background: var(--secondary-dark) !important;
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(105deg, #fff3e3 0%, #fff 48%, #202124 48%, #111827 100%);
    color: var(--dark);
    padding: 46px 0 52px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(246,139,30,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(246,139,30,0.07) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: 0.55;
}

.hero::after {
    content: '';
    display: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content h1 span {
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
}

.hero-content p {
    font-size: 17px;
    color: #4b5563;
    margin-bottom: 24px;
    line-height: 1.7;
    max-width: 660px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    color: var(--primary-dark);
    border: 1px solid #ffd8a8;
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-deals {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.hero-deals span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.88);
    border: 1px solid #eceff4;
    border-radius: 999px;
    padding: 8px 12px;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
}

.hero-stats {
    display: flex;
    gap: 14px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.hero-stat {
    background: var(--white);
    border: 1px solid #eceff4;
    border-radius: var(--radius);
    min-width: 120px;
    padding: 12px 16px;
}

.hero-stat h3 {
    font-size: 26px;
    font-weight: 800;
    color: var(--dark);
}

.hero-stat p {
    font-size: 14px;
    margin-bottom: 0;
    color: var(--text-light);
}

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

.hero-image-placeholder {
    width: 100%;
    max-width: 500px;
    background: rgba(255,255,255,0.05);
    border: 2px dashed rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.hero-market-card {
    width: 100%;
    max-width: 500px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: 0 24px 70px rgba(0,0,0,0.24);
    border: 1px solid rgba(255,255,255,0.45);
}

.deal-header {
    background: linear-gradient(135deg, var(--primary), #ffb020);
    color: white;
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.deal-header span {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.deal-header strong {
    font-size: 24px;
}

.deal-products {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.deal-product {
    min-height: 116px;
    background: #f8fafc;
    border: 1px solid #eceff4;
    border-radius: var(--radius-sm);
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.deal-product i {
    color: var(--primary);
    font-size: 30px;
}

.deal-product span {
    color: var(--dark);
    font-weight: 800;
    font-size: 14px;
}

.deal-product strong {
    color: var(--primary-dark);
    font-size: 13px;
}

.main-deal {
    grid-row: span 2;
    background: #111827;
    color: white;
}

.main-deal i {
    font-size: 64px;
}

.main-deal span,
.main-deal strong {
    color: white;
}

.deal-footer {
    margin-top: 12px;
    background: #e9f8f0;
    color: #0c7a43;
    border: 1px solid #b8eccf;
    border-radius: var(--radius-sm);
    padding: 12px;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.hero-image-placeholder i {
    font-size: 80px;
    color: var(--primary);
    margin-bottom: 20px;
}

.hero-image-placeholder h3 {
    font-size: 20px;
    color: rgba(255,255,255,0.9);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(246,139,30,0.3);
}

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

.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(18,160,92,0.25);
}

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

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

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(37,211,102,0.4);
}

/* ===== SECTION HEADERS ===== */
.section {
    padding: 56px 0;
}

.section-header {
    text-align: left;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
    border-bottom: 2px solid #eceff4;
    padding-bottom: 14px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 15px;
    position: relative;
}

.section-header h2::after {
    content: '';
    display: none;
}

.section-header p {
    color: var(--text-light);
    font-size: 16px;
    max-width: 520px;
    margin: 0;
    text-align: right;
}

/* ===== FILTER SECTION ===== */
.filter-section {
    background: var(--white);
    padding: 14px 0;
    position: sticky;
    top: 67px;
    z-index: 100;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 6px 18px rgba(17,24,39,0.05);
}

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

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-dark);
    background: var(--white);
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
    color: var(--text);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.search-filter {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-dark);
    font-size: 14px;
    width: 250px;
    outline: none;
    transition: var(--transition);
}

.search-filter:focus {
    border-color: var(--primary);
}

/* ===== PRODUCT GRID ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #e8ebf0;
    position: relative;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(17,24,39,0.12);
    border-color: #ffd19a;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--secondary);
    color: white;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.product-badge + .product-badge {
    top: 42px;
}

.product-badge + .product-badge + .product-badge {
    top: 74px;
}

.product-badge.featured {
    background: var(--dark);
}

.product-badge.out-of-stock {
    background: var(--danger);
}

.product-image {
    height: 210px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
    transition: var(--transition);
}

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

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    background: linear-gradient(135deg, #f8fafc, #eef2f7);
}

.product-image-placeholder i {
    font-size: 48px;
    margin-bottom: 10px;
}

.product-image-placeholder span {
    font-size: 14px;
    font-weight: 600;
}

.product-info {
    padding: 14px;
}

.product-brand {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 5px;
}

.product-category {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.product-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.stars {
    color: #f59e0b;
    font-size: 14px;
}

.rating-count {
    font-size: 13px;
    color: var(--text-light);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 20px;
    font-weight: 800;
    color: #f04438;
}

.current-price::before {
    content: 'KSh ';
    font-size: 14px;
    font-weight: 600;
}

.old-price {
    font-size: 16px;
    color: var(--text-light);
    text-decoration: line-through;
}

.old-price::before {
    content: 'KSh ';
    font-size: 12px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.btn-add-cart {
    flex: 1;
    padding: 10px;
    background: #12a05c;
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    line-height: 1.25;
}

.btn-add-cart:hover {
    background: #0d8048;
}

.btn-add-cart:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.btn-view {
    padding: 10px 15px;
    background: #fff7ed;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text);
}

.btn-view:hover {
    background: #ffedd5;
    color: var(--primary-dark);
}

/* ===== FEATURES SECTION ===== */
.features {
    background: var(--white);
    padding: 28px 0;
    border-bottom: 1px solid #e8ebf0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
}

.feature-card {
    text-align: left;
    padding: 18px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: none;
    border: 1px solid #e8ebf0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-2px);
    border-color: #ffd19a;
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 46px;
    height: 46px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 14px;
    font-size: 20px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark);
}

.feature-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* ===== MARKETPLACE BRAND STRIP ===== */
.marketplace-strip {
    background: #f6f7fb;
    padding: 22px 0 10px;
}

.marketplace-strip .container {
    background: var(--white);
    border: 1px solid #e8ebf0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
}

.marketplace-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
    margin-bottom: 14px;
}

.marketplace-head span {
    display: inline-block;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.marketplace-head h2 {
    color: var(--dark);
    font-size: 22px;
    line-height: 1.25;
}

.marketplace-head a {
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.logo-marquee {
    display: grid;
    grid-template-columns: repeat(9, minmax(90px, 1fr));
    gap: 10px;
}

.brand-logo-card {
    min-height: 76px;
    background: #f8fafc;
    border: 1px solid #eceff4;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    transition: var(--transition);
}

.brand-logo-card:hover {
    border-color: #ffd19a;
    background: #fff7ed;
    transform: translateY(-2px);
}

.brand-logo-card img {
    display: block;
    width: 100%;
    max-width: 88px;
    max-height: 34px;
    object-fit: contain;
    opacity: 0.82;
}

.marketplace-promos {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.marketplace-promos span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff7ed;
    border: 1px solid #ffedd5;
    border-radius: 999px;
    color: #7c3f06;
    font-size: 13px;
    font-weight: 800;
    padding: 7px 11px;
}

.marketplace-promos i {
    color: var(--primary);
}

/* ===== BRANDS SECTION ===== */
.brands-section {
    padding: 56px 0;
    background: var(--white);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 12px;
    align-items: center;
}

.brand-item {
    text-align: center;
    padding: 22px 16px;
    background: #f8fafc;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
}

.brand-item:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.brand-item i {
    font-size: 30px;
    margin-bottom: 10px;
}

.brand-item span {
    display: block;
    font-weight: 700;
    font-size: 14px;
}

/* ===== NEWSLETTER ===== */
.newsletter {
    background: #202124;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.newsletter h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.newsletter p {
    margin-bottom: 25px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
}

/* ===== FOOTER ===== */
.footer {
    background: #111827;
    color: rgba(255,255,255,0.8);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-col p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 14px;
}

.contact-info i {
    color: var(--primary);
    margin-top: 5px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--gray);
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
}

.modal-header h2 {
    font-size: 22px;
    color: var(--dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--danger);
    transform: rotate(90deg);
}

.modal-body {
    padding: 25px;
}

.modal-product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.modal-product-image {
    height: 350px;
    background: var(--gray);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-product-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--dark);
}

.modal-product-info .price {
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 15px;
}

.modal-product-info .description {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.features-list {
    margin-bottom: 20px;
}

.features-list li {
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.features-list li::before {
    content: '✓';
    color: var(--success);
    font-weight: bold;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

/* ===== ADMIN STYLES ===== */
.admin-body {
    background: var(--gray);
}

.admin-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--dark);
    color: white;
    padding: 25px;
}

.admin-logo {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-logo i {
    color: var(--secondary);
}

.admin-logo-img {
    display: block;
    width: 100%;
    max-width: 190px;
    height: 72px;
    object-fit: contain;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.admin-nav a {
    color: rgba(255,255,255,0.7);
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    transition: var(--transition);
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(255,255,255,0.1);
    color: white;
}

.admin-main {
    padding: 30px;
}

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

.admin-header h1 {
    font-size: 28px;
    color: var(--dark);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stat-card h3 {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.stat-card .number {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
}

.admin-table {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

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

.admin-table th {
    background: var(--gray);
    padding: 15px;
    text-align: left;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
}

.admin-table td {
    padding: 15px;
    border-bottom: 1px solid var(--gray);
    font-size: 14px;
}

.admin-table tr:hover td {
    background: var(--primary-light);
}

/* ===== LOGIN PAGE ===== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark), var(--darker));
}

.login-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
}

.login-card .logo {
    justify-content: center;
    margin-bottom: 30px;
}

.login-card h2 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--dark);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-dark);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

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

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--dark);
    color: white;
    padding: 15px 25px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--danger);
}

/* ===== LOADING ===== */
.loading {
    text-align: center;
    padding: 50px;
    display: none;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 15px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero {
        background: linear-gradient(135deg, #fff3e3 0%, #fff 100%);
    }
    .hero .container {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .hero-content p {
        margin-right: auto;
    }
    .hero-stats {
        justify-content: flex-start;
    }
    .hero-image {
        display: none;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    .top-bar-info {
        display: none;
    }
    .top-bar .container {
        justify-content: center;
    }
    .hamburger {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: 67px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 67px);
        background: white;
        flex-direction: column;
        padding: 40px;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }
    .nav-menu.active {
        left: 0;
    }
    .search-box input {
        width: 120px;
    }
    .filter-section {
        position: static;
    }
    .modal-product-detail {
        grid-template-columns: 1fr;
    }
    .filter-section .container {
        flex-direction: column;
    }
    .search-filter {
        width: 100%;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    .section-header {
        display: block;
    }
    .section-header h2 {
        font-size: 28px;
        margin-bottom: 8px;
    }
    .section-header p {
        text-align: left;
    }
    .marketplace-head {
        display: block;
    }
    .marketplace-head a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-top: 8px;
    }
    .logo-marquee {
        grid-template-columns: repeat(3, 1fr);
    }
    .admin-container {
        grid-template-columns: 1fr;
    }
    .admin-sidebar {
        display: none;
    }
}

@media (max-width: 480px) {
    .header .container {
        gap: 10px;
        padding: 10px 14px;
    }
    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    .brand-logo {
        max-width: 142px;
        height: 44px;
    }
    .logo-text h1 {
        font-size: 16px;
    }
    .logo-text span {
        font-size: 10px;
    }
    .header-actions {
        gap: 8px;
    }
    .search-box {
        padding: 6px 8px;
    }
    .search-box input {
        width: 86px;
        font-size: 13px;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
    .hero {
        padding: 34px 0 40px;
    }
    .hero-content h1 {
        font-size: 34px;
    }
    .hero-content p {
        font-size: 15px;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .hero-stat {
        flex: 1 1 130px;
    }
    .newsletter-form {
        flex-direction: column;
    }
    .marketplace-strip .container {
        padding: 14px;
    }
    .marketplace-head h2 {
        font-size: 19px;
    }
    .logo-marquee {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .brand-logo-card {
        min-height: 68px;
        padding: 14px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .modal-actions {
        flex-direction: column;
    }
}
