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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    color: #111111;
    overflow-x: hidden;
}

/* ============ NAVBAR (eBay Style) ============ */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 0.8rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.logo-sub {
    font-size: 0.7rem;
    font-weight: 400;
    color: #666;
    margin-left: 5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #111111;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #0066c0;
}

.cart-icon {
    cursor: pointer;
    font-size: 1.2rem;
    position: relative;
    background: #f0f0f0;
    padding: 8px 16px;
    border-radius: 30px;
    transition: background 0.2s;
}

.cart-icon:hover {
    background: #e5e5e5;
}

#cart-count {
    background: #c41e3a;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 0.7rem;
    margin-left: 8px;
    color: white;
}

/* ============ HERO SECTION ============ */
.hero {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    padding: 4rem 2rem;
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 500;
    color: #111;
    margin-bottom: 0.5rem;
}

.hero p {
    color: #666;
    font-size: 1.1rem;
}

/* ============ FILTER BAR ============ */
.filters {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.filter-btn {
    background: #ffffff;
    border: 1px solid #d4d4d4;
    padding: 0.5rem 1.2rem;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s;
    border-radius: 30px;
    color: #333;
}

.filter-btn:hover {
    border-color: #0066c0;
    color: #0066c0;
}

.filter-btn.active {
    background: #0066c0;
    border-color: #0066c0;
    color: white;
}

/* ============ PRODUCT GRID (eBay Style Cards) ============ */
.products-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    transition: all 0.2s ease;
    cursor: pointer;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #f8f8f8;
}

.product-info {
    padding: 1rem;
}

.product-name {
    font-size: 1rem;
    font-weight: 500;
    color: #111;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #c41e3a;
    margin: 0.5rem 0;
}

.product-price small {
    font-size: 0.7rem;
    font-weight: 400;
    color: #666;
}

.product-description {
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.add-to-cart-btn {
    width: 100%;
    padding: 0.7rem;
    background: #ffd814;
    border: 1px solid #fcd200;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
    color: #111;
    font-family: inherit;
}

.add-to-cart-btn:hover {
    background: #f7ca00;
    border-color: #f2c200;
}

/* ============ CHECKOUT MODAL (Payment Options) ============ */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.payment-content {
    background: white;
    border-radius: 12px;
    max-width: 550px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

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

.payment-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-header h2 {
    font-size: 1.3rem;
    font-weight: 500;
}

.close-payment {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.close-payment:hover {
    color: #111;
}

.payment-body {
    padding: 1.5rem;
}

.order-summary {
    background: #f8f8f8;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.order-summary h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #666;
}

.order-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: #c41e3a;
}

.order-number {
    font-family: monospace;
    background: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: inline-block;
}

/* ============ PAYMENT OPTIONS LIST ============ */
.payment-options {
    margin: 1.5rem 0;
}

.payment-options h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.payment-option {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.2s;
}

.payment-option:hover {
    border-color: #0066c0;
    background: #f8faff;
}

.payment-option.selected {
    border-color: #0066c0;
    background: #f8faff;
}

.payment-option-radio {
    display: flex;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    width: 100%;
}

.payment-option-radio input {
    margin-right: 1rem;
    accent-color: #0066c0;
}

.payment-icon {
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.payment-details {
    flex: 1;
}

.payment-name {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.payment-description {
    font-size: 0.75rem;
    color: #666;
}

/* ============ CASH APP SPECIFIC SECTION ============ */
.cashapp-section {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f8f8;
    border-radius: 8px;
    border-left: 3px solid #00d632;
}

.cashapp-section h4 {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    color: #111;
}

.cashtag-display {
    background: white;
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.8rem;
    border: 1px solid #e5e5e5;
}

.cashtag-display a {
    color: #00d632;
    text-decoration: none;
    font-family: monospace;
    letter-spacing: 1px;
}

.cashtag-display a:hover {
    text-decoration: underline;
}

.cashapp-note {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #fff3cd;
    border-radius: 6px;
}

.order-code {
    background: #f0f0f0;
    padding: 0.5rem;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.85rem;
    text-align: center;
    margin: 0.5rem 0;
}

.manual-instructions {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px dashed #ddd;
    font-size: 0.75rem;
    color: #888;
}

/* ============ BUTTONS IN MODAL ============ */
.copy-btn, .confirm-payment {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.8rem;
    font-family: inherit;
}

.copy-btn {
    background: #f0f0f0;
    border: 1px solid #ddd;
    color: #333;
}

.copy-btn:hover {
    background: #e5e5e5;
}

.confirm-payment {
    background: #00d632;
    border: none;
    color: white;
}

.confirm-payment:hover {
    background: #00c22e;
}

/* ============ CART MODAL (eBay Style) ============ */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.cart-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.cart-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
}

.cart-items {
    padding: 1rem 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-summary {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e5e5;
    background: #fafafa;
}

.cart-total {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: right;
}

.checkout-btn {
    width: 100%;
    padding: 0.8rem;
    background: #ffd814;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
}

/* ============ CHECKOUT MODAL ============ */
.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.checkout-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.checkout-content h2 {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e5e5;
    font-size: 1.2rem;
}

.checkout-content form {
    padding: 1.5rem;
}

.checkout-content input,
.checkout-content textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #d4d4d4;
    border-radius: 8px;
    font-family: inherit;
}

.checkout-content input:focus,
.checkout-content textarea:focus {
    outline: none;
    border-color: #0066c0;
}

.checkout-content button[type="submit"] {
    width: 100%;
    padding: 0.8rem;
    background: #0066c0;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* ============ NOTIFICATION ============ */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #111;
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    z-index: 3000;
    animation: slideIn 0.3s ease;
    font-size: 0.85rem;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
        padding: 0.8rem;
    }
    
    .product-image {
        height: 150px;
    }
    
    .product-name {
        font-size: 0.8rem;
    }
    
    .product-price {
        font-size: 1rem;
    }
    
    .filters {
        gap: 0.3rem;
    }
    
    .filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }
}

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

/* ============ HELPER CLASSES ============ */
.hidden {
    display: none;
}

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

.mt-2 {
    margin-top: 0.5rem;
}

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