* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #b32635;
    --primary-dark: #8f1d2a;
    --primary-light: #fff1f3;

    --dark: #17181c;
    --text: #30323a;
    --muted: #737783;

    --background: #ffffff;
    --surface: #f7f7f8;
    --border: #e8e8eb;

    --radius: 18px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text);
    background: var(--background);
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* HEADER */

.header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);

    border-bottom: 1px solid var(--border);
}

.header-content {
    height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 21px;
}

.logo-icon {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    background: var(--primary);
    color: white;

    font-weight: 800;
    font-size: 22px;
}

.logo strong {
    display: block;
    line-height: 17px;
}

.logo small {
    display: block;

    color: var(--primary);

    font-size: 14px;
    font-weight: 700;
}

.desktop-nav {
    display: flex;
    gap: 30px;

    color: var(--muted);
    font-size: 14px;
}

.desktop-nav a:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.location-button,
.login-button,
.sell-button {
    border: 0;
    border-radius: 10px;

    padding: 11px 15px;

    background: transparent;
}

.location-button {
    color: var(--muted);
}

.login-button {
    border: 1px solid var(--border);
}

.sell-button {
    background: var(--primary);
    color: white;

    font-weight: 700;
}

.mobile-menu-button {
    display: none;

    border: 0;
    background: transparent;

    font-size: 25px;
}


/* MOBILE MENU */

.mobile-menu {
    display: none;

    position: fixed;
    top: 76px;
    left: 0;
    right: 0;

    z-index: 99;

    padding: 25px;

    background: white;
    border-bottom: 1px solid var(--border);

    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.mobile-menu.open {
    display: block;
}

.mobile-menu a {
    display: block;

    padding: 14px 0;

    font-weight: 600;
}

.mobile-menu hr {
    border: 0;
    border-top: 1px solid var(--border);

    margin: 10px 0;
}

.mobile-sell {
    color: var(--primary);
}


/* HERO */

.hero {
    background:
        radial-gradient(circle at 80% 20%, #ffe7ea, transparent 35%),
        linear-gradient(135deg, #fff 0%, #fff8f9 100%);

    overflow: hidden;
}

.hero-content {
    min-height: 570px;

    display: grid;
    grid-template-columns: 1.05fr 0.95fr;

    align-items: center;

    gap: 50px;
}

.hero-badge {
    display: inline-block;

    padding: 8px 14px;

    border-radius: 30px;

    background: var(--primary-light);
    color: var(--primary);

    font-size: 13px;
    font-weight: 700;
}

.hero h1 {
    margin-top: 20px;

    max-width: 650px;

    font-size: clamp(42px, 5vw, 66px);
    line-height: 1.04;

    letter-spacing: -3px;

    color: var(--dark);
}

.hero h1 span {
    color: var(--primary);
}

.hero-text > p {
    max-width: 600px;

    margin-top: 22px;

    color: var(--muted);

    font-size: 18px;
    line-height: 1.6;
}

.search-box {
    margin-top: 35px;

    display: flex;
    align-items: center;

    padding: 7px;

    max-width: 680px;

    background: white;

    border: 1px solid var(--border);
    border-radius: 15px;

    box-shadow: 0 15px 40px rgba(80, 20, 30, 0.08);
}

.search-input {
    flex: 1;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 10px 14px;
}

.search-input span {
    font-size: 20px;
}

.search-input input {
    width: 100%;

    border: 0;
    outline: 0;

    color: var(--text);
}

.search-location {
    padding: 12px 20px;

    border-left: 1px solid var(--border);

    color: var(--muted);

    font-size: 14px;
}

.search-box > button {
    border: 0;
    border-radius: 11px;

    padding: 14px 23px;

    background: var(--primary);
    color: white;

    font-weight: 700;
}

.hero-links {
    margin-top: 18px;

    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 8px;

    color: var(--muted);

    font-size: 13px;
}

.hero-links button {
    border: 0;

    padding: 6px 10px;

    border-radius: 20px;

    background: var(--primary-light);
    color: var(--primary);
}


/* HERO VISUAL */

.hero-visual {
    position: relative;

    min-height: 450px;
}

.hero-circle {
    position: absolute;

    width: 290px;
    height: 290px;

    top: 80px;
    left: 50%;

    transform: translateX(-50%);

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--primary-light);

    font-size: 105px;

    box-shadow:
        inset 0 0 0 25px white,
        0 25px 70px rgba(179, 38, 53, 0.15);
}

.hero-card {
    position: absolute;

    z-index: 2;

    width: 200px;

    padding: 18px;

    display: flex;
    flex-direction: column;

    gap: 6px;

    border: 1px solid white;
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.9);

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);

    font-size: 35px;
}

