@import url('https://fonts.googleapis.com/css2?family=Rubik+Dirt&display=swap');

body {
    font-family: "Rubik Dirt", system-ui, sans-serif;
    font-weight: normal;
}

@keyframes spinFadeOut {
    0% {
        opacity: 1;
        transform: rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: rotate(360deg);
    }
}

@keyframes spinFadeIn {
    0% {
        opacity: 0;
        transform: rotate(0deg);
    }
    100% {
        opacity: 0.8;
        transform: rotate(360deg);
    }
}

html, body, #root {
    height: 100%;
    margin: 0;
    padding: 0;
}

.spin-fade-out {
    animation: spinFadeOut 0.7s forwards;
}

.spin-fade-in {
    animation: spinFadeIn 0.7s forwards;
}

body {
    font-family: "Rubik Dirt", system-ui !important;
    font-style: normal;
}

.menu-page {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    position: relative; /* so absolute children position relative to this */
    background: url("./images/red-background.jpg");
    background-size: cover;
    background-repeat: no-repeat;
}

.sidebar {
    padding: 30px 20px 0px 20px;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo2 {
    width: 100px;
    height: 100px;
    cursor: pointer;

}

.login-btn {
    background-color: #d62828;
    font-family: 'Rubik Dirt', sans-serif;
    border: none;
    font-size: 15px;
    padding: 10px 16px;
    border-radius: 20px;
    cursor: pointer;
    color: white;
}

.nav-right-part-2 {
    position: absolute;
    top: 40px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar {
    position: absolute;
    top: 40px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.login-btn:hover {
    background-color: #cc0000;
}

#root > div > div.promotions > div.promotion-cards > div:nth-child(2) > img {
    top: -70px;

}


.carousel-container {
    text-align: center;
    color: #fff;
    padding: 0px 20px;
    position: relative;
    overflow: hidden;
}

.pizza-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    margin-top: 0px;
}

.pizza-description {
    max-width: 80%;
    margin: 0 auto 1rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.pizza-image-wrapper {
    height: 290px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: fixed;
    width: 98%;
    bottom: 0px;
}

.pizza-images {
    width: 42%;
    margin: auto;
    transition: transform 0.4s ease-in-out;
    transform-origin: center center;
}

.pizza-images.rotate {
    transform: rotate(180deg);
}

.pizza-image img {
    width: 100%;
    height: 200px;
    border-radius: 100%;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;

}

#slikaprevvrtena {
    transform: rotateX(180deg);
}

.pizza-images {
    display: flex;
    flex-direction: column;
}

.button-wrapper {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.arrow-button {
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff;
    font-size: 2rem;
    padding: 10px 20px;
    border-radius: 100%;
    cursor: pointer;
    transition: background 0.3s;
    margin: 30px;
}

.arrow-button:hover {
    background-color: #fff;
    color: #4b0000;
}

.add-to-cart {
    background-color: red;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-family: "Rubik Dirt", system-ui, sans-serif;
    font-weight: normal;
}

.pizza-names-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 300px;
    bottom: 320px;
}

.pizza-name-arc {
    /*width: 550px;*/
    height: 300px;
    overflow: visible;
    margin-top: 24px;
}

textPath {
    font-size: 20px;
    fill: #ccc;
    transition: fill 0.3s;
}

textPath.active {
    fill: red;
    font-weight: bold;
}

.pizza-name-circle-wrapper {
    height: 380px;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
    display: flex;
    justify-content: center;
    margin-top: 140px;
}

.pizza-name-circle {
    width: 750px;
    height: 750px;
    transform: translateY(-150px); /* shift SVG up to center top half */
}

.pizza-name-circle textPath {
    font-size: 22px;
    fill: #ccc;
    text-anchor: middle;
    transition: fill 0.3s;
}

.pizza-name-circle textPath.active {
    fill: red;
    font-weight: bold;
}

.pizza-name-circle textPath {
    text-anchor: middle;
    dominant-baseline: middle;
}

.customize-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.customize-pizza {
    position: absolute;
    object-fit: contain;
    animation: slideToLeft 0.8s forwards ease-out;
    z-index: 1001;
}

.customize-pizza.reverse {
    animation: slideBackToOrigin 0.8s forwards ease-in;
}

/* Modal container */
.customize-modal {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 80vh;
    background: #fff;
    padding: 20px 20px 0px 20px;
    z-index: 1002;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Slide-in from right */
.customize-modal.slide-in {
    animation: slideInFromRight 0.5s forwards ease-out;
}

/* Slide-out to right */
.customize-modal.slide-out {
    animation: slideOutToRight 0.5s forwards ease-in;
}

.customize-modal::-webkit-scrollbar {
    width: 10px;
}

.customize-modal::-webkit-scrollbar-thumb {
    background-color: #d62828;
    border-radius: 35px;
}


/* Close button */
.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    color: #2F3349;
}

.ingredients-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding-bottom: 80px; /* space above footer */
}

