@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&display=swap');

:root {
    --tomato: #b83232;
    --tomato-dark: #8f2428;
    --basil: #2f6b4f;
    --cream: #fff4df;
    --ink: #2f2925;
    --gold: #f4c95d;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

#title-box{    
    font-size: 30px;
    color: var(--cream);
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url("images/13226.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 30px;
    text-align: center;
    font-family: 'Merriweather', serif;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    position:sticky;
    top:0;
    z-index: 1000;
    box-shadow: 4px 4px 4px 4px rgba(0, 0, 0, 0.7);
}

#body {
    background-color: var(--cream);
    color: var(--ink);
    font-family: 'Merriweather', serif;
    margin: 0;
    padding: 0;
}

#menu-button{
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1001;
    font-size: 30px;
    cursor:pointer;
    color: var(--cream);
    background-color: var(--basil);
    border: 2px solid var(--cream);
    border-radius: 6px;
}

.cart-button {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1001;
    width: 52px;
    height: 48px;
    padding: 8px;
    color: var(--cream);
    background-color: var(--basil);
    border: 2px solid var(--cream);
    border-radius: 6px;
}

.cart-button img {
    width: 30px;
    height: 30px;
    display: block;
    color: var(--cream);
}

#cart-count {
    position: absolute;
    top: -9px;
    right: -9px;
    min-width: 22px;
    padding: 3px 6px;
    color: white;
    background-color: var(--tomato);
    border-radius: 50%;
    font-size: 12px;
    text-align: center;
}

#side-menu{
    position:fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background-color: var(--tomato-dark);
    padding-top: 60px;
    transition: left 0.3s ease;
    z-index: 1002;
}

#side-menu.open{
    left: 0;
}

#side-menu a,
#close-button{
    display: block;
    padding: 20px;
    color: white;
    text-decoration: none;
    font-size: 20px;
}

#side-menu a {
    transition: background-color 0.2s ease;
}

#side-menu a:hover {
    background-color: var(--basil);
}

#close-button{
    position: absolute;
    top: 8px;
    right: 12px;
    padding: 0;
    font-size: 42px;
    line-height: 1;
    cursor:pointer;
    color: var(--gold);
    background: none;
    border: none;
}

#main-p{
    border:10px;
    font-family: 'Merriweather', serif;
}

#title-box-c{  
    background-color: var(--tomato); 
    font-size: 20px; 
    padding: 20px;
    color: var(--cream);
    text-align: center;
    font-family: 'Merriweather', serif;
    font-weight: 900;
    text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.9);
    position:sticky;
    top:0;
    z-index: 1000;
    box-shadow: 4px 4px 4px 4px rgba(0, 0, 0, 0.7);
}

#main-p{
    font-size: 15px;
    text-align: left;
    font-family: 'Merriweather', serif;
}


.side-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border: 4px solid var(--cream);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.9);
    object-position: 50% 15%;
}

@media (max-width: 700px) {
    #title-box,
    #title-box-b,
    #title-box-c {
        padding: 22px 56px;
        font-size: 18px;
    }

    #menu-button {
        top: 12px;
        left: 12px;
        font-size: 24px;
        padding: 4px 9px;
    }

    .cart-button {
        top: 12px;
        right: 12px;
    }

    #side-menu {
        width: min(250px, 85vw);
    }

    #side-menu a {
        padding: 16px 20px;
        font-size: 17px;
    }

    .content-layout {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 22px 16px;
    }

    #main-p {
        font-size: 14px;
        line-height: 1.65;
    }

    #body > p {
        margin: 22px 16px;
        font-size: 14px;
        line-height: 1.6;
    }

    .side-image,
    .side-image2 {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .side-image {
        object-position: 50% 15%;
    }

    .riga-p {
        grid-template-columns: 1fr;
    }

    .p img {
        max-width: 100%;
    }
}

.side-image2 {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border: 4px solid var(--cream);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.9);
    object-position: 40% 70%;
}

#maintext-p {
    text-align: center;
    font-family: 'Merriweather', serif;
    font-size: 30px;
}

.p {
    text-align: center;
    font-size: 15px;
}

.p img {
    display: block;
    width: 225px;
    max-width: 100%;
    height: 225px;
    margin: 20px auto 12px;
    border: 4px solid var(--cream);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    object-fit: cover;
    overflow: hidden;
    transform: scale(1.05);   
}


.p h2 {
    margin: 13px 0;
}

.pp {
    text-align: center;
    font-size: 15px;
}

.pp img {
    display: block;
    width: 200px;
    max-width: 100%;
    height: 200px;
    margin: 20px auto 12px;
    border: 4px solid var(--cream);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    object-fit: cover;
    overflow: hidden;
    transform: scale(1.05);   
}


.pp h2 {
    margin: 13px 0;
}

.add-to-cart,
.remove-from-cart,
.back-to-products,
.order-button {
    display: inline-block;
    padding: 10px 14px;
    color: white;
    background-color: var(--tomato);
    border: 0;
    border-radius: 6px;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
}

.choice-label,
.product-choice {
    display: block;
    margin: 8px auto;
}

.choice-label {
    font-size: 14px;
    font-weight: bold;
}

.product-choice {
    padding: 8px;
    color: var(--ink);
    background-color: white;
    border: 2px solid var(--basil);
    border-radius: 6px;
    font-family: inherit;
}

.add-to-cart:hover,
.remove-from-cart:hover,
.back-to-products:hover,
.order-button:hover:not(:disabled) {
    background-color: var(--tomato-dark);
}

.order-button {
    margin-top: 12px;
    font-size: 16px;
}

.order-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cart-page {
    max-width: 700px;
    margin: 30px auto;
    padding: 0 20px;
}

.back-to-products {
    margin: 24px;
}

.cart-product {
    margin: 16px 0;
    padding: 16px;
    background-color: white;
    border: 2px solid var(--tomato);
    border-radius: 6px;
}

.cart-product h3,
.cart-product p {
    margin: 8px 0;
}

.opening-hours {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 24px;
}

.opening-hours h2 {
    text-align: center;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border: 2px solid var(--tomato);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.9);
}

.hours-table th,
.hours-table td {
    padding: 18px 14px;
    border: 1px solid var(--tomato);
    text-align: center;
    font-size: 16px;
}

.hours-table thead {
    color: white;
    background-color: var(--basil);
}

.hours-table tbody th {
    background-color: #f8dfb5;
}

@media (max-width: 600px) {
    .hours-table th,
    .hours-table td {
        padding: 13px 7px;
        font-size: 13px;
    }
}

.order-details {
    display: grid;
    gap: 8px;
    margin-top: 24px;
}

.order-details label {
    font-weight: bold;
}

.order-details input {
    width: 100%;
    max-width: 280px;
    padding: 10px;
    color: var(--ink);
    background-color: white;
    border: 2px solid var(--basil);
    border-radius: 6px;
    font: inherit;
    letter-spacing: 1px;
}

.pizzeria h3{
    text-align: center;
}

.pizzeria {
    width: min(600px, calc(100% - 32px));
    aspect-ratio: 1;
    margin: 40px auto;
}

.pizzeria h2 {
    margin-bottom: 16px;
    text-align: center;
}

.pizzeria iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 4px solid var(--basil) !important;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.9);
}