.hero-card strong {
    font-size: 16px;
}

.hero-card small {
    color: var(--muted);

    font-size: 12px;
}

.card-one {
    top: 40px;
    left: 20px;
}

.card-two {
    top: 230px;
    right: 0;
}

.card-three {
    bottom: 20px;
    left: 70px;
}


/* SECTIONS */

.section {
    padding: 85px 0;
}

.section-gray {
    background: var(--surface);
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;

    margin-bottom: 35px;
}

.section-label {
    color: var(--primary);

    font-size: 13px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header h2 {
    margin-top: 5px;

    color: var(--dark);

    font-size: 31px;
    letter-spacing: -1px;
}

.section-header > a {
    color: var(--primary);

    font-weight: 700;
}


/* CATEGORIES */

.categories-grid {
    display: grid;

    grid-template-columns: repeat(8, 1fr);

    gap: 13px;
}

.category-card {
    min-height: 150px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 7px;

    border: 1px solid var(--border);
    border-radius: 17px;

    background: white;

    transition: 0.2s;
}

.category-card:hover {
    transform: translateY(-5px);

    border-color: #efc4c9;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.category-card > span {
    font-size: 31px;
}

.category-card strong {
    font-size: 13px;
}

.category-card small {
    color: var(--muted);
    font-size: 10px;
}


/* LISTINGS */

.listing-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}

.listing-card {
    overflow: hidden;

    background: white;

    border: 1px solid var(--border);
    border-radius: 18px;

    transition: 0.2s;
}

.listing-card:hover {
    transform: translateY(-4px);

    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.08);
}

.listing-image {
    position: relative;

    height: 210px;

    display: grid;
    place-items: center;

    overflow: hidden;
}