.ingredient-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ingredient-img {
    width: 120px;
    height: 120px;
    background: #ddd;
    border-radius: 6px;
    margin-bottom: 10px;
}

.ingredient-name {
    font-weight: normal;
    margin-bottom: 8px;
    text-align: center;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2F3349;
}

.quantity-controls button {
    padding: 4px 10px;
    font-size: 16px;
    border: 1px solid #d62828;
    background-color: white;
    color: #d62828;
    cursor: pointer;
    border-radius: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.submit-btn {
    background: #d62828;
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 30px;
    font-size: 18px;
    cursor: pointer;
    font-family: "Rubik Dirt", system-ui, sans-serif;
    font-weight: normal;
}


.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding-bottom: 100px; /* space for sticky footer */
}

.ingredient-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ingredient-img {
    width: 120px;
    height: 120px;
    background: #ddd;
    border-radius: 6px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ingredient-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder {
    width: 100%;
    height: 100%;
    background: #ccc;
}

.ingredient-name {
    font-weight: normal;
    margin-bottom: 8px;
    text-align: center;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-footer {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 15px 0;
    display: flex;
    justify-content: flex-end;
    border-top: 1.5px solid #eee;
}


.ingredient-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ingredient-name {
    font-weight: normal;
    margin-top: 8px;
    margin-bottom: 4px;
}

.ingredient-price {
    font-size: 14px;
    color: #444;
    margin-bottom: 10px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}


.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 900; /* ensure behind modal content */
}

.size-selector-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.size-selector-modal {
    background: #fff;
    border-radius: 10px;
    padding: 20px 40px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.size-selector-modal h2 {
    color: #d62828;
}

.size-options {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap; /* allows them to stack if screen is too small */
    gap: 20px;
    margin-top: 15px;
}

.size-option,
.size-option2,
.size-option3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1; /* allow equal width growth */
    min-width: 140px; /* prevent shrinking too small */
}

.size-option2 img {
    max-width: 100%; /* scale based on container */
    width: 180px; /* default size */
    height: auto;
    cursor: pointer;
    transition: transform 0.3s;
}

.size-option3 img {
    max-width: 100%; /* scale based on container */
    width: 190px; /* default size */
    height: auto;
    cursor: pointer;
    transition: transform 0.3s;
}

.size-option img {
    max-width: 100%; /* scale based on container */
    width: 140px; /* default size */
    height: auto;
    cursor: pointer;
    transition: transform 0.3s;
}

.size-options img:hover {
    transform: scale(1.1);
}

.modal-footer {
    display: flex;
    justify-content: space-between; /* price left, buttons right */
    align-items: center;
    padding: 15px;
    border-top: 1px solid #ccc;
}

.modal-price {
    font-size: 1.3rem;
    color: #e63946;
}

.modal-price span span {
    font-size: 1rem;
    color: #2F3349;
    margin-left: 5px;
}


.modal-actions-menu {
    display: flex;
    gap: 10px;
}

#root > div > div.customize-overlay > div > div h2 {
    text-align: center;
    font-weight: bold;
    font-size: x-large;
    color: #2F3349;
    margin: 0px;
}

.clear-ingredients {
    color: #d62828;
    background-color: #fff;
    border: 3px solid #d62828;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 18px;
    cursor: pointer;
    font-family: "Rubik Dirt", system-ui, sans-serif;
    font-weight: normal;
}

.ingredients-container h3 {
    color: #2F3349;
    text-align: center;
    font-weight: normal;
    margin: 0px 0px 10px 0px;
}

.ingredients-list-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    overflow-y: auto;
    max-height: 550px;
}

.ingredients-list-menu::-webkit-scrollbar {
    width: 5px;
}

.ingredients-list-menu::-webkit-scrollbar-thumb {
    background-color: #d62828;
    border-radius: 2px;
}


.ingredient-item-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px solid #2F3349;
    border-radius: 8px;
    width: 140px;
    text-align: center;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    gap: 5px;
    padding: 5px 0px;
}

