* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #f5f5f5;

    color: #222;
}


/* =========================================
   Container
   ========================================= */

.container {
    width: min(
        1000px,
        calc(100% - 30px)
    );

    margin: 0 auto;
}


/* =========================================
   Header
   ========================================= */

.header {
    background: #111;
    color: #fff;

    padding: 40px 0;
}

.header h1 {
    margin: 0 0 20px;

    font-size: 32px;
}


/* =========================================
   Search
   ========================================= */

.search-box {
    display: flex;

    gap: 10px;
}

.search-box input {
    flex: 1;

    min-width: 0;

    padding: 14px 16px;

    border: 0;
    border-radius: 6px;

    font-size: 16px;

    outline: none;
}

.search-box input:focus {
    box-shadow:
        0 0 0 3px
        rgba(37, 99, 235, 0.35);
}

.search-box button {
    padding: 14px 22px;

    border: 0;
    border-radius: 6px;

    background: #2563eb;

    color: #fff;

    font-size: 16px;

    cursor: pointer;
}

.search-box button:hover {
    background: #1d4ed8;
}


/* =========================================
   Sections
   ========================================= */

.featured,
.search-results {
    background: #fff;

    margin-top: 25px;

    padding: 25px;

    border-radius: 10px;
}

.featured h2 {
    margin-top: 0;
}


/* =========================================
   Featured products
   ========================================= */

.featured-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 10px;
}

.featured-grid a {
    display: block;

    padding: 14px;

    background: #f3f4f6;

    border-radius: 6px;

    color: #222;

    text-decoration: none;

    transition:
        background 0.15s ease;
}

.featured-grid a:hover {
    background: #e5e7eb;
}


/* =========================================
   Status
   ========================================= */

#status {
    margin-bottom: 15px;

    color: #666;
}


/* =========================================
   Search result
   ========================================= */

.result {
    padding: 16px 0;

    border-bottom:
        1px solid #e5e7eb;
}

.result:last-child {
    border-bottom: 0;
}

.result a {
    font-size: 18px;

    font-weight: 600;

    color: #2563eb;

    text-decoration: none;
}

.result a:hover {
    text-decoration: underline;
}

.result p {
    margin: 8px 0 0;

    color: #666;

    line-height: 1.5;
}


/* =========================================
   Pagination
   ========================================= */

#pagination {
    display: flex;

    gap: 8px;

    flex-wrap: wrap;

    margin-top: 25px;
}

.page-button {
    padding: 8px 14px;

    border:
        1px solid #d1d5db;

    border-radius: 5px;

    background: #fff;

    cursor: pointer;

    font-size: 14px;
}

.page-button:hover {
    background: #f3f4f6;
}

.page-button.active {
    background: #2563eb;

    border-color: #2563eb;

    color: #fff;
}


/* =========================================
   Loading
   ========================================= */

.loading {
    color: #666;
}


/* =========================================
   Mobile
   ========================================= */

@media (max-width: 600px) {

    .header {
        padding: 30px 0;
    }

    .header h1 {
        font-size: 26px;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box button {
        width: 100%;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

}