:root {
    --blue: #071f4b;
    --blue2: #0b2c66;
    --red: #e5232e;
    --bg: #f5f7fa;
    --border: #e1e6ed;
    --text: #111827;
    --muted: #667085;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* HEADER */

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    flex: 0 0 auto;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--red);
    color: #fff;
    font-weight: 900;
}

.brand-text {
    display: flex;
    flex-direction: column;
    color: var(--blue);
}

.brand-text strong {
    font-size: 21px;
    line-height: 1;
}

.brand-text small {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
}

.header-search {
    flex: 1;
    display: flex;
    max-width: 570px;
    margin: 0 auto;
}

.header-search input {
    width: 100%;
    height: 44px;
    border: 1px solid var(--border);
    border-right: 0;
    border-radius: 9px 0 0 9px;
    padding: 0 15px;
    font-size: 14px;
    outline: none;
}

.header-search input:focus {
    border-color: var(--blue2);
}

.header-search button {
    height: 44px;
    border: 0;
    border-radius: 0 9px 9px 0;
    padding: 0 20px;
    background: var(--blue);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 13px;
    font-weight: 800;
}

.sell-button {
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--red);
    color: #fff;
}


/* CATEGORIES */

.category-nav {
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.category-inner {
    min-height: 45px;
    display: flex;
    align-items: center;
    gap: 28px;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
    color: #475467;
}


/* HERO */

.hero {
    background:
        radial-gradient(circle at 80% 20%, #163d78 0, transparent 28%),
        linear-gradient(120deg, #061b41, #0a2d66);
    color: #fff;
}

.hero-grid {
    min-height: 420px;
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    gap: 70px;
    align-items: center;
    padding-top: 55px;
    padding-bottom: 55px;
}

.eyebrow,
.section-label {
    display: block;
    margin-bottom: 10px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: var(--red);
}

.hero h1 {
    max-width: 650px;
    margin: 0;
    font-size: clamp(44px, 6vw, 72px);
    line-height: .98;
    letter-spacing: -2.5px;
}

.hero-content > p {
    max-width: 650px;
    margin: 22px 0 0;
    color: #d7e0ed;
    font-size: 16px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 900;
}

.button-primary {
    background: var(--red);
    color: #fff;
}

.button-secondary {
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.08);
    color: #fff;
}

.hero-panel {
    padding: 26px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 14px;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(10px);
}

.hero-panel-title {
    margin-bottom: 20px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.stat {
    padding: 18px 8px;
    border-radius: 9px;
    background: rgba(255,255,255,.08);
    text-align: center;
}

.stat strong {
    display: block;
    font-size: 27px;
}

.stat span {
    display: block;
    margin-top: 5px;
    color: #cad5e5;
    font-size: 10px;
}

.hero-info {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.15);
}

.info-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--red);
    font-weight: 900;
}

.hero-info strong {
    font-size: 13px;
}

.hero-info p {
    margin: 5px 0 0;
    color: #cdd8e7;
    font-size: 11px;
    line-height: 1.5;
}


/* SECTIONS */

.section {
    padding: 62px 0;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.section-heading h2 {
    margin: 0;
    color: var(--blue);
    font-size: 30px;
}

.view-all {
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
}


/* MARKET TYPES */

.market-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.market-type {
    min-height: 165px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    transition: transform .15s ease, box-shadow .15s ease;
}

.market-type:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(7,31,75,.09);
}

.market-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #edf2f8;
    color: var(--blue);
    font-size: 23px;
    font-weight: 900;
}

.market-label {
    color: var(--red);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
}

.market-type h3 {
    margin: 6px 0;
    color: var(--blue);
    font-size: 20px;
}

.market-type p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.market-arrow {
    color: var(--red);
    font-size: 24px;
}


/* PRODUCTS */

.products-section {
    background: #fff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.product-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    transition: transform .15s ease, box-shadow .15s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(7,31,75,.1);
}

.product-image {
    position: relative;
    height: 205px;
    display: block;
    overflow: hidden;
    background: #eef2f6;
}

.product-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.no-image {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #aab3c0;
    font-size: 32px;
    font-weight: 900;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 6px 8px;
    border-radius: 5px;
    color: #fff;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .7px;
}

.product-badge.auction {
    background: var(--red);
}

.product-badge.fixed {
    background: var(--blue);
}

.product-body {
    padding: 15px;
}

.product-body h3 {
    min-height: 42px;
    margin: 0;
    color: var(--blue);
    font-size: 15px;
    line-height: 1.4;
}

.product-location {
    margin-top: 8px;
    color: var(--muted);
    font-size: 11px;
}

.product-bottom {
    margin-top: 15px;
    padding-top: 13px;
    border-top: 1px solid var(--border);
}

.product-price small {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 9px;
}

.product-price strong {
    color: var(--blue);
    font-size: 18px;
}


/* EMPTY */

.empty-market {
    padding: 65px 20px;
    border: 1px dashed #cbd4df;
    border-radius: 14px;
    background: var(--bg);
    text-align: center;
}

.empty-icon {
    width: 65px;
    height: 65px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-weight: 900;
}

.empty-market h3 {
    margin: 0;
    color: var(--blue);
    font-size: 23px;
}

.empty-market p {
    margin: 10px 0 22px;
    color: var(--muted);
}


/* SELL CTA */

.sell-cta {
    padding: 42px 0;
    background: var(--red);
    color: #fff;
}

.sell-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.sell-cta span {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.4px;
}

.sell-cta h2 {
    max-width: 700px;
    margin: 7px 0 0;
    font-size: 27px;
}

.sell-cta-button {
    flex: 0 0 auto;
    background: #fff;
    color: var(--red);
}


/* FOOTER */

.site-footer {
    padding: 40px 0;
    background: #051735;
    color: #fff;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-footer strong {
    font-size: 16px;
}

.site-footer p {
    margin: 6px 0 0;
    color: #aebcd0;
    font-size: 11px;
}

.footer-links {
    display: flex;
    gap: 22px;
    color: #d2dbea;
    font-size: 11px;
}


/* MOBILE */

@media (max-width: 900px) {

    .header-inner {
        flex-wrap: wrap;
        padding: 14px 0;
    }

    .header-search {
        order: 3;
        flex-basis: 100%;
        max-width: none;
    }

    .header-actions {
        margin-left: auto;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .market-types {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

    .container {
        width: min(100% - 26px, 1180px);
    }

    .brand-text small {
        display: none;
    }

    .header-actions > a:first-child {
        display: none;
    }

    .category-inner {
        gap: 20px;
    }

    .hero-grid {
        min-height: auto;
        padding-top: 45px;
        padding-bottom: 45px;
    }

    .hero h1 {
        font-size: 45px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .section {
        padding: 45px 0;
    }

    .section-heading h2 {
        font-size: 25px;
    }

    .market-type {
        grid-template-columns: auto 1fr;
    }

    .market-arrow {
        display: none;
    }

    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .product-image {
        height: 155px;
    }

    .product-body {
        padding: 11px;
    }

    .product-body h3 {
        font-size: 13px;
    }

    .sell-cta-inner,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
    }
    
    .register-button {
    padding: 11px 15px;
    border: 1px solid #071f4b;
    border-radius: 8px;
    color: #071f4b;
    background: #ffffff;
}

.register-button:hover {
    background: #071f4b;
    color: #ffffff;
}
}