/* ============================================
   GAEI AgroMart Enterprise Styles
   Jumia-Style Marketplace Design
   ============================================ */

:root {
    --primary: #4169E1;
    --primary-dark: #000080;
    --primary-light: #e8edfa;
    --accent: #FF6B35;
    --accent-dark: #e55a2b;
    --success: #2e7d32;
    --warning: #f57c00;
    --danger: #c62828;
    --light-gray: #F5F5F5;
    --medium-gray: #e0e0e0;
    --dark-gray: #757575;
    --white: #FFFFFF;
    --text: #333333;
    --text-light: #666;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
    --radius: 8px;
    --transition: all 0.3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--light-gray);
    color: var(--text);
    line-height: 1.6;
}

a { text-decoration: none; color: var(--primary); }
img { max-width: 100%; height: auto; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ==================== TOP BAR ==================== */
.top-bar {
    background: var(--primary-dark);
    color: white;
    font-size: 0.8rem;
    padding: 6px 0;
}
.top-bar-inner {
    max-width: 1280px; margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; gap: 1.5rem;
}
.top-bar-links { margin-left: auto; display: flex; gap: 1rem; }
.top-bar-links a { color: rgba(255,255,255,0.85); font-size: 0.8rem; }
.top-bar-links a:hover { color: white; }

/* ==================== HEADER ==================== */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky; top: 0; z-index: 1000;
}
.header-inner {
    max-width: 1280px; margin: 0 auto; padding: 12px 20px;
    display: flex; align-items: center; gap: 1.5rem;
}
.logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; flex-shrink: 0; }
.logo-icon { font-size: 1.8rem; color: var(--primary); }
.logo-text { font-size: 1.3rem; font-weight: 800; color: var(--primary-dark); }
.logo-accent { color: var(--accent); }

.search-bar { flex: 1; max-width: 600px; }
.search-bar form { display: flex; }
.search-bar input {
    flex: 1; padding: 12px 16px; border: 2px solid var(--medium-gray);
    border-right: none; border-radius: var(--radius) 0 0 var(--radius);
    font-size: 0.95rem; outline: none; transition: var(--transition);
}
.search-bar input:focus { border-color: var(--primary); }
.search-bar button {
    padding: 12px 20px; background: var(--accent); color: white;
    border: none; border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer; font-size: 1rem; transition: var(--transition);
}
.search-bar button:hover { background: var(--accent-dark); }

