/* Native product illustrations;
SVG images retain their source dimensions. */
.product-preview {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px;
    min-width: 0;
    color: var(--text);
    font-size: 14px;
    line-height: 24px;
}
.product-preview p,.menu-preview p {
    margin: 0;
}
.preview-masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.preview-masthead>strong {
    font-family: Manrope,sans-serif;
    font-size: 18px;
}
.sample-label {
    display: inline-flex;
    background: var(--subtle);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 12px;
    line-height: 20px;
    color: var(--muted);
}
.preview-divider {
    height: 1px;
    flex-shrink: 0;
    background: var(--border);
    width: 100%;
}
.preview-title {
    font-size: 20px;
    line-height: 32px;
    font-weight: 600;
}
.preview-accent {
    color: var(--accent)!important;
}
.preview-small {
    font-size: 14px;
    line-height: 24px;
    color: var(--muted);
}
.preview-full {
    width: 100%;
}
.counter-preview {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.counter-workspace {
    display: grid;
    grid-template-columns: 286px minmax(0,1fr);
    gap: 24px;
    direction: ltr;
}
.counter-workspace>* {
    direction: rtl;
}
[dir=ltr] .counter-workspace>* {
    direction: ltr;
}
.sample-order {
    background: var(--canvas);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}
.product-preview h3,.menu-preview h3 {
    font-size: 20px;
    line-height: 32px;
    margin: 0;
}
.sample-order-line {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}
.sample-order-line>span:last-child {
    white-space: nowrap;
}
.sample-catalog {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}
.sample-search {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--canvas);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    min-height: 48px;
}
.sample-search input {
    width: 100%;
    min-width: 0;
    background: transparent;
    border: 0;
    outline-offset: 5px;
    color: var(--text);
    font: inherit;
}
.sample-search input::placeholder {
    color: var(--muted);
    opacity: 1;
}
.sample-products {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
    direction: ltr;
}
.sample-product {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--subtle);
    border-radius: 12px;
    padding: 16px;
    direction: rtl;
}
[dir=ltr] .sample-product {
    direction: ltr;
}
.sample-product[hidden] {
    display: none;
}
.sample-product-art {
    height: 64px;
    border-radius: 8px;
    background: var(--action-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
}
.sample-product>strong {
    font-size: 20px;
    line-height: 32px;
    font-weight: 600;
}
.sample-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    line-height: 20px;
}
.sample-add {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--surface);
    color: var(--accent);
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
    font-size: 22px;
    cursor: pointer;
}
.sample-add:hover,.menu-quantity button:hover {
    background: var(--canvas);
}
.payment-preview {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px;
}
.payment-order-line {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.payment-order-line>p {
    color: var(--muted);
}
.payment-discount {
    display: flex;
    align-items: start;
    gap: 8px;
    color: #73d8a3;
    font-size: 16px;
    line-height: 28px;
}
.payment-discount img {
    flex-shrink: 0;
}
.payment-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.payment-total strong {
    font-size: 32px;
    line-height: 48px;
    white-space: nowrap;
}
.payment-total .button {
    width: 220px;
    flex-shrink: 0;
}
.menu-preview {
    width: 382px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--canvas);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px;
    text-align: start;
}
.menu-pickup {
    padding: 12px;
    background: var(--action-subtle);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.menu-pickup strong {
    font-size: 14px;
    line-height: 24px;
    font-weight: 500;
}
.menu-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}
.menu-item-details {
    display: flex;
    gap: 16px;
    align-items: start;
}
.menu-item-details>div:last-child {
    flex: 1;
    min-width: 0;
}
.menu-item-art {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 64px;
    flex-shrink: 0;
    background: var(--subtle);
    border-radius: 12px;
}
.menu-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
}
.menu-item-bottom strong {
    font-weight: 500;
}
.menu-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
}
.menu-quantity button {
    width: 30px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: inherit;
    font: inherit;
    font-size: 20px;
    cursor: pointer;
}
.menu-quantity span {
    min-width: 12px;
    text-align: center;
}
.counter-story-heading {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 48px;
}
.counter-story-heading h2 {
    margin: 0;
}
.counter-story-row {
    display: grid;
    grid-template-columns: 340px minmax(0,1fr);
    gap: 64px;
    align-items: center;
}
.counter-story-copy {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.counter-story-copy h3,.counter-story-copy p {
    margin: 0;
}
.counter-story-copy>p,.online-menu-copy>p {
    color: var(--muted);
    font-size: 16px;
    line-height: 28px;
}
.counter-story-steps {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin: 0;
    font-size: 14px;
    line-height: 24px;
}
.counter-story-steps dt {
    color: var(--accent);
    font-weight: 500;
}
.counter-story-steps dd {
    margin: 4px 0 0;
    color: var(--muted);
}
.online-menu-story {
    background: var(--surface);
}
.online-menu-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) 650px;
    gap: 80px;
    align-items: center;
}
.online-menu-copy {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 24px;
    min-width: 0;
}
.online-menu-copy h2,.online-menu-copy p {
    margin: 0;
}
.online-menu-copy .button {
    min-width: 250px;
}
.online-menu-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background: var(--subtle);
    border-radius: 24px;
    padding: 32px;
    min-width: 0;
}
.online-menu-stage>.caption {
    text-align: center;
    margin: 0;
}
@media(max-width:1199px) {
    .online-menu-row {
        grid-template-columns: minmax(0,1fr) minmax(360px,1.2fr);
        gap: 40px;
    }
    .counter-story-row {
        grid-template-columns: 280px minmax(0,1fr);
        gap: 32px;
    }
    .payment-total {
        flex-wrap: wrap;
    }
    .payment-total .button {
        flex: 1;
    }
    .counter-workspace {
        grid-template-columns: 240px minmax(0,1fr);
    }
    .sample-product {
        padding: 12px;
    }
    .sample-price-row {
        flex-wrap: wrap;
    }
}
@media(max-width:900px) {
    .counter-workspace {
        grid-template-columns: minmax(0,1fr) minmax(0,1.2fr);
        gap: 16px;
    }
    .counter-story-row,.online-menu-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .counter-story-copy {
        max-width: 600px;
    }
    .counter-story-row>.payment-preview {
        grid-row: 2;
    }
    .online-menu-stage {
        width: 100%;
    }
    .online-menu-copy {
        max-width: 640px;
    }
    .payment-total {
        flex-wrap: nowrap;
    }
    .counter-story-heading {
        margin-bottom: 32px;
    }
}
@media(max-width:600px) {
    .product-preview {
        padding: 16px;
        border-radius: 16px;
    }
    .preview-masthead {
        gap: 8px;
        flex-wrap: wrap;
    }
    .sample-label {
        font-size: 11px;
        padding: 4px 8px;
    }
    .counter-workspace {
        display: flex;
        flex-direction: column-reverse;
        gap: 20px;
    }
    .counter-workspace>* {
        width: 100%;
    }
    .sample-order {
        padding: 16px;
    }
    .sample-product {
        padding: 12px;
        gap: 10px;
    }
    .sample-price-row {
        font-size: 11px;
    }
    .sample-add {
        width: 36px;
        height: 36px;
    }
    .sample-search {
        gap: 8px;
    }
    .sample-search input {
        font-size: 12px;
    }
    .sample-order h3 {
        font-size: 18px;
    }
    .payment-total {
        flex-wrap: wrap;
        gap: 12px;
    }
    .payment-total strong {
        font-size: 28px;
    }
    .payment-total .button {
        width: 100%;
        flex-basis: 100%;
    }
    .payment-preview {
        gap: 20px;
    }
    .payment-discount {
        font-size: 14px;
        line-height: 24px;
    }
    .online-menu-stage {
        padding: 20px 12px;
    }
    .menu-preview {
        padding: 20px 16px;
        gap: 18px;
    }
    .menu-item-details {
        gap: 12px;
    }
    .menu-item-art {
        width: 46px;
    }
    .menu-item-bottom {
        font-size: 12px;
    }
    .menu-quantity {
        gap: 4px;
    }
    .counter-story-copy {
        gap: 24px;
    }
    .counter-story-steps {
        gap: 24px;
    }
    .online-menu-copy .button {
        min-width: 0;
        width: 100%;
    }
}
/* Match the Figma masthead/search order without reversing Persian text. */
.preview-masthead { direction: ltr; }
.menu-preview .preview-masthead { direction: inherit; }
.sample-search { direction: ltr; }
.sample-search input { direction: rtl; text-align: right; }
[dir=ltr] .sample-search input { direction: ltr; text-align: left; }