.ingredient-item-menu:hover {
    background: #d62828;
}

.ingredient-item-menu.selected {
    background: #d62828;
}

.ingredient-item-menu:hover .ingredient-name-menu {
    color: white;
    font-weight: normal;
}

.ingredient-item-menu:hover .ingredient-price-menu {
    color: white;
}

.ingredient-item-menu:hover .quantity-controls span {
    color: white;
}

.ingredient-img-menu {
    background: transparent;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.pizza-canvas {
    position: relative; /* Crucial: ingredients position relative to pizza */
    width: 400px; /* Match your JS inline width */
    height: 400px; /* Match your JS inline height */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001; /* Behind modal but above background */
}

.ingredients-custom {
    position: relative; /* Crucial: ingredients position relative to pizza */
    width: 800px; /* Match your JS inline width */
    height: 500px;
    margin-left: 100px;
}

.ingredients-custom img.customize-pizza {
    width: 100%;
    height: auto;
    object-fit: contain;
    z-index: 1;
}

.ingredient-on-pizza {
    pointer-events: none;
    /*transition: all 0.3s ease-in-out;*/
    /*z-index: 2; !* on top of the pizza *!*/
    position: absolute;
    width: 60px;
    height: 60px;
    pointer-events: none; /* so clicks pass through */
    z-index: 1003; /* above pizza but below modal */
    transition: top 0.8s ease-in, left 0.8s ease-in, transform 0.8s ease-in;
}

.customize-pizza {
    position: absolute;
    top: 50%;
    left: 50%; /* center instead of 25% */
    transform: translate(-50%, -50%) scale(2);
    object-fit: contain;
    animation: slideToLeft 0.8s forwards ease-out;
    z-index: 1001;
}

.favorites-bar {
    position: fixed;
    top: 120px;
    left: 20px;
    z-index: 10000;
}

.favorites-section {
    position: relative;
}

.favorites-label {
    background: #d62828;
    color: white;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* dropdown */
.favorites-list {
    position: absolute;
    top: 110%;
    left: 0;
    width: 260px;
    background: white;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
}

.favorites-section:hover .favorites-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.favorite-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.favorite-item:hover {
    background: #f5f5f5;
    transform: translateX(4px);
}

.favorite-item img {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    object-fit: cover;
}

.favorite-info {
    display: flex;
    flex-direction: column;
    cursor: unset;
}

.favorite-name {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    width: 120px;
    cursor: unset;
}

.favorite-price {
    font-size: 12px;
    color: #555;
    cursor: unset;
}

.empty-favorites {
    font-size: 13px;
    color: #888;
    text-align: center;
    padding: 10px;
}

.favorite-btn {
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #bbb;
    transition: transform 0.2s ease, color 0.2s ease;
    padding: 5px;
}

.favorite-btn:hover {
    color: gold;
    transform: scale(1.15);
}

.favorite-btn.active {
    color: gold;
}

.remove-fav {
    background: none;
    border: none;
    font-size: 14px;
    color: #bbb;
    cursor: pointer;
    opacity: 0;
    transition: 0.2s;
    padding: 0px;
    margin: 0px;
}

.favorite-item:hover .remove-fav {
    opacity: 1;
}

.remove-fav:hover {
    color: red;
}

.fav-cart-btn {
    cursor: pointer;
}


/* Tablet */
@media (max-width: 768px) {
    .size-option img,
    .size-option2 img {
        width: 140px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .size-options {
        flex-direction: column; /* stack vertically */
    }

    .size-option img,
    .size-option2 img {
        width: 120px;
    }
}


@keyframes slideInFromRight {
    from {
        right: -600px;
        opacity: 0;
    }
    to {
        right: 50px;
        opacity: 1;
    }
}

@keyframes slideOutToRight {
    from {
        right: 50px;
        opacity: 1;
    }
    to {
        right: -600px;
        opacity: 0;
    }
}

@keyframes slideToLeft {
    0% {
        transform: scale(2);
        right: 30px;
    }
    100% {
        top: 120%;
        transform: translate(-50%, -50%) scale(2);
    }
}

@keyframes slideBackToOrigin {
    0% {
        top: 50%;
        left: 25%;
        transform: translate(-50%, -50%) scale(1.9);
    }
    100% {
        transform: scale(2);
    }
}

.menu-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.menu-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0px 0px 20px 0;
}

.tab {
    background-color: #cc0000;
    color: white;
    border: 2px solid #d62828;
    border-radius: 15px;
    padding: 5px 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: "Rubik Dirt", system-ui;
    font-style: normal;
}

.tab:hover {
    background-color: white;
    color: #d62828;
}

.tab.active {
    background-color: white;
    color: #d62828;
    transform: scale(1.05);
}

.salads-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 80px;
    gap: 20px;
}

.salad-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.salad-card img {
    height: 180px;
}

.salad-card h3 {
    margin: 0px;
    font-size: x-large;
    font-weight: normal;
}

.salad-card .ingredients {
    font-size: medium;
    color: #b22222;
    margin: 0px;
}

.salad-card .price {
    font-size: x-large;
    margin: 0px;
    border-bottom: 2px solid;
}

.add-to-cart-2 {
    background-color: #d62828;
    color: white;
    border: 2px solid #d62828;
    border-radius: 25px;
    padding: 8px 20px;
    cursor: pointer;
    transition: 0.3s;
    font-family: "Rubik Dirt", system-ui !important;
    font-style: normal;
}

.salad-card .add-to-cart-2:hover {
    background-color: white;
    color: #d62828;
    border: 2px solid #d62828;
}

/* Arrows */
.arrow {
    font-size: 3rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
}

.arrow:hover {
    color: #ffd700;
}

/* Optional: animation effect when clicking arrows */
.carousel-container-2.slide-left .salad-card {
    animation: slideLeft 0.5s ease forwards;
}

.carousel-container-2.slide-right .salad-card {
    animation: slideRight 0.5s ease forwards;
}

@keyframes slideLeft {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100px);
    }
}

