/*~~~~~~~~~~~~~~~ GOOGLE FONTS ~~~~~~~~~~~~~~~*/

@import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&family=Titan+One&display=swap");

/*~~~~~~~~~~~~~~~ VARIABLES CSS ~~~~~~~~~~~~~~~*/

:root {
    --header-height: 3.5rem;
    /*========== Colors ==========*/
    /*Color mode HSL(hue, saturation, lightness)*/
    --primary-color: hsl(359, 100%, 35%);
    --primary-color-alt: hsl(359, 100%, 25%);
    --title-color: hsl(19, 16%, 15%);
    --text-color: hsl(19, 16%, 35%);
    --text-color-light: hsl(19, 8%, 55%);
    --body-color: hsl(35, 52%, 87%);
    --container-color: hsl(19, 100%, 97%);
    /*========== Font and typography ==========*/
    /*.5rem = 8px | 1rem = 16px ...*/
    --body-font: "Poppins", sans-serif;
    --title-font: "Titan One", cursive;
    --subtitle-font: "Dancing Script", cursive;
    --font-2xl: 2.5rem;
    --font-xl: 2rem;
    --font-lg: 1.25rem;
    --font-md: 1rem;
    --font-sm: 0.938rem;
    --font-xm: 0.813rem;
    /*========== Font weight ==========*/
    --font-medium: 500;
    --font-semi-bold: 600;
}

@media screen and (min-width: 1200px) {
    :root {
        --font-2xl: 5rem;
        --font-xl: 3rem;
        --font-lg: 1.5rem;
        --font-md: 1.25rem;
        --font-sm: 1rem;
        --font-xm: 0.875rem;
    }
}


/*~~~~~~~~~~~~~~~ BASE ~~~~~~~~~~~~~~~*/
.home__data {
    text-align: center;
    padding: 0 1rem;
}

.home__tagline,
.home__scarcity {
    margin: 1rem 0;
    line-height: 1.4;
    font-size: 0.95rem;
}

.home__features {
    display: inline-block;
    text-align: left;
    margin: 1rem auto;
    padding: 0;
    list-style: none;
}

.home__features li {
    margin: 0.5rem 0;
    line-height: 1.3;
    font-size: 0.95rem;
}

.button.order-now-btn {
    margin-top: 1.5rem;
}


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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--font-sm);
    background-color: var(--body-color);
    color: var(--text-color);
    transition: background 0.4s;
}

h1,
h2,
h3 {
    color: var(--title-color);
    font-weight: var(--font-medium);
}

ul {
    list-style-type: none;
}

a {
    text-decoration: none;
    cursor: pointer;
}

img {
    max-width: 100%;
    height: auto;
}


/*~~~~~~~~~~~~~~~ THEME ~~~~~~~~~~~~~~~*/

.nav__buttons {
    display: flex;
    align-items: center;
    column-gap: 1rem;
}

.nav__cart {
    position: relative;
    font-size: 1.25rem;
    color: var(--title-color);
    cursor: pointer;
}

.nav__cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.change-theme {
    font-size: 1.25rem;
    color: var(--title-color);
    cursor: pointer;
    transition: color 0.3s;
    transform: rotate(245deg);
}


/*~~~~~~~~~~ Variables Dark theme ~~~~~~~~~~*/

body.dark-theme {
    --primary-color: hsl(359, 100%, 35%);
    --primary-color-alt: hsl(359, 100%, 25%);
    --title-color: hsl(19, 24%, 85%);
    --text-color: hsl(19, 16%, 65%);
    --body-color: hsl(0, 7%, 8%);
    --container-color: hsl(19, 10%, 5%);
}

.dark-theme .bg-header,
.dark-theme .nav__menu,
.dark-theme .scrollup {
    box-shadow: 0 2px 8px hsla(19, 64%, 4%, 0.5);
}

.dark-theme .popular__card {
    box-shadow: 0 8px 20px hsla(19, 64%, 4%, 0.2);
}

.dark-theme .newsletter__container {
    background-color: var(--container-color);
}


/*~~~~~~~~~~~~~~~ REUSABLE CSS CLASSES ~~~~~~~~~~~~~~~*/

