:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --dark: #111827;
    --gray: #6b7280;
    --light: #f8fafc;
    --border: #e5e7eb;
    --success: #16a34a;
    --danger: #dc2626;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f5f7fb;
    color: var(--dark);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    text-decoration: none;
}

.topbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--dark);
}

.search-box {
    position: relative;
}

.search-box input {
    height: 48px;
    padding-left: 45px;
    padding-right: 15px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    box-shadow: none;
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 13px;
    color: #6b7280;
    font-size: 20px;
}

.hero {
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 55%, #eef2ff 100%);
    border-bottom: 1px solid var(--border);
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.3rem);
    font-weight: 800;
    letter-spacing: -1.5px;
}

.hero p {
    color: var(--gray);
    font-size: 1.05rem;
}

.section-title {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--dark);
    transition: .2s ease;
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .07);
}

.category-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 10px;
    font-size: 20px;
}

.product-card {
    height: 100%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: .2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, .09);
}

.product-image {
    height: 220px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-image .placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 42px;
}

.product-info {
    padding: 18px;
}

.marketplace {
    color: var(--gray);
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.product-name {
    color: var(--dark);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 7px 0 12px;
}

.old-price {
    color: #9ca3af;
    text-decoration: line-through;
    font-size: .85rem;
}

.price {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--dark);
}

.discount {
    display: inline-block;
    margin-left: 7px;
    padding: 4px 7px;
    background: #dcfce7;
    color: var(--success);
    border-radius: 6px;
    font-size: .75rem;
    font-weight: 700;
}

.btn-offer {
    width: 100%;
    border: 0;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    padding: 11px 15px;
    font-weight: 700;
    transition: .2s ease;
}

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

.footer {
    margin-top: 50px;
    background: #111827;
    color: #9ca3af;
}

.footer a {
    color: #d1d5db;
}

@media (max-width: 767px) {
    .hero {
        padding: 40px 0 !important;
    }

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

    .product-image {
        height: 190px;
    }

    .category-card {
        padding: 13px;
    }
}
