:root{
    --restaurant-accent:#7b1e12;
    --restaurant-accent-dark:#5f160d;
    --restaurant-surface:#ffffff;
    --restaurant-page:#f5f5f5;
    --restaurant-text:#222222;
    --restaurant-muted:#666666;
    --restaurant-border:#e8e8e8;
}

/* =========================================================
   PUBLIC RESTAURANT MENU
   ========================================================= */

.restaurant-hero{
    width:min(1100px,calc(100% - 28px));
    margin:24px auto 16px;
    padding:34px 22px;
    border-radius:16px;
    background:var(--restaurant-accent);
    color:#fff;
    text-align:center;
    box-shadow:0 4px 18px rgba(0,0,0,.10);
}

.restaurant-hero h1{
    margin:0 0 10px;
    font-size:clamp(28px,4vw,44px);
    line-height:1.1;
}

.restaurant-hero p{
    max-width:760px;
    margin:9px auto;
    line-height:1.55;
}

.restaurant-grid{
    width:min(1100px,calc(100% - 28px));
    margin:16px auto 34px;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(270px,1fr));
    gap:18px;
    align-items:stretch;
}

.restaurant-card{
    display:flex;
    flex-direction:column;
    min-width:0;
    overflow:hidden;
    border:1px solid var(--restaurant-border);
    border-radius:15px;
    background:var(--restaurant-surface);
    box-shadow:0 3px 13px rgba(0,0,0,.08);
    transition:transform .18s ease,box-shadow .18s ease;
}

.restaurant-card:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 22px rgba(0,0,0,.12);
}

.restaurant-card > a{
    display:block;
    background:#eee;
}

.restaurant-card img{
    display:block;
    width:100%;
    height:230px;
    object-fit:cover;
    background:#eee;
}

.restaurant-body{
    display:flex;
    flex:1;
    flex-direction:column;
    padding:17px;
}

.restaurant-body h3{
    margin:0 0 10px;
    color:var(--restaurant-text);
    font-size:20px;
    line-height:1.3;
}

.restaurant-body p{
    margin:0 0 13px;
    color:var(--restaurant-muted);
    line-height:1.5;
}

.restaurant-price{
    margin-top:auto;
    padding-top:4px;
    color:var(--restaurant-accent);
    font-size:21px;
    font-weight:800;
}

.restaurant-btn{
    display:block;
    margin-top:13px;
    padding:12px 14px;
    border-radius:9px;
    background:var(--restaurant-accent);
    color:#fff;
    text-align:center;
    text-decoration:none;
    font-weight:800;
    transition:background .15s ease;
}

.restaurant-btn:hover{
    background:var(--restaurant-accent-dark);
}

.restaurant-empty{
    grid-column:1/-1;
    padding:30px;
    border:1px dashed #ccc;
    border-radius:14px;
    background:#fff;
    color:#666;
    text-align:center;
}

/* =========================================================
   RESTAURANT ITEM DETAILS
   ========================================================= */

.rest-dish-wrap{
    width:min(1000px,calc(100% - 28px));
    margin:30px auto;
    padding:20px;
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:25px;
    border-radius:16px;
    background:#fff;
    box-shadow:0 2px 12px rgba(0,0,0,.12);
}

.rest-dish-photo img{
    display:block;
    width:100%;
    height:420px;
    object-fit:cover;
    border-radius:14px;
}

.rest-back{
    display:inline-block;
    margin-bottom:15px;
    color:var(--restaurant-accent);
    text-decoration:none;
    font-weight:bold;
}

.rest-price{
    margin:10px 0;
    color:var(--restaurant-accent);
    font-size:26px;
    font-weight:bold;
}

.rest-add-btn{
    width:100%;
    margin-top:20px;
    padding:14px;
    border:0;
    border-radius:10px;
    background:var(--restaurant-accent);
    color:#fff;
    font-weight:bold;
    cursor:pointer;
}

/* =========================================================
   CHECKOUT
   ========================================================= */

.rest-checkout{
    width:min(800px,calc(100% - 28px));
    margin:30px auto;
    padding:25px;
    border-radius:16px;
    background:#fff;
    box-shadow:0 2px 12px rgba(0,0,0,.12);
}

.rest-checkout input,
.rest-checkout textarea,
.rest-checkout select{
    width:100%;
    margin:8px 0 14px;
    padding:12px;
    border:1px solid #ddd;
    border-radius:8px;
    box-sizing:border-box;
}

.rest-checkout-btn{
    display:block;
    width:100%;
    margin-top:10px;
    padding:14px;
    border-radius:10px;
    background:#0b376d;
    color:#fff;
    text-align:center;
    text-decoration:none;
    font-weight:bold;
}

/* =========================================================
   CART
   ========================================================= */

.rest-cart-lines{
    margin:0 0 25px;
}

.rest-cart-line{
    display:flex;
    gap:15px;
    padding:15px 0;
    border-bottom:1px solid #e7e7e7;
}

.rest-cart-thumb{
    width:110px;
    height:90px;
    object-fit:cover;
    border-radius:10px;
}

.rest-cart-line-body{
    flex:1;
    min-width:0;
}

.rest-cart-line-body h3{
    margin:0 0 8px;
}

.rest-line-form{
    margin-top:12px;
}

.rest-line-form label{
    display:block;
    margin:8px 0;
}

.rest-line-form input[type="number"]{
    width:85px;
}

.rest-line-actions{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.rest-line-actions button{
    padding:9px 12px;
    border:0;
    border-radius:7px;
    background:#0d2d52;
    color:#fff;
    font-weight:bold;
    cursor:pointer;
}

.rest-line-actions .rest-remove{
    background:#b00020;
}

.rest-cart-total{
    padding:15px 0;
    font-size:20px;
    text-align:right;
}

.rest-cart-navigation{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin:18px 0 25px;
}

.rest-continue-btn,
.rest-proceed-btn{
    display:inline-block;
    padding:12px 16px;
    border-radius:9px;
    text-align:center;
    text-decoration:none;
    font-weight:bold;
}

.rest-continue-btn{
    border:1px solid #bfd0e8;
    background:#eef4ff;
    color:#0d2d52;
}

.rest-proceed-btn{
    background:var(--restaurant-accent);
    color:#fff;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media(max-width:700px){
    .restaurant-hero{
        padding:27px 17px;
    }

    .restaurant-grid{
        grid-template-columns:1fr;
    }

    .restaurant-card img{
        height:240px;
    }

    .rest-dish-wrap{
        grid-template-columns:1fr;
    }

    .rest-dish-photo img{
        height:280px;
    }
}

@media(max-width:600px){
    .rest-cart-line{
        display:block;
    }

    .rest-cart-thumb{
        width:100%;
        height:180px;
        margin-bottom:10px;
    }

    .rest-cart-navigation{
        display:block;
    }

    .rest-continue-btn,
    .rest-proceed-btn{
        display:block;
        width:100%;
        margin-bottom:10px;
        box-sizing:border-box;
    }
}
