/* css/food-cart-express.css */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --foodcart-theme: #b53118;
    --foodcart-accent: #ffe7af;
    --foodcart-radius: 24px;
    --foodcart-spacing: 72px;
    --foodcart-font: Arial, Helvetica, sans-serif;
}

body {
    font-family: var(--foodcart-font);
    background: #fff9ed;
    color: #23140b;
}

.hero {
    min-height: 82vh;
    padding: 28px 7%;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
        linear-gradient(135deg, #2b1608, var(--foodcart-theme) 52%, #ffb000);
    background-size: 42px 42px, 42px 42px, cover;
    color: #ffffff;
    overflow: hidden;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-icon {
    font-size: 42px;
}

.brand h1 {
    font-size: 26px;
}

.brand p {
    color: var(--foodcart-accent);
}

.nav-btn,
.hero-btn {
    background: var(--foodcart-accent);
    color: #2b1608;
    text-decoration: none;
    font-weight: 900;
    padding: 13px 20px;
    border-radius: 999px;
}

.street-cart-hero {
    padding: 62px 0 38px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 38px;
    align-items: center;
}

.street-board {
    background: rgba(255, 255, 255, 0.12);
    border: 3px solid rgba(255, 255, 255, 0.22);
    border-radius: 34px;
    padding: 34px;
    backdrop-filter: blur(8px);
}

.eyebrow {
    color: var(--foodcart-accent);
    font-weight: 900;
    letter-spacing: 1.5px;
    font-size: 13px;
}

.street-board h2 {
    font-size: clamp(34px, 4.8vw, 62px);
    line-height: 1.04;
    margin: 16px 0;
}

.street-board p {
    font-size: 18px;
    line-height: 1.7;
    color: #fff0d2;
    margin-bottom: 28px;
}

.cart-showcase {
    background: #341807;
    border: 10px solid rgba(255, 231, 175, 0.55);
    border-radius: 38px;
    padding: 24px;
    box-shadow: 0 28px 70px rgba(35, 20, 11, 0.35);
}

.cart-label {
    background: var(--foodcart-accent);
    color: #2b1608;
    font-weight: 900;
    text-align: center;
    border-radius: 999px;
    padding: 13px 18px;
    margin-bottom: 20px;
}

.cart-grid {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        #1f1007;
    background-size: 42px 42px;
    border-radius: 28px;
    padding: 22px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.cart-item {
    background: #fff9ed;
    color: var(--foodcart-theme);
    border-radius: 26px;
    min-height: 130px;
    display: grid;
    place-items: center;
    text-align: center;
    font-size: 44px;
    font-weight: 900;
    position: relative;
}

.cart-item span {
    position: absolute;
    bottom: 12px;
    background: #ffb000;
    color: #23140b;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 999px;
}

/* EXPERIENCE EDITOR */
.experience-editor-panel {
    padding: 56px 7% 30px;
    background: #fff1d3;
    border-bottom: 1px solid rgba(181, 49, 24, 0.12);
}

.editor-header {
    max-width: 780px;
    margin-bottom: 24px;
}

.editor-header span,
.preview-card span,
.save-draft-section span {
    color: #c0441d;
    font-weight: 900;
    letter-spacing: 1.5px;
    font-size: 13px;
    text-transform: uppercase;
}

.editor-header h2 {
    margin-top: 8px;
    font-size: 34px;
    color: var(--foodcart-theme);
}

.editor-header p {
    margin-top: 10px;
    color: #6f5848;
    line-height: 1.6;
}

.editor-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.editor-card {
    background: #ffffff;
    border: 1px solid rgba(181, 49, 24, 0.14);
    border-radius: var(--foodcart-radius);
    padding: 16px;
    box-shadow: 0 12px 28px rgba(181, 49, 24, 0.08);
}

.editor-card label {
    display: block;
    font-size: 13px;
    font-weight: 900;
    color: var(--foodcart-theme);
    margin-bottom: 8px;
}

.editor-card input,
.editor-card textarea,
.editor-card select {
    width: 100%;
    border: 1px solid #efc897;
    border-radius: 14px;
    padding: 11px 12px;
    font: inherit;
    color: #23140b;
    background: #fff9ed;
}

.editor-card textarea {
    min-height: 92px;
    resize: vertical;
}

.editor-card input[type="color"] {
    height: 48px;
    padding: 5px;
}

.editor-card input[type="range"] {
    padding: 0;
}

.intro {
    text-align: center;
    padding: 52px 7% 24px;
}

.intro span {
    color: #c0441d;
    font-weight: 900;
    letter-spacing: 1.5px;
    font-size: 13px;
}

.intro h2 {
    margin-top: 8px;
    font-size: 34px;
    color: var(--foodcart-theme);
}

.intro p {
    margin-top: 8px;
    color: #6f5848;
}

.shop-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 26px;
    padding: 20px 7% var(--foodcart-spacing);
    align-items: start;
}

.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.product-card {
    background: #ffffff;
    border-radius: var(--foodcart-radius);
    overflow: hidden;
    border: 1px solid rgba(181, 49, 24, 0.12);
    box-shadow: 0 14px 34px rgba(181, 49, 24, 0.12);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.product-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}

.product-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-body h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.product-body p {
    color: #6f5848;
    font-size: 14px;
    line-height: 1.45;
    flex: 1;
}

.product-edit-fields {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.product-edit-fields input,
.product-edit-fields textarea {
    width: 100%;
    border: 1px solid #efc897;
    border-radius: 12px;
    padding: 9px 10px;
    font: inherit;
    font-size: 13px;
    background: #fff9ed;
}

.product-edit-fields textarea {
    min-height: 70px;
    resize: vertical;
}

.price {
    font-size: 20px;
    color: #c0441d;
    font-weight: 900;
    margin: 16px 0;
}

.product-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #efc897;
    border-radius: 999px;
    overflow: hidden;
}

.qty-control button {
    width: 34px;
    height: 34px;
    border: none;
    background: #fff0d6;
    color: var(--foodcart-theme);
    font-weight: 900;
    cursor: pointer;
}

.qty-control span {
    width: 34px;
    text-align: center;
    font-weight: 900;
}

.add-btn {
    flex: 1;
    border: none;
    background: var(--foodcart-theme);
    color: #ffffff;
    border-radius: 999px;
    padding: 11px;
    font-weight: 900;
    cursor: pointer;
}

.cart-panel {
    position: sticky;
    top: 20px;
    background: #23140b;
    color: #ffffff;
    border-radius: 26px;
    padding: 22px;
}

.cart-panel h3 {
    color: var(--foodcart-accent);
    margin-bottom: 16px;
}

.empty-cart {
    color: #edd5b8;
    font-size: 14px;
}

.cart-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    font-size: 14px;
}

.cart-summary {
    margin-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    padding-top: 16px;
}

.cart-summary div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.checkout-btn {
    width: 100%;
    margin-top: 12px;
    border: none;
    background: var(--foodcart-accent);
    color: #23140b;
    padding: 14px;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
}

/* PREVIEW CARDS */
.experience-preview-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    padding: 0 7% var(--foodcart-spacing);
}