.image-phone {
    background: linear-gradient(135deg, #c5dbe4, #edf5f7);
}

.image-bike {
    background: linear-gradient(135deg, #d5e6d1, #f1f7ed);
}

.image-sofa {
    background: linear-gradient(135deg, #ead8ca, #f7eee8);
}

.image-car {
    background: linear-gradient(135deg, #d9dce1, #f4f5f6);
}

.product-icon {
    font-size: 85px;

    filter: drop-shadow(0 12px 15px rgba(0, 0, 0, 0.15));
}

.featured-tag {
    position: absolute;

    top: 13px;
    left: 13px;

    padding: 7px 10px;

    border-radius: 8px;

    background: #54dfad;

    color: white;

    font-size: 12px;
    font-weight: 800;
}

.favorite {
    position: absolute;

    top: 12px;
    right: 12px;

    width: 38px;
    height: 38px;

    border: 0;
    border-radius: 50%;

    background: white;

    font-size: 22px;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.favorite.active {
    color: var(--primary);
}

.listing-content {
    padding: 17px;
}

.listing-category {
    color: var(--muted);

    font-size: 11px;
}

.listing-content h3 {
    margin-top: 5px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    font-size: 17px;
}

.price {
    display: block;

    margin-top: 10px;

    color: var(--primary);

    font-size: 20px;
}

.listing-info {
    display: flex;
    justify-content: space-between;

    margin-top: 12px;

    color: var(--muted);

    font-size: 11px;
}

.seller {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-top: 17px;

    padding-top: 14px;

    border-top: 1px solid var(--border);
}

.seller-avatar {
    width: 35px;
    height: 35px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--primary);

    color: white;

    font-weight: 700;
}

.seller-avatar.person {
    background: #626b86;
}

.seller-avatar.store {
    background: #222;
}

.seller strong,
.seller small {
    display: block;
}

.seller strong {
    font-size: 12px;
}

.seller small {
    margin-top: 2px;

    color: var(--muted);

    font-size: 10px;
}


/* PEOPLE / STORES */

.type-filter {
    display: flex;

    gap: 5px;

    padding: 4px;

    border-radius: 10px;

    background: var(--surface);
}

.type-filter button {
    border: 0;

    padding: 9px 14px;

    border-radius: 8px;

    background: transparent;

    color: var(--muted);

    font-size: 12px;
}

.type-filter button.active {
    background: white;

    color: var(--primary);

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.seller-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.seller-card {
    display: flex;
    align-items: center;

    gap: 15px;

    padding: 22px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: white;
}

.big-avatar {
    width: 60px;
    height: 60px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--primary-light);

    color: var(--primary);

    font-size: 24px;
    font-weight: 800;
}

.person-avatar {
    background: #edf0f7;
    color: #596278;
}

.store-avatar {
    background: #f1ece7;
    color: #8a5b35;
}

.seller-card h3 {
    font-size: 15px;
}

.store-badge,
.person-badge {
    display: inline-block;

    margin-top: 4px;

    font-size: 11px;
}

.store-badge {
    color: #b26c19;
}

.person-badge {
    color: #697187;
}

.rating {
    margin-top: 5px;

    color: #e79b00;

    font-size: 12px;
}

.seller-card button {
    margin-left: auto;

    border: 0;

    background: transparent;

    color: var(--primary);

    font-size: 12px;
    font-weight: 700;
}


/* CTA */

.cta {
    padding: 65px 0;

    background: var(--primary);
    color: white;
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.cta span {
    font-size: 13px;
    font-weight: 700;
}

.cta h2 {
    max-width: 600px;

    margin-top: 7px;

    font-size: 35px;
    letter-spacing: -1px;
}

.cta p {
    margin-top: 10px;

    opacity: 0.85;
}

.cta button {
    border: 0;
    border-radius: 12px;

    padding: 15px 25px;

    background: white;

    color: var(--primary);

    font-weight: 800;
}


/* FOOTER */

.footer {
    padding-top: 60px;

    background: #17181c;
    color: white;
}

.footer-content {
    display: flex;
    justify-content: space-between;

    gap: 50px;

    padding-bottom: 50px;
}

.footer-logo {
    color: white;
}

.footer-content p {
    max-width: 300px;

    margin-top: 15px;

    color: #999ca5;

    line-height: 1.6;
}

.footer-links {
    display: flex;

    gap: 80px;
}

.footer-links div {
    display: flex;
    flex-direction: column;

    gap: 12px;
}

.footer-links strong {
    margin-bottom: 5px;
}

.footer-links a {
    color: #999ca5;

    font-size: 13px;
}

.footer-bottom {
    padding: 20px;

    border-top: 1px solid #2b2d32;

    text-align: center;

    color: #777b84;

    font-size: 12px;
}


/* RESPONSIVE */

@media (max-width: 1000px) {

    .desktop-nav {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .listing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding: 70px 0;
    }

    .hero-visual {
        display: none;
    }

    .seller-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 650px) {

    .container {
        width: min(100% - 28px, 1180px);
    }

    .header-content {
        height: 68px;
    }

    .location-button {
        display: none;
    }

    .login-button {
        display: none;
    }

    .sell-button {
        padding: 9px 12px;
        font-size: 12px;
    }

    .hero h1 {
        font-size: 43px;
        letter-spacing: -2px;
    }

    .hero-text > p {
        font-size: 16px;
    }

    .search-box {
        flex-direction: column;
        align-items: stretch;

        padding: 10px;
    }

    .search-location {
        border-left: 0;
        border-top: 1px solid var(--border);
    }

    .search-box > button {
        width: 100%;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .listing-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 0;
    }

    .section-header {
        align-items: start;
        flex-direction: column;

        gap: 15px;
    }

    .type-filter {
        width: 100%;
    }

    .type-filter button {
        flex: 1;
    }

    .cta-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta h2 {
        font-size: 29px;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        gap: 45px;
    }

}