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

:root {
    --background: #f6f6f6;
    --surface: #ffffff;
    --text: #111111;
    --muted: #707070;
    --border: #e5e5e5;
    --accent: #111111;
}

body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: var(--background);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1200px, calc(100% - 40px));
    margin: auto;
}


/* NAVBAR */

.navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.logo {
    font-size: 25px;
    font-weight: 800;
    white-space: nowrap;
}

.logo span {
    font-weight: 400;
}


.search-wrapper {
    display: flex;

    width: min(500px, 100%);

    border: 1px solid #dcdcdc;
    border-radius: 8px;

    overflow: hidden;
}

.search-wrapper input {
    flex: 1;

    border: none;
    outline: none;

    padding: 13px 15px;

    font-size: 14px;
}

.search-wrapper button {
    border: none;

    background: #111;
    color: white;

    padding: 0 20px;

    cursor: pointer;
}


.nav-actions {
    display: flex;
    align-items: center;
}

.nav-actions a {
    display: flex;
    gap: 7px;

    font-size: 14px;
    font-weight: 600;
}


/* HERO */

.hero {
    background: #111;
    color: white;
}

.hero-content {
    min-height: 360px;

    display: flex;
    align-items: center;
}

.eyebrow {
    font-size: 12px;
    letter-spacing: 3px;

    margin-bottom: 15px;

    opacity: .7;
}

.hero h1 {
    max-width: 650px;

    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.02;

    margin-bottom: 20px;
}

.hero p:not(.eyebrow) {
    color: #cfcfcf;

    max-width: 500px;

    font-size: 17px;
    line-height: 1.6;

    margin-bottom: 30px;
}

.hero-button {
    display: inline-block;

    background: white;
    color: #111;

    padding: 13px 22px;

    border-radius: 6px;

    font-weight: 700;
}


/* PRODUCTS */

.store-section {
    padding: 70px 0;
}

.section-header {
    display: flex;

    justify-content: space-between;
    align-items: end;

    gap: 30px;

    margin-bottom: 35px;
}

.section-label {
    font-size: 11px;
    letter-spacing: 2px;

    color: var(--muted);

    margin-bottom: 8px;
}

.section-header h2 {
    font-size: 34px;
}


.filters {
    display: flex;
    gap: 8px;

    flex-wrap: wrap;
}

.category-btn {
    border: 1px solid var(--border);
    background: white;

    padding: 9px 15px;

    border-radius: 20px;

    cursor: pointer;
}

.category-btn.active,
.category-btn:hover {
    background: #111;
    color: white;
}


/* PRODUCT GRID */

.product-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 20px;
}


/* PRODUCT CARD */

.product-card {
    background: white;

    border: 1px solid var(--border);

    border-radius: 10px;

    overflow: hidden;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.product-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, .08);
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;

    object-fit: cover;

    display: block;
}

.product-info {
    padding: 17px;
}

.product-category {
    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 1px;

    color: #888;

    margin-bottom: 7px;
}

.product-name {
    font-size: 17px;
    font-weight: 600;

    margin-bottom: 9px;

    line-height: 1.3;
}

.rating {
    font-size: 13px;

    margin-bottom: 12px;
}

.rating span {
    color: #777;
}

.price-row {
    display: flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 15px;
}

.price {
    font-size: 20px;
    font-weight: 800;
}

.original-price {
    font-size: 13px;

    color: #999;

    text-decoration: line-through;
}

.discount {
    font-size: 11px;

    background: #eeeeee;

    padding: 4px 6px;

    border-radius: 4px;
}

.view-button {
    display: block;

    text-align: center;

    background: #111;
    color: white;

    padding: 11px;

    border-radius: 6px;

    font-size: 13px;
    font-weight: 700;
}


/* STATES */

.loading {
    text-align: center;

    padding: 60px 0;

    color: var(--muted);
}

.empty-state {
    text-align: center;

    padding: 70px 20px;

    background: white;

    border: 1px solid var(--border);

    border-radius: 10px;
}

.empty-state p {
    margin-top: 8px;
    color: var(--muted);
}

.hidden {
    display: none !important;
}


/* FOOTER */

footer {
    border-top: 1px solid var(--border);

    padding: 30px 0;

    color: #777;

    font-size: 13px;
}


/* TABLET */

@media (max-width: 1000px) {

    .product-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


/* MOBILE */

@media (max-width: 750px) {

    .nav-inner {
        flex-wrap: wrap;

        padding: 15px 0;
    }

    .search-wrapper {
        order: 3;

        width: 100%;
    }

    .hero-content {
        min-height: 320px;
    }

    .section-header {
        align-items: flex-start;

        flex-direction: column;
    }

    .product-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px;
    }

    .product-info {
        padding: 12px;
    }

    .product-name {
        font-size: 14px;
    }

    .price {
        font-size: 17px;
    }

}


/* SMALL MOBILE */

@media (max-width: 450px) {

    .container {
        width: min(
            100% - 24px,
            1200px
        );
    }

    .product-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .category-btn {
        font-size: 12px;

        padding: 8px 11px;
    }

}
.card-actions {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 7px;
}

.add-cart-card,
.view-button {
    min-height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 6px;

    font-size: 12px;

    font-weight: 700;
}

.add-cart-card {
    background: white;

    border: 1px solid #111;

    cursor: pointer;

    color: #111;
}

.add-cart-card:hover {
    background: #111;

    color: white;
}

.view-button {
    background: #111;

    color: white;
}