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


html {
    scroll-behavior: smooth;
}


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

    color: #222;

    background: white;
}


.container {
    width: 90%;

    max-width: 1200px;

    margin: auto;
}


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

.header {
    position: sticky;

    top: 0;

    z-index: 1000;

    background: white;

    border-bottom: 1px solid #eeeeee;
}


.header-content {
    min-height: 75px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}


/* ================= LOGO ================= */

.logo {
    text-decoration: none;

    font-size: 34px;

    font-weight: 900;

    letter-spacing: 2px;

    white-space: nowrap;
}


.red {
    color: #ff3b30;
}


.orange {
    color: #ff9500;
}


.yellow {
    color: #ffd60a;
}


.green {
    color: #34c759;
}


.blue {
    color: #007aff;
}


.purple {
    color: #af52de;
}


/* ================= MENU ================= */

.menu {
    display: flex;

    align-items: center;

    gap: 30px;
}


.menu a {
    color: #333;

    text-decoration: none;

    font-weight: bold;

    transition: 0.3s;
}


.menu a:hover {
    color: #af52de;

    transform: translateY(-2px);
}


/* ================= CART BUTTON ================= */

.cart-button {
    border: none;

    padding: 12px 18px;

    border-radius: 12px;

    color: white;

    font-weight: bold;

    cursor: pointer;

    background:
        linear-gradient(
            90deg,
            #ff3b30,
            #ff9500,
            #ffd60a,
            #34c759,
            #007aff,
            #af52de
        );

    transition: 0.3s;
}


.cart-button:hover {
    transform: translateY(-3px);

    box-shadow:
        0 8px 20px rgba(0,0,0,0.18);
}


#cart-count {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 22px;

    height: 22px;

    margin-left: 5px;

    padding: 3px 6px;

    border-radius: 50%;

    background: white;

    color: #af52de;
}


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

.hero {
    position: relative;

    overflow: hidden;

    padding: 100px 0;

    background:
        linear-gradient(
            135deg,
            #fff0f5,
            #fff9df,
            #effff4,
            #eef7ff,
            #f7edff
        );
}


.rainbow-line {
    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 7px;

    background:
        linear-gradient(
            90deg,
            red,
            orange,
            yellow,
            green,
            blue,
            purple
        );
}


.hero-content {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 60px;
}


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


.subtitle {
    margin-bottom: 15px;

    color: #8e44ad;

    font-size: 14px;

    font-weight: 900;

    letter-spacing: 1px;
}


.hero h1 {
    margin-bottom: 25px;

    font-size: 62px;

    line-height: 1.05;
}


.rainbow-text {
    display: block;

    background:
        linear-gradient(
            90deg,
            #ff3b30,
            #ff9500,
            #ffd60a,
            #34c759,
            #007aff,
            #af52de
        );

    background-clip: text;

    -webkit-background-clip: text;

    color: transparent;
}


.hero-description {
    margin-bottom: 30px;

    color: #666;

    font-size: 19px;

    line-height: 1.6;
}


/* ================= MAIN BUTTON ================= */

.main-button {
    display: inline-block;

    padding: 16px 28px;

    border-radius: 14px;

    color: white;

    text-decoration: none;

    font-weight: bold;

    background:
        linear-gradient(
            90deg,
            #ff3b30,
            #ff9500,
            #34c759,
            #007aff,
            #af52de
        );

    transition: 0.3s;
}


.main-button:hover {
    transform: translateY(-4px);

    box-shadow:
        0 12px 25px rgba(0,0,0,0.18);
}


/* ================= TEDDY BEAR ================= */

.hero-toy {
    width: 350px;

    height: 350px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    font-size: 150px;

    background:
        linear-gradient(
            135deg,
            #ff3b30,
            #ff9500,
            #ffd60a,
            #34c759,
            #007aff,
            #af52de
        );

    box-shadow:
        0 20px 50px rgba(0,0,0,0.15);

    animation: floating 3s infinite ease-in-out;
}


@keyframes floating {

    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0);
    }

}


/* ================= CATEGORIES ================= */

.categories {
    padding: 70px 0 30px;
}


.categories h2 {
    margin-bottom: 25px;

    font-size: 38px;
}


.category-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;
}


.category-buttons button {
    padding: 13px 20px;

    border: 2px solid #eeeeee;

    border-radius: 30px;

    background: white;

    cursor: pointer;

    font-weight: bold;

    transition: 0.3s;
}


.category-buttons button:hover {
    color: white;

    border-color: transparent;

    background:
        linear-gradient(
            90deg,
            #ff3b30,
            #ff9500,
            #34c759,
            #007aff,
            #af52de
        );

    transform: translateY(-3px);
}


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