.preview-card {
    background: #ffffff;
    border: 1px solid rgba(181, 49, 24, 0.12);
    border-radius: var(--foodcart-radius);
    padding: 24px;
    box-shadow: 0 14px 34px rgba(181, 49, 24, 0.1);
}

.preview-card h3 {
    margin-top: 8px;
    font-size: 24px;
    color: var(--foodcart-theme);
}

.preview-card p {
    color: #6f5848;
    line-height: 1.6;
    margin: 10px 0 18px;
}

.preview-card button,
.save-draft-section button {
    border: none;
    background: var(--foodcart-theme);
    color: #ffffff;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 900;
    cursor: pointer;
}

.save-draft-section {
    margin: 0 7% var(--foodcart-spacing);
    background:
        linear-gradient(135deg, #2b1608, var(--foodcart-theme));
    color: #ffffff;
    border-radius: 30px;
    padding: 34px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
}

.save-draft-section h2 {
    margin-top: 8px;
    font-size: 30px;
}

.save-draft-section p {
    max-width: 680px;
    margin-top: 10px;
    color: #fff0d2;
    line-height: 1.6;
}

.save-draft-section button {
    background: var(--foodcart-accent);
    color: #23140b;
    white-space: nowrap;
}

.buildframe-float {
    position: fixed;
    right: 18px;
    bottom: 58px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #062f3a;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.65);
    z-index: 50;
}

.buildframe-float img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.buildframe-footer {
    background: #062f3a;
    color: #eaffff;
    text-align: center;
    padding: 14px 20px;
    font-size: 14px;
}

.buildframe-footer a {
    color: #7ef6ff;
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .street-cart-hero {
        grid-template-columns: 1fr;
    }

    .cart-grid,
    .products,
    .editor-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .shop-layout {
        grid-template-columns: 1fr;
    }

    .cart-panel {
        position: static;
    }

    .experience-preview-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .hero {
        padding: 22px 5%;
    }

    .topbar {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cart-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products,
    .editor-grid {
        grid-template-columns: 1fr;
    }

    .experience-editor-panel,
    .experience-preview-section,
    .shop-layout {
        padding-left: 5%;
        padding-right: 5%;
    }

    .shop-layout {
        padding-top: 20px;
        padding-bottom: 72px;
    }

    .save-draft-section {
        margin-left: 5%;
        margin-right: 5%;
        display: grid;
    }

    .nav-btn {
        width: fit-content;
    }
}

.product-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.food-icon {
    width: 100%;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 58px;
    background:
        radial-gradient(circle at top left, #fff9ed, transparent 35%),
        linear-gradient(135deg, #ffe7af, #fff1d3);
}