* {
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f7f7f7;
    color: #222;
}

header {
background: #FFF8E7;
color: white;
padding: 20px;
text-align: center;
margin: 0;
}

.logo {
font-size: 40px;
font-weight: bold;
}

.logopizza {
    width: 150px;
    height: auto;
}

.hero {
    min-height: 25vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.hero-content {
    max-width: 650px;
    width: 100%;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #222;
}

.hero p {
    font-size: 18px;
    line-height: 1.6;
    color: #222;
}


.order-title {
    margin: 20px auto 28px;
    text-align: center;
    font-size: 27px;
    line-height: 1.25;
    font-weight: 700;
    color: #006A4E;
    letter-spacing: 0.3px;
}

.order-title span {
    display: inline-block;
    margin-top: 5px;
    font-size: 19px;
    font-weight: 500;
    letter-spacing: 0.2px;
}






.home-buttons,
.main-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.main-button {
    border: none;
    padding: 18px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    background: #c62828;
    color: white;
    transition: 0.2s;
}

.main-button:hover {
    transform: scale(1.03);
    background: #a81f1f;
}

.cart-main-button {
    background: #006A4E;
}

.cart-main-button:hover {
    background: #111;
}

.hidden {
    display: none !important;
}

.page-section {
    max-width: 1100px;
    margin: auto;
    padding: 40px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.section-header p {
    color: #666;
}

.back-button {
    border: none;
    background: #006A4E;
    color: white;
    padding: 10px 18px;
    border-radius: 7px;
    cursor: pointer;
    font-weight: bold;
}

.categories {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 35px;
}

.category-card {
    width: 100%;
    border: 2px solid #006A4E;
    background: white;
    color: #006A4E;
    padding: 22px 24px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    text-align: left;
    gap: 18px;
    transition: 0.2s;
}

.category-card:hover {
    background: #006A4E;
    color: white;
    transform: scale(1.01);
}

.category-icon {
    font-size: 32px;
    min-width: 42px;
    text-align: center;
}

.category-info {
    flex: 1;
}

.category-info h3 {
    margin: 0 0 6px;
    font-size: 22px;
}

.category-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
    font-weight: normal;
}

.category-card:hover .category-info p {
    color: white;
}

.category-arrow {
    font-size: 35px;
    line-height: 1;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.menu-item {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.menu-item h3 {
    margin-top: 0;
    font-size: 23px;
}

.menu-item p {
    color: #666;
    min-height: 50px;
}

.product-price {
    font-size: 22px;
    font-weight: bold;
    color: #c62828;
}

.quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.quantity-button {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: #c62828;
    color: white;
    font-size: 25px;
    cursor: pointer;
}

.quantity-number {
    font-size: 24px;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.menu-cart-summary {
    margin-top: 40px;
    background: #FFF8E7;
    color: black;
    padding: 25px;
    border-radius: 15px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.menu-cart-summary div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.checkout-button {
    border: none;
    background: #c62828;
    color: white;
    padding: 16px 25px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
}

.checkout-button:hover {
    background: #a81f1f;
}

.cart-items,
#cart-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    display: grid;
    grid-template-columns: 1fr 140px 100px;
    align-items: center;
    gap: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.cart-item-info h3 {
    margin: 0 0 5px;
}

.cart-item-price {
    color: #c62828;
    font-weight: bold;
}

.cart-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.small-quantity-button {
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #c62828;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.cart-total {
    margin-top: 25px;
    background: #006A4E;
    color: white;
    padding: 25px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    font-size: 22px;
}

.order-form-section {
    margin-top: 40px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.order-form-section h2 {
    text-align: center;
}

#order-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

#order-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: bold;
}

input,
select,
textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.order-button,
.send-order-button {
    border: none;
    background: #c62828;
    color: white;
    padding: 18px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
}

.order-button:hover,
.send-order-button:hover {
    background: #a81f1f;
}

#message,
#order-message,
#summary-message {
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
}

.empty-cart {
    background: white;
    padding: 40px;
    text-align: center;
    border-radius: 15px;
    color: #666;
}

footer {
    margin-top: 50px;
    background: #006A4E;
    color: white;
    text-align: center;
    padding: 30px;
}

@media (max-width: 600px) {
    
    
    .order-title {
        font-size: 24px;
        margin: 18px auto 25px;
    }

    .order-title span {
        font-size: 17px;
    }

    .hero {
        padding: 30px 15px;
    }

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

    .hero p {
        font-size: 16px;
    }

    .main-buttons {
        flex-direction: column;
        width: 100%;
    }

    .main-button {
        width: 100%;
    }

    .page-section {
        padding: 25px 12px;
    }

    .section-header {
        margin-bottom: 20px;
    }

    .section-header h2 {
        font-size: 26px;
    }

    /* KATEGORIE NA TELEFONIE */

    .categories {
        gap: 12px;
        width: 100%;
    }

    .category-card {
        width: 100%;
        min-height: 78px;
        padding: 14px 14px;
        border-radius: 14px;

        display: grid;
        grid-template-columns: 42px minmax(0, 1fr) 24px;
        align-items: center;

        gap: 10px;
        text-align: left;
    }

    .category-icon {
        width: 42px;
        min-width: 42px;
        font-size: 26px;
        text-align: center;
    }

    .category-info {
        min-width: 0;
    }

    .category-info h3 {
        margin: 0;
        font-size: 18px;
        line-height: 1.2;
    }

    .category-info p {
        margin-top: 4px;
        font-size: 12px;
        line-height: 1.3;
    }

    .category-arrow {
        font-size: 27px;
        text-align: center;
    }

    /* PRODUKTY */

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .menu-item {
        padding: 18px;
    }

    .menu-item h3 {
        font-size: 20px;
    }

    .menu-item p {
        font-size: 14px;
        min-height: auto;
    }

    .quantity-control {
        gap: 12px;
    }

    .quantity-button {
        width: 42px;
        height: 42px;
    }

    /* KOSZYK */

    .menu-cart-summary {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 18px;
    }

    .checkout-button {
        width: 100%;
    }

    .cart-item {
        grid-template-columns: 1fr auto;
        padding: 15px;
        gap: 10px;
    }

    .cart-item-info {
        min-width: 0;
    }

    .cart-item-info h3 {
        font-size: 16px;
        word-break: break-word;
    }

    .cart-quantity {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .small-quantity-button {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    /* FORMULARZ */

    input,
    select,
    textarea {
        width: 100%;
        font-size: 16px;
    }

}