.container {
    max-width: 1200px;
    margin-inline: 1.5rem;
}

@media screen and (max-width: 340px) {
    .container {
        margin-inline: 1rem;
    }
}

@media screen and (min-width: 1064px) {
    .container {
        margin-inline: auto;
    }
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.section {
    padding-block: 5rem 8rem;
}

@media screen and (max-width: 340px) {
    .section {
        padding-block: 4rem 1rem;
    }
}

@media screen and (min-width: 1200px) {
    .section {
        padding-block: 7rem 1.5rem;
    }
}

.section__title,
.home__title {
    font-family: var(--title-font);
    font-size: var(--font-xl);
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: hsl(36, 100%, 96%);
    stroke-width: 2px;
    -webkit-text-stroke-width: 2px;
    -webkit-text-stroke-color: #401c10;
    stroke: #401c10;
    text-shadow: 6px 6px 0px #9f7060;
}

@media screen and (max-width: 340px) {

    .home__title,
    .section__title {
        font-size: 2rem;
    }
}

.section__subtitle {
    display: block;
    font-family: var(--subtitle-font);
    font-size: var(--font-lg);
    font-weight: var(--font-semi-bold);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

@media screen and (min-width: 1200px) {
    .section__subtitle {
        margin-bottom: 0.75rem;
    }
}

.section__title,
.section__subtitle {
    text-align: center;
}

@media screen and (min-width: 1200px) {

    .section__title,
    .section__subtitle {
        text-align: initial;
    }
}

.main {
    overflow: hidden;
}


/*~~~~~~~~~~~~~~~ HEADER & NAV ~~~~~~~~~~~~~~~*/

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--body-color);
    z-index: 10000;
    transition: box-shadow 0.3s, background 0.4s;
}

