/* ============================================
   CHIKAKUMARKET - COMPLETE STYLESHEET
   ============================================ */

:root {
    --primary: #7b2cbf;
    --primary-light: #9d4edd;
    --primary-dark: #5a189a;
    --secondary: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --dark: #1a1a2e;
    --dark-light: #2d3748;
    --gray-dark: #4b5563;
    --gray: #6b7280;
    --gray-light: #e5e7eb;
    --gray-lighter: #f3f4f6;
    --light: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.5;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== HEADER ===== */
.header {
    background: var(--light);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--gray-light);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-logo {
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-weight: 700;
    font-size: 1rem;
    color: var(--dark);
}

.logo-tagline {
    font-size: 0.7rem;
    color: var(--gray);
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

/* Categories Dropdown */
.categories-dropdown {
    position: relative;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.categories-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 600px;
    background: var(--light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 1.5rem;
    display: none;
    z-index: 1000;
    border: 1px solid var(--gray-light);
}

.categories-menu.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.category-column h4 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.category-link {
    display: block;
    padding: 0.3rem 0;
    color: var(--gray-dark);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
    cursor: pointer;
}

.category-link:hover {
    color: var(--primary);
}

/* Search Container */
.search-container {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 0.6rem 1rem;
    padding-right: 2.5rem;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.search-container input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-container button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.search-results.show {
    display: block;
}

.search-result-item {
    padding: 0.75rem;
    border-bottom: 1px solid var(--gray-light);
    cursor: pointer;
}

.search-result-item:hover {
    background: var(--gray-lighter);
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Sell Button */
.sell-btn {
    background: linear-gradient(135deg, var(--secondary), #d97706);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.sell-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

/* Message Button */
.message-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: 2px solid var(--gray-light);
    border-radius: 30px;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.message-btn i {
    font-size: 1rem;
}

.message-btn:hover {
    border-color: var(--primary);
    background: var(--gray-lighter);
}

.message-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.message-badge.zero-badge {
    display: none;
}

/* Cart Button */
.cart-wrapper {
    position: relative;
}

.cart-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--dark);
    transition: color 0.3s;
}

.cart-btn:hover {
    color: var(--primary);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cart Dropdown */
.cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    max-width: calc(100vw - 20px);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: none;
    z-index: 1000;
    border: 1px solid var(--gray-light);
}

.cart-dropdown.show {
    display: block;
    animation: slideDown 0.3s ease;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-light);
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
}

.cart-items {
    max-height: 300px;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-light);
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    font-size: 0.85rem;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quantity-btn {
    width: 24px;
    height: 24px;
    border: 1px solid var(--gray-light);
    background: white;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.remove-item {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    margin-left: auto;
}

.cart-footer {
    padding: 1rem;
    border-top: 1px solid var(--gray-light);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    margin-bottom: 1rem;
}

.empty-cart-message {
    text-align: center;
    padding: 2rem;
    color: var(--gray);
}

.empty-cart-message i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--gray-lighter);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.user-btn:hover {
    background: var(--gray-light);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 1000;
    border: 1px solid var(--gray-light);
}

.user-dropdown.show {
    display: block;
    animation: slideDown 0.3s ease;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--dark);
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: var(--gray-lighter);
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-light);
    margin: 0.5rem 0;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
    padding: 0.5rem;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 350px;
    height: 100vh;
    background: white;
    padding: 1.5rem;
    overflow-y: auto;
    animation: slideInRight 0.3s ease;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-light);
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.close-menu-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
}

.mobile-search {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.mobile-search input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
}

.mobile-search button {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0 1rem;
    cursor: pointer;
}

.mobile-categories {
    margin-bottom: 1.5rem;
}

.mobile-categories h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.mobile-category-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-category-list a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: var(--dark);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.mobile-category-list a:hover {
    background: var(--gray-lighter);
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.mobile-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: var(--dark);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.mobile-links a:hover {
    background: var(--gray-lighter);
}

.mobile-message-badge {
    background: var(--danger);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    margin-left: auto;
}

#mobileSellBtn {
    background: linear-gradient(135deg, var(--secondary), #d97706);
    color: white;
    font-weight: 600;
}

#mobileSellBtn i {
    color: white;
}

.mobile-auth {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.mobile-btn {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    text-decoration: none;
    border-radius: var(--radius-sm);
}

.mobile-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--gray-light);
}