@keyframes slideRight {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100px);
    }
}

.carousel-container-2 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    overflow: hidden;
    width: 1000px;
    padding: 50px;
    transition: transform 0.4s ease-in-out;
}

.carousel-container-2.slide-left {
    transform: translateX(150px);
}

.carousel-container-2.slide-right {
    transform: translateX(-150px);
}


/* Salad cards */
.salad-card {
    background-color: #f8f8f8;
    border-radius: 25px;
    text-align: center;
    padding: 25px;
    color: #d62828;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease-in-out;
    flex: 0 0 260px;
    opacity: 0.7;
    transform: scale(0.9);
}

.salad-card.active {
    transform: scale(1.1) translateY(-10px);
    opacity: 1;
    z-index: 2;
    cursor: pointer;
    background-color: white;
}

.card-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: center;
    animation: fadeIn 0.4s ease-in;
}

.salad-comment {
    width: 90%;
    min-height: 50px;
    border-radius: 12px;
    border: 2px solid #d62828;
    padding: 8px 12px;
    font-size: 14px;
    resize: none;
    outline: none;
    transition: all 0.3s ease;
    color: #d62828;
    background-color: #fff8f8;
    font-family: "Rubik Dirt", system-ui !important;
    font-style: normal;
}

.salad-comment:focus {
    border-color: red;
    box-shadow: 0 0 10px rgba(234, 123, 123, 0.4);
}

/* Fade in effect */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.special-offer-footer {
    background-color: #fff8f2;
    border-top: 2px dashed #ff7f50;
    padding: 10px;
}

.offer-dropdown {
    margin: 6px 0;
    padding: 10px 14px;
    border-radius: 25px;
    border: 1px solid #ffb68b; /* warm border to match theme */
    background-color: #fff2e6; /* soft peach background */
    width: 100%;
    font-size: 15px;
    color: #333;
    outline: none;
    transition: all 0.2s ease;
    appearance: none; /* hides default arrow */
    background-image: url("data:image/svg+xml;utf8,<svg fill='coral' height='18' viewBox='0 0 24 24' width='18' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
}

.offer-dropdown:hover,
.offer-dropdown:focus {
    border-color: #ff7f50;
    background-color: #ffe9dc;
    box-shadow: 0 0 5px rgba(255, 127, 80, 0.3);
}

.h4-heading {
    margin: 5px 0px 5px 0px;
    font-weight: normal;
}

.scroll-div {
    max-height: 75px;
    overflow-y: auto;
}

.scroll-div::-webkit-scrollbar {
    width: 4px;
}

.scroll-div::-webkit-scrollbar-thumb {
    background-color: #d62828;
    border-radius: 35px;
}

.salads-carousel-special {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 20px;
}

.salads-carousel-special .salad-card {
    padding: 5px 25px;
    gap: 0px;
}