.products {
    padding: 50px 0 100px;
}


.products-top {
    display: flex;

    align-items: end;

    justify-content: space-between;

    gap: 30px;

    margin-bottom: 35px;
}


.products-top h2 {
    font-size: 40px;
}


#search {
    width: 290px;

    padding: 15px 18px;

    border: 2px solid #eeeeee;

    border-radius: 12px;

    outline: none;

    font-size: 15px;

    transition: 0.3s;
}


#search:focus {
    border-color: #af52de;
}


/* ================= PRODUCTS GRID ================= */

.products-grid {
    display: grid;

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

    gap: 25px;
}


/* ================= PRODUCT CARD ================= */

.product-card {
    overflow: hidden;

    border: 2px solid #eeeeee;

    border-radius: 20px;

    background: white;

    transition: 0.3s;
}


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

    border-color: #af52de;

    box-shadow:
        0 15px 35px rgba(0,0,0,0.1);
}


.product-image {
    height: 220px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 100px;

    background:
        linear-gradient(
            135deg,
            #fff1f5,
            #fff9df,
            #effff4,
            #eef7ff,
            #f8efff
        );
}


.product-info {
    padding: 20px;
}


.product-info h3 {
    margin-bottom: 10px;

    font-size: 19px;
}


.product-info p {
    min-height: 42px;

    margin-bottom: 15px;

    color: #777;

    font-size: 14px;

    line-height: 1.5;
}


.product-bottom {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;
}


.price {
    font-size: 20px;

    font-weight: 900;
}


.buy-button {
    padding: 10px 14px;

    border: none;

    border-radius: 9px;

    color: white;

    font-weight: bold;

    cursor: pointer;

    background:
        linear-gradient(
            90deg,
            #ff3b30,
            #ff9500,
            #007aff,
            #af52de
        );

    transition: 0.3s;
}


.buy-button:hover {
    transform: scale(1.08);
}


/* ================= ABOUT ================= */

.about {
    padding: 90px 0;

    background:
        linear-gradient(
            135deg,
            #fff1f5,
            #fff9df,
            #effff4,
            #eef7ff,
            #f8efff
        );
}


.about h2 {
    margin-bottom: 20px;

    font-size: 42px;
}


.about-text {
    max-width: 700px;

    color: #666;

    font-size: 18px;

    line-height: 1.7;
}


.numbers {
    display: flex;

    gap: 60px;

    margin-top: 35px;
}


.numbers div {
    display: flex;

    flex-direction: column;
}


.numbers strong {
    font-size: 28px;
}


.numbers span {
    margin-top: 5px;

    color: #777;
}


/* ================= CONTACTS ================= */

.contacts {
    padding: 90px 0;

    text-align: center;
}


.contacts h2 {
    margin-bottom: 15px;

    font-size: 40px;
}


.contact-text {
    margin-bottom: 25px;

    color: #777;
}


/* ================= INSTAGRAM ================= */

.instagram {
    display: inline-block;

    padding: 15px 28px;

    border-radius: 12px;

    color: white;

    text-decoration: none;

    font-weight: bold;

    background:
        linear-gradient(
            45deg,
            #feda75,
            #fa7e1e,
            #d62976,
            #962fbf,
            #4f5bd5
        );

    transition: 0.3s;
}


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

    box-shadow:
        0 10px 25px rgba(214,41,118,0.3);
}


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

footer {
    padding: 30px 0;

    background: #222;

    color: white;
}


.footer-content {
    display: flex;

    align-items: center;

    justify-content: space-between;
}


/* ================= CART ================= */

.cart-background {
    position: fixed;

    inset: 0;

    z-index: 2000;

    display: none;

    justify-content: flex-end;

    background: rgba(0,0,0,0.5);
}


.cart {
    width: 420px;

    max-width: 100%;

    height: 100%;

    padding: 25px;

    background: white;

    display: flex;

    flex-direction: column;
}


.cart-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 25px;
}


.close-cart {
    border: none;

    background: none;

    font-size: 25px;

    cursor: pointer;
}


#cart-items {
    flex: 1;

    overflow-y: auto;
}


.cart-item {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    padding: 15px 0;

    border-bottom: 1px solid #eeeeee;
}


.remove-button {
    border: none;

    background: none;

    color: red;

    cursor: pointer;
}


.cart-bottom {
    padding-top: 20px;

    border-top: 1px solid #dddddd;
}


.cart-bottom button {
    width: 100%;

    margin-top: 15px;

    padding: 15px;

    border: none;

    border-radius: 10px;

    color: white;

    font-weight: bold;

    cursor: pointer;

    background:
        linear-gradient(
            90deg,
            #ff3b30,
            #ff9500,
            #34c759,
            #007aff,
            #af52de
        );
}


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

