:root {
    --red: #e51b23;
    --red-dark: #b90f17;
    --yellow: #ffd21c;
    --orange: #ff9f1c;
    --cream: #fff8e7;
    --dark: #202020;
    --gray: #6f6f6f;
    --light: #f7f7f7;
    --white: #ffffff;
    --border: #eeeeee;

    --font-main: "Poppins", sans-serif;
    --font-heading: "Baloo 2", cursive;

    --shadow: 0 12px 35px rgba(0, 0, 0, .08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--dark);
    background: #fff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    width: 100%;
}

button,
input {
    font-family: inherit;
}

.container {
    width: min(1180px, 92%);
    margin: auto;
}

/* TOP BAR */

.top-bar {
    background: var(--red);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
}

.top-inner {
    min-height: 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* HEADER */

.header {
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    min-height: 86px;
    display: flex;
    align-items: center;
    gap: 35px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 205px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--red);
    display: grid;
    place-items: center;
    font-size: 25px;
    box-shadow: 4px 4px 0 var(--yellow);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.logo-text strong {
    font-family: var(--font-heading);
    font-size: 25px;
    color: var(--red);
    font-weight: 800;
}

.logo-text small {
    color: #555;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.search-box {
    flex: 1;
    max-width: 560px;
    height: 46px;
    display: flex;
    border: 2px solid #eee;
    border-radius: 30px;
    overflow: hidden;
    background: #fafafa;
}

.search-box input {
    flex: 1;
    border: 0;
    outline: none;
    background: transparent;
    padding: 0 20px;
    font-size: 13px;
}

.search-box button {
    width: 55px;
    border: 0;
    background: var(--yellow);
    cursor: pointer;
    font-size: 17px;
}

.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 20px;
}

.header-link small {
    font-size: 9px;
    font-weight: 600;
}

.cart-button {
    position: relative;
    border: 0;
    background: var(--red);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -4px;
    width: 19px;
    height: 19px;
    background: var(--yellow);
    color: #222;
    border-radius: 50%;
    font-size: 10px;
    display: grid;
    place-items: center;
    font-weight: 800;
}

/* NAV */

.navigation {
    border-bottom: 1px solid var(--border);
    background: #fff;
}

.nav-inner {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-inner a {
    position: relative;
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.nav-inner a:hover,
.nav-inner a.active {
    color: var(--red);
}

.nav-inner a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -17px;
    width: 100%;
    height: 3px;
    background: var(--red);
}

/* HERO */

.hero {
    background:
        radial-gradient(circle at 90% 20%, rgba(255,210,28,.35), transparent 25%),
        linear-gradient(110deg, #fff7df, #fff 70%);
    padding: 70px 0;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr .9fr;
    align-items: center;
    gap: 60px;
}

.hero-label,
.section-label,
.promo-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--red);
    margin-bottom: 10px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(55px, 7vw, 86px);
    line-height: .85;
    color: var(--red);
    font-weight: 800;
    margin-bottom: 25px;
}

.hero h1 span {
    display: block;
    color: var(--dark);
    font-size: .46em;
    line-height: 1;
    margin-top: 16px;
}

.hero p {
    color: var(--gray);
    max-width: 570px;
    font-size: 15px;
    margin-bottom: 28px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 25px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    transition: .25s ease;
}

.btn-primary {
    background: var(--red);
    color: white;
    box-shadow: 0 8px 20px rgba(229,27,35,.2);
}

.btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
}

.btn-light {
    background: white;
    border: 1px solid #ddd;
}

.btn-light:hover {
    border-color: var(--red);
    color: var(--red);
}

.hero-info {
    display: flex;
    gap: 35px;
    margin-top: 40px;
}

.hero-info div {
    display: flex;
    flex-direction: column;
}

.hero-info strong {
    font-size: 21px;
    color: var(--red);
}

.hero-info span {
    font-size: 10px;
    color: #777;
}

.hero-image {
    position: relative;
    padding: 20px;
}