.security-badges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.security-badges span {
    font-size: 0.75rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================
   FLOATING BUTTONS - COMPLETE (Sell, Msg, Cart)
   SHOW ON ALL MOBILE SCREEN SIZES
   ============================================ */

.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.floating-sell-btn,
.floating-msg-btn,
.floating-cart-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    border: none;
}

.floating-sell-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.floating-msg-btn {
    background: linear-gradient(135deg, #7b2cbf, #9d4edd);
    color: white;
}

.floating-cart-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.floating-sell-btn i,
.floating-msg-btn i,
.floating-cart-btn i {
    font-size: 1.3rem;
    margin-bottom: 2px;
}

.floating-sell-btn span,
.floating-msg-btn span,
.floating-cart-btn span {
    font-size: 0.65rem;
    font-weight: 600;
}

.floating-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    z-index: 2;
}

.floating-sell-btn:hover,
.floating-msg-btn:hover,
.floating-cart-btn:hover {
    transform: scale(1.1);
}

.floating-sell-btn:active,
.floating-msg-btn:active,
.floating-cart-btn:active {
    transform: scale(0.95);
}

/* Animation for cart button when item added */
@keyframes cartPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.8);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    }
}

.floating-cart-btn.pulse {
    animation: cartPulse 0.5s ease;
}

/* FORCE FLOATING CART TO APPEAR ON ALL MOBILE SCREENS */
@media (max-width: 768px) {
    .floating-cart-btn {
        display: flex !important;
    }
}

@media (max-width: 480px) {
    .floating-cart-btn {
        display: flex !important;
    }
}

/* Hero Section */
.hero-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f5ff 0%, #f0f7ff 100%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 0 1.5rem;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-highlight {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    color: var(--gray-dark);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray);
}

.hero-visual {
    position: relative;
    height: 400px;
}

.floating-cards {
    position: relative;
    height: 100%;
}

.product-card-preview {
    position: absolute;
    width: 220px;
    height: 280px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: transform 0.3s;
}

.product-card-preview:hover {
    transform: translateY(-10px);
}

#card1 {
    top: 0;
    left: 0;
    transform: rotate(-5deg);
    z-index: 1;
}

#card2 {
    top: 40px;
    left: 120px;
    transform: rotate(2deg);
    z-index: 2;
}

#card3 {
    top: 80px;
    left: 240px;
    transform: rotate(5deg);
    z-index: 3;
}

.product-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-label {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Categories Section */
.categories-section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.highlight {
    color: var(--primary);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s;
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: rgba(123, 44, 191, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary);
    font-size: 1.5rem;
}

.category-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--gray);
    font-size: 0.8rem;
}

.category-count {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.2rem 0.8rem;
    background: var(--gray-lighter);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
}

/* Quick Sell Banner */
.quick-sell-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    margin: 2rem auto;
    max-width: 1200px;
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.quick-sell-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-sell-btn {
    background: white;
    color: var(--primary);
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.quick-sell-btn:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

/* Products Section */
.products-section {
    padding: 4rem 0;
    background: var(--gray-lighter);
}

.section-filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.2rem;
    background: white;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--success);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    z-index: 1;
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1rem;
}