.nav {
    position: relative;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

@media screen and (min-width: 768px) {
    .nav {
        column-gap: 3rem;
    }
}

@media screen and (min-width: 1200px) {
    .nav {
        height: calc(var(--header-height) + 1.5rem);
    }
}

.nav__toggle,
.nav__close {
    display: flex;
    color: var(--title-color);
}

@media screen and (min-width: 768px) {

    .nav__toggle,
    .nav__close {
        display: none;
    }
}

.nav__logo,
.footer__logo {
    color: var(--primary-color);
    font-family: var(--title-font);
    font-size: var(--font-md);
    font-weight: var(--font-semi-bold);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: color 0.3s;
}

.nav__logo img,
.footer__logo img {
    width: 25px;
}

.nav__toggle {
    font-size: 1.25rem;
    cursor: pointer;
}

@media screen and (max-width: 767px) {
    .nav__menu {
        position: fixed;
        top: -100%;
        left: 0;
        background-color: var(--body-color);
        width: 100%;
        box-shadow: 0 8px 20px hsla(19, 64%, 24%, 0.1);
        padding-block: 3.5rem;
        transition: top 0.4s;
    }
}

@media screen and (min-width: 768px) {
    .nav__menu {
        margin-left: auto;
    }

    .dark-theme .nav__menu {
        box-shadow: none;
    }
}

.nav__list {
    display: flex;
    flex-direction: column;
    text-align: center;
    row-gap: 2rem;
}

@media screen and (min-width: 768px) {
    .nav__list {
        flex-direction: row;
        column-gap: 3rem;
    }
}

.nav__link {
    color: var(--title-color);
    font-weight: var(--font-medium);
    transition: color 0.4s;
}

.nav__link:hover {
    color: var(--primary-color);
}

.nav__close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav__img-1 {
    position: absolute;
    opacity: 0.5;
    width: 100px;
    top: -2rem;
    left: -2rem;
}

@media screen and (min-width: 768px) {
    .nav__img-1 {
        display: none;
    }
}

.show-menu {
    top: 0;
}

.bg-header {
    box-shadow: 0 2px 8px hsla(19, 64%, 24%, 0.1);
}

.active-link {
    color: var(--primary-color);
}


/*~~~~~~~~~~~~~~~ HOME ~~~~~~~~~~~~~~~*/

.home {
    position: relative;
}

.home__container {
    row-gap: 3rem;
    justify-self: center;
}

@media screen and (min-width: 576px) {

    .home__container,
    .about__container,
    .recently__container,
    .newsletter__container {
        grid-template-columns: 0.7fr;
        justify-content: center;
    }
}

@media screen and (min-width: 1200px) {
    .home__container {
        grid-template-columns: 1fr 1fr;
        column-gap: 4rem;
        align-items: center;
        position: relative;
    }
}

.home__img {
    width: 300px;
    justify-self: center;
}

@media screen and (min-width: 1200px) {
    .home__img {
        width: 100%;
        max-width: 600px;
        position: relative;
        right: 0;
    }
}

.home__data {
    text-align: center;
}

@media screen and (min-width: 1200px) {
    .home__data {
        text-align: initial;
        order: -1;
    }
}

.home__title {
    font-size: var(--font-2xl);
    margin-bottom: 1rem;
}

.home__description {
    padding: 0 1rem;
    margin-bottom: 2.5rem;
}


/*~~~~~~~~~~~~~~~ PAYMENT POPUP ~~~~~~~~~~~~~~~*/

.popup-overlay {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--body-color);
    opacity: 0;
    visibility: hidden;
    transition: visibility 0s linear .4s, opacity .4s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.popup-overlay.active {
    visibility: visible;
    opacity: 1;
    background: var(--body-color);
    transition-delay: 0s;
}

.popup-content {
    position: relative;
    background: var(--container-color);
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    max-width: 360px;
    margin: auto;
    box-shadow: 0 4px 12px hsla(19, 64%, 20%, 0.3);
    text-align: center;
    color: var(--text-color);
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.popup-overlay.active .popup-content {
    opacity: 1;
    transform: translateY(0);
}

.popup-content h2 {
    font-family: var(--title-font);
    font-size: var(--font-lg);
    color: var(--title-color);
    margin-bottom: 1rem;
}

.popup-content input {
    width: 100%;
    padding: 0.75rem 1rem;
    margin: 0.75rem 0;
    border: 1px solid var(--text-color-light);
    border-radius: 8px;
    font-family: var(--body-font);
    font-size: var(--font-sm);
    color: var(--text-color);
    background-color: var(--container-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.popup-content input::placeholder {
    color: var(--text-color-light);
    font-size: 0.8rem;
}

.popup-content input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.4);
}

.popup-content button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    margin-top: 1rem;
    border-radius: 2rem;
    font-size: var(--font-sm);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 0;
}

.popup-content button:hover {
    background-color: var(--primary-color-alt);
}

.popup-content .close-btn {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--title-color);
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
}

.popup-content .close-btn:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

#payment-form {
    margin: 1rem 2rem 0 2rem;
}

.input-error {
    border-color: #e74c3c;
}

.error-text {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 4px;
}

.order-message {
    color: #e74c3c;
    margin-top: 10px;
}

.error-message {
    color: hsl(359, 100%, 35%);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.success-message {
    margin-top: 1rem;
    color: hsl(120, 60%, 35%);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
}

/* Специальные стили для confirmation-popup */
#confirmation-popup .popup-content {
    /* например, более тёплый фон */
    background: var(--primary-color-alt);
    color: #fff;
}

#confirmation-popup .popup-content h2 {
    color: #fff;
}

#confirmation-popup .popup-content button {
    /* перекрашиваем кнопку «Schließen» */
    background: #fff;
    color: var(--primary-color);
}

#confirmation-popup .popup-content .close-btn {
    color: #fff;
}


/*~~~~~~~~~~~~~~~ BUTTON ~~~~~~~~~~~~~~~*/

.button {
    display: inline-flex;
    align-items: center;
    column-gap: 0.5rem;
    background-color: var(--primary-color);
    padding: 1rem 1.5rem;
    border-radius: 4rem;
    color: #fff;
    font-weight: var(--font-medium);
    transition: background 0.3s;
}

.button i {
    font-size: 1.25rem;
    transition: transform 0.3s;
}

.button:hover {
    background-color: var(--primary-color-alt);
}

.button:hover i {
    transform: translateX(0.25rem);
}

.load-more-btn {
    display: block;
    margin: 2rem auto 0;
    width: 50%;
    text-align: center;
}


