/* ========================================
   RESET
======================================== */

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

html {
    scroll-behavior: smooth;
}

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

    background: #ffffff;

    color: #171717;

    line-height: 1.5;
}

a {
    text-decoration: none;

    color: inherit;
}

button {
    font-family: inherit;
}


/* ========================================
   HEADER
======================================== */

.header {
    width: 100%;

    background: #ffffff;

    border-bottom: 1px solid #eeeeee;

    position: sticky;

    top: 0;

    z-index: 100;
}

.header-container {
    max-width: 1180px;

    margin: auto;

    padding:
        18px 25px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.logo {
    font-size: 19px;

    font-weight: 700;

    letter-spacing: 0.5px;
}

.nav {
    display: flex;

    align-items: center;

    gap: 28px;
}

.nav a {
    color: #555555;

    font-size: 14px;

    transition:
        color 0.2s ease;
}

.nav a:hover {
    color: #111111;
}


/* ========================================
   HERO
======================================== */

.hero {
    background: #f5f5f5;

    min-height: 500px;

    display: flex;

    align-items: center;
}

.hero-container {
    width: 100%;

    max-width: 1180px;

    margin: auto;

    padding:
        80px 25px;
}

.hero-content {
    max-width: 650px;
}

.hero-label {
    display: inline-block;

    margin-bottom: 18px;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 2px;

    color: #666666;
}

.hero h1 {
    font-size: 52px;

    line-height: 1.08;

    letter-spacing: -1.5px;

    margin-bottom: 22px;
}

.hero p {
    max-width: 520px;

    color: #666666;

    font-size: 16px;

    line-height: 1.7;

    margin-bottom: 30px;
}

.hero-button {
    display: inline-block;

    background: #111111;

    color: #ffffff;

    padding:
        13px 24px;

    border-radius: 7px;

    font-size: 14px;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.hero-button:hover {
    background: #333333;

    transform: translateY(-1px);
}


/* ========================================
   PRODUCTS SECTION
======================================== */

.products-section {
    padding:
        90px 0;
}

.section-container {
    max-width: 1180px;

    margin: auto;

    padding:
        0 25px;
}

.section-header {
    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    gap: 30px;

    margin-bottom: 40px;
}

.section-label {
    display: block;

    margin-bottom: 8px;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 2px;

    color: #888888;
}

.section-header h2 {
    font-size: 32px;

    line-height: 1.2;
}

.section-header > p {
    max-width: 350px;

    color: #777777;

    font-size: 14px;

    line-height: 1.6;
}


/* ========================================
   PRODUCT GRID
======================================== */

.product-grid {
    display: grid;

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

    gap: 22px;
}

.product-card {
    background: #ffffff;

    border: 1px solid #e9e9e9;

    border-radius: 12px;

    overflow: hidden;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

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

    box-shadow:
        0 10px 30px
        rgba(0, 0, 0, 0.07);
}


/* ========================================
   PRODUCT IMAGE
======================================== */

.product-image-wrapper {
    width: 100%;

    aspect-ratio: 1 / 1;

    background: #f4f4f4;

    overflow: hidden;
}

.product-image {
    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    transition:
        transform 0.3s ease;
}

.product-card:hover
.product-image {
    transform: scale(1.03);
}


/* ========================================
   PRODUCT INFO
======================================== */

.product-info {
    padding: 18px;
}

.product-name {
    font-size: 16px;

    font-weight: 600;

    line-height: 1.4;

    margin-bottom: 8px;

    min-height: 45px;
}

.product-price {
    font-size: 17px;

    font-weight: 700;

    margin-bottom: 16px;
}

.product-button {
    display: block;

    width: 100%;

    padding:
        11px 14px;

    border-radius: 7px;

    background: #111111;

    color: #ffffff;

    text-align: center;

    font-size: 13px;

    transition:
        background 0.2s ease;
}

.product-button:hover {
    background: #333333;
}


/* ========================================
   NO IMAGE
======================================== */

.no-image {
    width: 100%;

    height: 100%;

    display: flex;

    justify-content: center;

    align-items: center;

    color: #999999;

    font-size: 13px;
}


/* ========================================
   LOADING
======================================== */

.loading {
    min-height: 200px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    color: #777777;
}

.loading-spinner {
    width: 30px;

    height: 30px;

    border:
        3px solid #eeeeee;

    border-top-color: #222222;

    border-radius: 50%;

    animation:
        spin 0.8s linear infinite;

    margin-bottom: 15px;
}

@keyframes spin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


/* ========================================
   ERROR
======================================== */

.error-box {
    padding: 35px;

    border:
        1px solid #eeeeee;

    border-radius: 12px;

    text-align: center;

    background: #fafafa;
}

.error-box h3 {
    margin-bottom: 8px;

    font-size: 18px;
}

.error-box p {
    color: #777777;

    font-size: 14px;

    margin-bottom: 18px;
}

.retry-button {
    border: none;

    background: #111111;

    color: #ffffff;

    padding:
        10px 18px;

    border-radius: 7px;

    cursor: pointer;

    font-size: 13px;
}


/* ========================================
   EMPTY
======================================== */

.empty-box {
    padding: 60px 20px;

    text-align: center;

    border:
        1px solid #eeeeee;

    border-radius: 12px;

    background: #fafafa;
}

.empty-box h3 {
    margin-bottom: 8px;
}

.empty-box p {
    color: #777777;

    font-size: 14px;
}


/* ========================================
   FOOTER
======================================== */

.footer {
    background: #111111;

    color: #ffffff;

    padding:
        45px 0;
}

.footer-container {
    max-width: 1180px;

    margin: auto;

    padding:
        0 25px;
}

.footer-brand {
    font-size: 18px;

    font-weight: 700;

    margin-bottom: 7px;
}

.footer-container p {
    color: #aaaaaa;

    font-size: 13px;
}

.footer-line {
    height: 1px;

    background: #333333;

    margin:
        25px 0 18px;
}

.footer-container small {
    color: #777777;

    font-size: 12px;
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 950px) {

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

    .hero h1 {
        font-size: 44px;
    }

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 700px) {

    .header-container {
        padding:
            15px 18px;
    }

    .nav {
        gap: 17px;
    }

    .nav a {
        font-size: 13px;
    }

    .hero {
        min-height: 440px;
    }

    .hero-container {
        padding:
            65px 18px;
    }

    .hero h1 {
        font-size: 38px;

        letter-spacing: -1px;
    }

    .hero p {
        font-size: 14px;
    }

    .products-section {
        padding:
            65px 0;
    }

    .section-container {
        padding:
            0 18px;
    }

    .section-header {
        display: block;

        margin-bottom: 30px;
    }

    .section-header h2 {
        font-size: 28px;

        margin-bottom: 10px;
    }

    .section-header > p {
        font-size: 13px;
    }

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

        gap: 13px;
    }

    .product-info {
        padding: 13px;
    }

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

        min-height: 40px;
    }

    .product-price {
        font-size: 15px;

        margin-bottom: 12px;
    }

    .product-button {
        padding:
            10px 8px;

        font-size: 12px;
    }

    .footer-container {
        padding:
            0 18px;
    }

}


/* ========================================
   SMALL MOBILE
======================================== */

@media (max-width: 400px) {

    .hero h1 {
        font-size: 33px;
    }

    .product-grid {
        gap: 10px;
    }

}