@media (max-width: 900px) {

    .container {
        width: 92%;
    }


    .menu {
        gap: 15px;
    }


    .menu a {
        font-size: 14px;
    }


    .logo {
        font-size: 28px;
    }


    .hero {
        padding: 70px 0;
    }


    .hero-content {
        flex-direction: column;

        text-align: center;
    }


    .hero-text {
        max-width: 700px;
    }


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


    .hero-description {
        font-size: 17px;
    }


    .hero-toy {
        width: 280px;

        height: 280px;

        font-size: 120px;
    }


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

}


/* ================= PHONE ================= */

@media (max-width: 600px) {

    .container {
        width: 92%;
    }


    /* HEADER */

    .header-content {
        min-height: 65px;

        gap: 10px;
    }


    .logo {
        font-size: 24px;

        letter-spacing: 1px;
    }


    .menu {
        display: none;
    }


    .cart-button {
        padding: 9px 12px;

        font-size: 13px;
    }


    /* HERO */

    .hero {
        padding: 60px 0 70px;
    }


    .hero-content {
        gap: 35px;
    }


    .subtitle {
        font-size: 11px;

        margin-bottom: 12px;
    }


    .hero h1 {
        font-size: 40px;

        line-height: 1.1;

        margin-bottom: 20px;
    }


    .hero-description {
        font-size: 16px;

        line-height: 1.5;

        margin-bottom: 25px;
    }


    .main-button {
        width: 100%;

        max-width: 320px;

        padding: 15px 20px;

        text-align: center;
    }


    /* TEDDY */

    .hero-toy {
        width: 230px;

        height: 230px;

        font-size: 100px;
    }


    /* CATEGORIES */

    .categories {
        padding: 55px 0 20px;
    }


    .categories h2 {
        font-size: 32px;

        margin-bottom: 20px;
    }


    .category-buttons {
        display: grid;

        grid-template-columns:
            1fr 1fr;

        gap: 10px;
    }


    .category-buttons button {
        width: 100%;

        padding: 12px 8px;

        font-size: 13px;
    }


    /* PRODUCTS */

    .products {
        padding: 40px 0 70px;
    }


    .products-top {
        flex-direction: column;

        align-items: stretch;

        gap: 20px;

        margin-bottom: 25px;
    }


    .products-top h2 {
        font-size: 32px;
    }


    #search {
        width: 100%;

        padding: 14px;

        font-size: 14px;
    }


    .products-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }


    .product-card {
        border-radius: 16px;
    }


    .product-image {
        height: 190px;

        font-size: 85px;
    }


    .product-info {
        padding: 17px;
    }


    .product-info h3 {
        font-size: 18px;
    }


    .product-info p {
        font-size: 13px;
    }


    .price {
        font-size: 18px;
    }


    .buy-button {
        padding: 10px 15px;

        font-size: 13px;
    }


    /* ABOUT */

    .about {
        padding: 65px 0;
    }


    .about h2 {
        font-size: 32px;

        line-height: 1.15;
    }


    .about-text {
        font-size: 16px;

        line-height: 1.6;
    }


    /* NUMBERS */

    .numbers {
        display: grid;

        grid-template-columns:
            repeat(3, 1fr);

        gap: 10px;

        margin-top: 30px;
    }


    .numbers div {
        text-align: center;
    }


    .numbers strong {
        font-size: 21px;
    }


    .numbers span {
        font-size: 12px;
    }


    /* CONTACTS */

    .contacts {
        padding: 65px 0;
    }


    .contacts h2 {
        font-size: 31px;

        line-height: 1.2;
    }


    .instagram {
        width: 100%;

        max-width: 300px;

        padding: 14px;

        text-align: center;
    }


    /* FOOTER */

    footer {
        padding: 25px 0;
    }


    .footer-content {
        flex-direction: column;

        gap: 12px;

        text-align: center;
    }


    /* CART */

    .cart {
        width: 100%;

        padding: 20px;
    }


    .cart-header h2 {
        font-size: 22px;
    }


    .cart-item {
        gap: 10px;
    }


    .cart-bottom button {
        padding: 14px;
    }

}


/* ================= SMALL PHONE ================= */

@media (max-width: 380px) {

    .logo {
        font-size: 21px;
    }


    .cart-button {
        padding: 8px 9px;

        font-size: 11px;
    }


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


    .hero-toy {
        width: 200px;

        height: 200px;

        font-size: 85px;
    }


    .category-buttons {
        grid-template-columns: 1fr;
    }


    .numbers strong {
        font-size: 18px;
    }

}