.hero-image img {
    height: 470px;
    object-fit: cover;
    border-radius: 35px;
    box-shadow: 20px 25px 60px rgba(0,0,0,.15);
}

.hero-badge {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    width: 105px;
    height: 105px;
    background: var(--yellow);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: rotate(12deg);
    box-shadow: 0 10px 25px rgba(0,0,0,.12);
}

.hero-badge strong {
    font-size: 22px;
    color: var(--red);
}

.hero-badge span {
    font-size: 9px;
    font-weight: 800;
}

.floating-card {
    position: absolute;
    bottom: 5px;
    left: 0;
    background: white;
    padding: 14px 18px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 12px;
}

.floating-card > span {
    font-size: 27px;
}

.floating-card strong,
.floating-card small {
    display: block;
}

.floating-card strong {
    font-size: 12px;
}

.floating-card small {
    color: var(--gray);
    font-size: 10px;
}

/* SECTION */

.section {
    padding: 80px 0;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 35px;
}

.section-heading h2 {
    font-family: var(--font-heading);
    font-size: 39px;
    line-height: 1;
}

.section-heading > a {
    color: var(--red);
    font-size: 12px;
    font-weight: 700;
}

.section-heading.center {
    display: block;
    text-align: center;
}

.section-heading.center p {
    max-width: 550px;
    margin: 10px auto 0;
    color: var(--gray);
    font-size: 13px;
}

/* CATEGORIES */

.categories {
    background: #fff;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.category-card {
    padding: 25px 15px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 18px;
    transition: .25s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

.category-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    margin: 0 auto 13px;
    display: grid;
    place-items: center;
    font-size: 28px;
}

.category-icon.yellow {
    background: #fff3b5;
}

.category-icon.red {
    background: #ffe1e1;
}

.category-icon.orange {
    background: #ffe7c8;
}

.category-icon.green {
    background: #dcf5e6;
}

.category-icon.blue {
    background: #dceeff;
}

.category-card h3 {
    font-size: 13px;
    margin-bottom: 3px;
}

.category-card span {
    font-size: 10px;
    color: #888;
}

/* PROMO */

.promo {
    background: var(--cream);
}