.product-category {
    color: var(--primary);
    font-size: 0.7rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-description {
    color: var(--gray);
    font-size: 0.8rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.7rem;
    color: var(--gray);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid var(--gray-light);
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.add-to-cart,
.quick-view {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s;
}

.add-to-cart {
    background: var(--primary);
    color: white;
}

.quick-view {
    background: var(--gray-lighter);
    color: var(--dark);
}

.add-to-cart:hover,
.quick-view:hover {
    transform: scale(1.1);
}

.section-footer {
    text-align: center;
    margin-top: 2rem;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--gray);
    font-size: 0.85rem;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-brand {
    grid-column: span 2;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-description {
    color: #a0aec0;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    max-width: 300px;
}

.security-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #a0aec0;
    font-size: 0.8rem;
}

.social-links {
    display: flex;
    gap: 0.5rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--primary);
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright p {
    color: #a0aec0;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-legal a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.75rem;
}

.footer-legal a:hover {
    color: white;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-content {
    padding: 2rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
}

.modal-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.modal-product-image img {
    width: 100%;
    border-radius: var(--radius-md);
}

.modal-product-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.modal-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.modal-product-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: var(--gray);
}

.modal-product-description {
    margin-bottom: 1rem;
}

.modal-product-description h4 {
    margin-bottom: 0.5rem;
}

.modal-product-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 4000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: white;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid;
}

.toast-success {
    border-left-color: var(--success);
}

.toast-error {
    border-left-color: var(--danger);
}

.toast-warning {
    border-left-color: var(--warning);
}

.toast-info {
    border-left-color: var(--primary);
}

.toast i {
    font-size: 1rem;
}

.toast-success i {
    color: var(--success);
}

.toast-error i {
    color: var(--danger);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .categories-menu {
        width: 500px;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-container {
        justify-content: space-between;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .categories-menu {
        width: calc(100vw - 2rem);
        left: 50%;
        transform: translateX(-50%);
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-sell-banner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        margin: 1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .modal-product {
        grid-template-columns: 1fr;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        grid-column: span 1;
        text-align: center;
    }
    
    .footer-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .security-info {
        align-items: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .floating-buttons {
        bottom: 15px;
        right: 15px;
    }
    
    .floating-sell-btn,
    .floating-msg-btn,
    .floating-cart-btn {
        width: 50px;
        height: 50px;
    }
    
    .floating-sell-btn i,
    .floating-msg-btn i,
    .floating-cart-btn i {
        font-size: 1.2rem;
    }
    
    .floating-sell-btn span,
    .floating-msg-btn span,
    .floating-cart-btn span {
        font-size: 0.6rem;
    }
    
    .floating-badge {
        min-width: 16px;
        height: 16px;
        font-size: 0.55rem;
        top: -4px;
        right: -4px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-dropdown {
        width: calc(100vw - 20px);
        right: 10px;
    }
    
    .modal-container {
        width: 95%;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    .toast-container {
        bottom: 80px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        width: auto;
    }
    
    .floating-buttons {
        bottom: 10px;
        right: 10px;
        gap: 8px;
    }
    
    .floating-sell-btn,
    .floating-msg-btn,
    .floating-cart-btn {
        width: 44px;
        height: 44px;
    }
    
    .floating-sell-btn i,
    .floating-msg-btn i,
    .floating-cart-btn i {
        font-size: 1rem;
    }
    
    .floating-sell-btn span,
    .floating-msg-btn span,
    .floating-cart-btn span {
        font-size: 0.55rem;
    }
}

/* ============================================
   MOBILE CART DROPDOWN FIXES
   ============================================ */

/* Make cart dropdown work properly on mobile */
@media (max-width: 768px) {
    .cart-dropdown {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 350px;
        height: auto;
        max-height: 80vh;
        z-index: 10000;
        border-radius: var(--radius-lg);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    }
    
    .cart-dropdown.show {
        display: block;
        animation: mobileCartSlideUp 0.3s ease;
    }
    
    /* Backdrop overlay for mobile cart */
    .cart-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px);
        z-index: 9999;
        display: none;
    }
    

    /* Cart items on mobile */
    .cart-items {
        max-height: 50vh;
    }
    
    .cart-item {
        padding: 0.75rem;
    }
    
    .cart-item-image {
        width: 50px;
        height: 50px;
    }
    
    .cart-item-title {
        font-size: 0.8rem;
    }
    
    .cart-footer {
        padding: 0.75rem;
    }
}

@keyframes mobileCartSlideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* ============================================
   MOBILE INPUT FIXES
   ============================================ */

/* Ensure inputs are clickable on mobile */
input, 
textarea, 
button,
select,
[contenteditable="true"] {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Fix for iOS zoom on input focus */
@media (max-width: 768px) {
    input, 
    select, 
    textarea {
        font-size: 16px !important;
    }
}

/* Ensure no overlay blocks inputs */
.modal-overlay,
.loading-overlay,
.cart-backdrop {
    pointer-events: none;
}

/* But should be clickable when active */
.modal-overlay.active,
.loading-overlay.active,
.cart-backdrop.active {
    pointer-events: auto;
}

/* Auth form inputs - ensure they are above everything */
.auth-form input {
    position: relative;
    z-index: 10;
    background: white;
}

/* Fix for any hidden overlays */
body:has(.modal-overlay.active) .auth-form input {
    pointer-events: none;
}

/* Ensure auth page has proper z-index */
.auth-page .auth-form {
    position: relative;
    z-index: 20;
}

.auth-page .auth-card {
    position: relative;
    z-index: 15;
}

/* Remove any body scroll locks */
body {
    overflow-x: hidden;
    position: relative;
}