/*~~~~~~~~~~~~~~~ ABOUT ~~~~~~~~~~~~~~~*/

.about {
    position: relative;
}

.about__container {
    row-gap: 3rem;
}

@media screen and (min-width: 1200px) {
    .about__container {
        grid-template-columns: 350px 480px;
        align-items: center;
        column-gap: 8rem;
        padding-bottom: 2.5rem 0;
        border-radius: 4.5rem;
    }
}

.about__data {
    text-align: center;
}

@media screen and (min-width: 1200px) {
    .about__data {
        order: 1;
        text-align: initial;
    }
}

.about__img {
    width: 250px;
    justify-self: center;
}

@media screen and (min-width: 1200px) {
    .about__img {
        width: 100%;
        max-width: 400px;
        position: relative;
    }
}


/*~~~~~~~~~~~~~~~ POPULAR ~~~~~~~~~~~~~~~*/

@media screen and (min-width: 1200px) {

    .popular .section__title,
    .popular .section__subtitle {
        text-align: center;
    }
}

.popular__container {
    padding-top: 4rem;
}

@media screen and (min-width: 768px) {
    .popular__container {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 1.5rem;
        column-gap: 2rem;
    }
}

@media screen and (min-width: 1200px) {
    .popular__container {
        grid-template-columns: repeat(3, 1fr);
        column-gap: 1rem;
    }
}