.promo-box {
    background: var(--red);
    border-radius: 30px;
    min-height: 320px;
    color: white;
    padding: 45px 55px;
    display: grid;
    grid-template-columns: 1fr 330px;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.promo-content {
    position: relative;
    z-index: 2;
}

.promo-label {
    color: var(--yellow);
}

.promo-content h2 {
    font-family: var(--font-heading);
    font-size: 52px;
    line-height: .95;
    max-width: 600px;
    margin-bottom: 15px;
}

.promo-content h2 span {
    color: var(--yellow);
    display: block;
}

.promo-content p {
    max-width: 500px;
    font-size: 13px;
    color: #ffe9e9;
    margin-bottom: 25px;
}

.promo-product {
    position: relative;
}

.promo-product img {
    width: 270px;
    height: 220px;
    object-fit: cover;
    border-radius: 25px;
    transform: rotate(5deg);
    box-shadow: 10px 20px 40px rgba(0,0,0,.2);
}

.discount {
    position: absolute;
    z-index: 2;
    top: -15px;
    right: 10px;
    width: 75px;
    height: 75px;
    background: var(--yellow);
    color: var(--red);
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-weight: 800;
    transform: rotate(10deg);
}

/* PRODUCTS */

.products {
    background: #fff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    background: white;
    transition: .25s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.product-image {
    height: 220px;
    background: #f7f7f7;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-tag {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    background: var(--red);
    color: white;
    padding: 5px 9px;
    border-radius: 5px;
    font-size: 8px;
    font-weight: 800;
}

.product-tag.spicy {
    background: #f15a24;
}

.product-content {
    padding: 18px;
}

.product-category {
    color: var(--red);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
}

.product-content h3 {
    font-size: 14px;
    margin: 4px 0 7px;
}

.rating {
    font-size: 10px;
    color: #f3b400;
}

.rating span {
    color: #999;
}

.price {
    margin: 12px 0;
}

.price strong {
    font-size: 17px;
    color: var(--red);
}

.price del {
    margin-left: 5px;
    font-size: 10px;
    color: #aaa;
}

.add-cart {
    width: 100%;
    height: 40px;
    border: 1px solid var(--red);
    color: var(--red);
    background: white;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

.add-cart:hover {
    background: var(--red);
    color: white;
}

/* FEATURES */

.features {
    background: #fafafa;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    text-align: center;
    background: white;
    padding: 30px 20px;
    border-radius: 18px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #fff1bf;
    display: grid;
    place-items: center;
    font-size: 27px;
}

.feature-card h3 {
    font-size: 14px;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 11px;
    color: var(--gray);
}

/* CTA */

.cta {
    background: var(--yellow);
    padding: 55px 0;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-inner > div > span {
    color: var(--red);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.cta h2 {
    font-family: var(--font-heading);
    font-size: 42px;
    line-height: 1;
    margin: 8px 0;
}

.cta p {
    color: #5c4c00;
    font-size: 12px;
}

.btn-white {
    background: white;
    color: var(--red);
    min-width: 180px;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,.12);
}

/* FOOTER */

.footer {
    background: #191919;
    color: white;
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 50px;
    padding-bottom: 50px;
}

.footer-logo {
    min-width: auto;
    margin-bottom: 18px;
}

.footer-logo .logo-text strong {
    color: var(--yellow);
}

.footer-logo .logo-text small {
    color: #bbb;
}

.footer-brand > p {
    max-width: 320px;
    color: #aaa;
    font-size: 11px;
}

.socials {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.socials a {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid #444;
    border-radius: 50%;
    font-size: 12px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column h3 {
    color: var(--yellow);
    font-size: 13px;
    margin-bottom: 8px;
}

.footer-column a,
.footer-column p {
    color: #aaa;
    font-size: 11px;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 20px 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #777;
    font-size: 9px;
}

/* RESPONSIVE */

@media (max-width: 1000px) {

    .header-inner {
        gap: 15px;
    }

    .logo {
        min-width: 175px;
    }

    .header-actions {
        gap: 10px;
    }

    .hero-grid {
        gap: 30px;
    }

    .hero-image img {
        height: 400px;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {

    .top-inner {
        justify-content: center;
        text-align: center;
    }

    .top-inner span:last-child {
        display: none;
    }

    .header-inner {
        flex-wrap: wrap;
        padding: 15px 0;
    }

    .logo {
        min-width: 0;
    }

    .search-box {
        order: 3;
        flex-basis: 100%;
        max-width: none;
    }

    .header-link {
        display: none;
    }

    .navigation {
        overflow-x: auto;
    }

    .nav-inner {
        width: max-content;
        gap: 25px;
    }

    .nav-inner a.active::after {
        bottom: -15px;
    }

    .hero {
        padding: 50px 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 65px;
    }

    .hero-image {
        padding: 10px 0 30px;
    }

    .hero-image img {
        height: 330px;
    }

    .floating-card {
        left: 10px;
    }

    .hero-info {
        gap: 20px;
    }

    .section {
        padding: 60px 0;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
        gap: 10px;
    }

    .section-heading h2 {
        font-size: 34px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .promo-box {
        padding: 35px 25px;
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .promo-content h2 {
        font-size: 42px;
    }

    .promo-product {
        display: flex;
        justify-content: center;
    }

    .promo-product img {
        width: 240px;
    }

    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .product-image {
        height: 170px;
    }

    .product-content {
        padding: 13px;
    }

    .feature-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }

    .footer-bottom .container {
        flex-direction: column;
    }
}

@media (max-width: 450px) {

    .hero h1 {
        font-size: 55px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .category-grid {
        grid-template-columns: 1fr 1fr;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 230px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}