* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #faf8fa;
    color: #2b232b;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.container {
    max-width: 1200px;
    padding: 0 18px;
    margin: auto;
}

/* HEADER */

.top {
    background: #fff;
    border-bottom: 1px solid #eee5ec;
    position: sticky;
    top: 0;
    z-index: 3;
}

.head {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-top: 15px;
    padding-bottom: 13px;
}

.logo {
    font-weight: 900;
    font-size: 26px;
    letter-spacing: -1px;
    color: #b8005c;
    white-space: nowrap;
}

.logo span {
    color: #302631;
}

.search {
    display: flex;
    flex: 1;
    border: 1px solid #d9cfd7;
    border-radius: 8px;
    overflow: hidden;
}

.search input {
    min-width: 0;
    flex: 1;
    border: 0;
    padding: 12px;
    outline: 0;
}

.search button,
.button {
    background: #b8005c;
    color: white;
    border: 0;
    padding: 12px 18px;
    font-weight: bold;
    cursor: pointer;
}

.head-link {
    font-size: 14px;
    white-space: nowrap;
}

.nav {
    display: flex;
    gap: 24px;
    overflow: auto;
    padding-bottom: 13px;
    font-size: 14px;
    white-space: nowrap;
}

.nav a:hover {
    color: #b8005c;
}

/* HERO SECTION */

.hero {
    margin: 22px auto;
    background: linear-gradient(
        110deg,
        #ffe5f0,
        #fff2f7 55%,
        #f8d7e8
    );
    border-radius: 16px;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 5%;
    overflow: hidden;
}

.hero h1 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.05;
    margin: 10px 0;
}

.hero p {
    color: #665562;
    line-height: 1.5;
}

.eyebrow {
    font-weight: bold;
    color: #b8005c;
    font-size: 12px;
    letter-spacing: 1px;
}

.hero-icon {
    font-size: 100px;
}

.button {
    display: inline-block;
    border-radius: 7px;
    margin-top: 8px;
}

/* PRODUCTS */

.section {
    margin: 30px auto 40px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title h2 {
    font-size: 23px;
    margin: 0;
}

.muted {
    font-size: 12px;
    color: #776c76;
}

.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.card {
    background: #fff;
    border: 1px solid #eee5ec;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.product-image {
    height: 205px;
    background: #f7edf3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 70px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-info {
    padding: 13px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.product-name {
    font-size: 14px;
    line-height: 1.4;
    min-height: 38px;
    overflow-wrap: anywhere;
}

.price {
    font-weight: 800;
    font-size: 19px;
}

.price del {
    font-size: 12px;
    color: #8b818a;
    font-weight: normal;
    margin-left: 5px;
}

/* ADD TO CART AND BUY NOW */

.product-buttons {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-top: auto;
    padding-top: 5px;
}

.product-buttons form {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.product-buttons button {
    width: 100%;
    min-height: 44px;
    padding: 10px 5px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.add-cart-btn {
    background: #fff;
    color: #b8005c;
    border: 1px solid #b8005c;
}

.add-cart-btn:hover:not(:disabled) {
    background: #fce8f1;
}

.buy-now-btn {
    background: #b8005c;
    color: #fff;
    border: 1px solid #b8005c;
}

.buy-now-btn:hover:not(:disabled) {
    background: #920049;
}

.product-buttons button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* OLD BUTTON SUPPORT */

.outline-button {
    width: 100%;
    padding: 10px;
    border: 1px solid #b8005c;
    color: #b8005c;
    background: #fff;
    border-radius: 7px;
    font-weight: bold;
    cursor: pointer;
}

.outline-button:hover {
    background: #fce8f1;
}

.outline-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* FOOTER */

.footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    background: #251c25;
    color: #fff;
    padding-top: 25px;
    padding-bottom: 20px;
    max-width: none;
}

.footer > div {
    max-width: 1200px;
}

.footer p {
    font-size: 13px;
    color: #d4c9d3;
}

.light {
    color: white;
}

.fine {
    background: #251c25;
    color: #b9aeb8;
    font-size: 11px;
    padding-bottom: 20px;
    max-width: none;
}

/* TABLET */

@media (max-width: 800px) {
    .head {
        gap: 10px;
        flex-wrap: wrap;
    }

    .logo {
        font-size: 23px;
    }

    .search {
        order: 4;
        flex-basis: 100%;
    }

    .head-link {
        margin-left: auto;
    }

    .nav {
        gap: 18px;
    }

    .hero {
        min-height: 220px;
        padding: 24px;
    }

    .hero-icon {
        font-size: 75px;
    }

    .products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .product-image {
        height: 165px;
        font-size: 58px;
    }

    .section-title h2 {
        font-size: 20px;
    }

    .product-info {
        padding: 10px;
    }

    .product-buttons {
        gap: 5px;
    }

    .product-buttons button {
        font-size: 10px;
        padding: 9px 3px;
    }
}

/* SMALL MOBILE */

@media (max-width: 380px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .hero-icon {
        display: none;
    }

    .head-link {
        font-size: 12px;
    }

    .product-buttons {
        gap: 4px;
    }

    .product-buttons button {
        font-size: 9px;
        letter-spacing: 0;
        padding: 8px 2px;
    }
}