.popular__card {
    position: relative;
    background-color: var(--container-color);
    padding: 1.5rem 1rem;
    box-shadow: 0 8px 20px hsla(19, 64%, 48%, 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.4s;
    text-align: center;
}

.popular__content {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.popular__text {
    text-align: left;
}

.popular__img {
    width: 100%;
    height: auto;
    position: static;
    margin-bottom: 1rem;
    transition: transform 0.4s;
    border-radius: 10px;
}

.popular__name {
    font-size: var(--font-lg);
    font-weight: var(--font-semi-bold);
    margin-block: 0 0.25rem;
}

.popular__description {
    font-size: var(--font-xm);
    margin-block: 0 0.25rem;
}

.popular__order {
    display: flex;
    /* align-items: stretch; */
    align-items: center;
    gap: 0.5rem;
    /* margin-top: 0.5rem; */
}

.popular__options {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* gap: 0.2rem; */
    flex: none;
}

.size-select {
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--text-color-light);
    border-radius: 8px;
    font-family: var(--body-font);
    font-size: var(--font-sm);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: transparent;
    color: var(--text-color);
    appearance: none;
    width: auto;
    flex: none;
    margin: 0.5rem 0;
}

select::-ms-expand {
    display: none;
}

.popular__price {
    font-size: var(--font-md);
    font-weight: var(--font-medium);
    color: var(--primary-color);
}

.popular__button {
    background-color: var(--primary-color);
    padding: 1rem;
    border-radius: 8px;
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 4px 20px hsla(19, 64%, 20%, 0.2);
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin-right: 0.75rem;
}

.popular__card:hover .popular__button {
    background-color: var(--primary-color-alt);
}

.popular__card:hover .popular__img {
    transform: translateY(-0.75rem);
}


/*~~~~~~~~~~~~~~~ RECENTLY ~~~~~~~~~~~~~~~*/

.recently__container {
    row-gap: 4rem;
}

@media screen and (min-width: 1200px) {
    .recently__container {
        grid-template-columns: 350px 480px;
        align-items: center;
        column-gap: 7rem;
        padding-bottom: 2rem;
    }
}

.recently__data {
    text-align: center;
}

@media screen and (min-width: 1200px) {
    .recently__data {
        text-align: initial;
    }
}

.recently__description {
    margin-bottom: 2rem;
}


/*~~~~~~~~~~~~~~~ NEWSLETTER ~~~~~~~~~~~~~~~*/

.newsletter__container {
    position: relative;
    background-color: hsl(19, 24%, 15%);
    border-radius: 2.5rem;
    padding: 5rem 1rem 3rem;
    text-align: center;
    overflow: hidden;
    margin-bottom: 2rem;
}

@media screen and (min-width: 1200px) {
    .newsletter__container {
        grid-template-columns: 350px 360px;
        align-items: center;
        column-gap: 6rem;
        padding-bottom: 2.5rem 0;
        border-radius: 4.5rem;
    }
}

.newsletter__img {
    width: 150px;
    position: absolute;
    top: -2rem;
    left: -4rem;
}

@media screen and (min-width: 768px) {
    .newsletter__img {
        width: 250px;
        position: absolute;
        top: -4rem;
        left: -6rem;
    }
}

@media screen and (min-width: 1200px) {
    .newsletter__img {
        position: initial;
        width: 350px;
    }
}

.newsletter__data .section__title {
    margin-bottom: 2rem;
}

@media screen and (min-width: 1200px) {
    .newsletter__data .section__title {
        margin-bottom: 2.5rem;
    }
}

.newsletter__form {
    background-color: #fff;
    padding: 5px 5px 5px 16px;
    border-radius: 4rem;
    display: flex;
    column-gap: 0.5rem;
}

@media screen and (max-width: 340px) {
    .newsletter__form {
        flex-direction: column;
        background: none;
        row-gap: 1rem;
    }
}

@media screen and (min-width: 1200px) {
    .newsletter__form {
        padding: 8px 8px 8px 24px;
    }
}

.newsletter__input,
.newsletter__button {
    font-family: var(--body-font);
    border: none;
    outline: none;
}

@media screen and (min-width: 1200px) {
    .newsletter__button {
        font-size: var(--font-sm);
    }
}

.newsletter__input {
    width: 90%;
    color: var(--text-color);
}

@media screen and (max-width: 340px) {
    .newsletter__input {
        width: initial;
        padding: 1rem;
        border-radius: 4rem;
    }
}

.newsletter__button {
    cursor: pointer;
}

@media screen and (max-width: 340px) {
    .newsletter__button {
        justify-content: center;
    }
}


/*~~~~~~~~~~~~~~~ FOOTER ~~~~~~~~~~~~~~~*/

.footer {
    padding-block: 3rem 2rem;
}

@media screen and (min-width: 1200px) {
    .footer {
        padding-block: 8rem 3rem;
    }
}

.footer__container {
    row-gap: 3rem;
}

@media screen and (min-width: 1200px) {
    .footer__container {
        position: relative;
        grid-template-columns: repeat(2, max-content);
        justify-content: space-between;
    }
}

.footer__logo {
    margin-bottom: 1rem;
}

.footer__description,
.footer__link,
.footer__information {
    font-size: var(--font-xm);
}

.footer__content,
.footer__links {
    display: grid;
}

.footer__content {
    grid-template-columns: repeat(2, max-content);
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

@media screen and (max-width: 340px) {
    .footer__content {
        gap: 1.4rem;
    }
}

@media screen and (min-width: 576px) {
    .footer__content {
        grid-template-columns: repeat(3, max-content);
    }
}

@media screen and (min-width: 768px) {
    .footer__content {
        grid-template-columns: repeat(4, max-content);
    }
}

@media screen and (min-width: 1200px) {
    .footer__content {
        column-gap: 4rem;
    }
}

.footer__title {
    font-size: var(--font-md);
    margin-bottom: 1.5rem;
}

.footer__links {
    row-gap: 0.5rem;
}

.footer__link {
    color: var(--text-color);
    transition: color 0.3s;
}

.footer__link:hover {
    color: var(--primary-color);
}

@media screen and (min-width: 1200px) {

    .footer__title,
    .footer__description,
    .footer__link,
    .footer__information {
        font-size: var(--font-sm);
    }
}

.footer__social {
    display: flex;
    column-gap: 1.25rem;
}

.footer__social-link {
    color: var(--primary-color);
    font-size: 1.25rem;
    transition: color 0.3s, transform 0.3s;
}

.footer__social-link:hover {
    color: var(--primary-color-alt);
    transform: translateY(-2px);
}

@media screen and (min-width: 1200px) {
    .footer__social-link {
        font-size: 1.5rem;
    }
}

.footer__copy {
    text-transform: capitalize;
    text-align: center;
    font-size: var(--font-xm);
    color: var(--text-color-light);
}


/*~~~~~~~~~~~~~~~ SCROLL UP ~~~~~~~~~~~~~~~*/

.scrollup {
    position: fixed;
    right: 1rem;
    bottom: -50%;
    background-color: var(--container-color);
    box-shadow: 0 4px 12px hsla(19, 64%, 24%, 0.1);
    display: inline-flex;
    padding: 0.35rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 1rem;
    color: var(--primary-color);
    z-index: 100;
    transition: bottom 0.3s, transform 0.3s, background 0.4s;
}

.scrollup:hover {
    transform: translateY(-0.25rem);
}

@media screen and (min-width: 1200px) {
    .scrollup {
        right: 3rem;
    }
}

.show-scroll {
    bottom: 3rem;
}

.pizza-container {
    position: fixed;
    top: var(--header-height);
    left: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 1;
}

.pizza-container.hidden {
    display: none;
}

/* .pizza-anim {
  width: 15vw;
  max-width: 200px;
  object-fit: contain;
  cursor: pointer;
  transition: transform .2s;
} */

@keyframes float-rotate {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    20% {
        transform: translateY(-8px) rotate(-3deg);
    }

    40% {
        transform: translateY(0) rotate(0deg);
    }

    60% {
        transform: translateY(-6px) rotate(3deg);
    }

    80% {
        transform: translateY(0) rotate(0deg);
    }
}

.pizza-anim {
    width: clamp(60px, 10vw, 200px);
    object-fit: contain;
    cursor: pointer;
    animation: float-rotate 5s ease-in-out infinite !important;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.25));
}

