﻿.pasta-hero {
    position: relative;
    max-width: var(--max);
    height: 560px;
    margin: 0 auto;
    overflow: hidden;
}

    .pasta-hero > img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.pasta-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(0, 0, 0, .68) 0%, rgba(0, 0, 0, .42) 48%, rgba(0, 0, 0, .08) 100%);
}

.pasta-hero-content {
    position: absolute;
    left: 42px;
    bottom: 42px;
    max-width: 760px;
    color: #fff;
    z-index: 2;
}

    .pasta-hero-content .eyebrow {
        margin: 0 0 16px;
        color: #fff;
        font-weight: 700;
        letter-spacing: .08em;
    }

    .pasta-hero-content h1 {
        margin: 0;
        color: #fff;
        font-size: clamp(2.8rem, 4vw, 4.4rem);
        line-height: 1.02;
    }

.pasta-hero-subtitle {
    margin: 22px 0 0;
    font-size: 1.2rem;
    line-height: 1.5;
}

.pasta-hero-content .button {
    margin-top: 18px;
}

.pasta-collection {
    padding: 30px 22px 30px;
    background: #fff;
}

.pasta-collection-inner {
    max-width: var(--max);
    margin: 0 auto;
}

.pasta-collection-heading {
    max-width: 760px;
    margin-bottom: 42px;
}

    .pasta-collection-heading .eyebrow {
        margin: 0 0 10px;
        color: var(--red);
        font-weight: 700;
        letter-spacing: .08em;
    }

    .pasta-collection-heading h2 {
        margin: 0 0 16px;
        font-size: clamp(2.4rem, 4vw, 4rem);
        line-height: 1;
    }

    .pasta-collection-heading > p:last-child {
        margin: 0;
        font-size: 1.1rem;
        line-height: 1.6;
    }

.pasta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 38px 24px;
}

.pasta-card-image {
    aspect-ratio: 4 / 3;
    background: #e8e4dc;
    margin-bottom: 18px;
}

.pasta-card h3 {
    margin: 0 0 6px;
    font-size: 1.6rem;
}

.pasta-card p {
    margin: 0;
    font-size: .92rem;
    opacity: .7;
}

.pasta-card-gallery {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #e8e4dc;
    margin-bottom: 18px;
    overflow: hidden;
}

.pasta-card-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateX(100%);
    transition: transform .35s ease;
}

    .pasta-card-slide.active {
        transform: translateX(0);
    }

    .pasta-card-slide.previous {
        transform: translateX(-100%);
    }

.pasta-gallery-prev,
.pasta-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    font-size: 20px;
    cursor: pointer;
}

.pasta-gallery-prev {
    left: 12px;
}

.pasta-gallery-next {
    right: 12px;
}

.pasta-gallery-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    display: flex;
    justify-content: center;
    gap: 7px;
}

.pasta-gallery-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    cursor: pointer;
}

    .pasta-gallery-dot.active {
        background: #fff;
    }

.pasta-card-price {
    margin: 10px 0 0;
    font-size: 1rem;
}

    .pasta-card-price strong {
        color: var(--red);
        font-size: 1.1rem;
    }

    .pasta-card-price span {
        opacity: .65;
    }

.pasta-recipe {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 18px;
    min-height: 135px;
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid #ddd;
    color: inherit;
    text-decoration: none;
}

    .pasta-recipe img {
        width: 140px;
        height: 105px;
        object-fit: cover;
        border-radius: 4px;
    }

.pasta-recipe-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.pasta-recipe-label {
    margin-bottom: 5px;
    color: #ac0e12;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.pasta-recipe-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
}

.pasta-recipe-link {
    margin-top: 7px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pasta-recipe:hover .pasta-recipe-link {
    text-decoration: underline;
}

.pasta-order-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
}

    .pasta-order-control .pasta-availability {
        margin: 0;
    }

.pasta-add-button {
    border: 0;
    border-radius: 4px;
    background: #AC0E12;
    color: #fff;
    padding: 6px 14px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    margin-right: 12px;
}

    .pasta-add-button:hover {
        opacity: 0.9;
    }

.pasta-availability {
    color: #666;
    font-size: 0.9rem;
}

    .pasta-availability.sold-out {
        color: #AC0E12;
        font-weight: 700;
    }

.pasta-card-info {
    min-height: 120px;
}

.pasta-quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 12px;
}

.pasta-quantity-minus,
.pasta-quantity-plus {
    width: 30px;
    height: 30px;
    border: 1px solid #AC0E12;
    border-radius: 4px;
    background: #fff;
    color: #AC0E12;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.pasta-quantity-value {
    min-width: 18px;
    text-align: center;
    font-weight: 700;
}

.pasta-quantity-minus:disabled,
.pasta-quantity-plus:disabled {
    opacity: 0.35;
    cursor: default;
}


.pasta-order-summary {
    display: none;
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 1000;
}

.pasta-view-order {
    border: 0;
    border-radius: 5px;
    background: #AC0E12;
    color: #fff;
    padding: 12px 20px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    cursor: pointer;
}

.order-review {
    max-width: 700px;
    margin: 28px 0 36px;
    border: 1px solid #ddd4c8;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}

.order-review-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 16px 20px;
    border-bottom: 1px solid #eee7de;
}

    .order-review-item strong {
        display: block;
        margin-bottom: 3px;
    }

.order-review-item-total {
    font-weight: 700;
    white-space: nowrap;
}

.order-review-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f5f0e8;
    font-size: 1.05rem;
}

    .order-review-total strong {
        font-size: 1.25rem;
    }