.nav-links { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.nav-icon-link { position: relative; color: var(--text); font-size: 1.2rem; padding: 6px; }
.nav-icon-link:hover { color: var(--primary); }
.cart-count {
    position: absolute; top: -2px; right: -8px;
    background: var(--accent); color: white; font-size: 0.65rem;
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.user-name { font-size: 0.85rem; margin-left: 2px; }
.user-dropdown { position: relative; }
.user-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu {
    display: none; position: absolute; top: 100%; right: 0;
    background: white; min-width: 180px; box-shadow: var(--shadow-hover);
    border-radius: var(--radius); padding: 8px 0; z-index: 1001;
}
.dropdown-menu a, .dropdown-menu button {
    display: block; padding: 8px 16px; color: var(--text);
    font-size: 0.9rem; width: 100%; text-align: left; border: none; background: none; cursor: pointer;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--light-gray); }
.dropdown-menu hr { border: none; border-top: 1px solid var(--medium-gray); margin: 4px 0; }
.dropdown-menu .portal-link { color: var(--primary); font-weight: 600; }

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block; padding: 10px 20px; border-radius: var(--radius);
    font-weight: 600; cursor: pointer; transition: var(--transition);
    border: 2px solid transparent; font-size: 0.9rem; text-align: center;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-outline-light { background: transparent; color: white; border-color: white; }
.btn-outline-light:hover { background: white; color: var(--primary-dark); }
.btn-success { background: var(--success); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-warning { background: var(--warning); color: white; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { display: block; width: 100%; }
.btn-xs { padding: 4px 8px; font-size: 0.7rem; }
.btn-orange { background: var(--accent); color: white; }
.btn-red { background: var(--danger); color: white; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ==================== HERO ==================== */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white; padding: 60px 0; position: relative; overflow: hidden;
}
.hero::after {
    content: ''; position: absolute; top: -50%; right: -10%;
    width: 500px; height: 500px; background: rgba(255,255,255,0.05);
    border-radius: 50%; pointer-events: none;
}
.hero-content {
    max-width: 1280px; margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 3rem;
}
.hero-text h1 { font-size: 3rem; font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.hero-text p { font-size: 1.1rem; opacity: 0.9; max-width: 500px; margin-bottom: 2rem; }
.hero-buttons { display: flex; gap: 1rem; }
.hero-stats { display: flex; gap: 2rem; }
.stat-card {
    background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
    padding: 20px 24px; border-radius: var(--radius); text-align: center;
}
.stat-number { display: block; font-size: 1.8rem; font-weight: 800; }
.stat-label { font-size: 0.85rem; opacity: 0.9; }

/* ==================== CATEGORIES STRIP ==================== */
.categories-strip { background: white; padding: 16px 0; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.categories-scroll { display: flex; gap: 0; overflow-x: auto; padding: 0; -webkit-overflow-scrolling: touch; }
.categories-scroll::-webkit-scrollbar { height: 4px; }
.categories-scroll::-webkit-scrollbar-thumb { background: var(--medium-gray); border-radius: 2px; }
.category-item {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 12px 20px; color: var(--text); min-width: 110px;
    text-align: center; font-size: 0.8rem; font-weight: 500;
    transition: var(--transition); border-bottom: 3px solid transparent;
    flex-shrink: 0; text-decoration: none;
}
.category-item:hover { color: var(--primary); border-bottom-color: var(--primary); }
.category-icon {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--primary-light); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; transition: var(--transition);
}
.category-item:hover .category-icon { background: var(--primary); color: white; }

/* ==================== PRODUCT SECTIONS ==================== */
.product-section { margin: 2rem 0; }
.section-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px; margin-bottom: 16px;
    background: white; border-radius: var(--radius); border-left: 4px solid var(--primary);
}
.section-header.flash-header { border-left-color: var(--accent); background: linear-gradient(to right, #fff5f0, white); }
.section-title-group { display: flex; align-items: center; gap: 10px; }
.section-icon { color: var(--primary); font-size: 1.2rem; }
.flash-header .section-icon { color: var(--accent); }
.section-title-group h2 { font-size: 1.2rem; font-weight: 700; }
.countdown { background: var(--accent); color: white; padding: 4px 10px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }
.see-all { color: var(--primary); font-weight: 600; font-size: 0.85rem; display: flex; align-items: center; gap: 4px; }
.see-all:hover { text-decoration: underline; }

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

/* ==================== PRODUCT CARD ==================== */
.product-card {
    background: white; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: var(--transition);
    position: relative; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.product-image-link { display: block; overflow: hidden; height: 180px; }
.product-image {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease; background: #f9f9f9;
}
.product-card:hover .product-image { transform: scale(1.05); }
.badge-sale {
    position: absolute; top: 8px; left: 8px;
    background: var(--accent); color: white; padding: 3px 8px;
    border-radius: 3px; font-size: 0.7rem; font-weight: 700; z-index: 2;
}
.badge-featured {
    position: absolute; top: 8px; right: 8px;
    background: var(--primary); color: white; padding: 3px 6px;
    border-radius: 3px; font-size: 0.7rem; z-index: 2;
}
.product-info { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-name { font-weight: 600; font-size: 0.9rem; color: var(--text); line-height: 1.3; }
.product-name:hover { color: var(--primary); }
.product-breed { font-size: 0.75rem; color: var(--text-light); }
.product-price-row { display: flex; align-items: baseline; gap: 8px; }
.product-price { font-size: 1.1rem; font-weight: 700; color: var(--primary-dark); }
.product-original-price { font-size: 0.8rem; color: #999; text-decoration: line-through; }
.product-meta { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-light); }
.product-rating { color: var(--warning); font-size: 0.8rem; }
.product-rating small { color: var(--text-light); }
.add-to-cart-form { margin-top: auto; }
.btn-add-cart {
    width: 100%; padding: 10px; background: var(--accent); color: white;
    border: none; border-radius: 4px; font-weight: 600; cursor: pointer;
    font-size: 0.85rem; transition: var(--transition); display: flex;
    align-items: center; justify-content: center; gap: 6px;
}
.btn-add-cart:hover { background: var(--accent-dark); }

/* ==================== TRUST BANNER ==================== */
.trust-banner {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
    background: white; padding: 40px 32px; border-radius: var(--radius);
    margin: 3rem 0; box-shadow: var(--shadow);
}
.trust-item { text-align: center; }
.trust-item i { font-size: 2rem; color: var(--primary); margin-bottom: 8px; }
.trust-item h4 { font-weight: 600; margin-bottom: 4px; }
.trust-item p { font-size: 0.85rem; color: var(--text-light); }

/* ==================== FOOTER ==================== */
.footer { background: #1a1a2e; color: #ccc; margin-top: 3rem; }
.footer-inner {
    max-width: 1280px; margin: 0 auto; padding: 40px 20px;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
}
.footer-col h3, .footer-col h4 { color: white; margin-bottom: 1rem; }
.footer-col p { font-size: 0.9rem; margin-bottom: 8px; }
.footer-col a { display: block; color: #999; font-size: 0.9rem; padding: 4px 0; }
.footer-col a:hover { color: var(--accent); }
.social-links { display: flex; gap: 12px; margin-top: 12px; }
.social-links a { color: white; font-size: 1.2rem; opacity: 0.7; }
.social-links a:hover { opacity: 1; color: var(--accent); }
.footer-bottom { border-top: 1px solid #333; text-align: center; padding: 16px; font-size: 0.85rem; }

/* ==================== AUTH PAGES ==================== */
.auth-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { background: white; border-radius: var(--radius); box-shadow: var(--shadow-hover); padding: 40px; width: 100%; max-width: 440px; }
.auth-card.wide { max-width: 700px; }
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-header h2 { font-size: 1.5rem; color: var(--primary-dark); }
.auth-header p { color: var(--text-light); margin-top: 4px; }
.auth-footer { text-align: center; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--medium-gray); font-size: 0.9rem; }
.auth-footer a { color: var(--accent); font-weight: 600; }

/* ==================== FORMS ==================== */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px; border: 1.5px solid var(--medium-gray);
    border-radius: 6px; font-size: 0.95rem; font-family: inherit;
    transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(65,105,225,0.1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-section-title { font-size: 1rem; font-weight: 700; color: var(--primary-dark); margin: 1.5rem 0 1rem; padding-bottom: 8px; border-bottom: 2px solid var(--primary-light); }
.form-checkboxes { display: flex; gap: 1.5rem; margin: 1rem 0; }
.remember-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; }

/* ==================== ALERTS ==================== */
.alert { padding: 14px 20px; border-radius: var(--radius); margin-bottom: 1rem; display: flex; align-items: center; gap: 8px; position: relative; }
.alert-success { background: #e8f5e9; color: var(--success); border-left: 4px solid var(--success); }
.alert-danger { background: #fce4ec; color: var(--danger); border-left: 4px solid var(--danger); }
.alert-warning { background: #fff3e0; color: var(--warning); border-left: 4px solid var(--warning); }
.alert-close { margin-left: auto; background: none; border: none; font-size: 1.2rem; cursor: pointer; color: inherit; }

/* ==================== PRODUCT DETAIL ==================== */
.breadcrumb { padding: 16px 0; font-size: 0.85rem; color: var(--text-light); }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 1rem 0 2rem; }
.product-gallery { position: sticky; top: 100px; }
.main-image { border-radius: var(--radius); overflow: hidden; background: white; }
.main-image img { width: 100%; height: 400px; object-fit: cover; }
.thumbnail-list { display: flex; gap: 8px; margin-top: 12px; }
.thumbnail { width: 70px; height: 70px; object-fit: cover; border-radius: 4px; cursor: pointer; border: 2px solid transparent; }
.thumbnail:hover { border-color: var(--primary); }
.product-info-detail { background: white; padding: 24px; border-radius: var(--radius); }
.product-info-detail h1 { font-size: 1.4rem; margin-bottom: 8px; }
.product-rating-detail { margin-bottom: 16px; color: var(--text-light); }
.product-rating-detail .stars { color: var(--warning); margin-right: 8px; }
.price-block { margin: 16px 0; display: flex; align-items: baseline; gap: 12px; }
.current-price { font-size: 1.8rem; font-weight: 800; color: var(--primary-dark); }
.original-price { font-size: 1.1rem; color: #999; text-decoration: line-through; }
.discount-badge { background: var(--accent); color: white; padding: 4px 10px; border-radius: 4px; font-weight: 700; font-size: 0.85rem; }
.product-specs { margin: 20px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.product-specs div { font-size: 0.9rem; }
.product-actions { display: flex; gap: 12px; margin: 20px 0; }
.cart-form { display: flex; gap: 12px; }
.qty-selector { display: flex; }
.qty-selector button { width: 40px; background: var(--light-gray); border: 1px solid var(--medium-gray); cursor: pointer; font-size: 1.1rem; }
.qty-selector input { width: 50px; text-align: center; border: 1px solid var(--medium-gray); border-left: none; border-right: none; }
.health-docs { margin-top: 16px; display: flex; gap: 12px; }
.doc-link { padding: 8px 16px; background: var(--primary-light); color: var(--primary); border-radius: 4px; font-size: 0.85rem; font-weight: 600; }

/* ==================== PRODUCT TABS ==================== */
.product-tabs { margin: 2rem 0; background: white; border-radius: var(--radius); overflow: hidden; }
.tab-headers { display: flex; border-bottom: 2px solid var(--medium-gray); }
.tab-btn { padding: 14px 24px; background: none; border: none; cursor: pointer; font-weight: 600; color: var(--text-light); font-size: 0.95rem; }
.tab-btn.active { color: var(--primary); border-bottom: 2px solid var(--primary); margin-bottom: -2px; }
.tab-content { display: none; padding: 24px; }
.tab-content.active { display: block; }
.review-form { margin-bottom: 24px; padding: 16px; background: var(--light-gray); border-radius: var(--radius); }
.star-rating { display: flex; flex-direction: row-reverse; justify-content: flex-end; margin-bottom: 12px; }
.star-rating input { display: none; }
.star-rating label { cursor: pointer; font-size: 1.5rem; color: var(--medium-gray); padding: 0 2px; }
.star-rating input:checked ~ label, .star-rating label:hover, .star-rating label:hover ~ label { color: var(--warning); }
.review-item { padding: 12px 0; border-bottom: 1px solid var(--medium-gray); }
.review-item .stars { color: var(--warning); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag { background: var(--primary-light); color: var(--primary); padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; }

/* ==================== CART PAGE ==================== */
.cart-layout { display: grid; grid-template-columns: 1fr 350px; gap: 2rem; margin-top: 1.5rem; }
.cart-item { display: flex; align-items: center; gap: 1rem; background: white; padding: 16px; border-radius: var(--radius); margin-bottom: 12px; }
.cart-item-img { width: 100px; height: 100px; object-fit: cover; border-radius: 6px; }
.cart-item-info { flex: 1; }
.cart-item-price { color: var(--primary-dark); font-weight: 700; }
.cart-item-qty input { width: 60px; padding: 6px; text-align: center; border: 1px solid var(--medium-gray); border-radius: 4px; }
.cart-item-subtotal { font-weight: 700; color: var(--primary-dark); }
.btn-remove { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 1.1rem; }
.cart-summary { background: white; padding: 24px; border-radius: var(--radius); position: sticky; top: 100px; height: fit-content; }
.cart-summary h3 { margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.95rem; }
.summary-row.total { border-top: 1px solid var(--medium-gray); padding-top: 12px; font-weight: 700; font-size: 1.1rem; }
.coupon-form { display: flex; gap: 8px; margin: 16px 0; }
.coupon-form input { flex: 1; padding: 8px 12px; border: 1px solid var(--medium-gray); border-radius: 4px; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-light); font-size: 0.85rem; }

/* ==================== CHECKOUT ==================== */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; margin: 1.5rem 0; }
.checkout-section { background: white; padding: 24px; border-radius: var(--radius); margin-bottom: 1rem; }
.checkout-section h3 { margin-bottom: 16px; font-size: 1.1rem; }
.radio-group { display: flex; gap: 2rem; }
.radio-group label { font-weight: normal; cursor: pointer; }
.payment-methods { margin-bottom: 1rem; }
.payment-option { display: block; padding: 12px; border: 1px solid var(--medium-gray); border-radius: 6px; margin-bottom: 8px; cursor: pointer; transition: var(--transition); }
.payment-option:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }
.payment-option input { margin-right: 8px; }
.checkout-sidebar { background: white; padding: 24px; border-radius: var(--radius); position: sticky; top: 100px; height: fit-content; }
.order-items-mini { margin-bottom: 16px; }
.mini-item { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 4px 0; color: var(--text-light); }

/* ==================== ORDERS TABLE ==================== */
.orders-table-wrapper { overflow-x: auto; margin: 1.5rem 0; }
.orders-table { width: 100%; background: white; border-radius: var(--radius); overflow: hidden; border-collapse: collapse; }
.orders-table th { background: var(--primary-dark); color: white; padding: 14px 16px; text-align: left; font-size: 0.85rem; }
.orders-table td { padding: 12px 16px; border-bottom: 1px solid var(--medium-gray); font-size: 0.9rem; }
.orders-table tr:hover { background: var(--light-gray); }

/* ==================== ORDER DETAIL ==================== */
.back-link { display: inline-block; margin: 1rem 0; color: var(--text-light); }
.back-link:hover { color: var(--primary); }
.order-date { color: var(--text-light); margin-bottom: 1.5rem; }
.order-status-tracker { margin: 1.5rem 0; padding: 20px; background: white; border-radius: var(--radius); }
.tracker-steps { display: flex; justify-content: space-between; position: relative; }
.tracker-steps::before { content: ''; position: absolute; top: 12px; left: 0; right: 0; height: 2px; background: var(--medium-gray); z-index: 0; }
.tracker-step { position: relative; z-index: 1; text-align: center; font-size: 0.7rem; }
.tracker-step .step-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--medium-gray); margin: 0 auto 4px; border: 3px solid white; }
.tracker-step.completed .step-dot { background: var(--success); }
.tracker-step span { display: block; white-space: nowrap; }
.order-detail-layout { display: grid; grid-template-columns: 1fr 350px; gap: 2rem; margin: 1.5rem 0; }
.order-item-row { display: flex; gap: 1rem; align-items: center; background: white; padding: 16px; border-radius: var(--radius); margin-bottom: 8px; }
.order-summary-sidebar { background: white; padding: 24px; border-radius: var(--radius); position: sticky; top: 100px; }
.order-summary-sidebar h4 { margin: 16px 0 8px; font-size: 0.9rem; text-transform: uppercase; color: var(--text-light); }
.driver-info { background: var(--light-gray); padding: 12px; border-radius: 6px; margin: 8px 0; font-size: 0.9rem; }
.cancel-order-form { margin-top: 2rem; }

/* ==================== BADGES ==================== */
.badge { display: inline-block; padding: 4px 10px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }
.badge-payment-paid { background: #e8f5e9; color: #2e7d32; }
.badge-payment-pending { background: #fff3e0; color: #f57c00; }
.badge-payment-failed { background: #fce4ec; color: #c62828; }
.badge-payment-refunded { background: #e3f2fd; color: #1565c0; }
.badge-status-pending { background: #fff3e0; color: #f57c00; }
.badge-status-confirmed, .badge-status-processing { background: #e3f2fd; color: #1565c0; }
.badge-status-delivered { background: #e8f5e9; color: #2e7d32; }
.badge-status-cancelled, .badge-status-rejected { background: #fce4ec; color: #c62828; }
.badge-status-approved, .badge-status-verified { background: #e8f5e9; color: #2e7d32; }
.badge-status-suspended, .badge-status-blacklisted { background: #fce4ec; color: #c62828; }

/* ==================== SEARCH PAGE ==================== */
.search-layout { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; margin: 1.5rem 0; }
.search-filters { background: white; padding: 20px; border-radius: var(--radius); height: fit-content; position: sticky; top: 100px; }
.search-filters h4 { margin-bottom: 8px; font-size: 0.9rem; text-transform: uppercase; }
.search-filters ul { list-style: none; }
.search-filters ul li a { display: block; padding: 6px 0; color: var(--text-light); font-size: 0.85rem; }
.search-filters ul li a.active { color: var(--primary); font-weight: 600; }
.sort-select { width: 100%; padding: 8px; border: 1px solid var(--medium-gray); border-radius: 4px; }
.results-count { color: var(--text-light); font-size: 0.9rem; margin-bottom: 1rem; }

/* ==================== EMPTY STATE ==================== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-light); }
.empty-state i { color: var(--medium-gray); margin-bottom: 16px; }
.empty-state h2, .empty-state h3 { margin-bottom: 8px; }
.empty-state p { margin-bottom: 20px; }

/* ==================== PAGINATION ==================== */
.pagination-wrapper { margin-top: 2rem; display: flex; justify-content: center; }
.pagination { display: flex; gap: 4px; list-style: none; }
.pagination li a, .pagination li span { padding: 8px 14px; background: white; border: 1px solid var(--medium-gray); border-radius: 4px; color: var(--text); font-size: 0.9rem; display: block; }
.pagination li.active span { background: var(--primary); color: white; border-color: var(--primary); }
.pagination li.disabled span { color: var(--medium-gray); }
.pagination li a:hover { background: var(--primary-light); }

/* ==================== PROFILE PAGE ==================== */
.profile-page { margin: 2rem 0; }
.profile-card { background: white; border-radius: var(--radius); padding: 32px; max-width: 600px; margin: 0 auto; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .hero-content { flex-direction: column; text-align: center; }
    .hero-stats { justify-content: center; }
    .hero-text h1 { font-size: 2.2rem; }
    .product-detail { grid-template-columns: 1fr; }
    .cart-layout, .checkout-layout, .order-detail-layout { grid-template-columns: 1fr; }
    .search-layout { grid-template-columns: 1fr; }
    .search-filters { position: static; }
    .trust-banner { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .header-inner { flex-wrap: wrap; gap: 8px; }
    .search-bar { order: 3; max-width: 100%; flex-basis: 100%; }
    .hero-text h1 { font-size: 1.8rem; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .trust-banner { grid-template-columns: 1fr 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .category-item { min-width: 80px; padding: 8px 12px; }
    .tracker-steps { flex-wrap: wrap; gap: 8px; }
}