.pizza-anim:hover {
    animation-play-state: running !important;
    transform: scale(1.1);
}

.pizza-anim:hover {
    transform: scale(1.1);
}

.cook-msg {
    margin-top: .5rem;
    background: var(--body-color);
    font-family: var(--title-font);
    color: var(--title-color);
    padding: .5rem 1rem;
    font-size: 1rem;
    white-space: nowrap;
    transform: translateX(-100%);
    opacity: 0;
    transition: transform .3s ease-out, opacity .3s ease-out;
}

.cook-msg.visible {
    transform: translateX(0);
    opacity: 1;
}

@media (max-width: 768px) {
    .pizza-anim {
        left: 0;
        width: 15vw;
    }
}

@media (max-width: 480px) {
    .pizza-anim {
        width: 25vw;
    }
}

.nav__lang-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-family: var(--body-font);
    font-size: var(--font-sm);
    cursor: pointer;
    padding: 0.5rem 0;
}

.nav__lang-btn:hover {
    color: var(--primary-color);
}

.disabled {
    opacity: 0.6;
    pointer-events: none !important;
    cursor: default !important;
}


.toast-container {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: center;
    pointer-events: none;
    z-index: 9999;
}

.toast {
    pointer-events: auto;
    width: auto;
    max-width: calc(100% - 2rem);
    box-sizing: border-box;
    margin: 0.25rem;
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    color: #fff;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    animation: toast-in 0.3s forwards;
}

.home__description .highlight {
    color: #d32f2f;
    font-size: 0.8rem;
    font-weight: bold;
}


@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast-close {
    margin-left: 0.75rem;
    font-size: 1.1rem;
    cursor: pointer;
}

@media (max-width: 320px) {
    .toast {
        max-width: 280px;
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
}

.cart-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cart-items li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    min-width: 0;
}

.item-info {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    max-width: calc(100% - 48px);
    min-width: 0;
    word-break: keep-all;
    overflow-wrap: normal;
    white-space: normal;
    text-align: left;
}

.item-name {
    margin-bottom: 0.25rem;
}

.item-meta {
    font-size: 0.9em;
    color: #ccc;
}

.cart-remove {
    flex: 0 0 auto;
    margin-left: 0.5rem;
}

.cart-remove {
    margin-left: 0.5rem;
    background: none;
    border: none;
    color: var(--title-color);
    cursor: pointer;
    font-size: 1rem;
}

.cart-remove:hover {
    color: var(--primary-color);
}

.cart-total {
    font-weight: 600;
    margin-bottom: 1rem;
}

#cart-popup .popup-content {
    min-height: 200px;
}

.fade-in {
    animation: fade-in 0.4s ease forwards;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}