.order-customer h2 {
    font-size: 2rem;
    line-height: 1.1;
    margin: 0 0 12px;
}

.order-customer > p {
    margin: 0 0 22px;
}

.order-customer {
    max-width: 700px;
}

.order-field {
    margin-bottom: 16px;
}

    .order-field label {
        display: block;
        margin-bottom: 5px;
        font-weight: 700;
    }

    .order-field input,
    .order-field textarea {
        box-sizing: border-box;
        width: 100%;
        padding: 10px 12px;
        border: 1px solid #cfc6ba;
        border-radius: 4px;
        background: #fff;
        font-family: inherit;
        font-size: 1rem;
    }

    .order-field textarea {
        min-height: 100px;
        resize: vertical;
    }

.pasta-order-submit {
    border: 0;
    border-radius: 5px;
    background: #AC0E12;
    color: #fff;
    padding: 12px 22px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 4px;
}

    .pasta-order-submit:hover {
        background: #8f0b0f;
    }

.order-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr);
    gap: 48px;
    align-items: start;
    margin-top: 32px;
}

    .order-layout .order-customer,
    .order-layout .order-review {
        max-width: none;
        width: 100%;
        margin-top: 0;
    }

.order-review {
    margin-top: 145px !important;
}

.order-review-submit {
    display: flex;
    justify-content: center;
    padding: 18px 20px;
}

    .order-review-submit .pasta-order-submit {
        margin: 0;
    }

.cottage-food-notice {
    margin-top: 24px;
    padding: 14px 16px;
    border: 1px solid #ddd4c8;
    border-radius: 6px;
    background: #f7f3ec;
    font-size: .95rem;
    line-height: 1.5;
}

    .cottage-food-notice strong {
        color: #ac0e12;
    }

.confirmation-order-review {
    margin-top: 30px !important;
}

.confirmation-card {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    gap: 50px;
    align-items: start;
    margin: 30px 0 50px;
    padding: 36px 40px;
    border: 1px solid #ddd4c8;
    border-radius: 6px;
    background: #fff;
}

.confirmation-message p {
    margin: 0 0 18px;
    line-height: 1.55;
}

    .confirmation-message p:first-child {
        font-size: 1.2rem;
    }

.confirmation-card .confirmation-order-review {
    width: 100%;
    margin: 210px 0 0 !important;
}

.confirmation-page h1 {
    font-size: clamp(4rem, 6vw, 6rem);
    line-height: 0.95;
    margin: 0 0 28px;
}

@media (max-width: 800px) {
    .confirmation-card {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
    }

        .confirmation-card .confirmation-order-review {
            margin: 0 !important;
        }
}

@media (max-width: 800px) {
    .order-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .order-review {
        order: -1;
        margin-top: 0 !important;
    }

    main.container {
        padding-left: 20px;
        padding-right: 20px;
    }

    main.container > h1 {
        font-size: 2.6rem;
        line-height: 1;
    }

    .order-customer h2 {
        font-size: 2rem;
    }
}
/* Pasta Inventory */

.inventory-header {
    margin-bottom: 1.5rem;
}

    .inventory-header h1 {
        margin-bottom: 0.35rem;
    }

.inventory-intro {
    margin: 0;
    color: #666;
}

.inventory-message {
    padding: 0.9rem 1rem;
    margin-bottom: 1.25rem;
    border-radius: 6px;
    font-weight: 600;
}

.inventory-message-success {
    background: #edf7ed;
    border: 1px solid #bad7ba;
    color: #285b2a;
}

.inventory-message-error {
    background: #fbecec;
    border: 1px solid #e4b4b4;
    color: #8a1f1f;
}

.inventory-card {
    max-width: 650px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.inventory-table-header,
.inventory-row {
    display: grid;
    grid-template-columns: 1fr 120px 120px 120px;
    align-items: center;
}

.inventory-table-header {
    padding: 0.75rem 1rem;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    font-weight: 700;
}

    .inventory-table-header div:not(:first-child),
    .inventory-reserved,
    .inventory-available {
        text-align: center;
    }

.inventory-row {
    min-height: 64px;
    padding: 0 1rem;
    border-bottom: 1px solid #eee;
}

    .inventory-row:last-child {
        border-bottom: 0;
    }

.inventory-shape {
    font-size: 1.05rem;
    font-weight: 600;
}

.inventory-quantity {
    text-align: center;
}

.inventory-input {
    width: 85px;
    padding: 0.55rem;
    border: 1px solid #bbb;
    border-radius: 5px;
    font-size: 1rem;
    text-align: center;
}

    .inventory-input:focus {
        outline: none;
        border-color: #AC0E12;
        box-shadow: 0 0 0 2px rgba(172, 14, 18, 0.12);
    }

.inventory-actions {
    max-width: 650px;
    margin-top: 1.25rem;
    display: flex;
    justify-content: flex-end;
}

.inventory-save {
    padding: 0.7rem 1.25rem;
    border: 0;
    border-radius: 5px;
    background: #AC0E12;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

    .inventory-save:hover {
        opacity: 0.9;
    }

@media (max-width: 600px) {
    .inventory-table-header,
    .inventory-row {
        grid-template-columns: 1fr 105px;
    }

    .inventory-card,
    .inventory-actions {
        max-width: 100%;
    }

    .inventory-input {
        width: 70px;
    }
}

@media (max-width: 850px) {
    .pasta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .pasta-grid {
        grid-template-columns: 1fr;
    }
}
