
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #EED9B9;
    color: #f5e6d3;

    padding-bottom: calc(70px + env(safe-area-inset-bottom));
}

/* HEADER */
.header {
    text-align: center;
    padding: 20px;
    background: #ad0202;
    padding-top: calc(20px + env(safe-area-inset-top));
}

.logo {
    width: 120px;
}

.tagline {
    font-size: 14px;
}

/* CATEGORY NAV */
.categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;

    padding: 12px;
    background: #700000;

    position: sticky;
    top: 0;
    z-index: 1000;
}

.categories a {
    background: rgba(245, 230, 211, 0.15);
    color: #f5e6d3;
    padding: 10px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid rgba(255,255,255,0.2);
    transition: 0.25s;
}

.categories a:hover {
    background: #f5e6d3;
    color: #b30000;
    transform: scale(1.05);
}

/* SECTION TITLES */
.section-title {
    text-align: center;
    margin: 20px;
    color: black;
    scroll-margin-top: 120px;
}

/* GRID */
.menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;

    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* CARDS */
.item {
    box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.3);
    width: 100%;
    min-height: 260px;

    background: #84221f;
    border-radius: 15px;
    padding: 12px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    transform: scale(0.97);
    transition: 0.25s;
}

.item:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.35);
}

.item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
}

.item h3 {
    font-size: 15px;
    margin: 8px 0;
}

/* PRICE ROW */
.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.price-row p {
    margin: 0;
    font-weight: bold;
}

/* QUANTITY CONTROLS */
.quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity button {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 6px;
    background: #f5e6d3;
    color: #b30000;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.quantity button:hover {
    transform: scale(1.1);
}

.quantity button:active {
    background-color: #EED9B9;
    transform: scale(1.05);
}

.quantity span {
    min-width: 20px;
    text-align: center;
    font-weight: bold;
}

/* ORDER BOX */
.order-box {
    background: #84221f;
    margin: 20px auto;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}

/* INPUTS */
.order-box input,
.order-box select {
    width: 100%;
    padding: 15px;

    border-radius: 8px;
    border: none;

    background: #f5e6d3;
    color: #b30000;
    font-weight: bold;

    margin-bottom: 10px; /* consistent spacing */
}

/* ADDRESS ROW */
.address-row {
    display: flex;
    gap: 15px;
    margin-top: 0px;
}

.address-input {
    flex: 7;
}

.location-btn {
    flex: 3;
    height: 42px;
    border: none;
    border-radius: 8px;
    background: #f5e6d3;
    color: #b30000;
    font-weight: bold;
    cursor: pointer;
}

/* BUTTON */
.order-box button {
    margin-bottom: 10px;
    width: 100%;
    padding: 15px;

    border: none;
    border-radius: 8px;

    background: #f5e6d3;
    color: #b30000;

    font-size: 16px;
    font-weight: bold;

    cursor: pointer;
    transition: 0.2s;
}

.order-box button:hover {
    transform: scale(1.03);
}

/* ========================= */
/* RECEIPT UI */
/* ========================= */

.receipt-item {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 6px 0;
    border-bottom: 1px solid rgba(245,230,211,0.15);
}

.receipt-left {
    font-size: 13px;
    text-transform: capitalize;
    flex: 1;
}

.receipt-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.qty-controls button {
    width: 26px;
    height: 26px;
    font-size: 14px;
    border-radius: 5px;
    border: none;
    background: #f5e6d3;
    color: #b30000;
    font-weight: bold;
}

.qty-controls span {
    padding-bottom: 12px;
    min-width: 18px;
    text-align: center;
    font-size: 13px;
}

.item-total {
    min-width: 65px;
    text-align: right;
    font-size: 13px;
}

.receipt-summary {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(245,230,211,0.25);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    font-size: 13px;
}

.summary-row.total {
    font-weight: bold;
    border-top: 1px solid rgba(245,230,211,0.25);
    margin-top: 5px;
    padding-top: 5px;
}

/* ========================= */
/* BOTTOM NAV */
/* ========================= */


.bottom-nav {
    position: relative;  /* or fixed */
    z-index: 9999;
    position: fixed;
    bottom: -1px; /* moved 7px lower */
    width: 100%;

    display: flex;
    justify-content: space-around;
    align-items: center;

    background: #700000;

    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255,255,255,0.2);

    animation: slideUp 0.5s ease-out;
}

.bottom-nav a {
    margin-top: 12px;
    color: #f5e6d3;
    text-decoration: none;
    font-weight: bold;

    padding: 10px 12px;
    border-radius: 10px;

    transition: all 0.25s ease;
}

.bottom-nav a:hover {
    background: rgba(245, 230, 211, 0.15);
    transform: translateY(-3px) scale(1.05);
}

.bottom-nav a:active {
    transform: scale(0.95);
}

.bottom-nav a.active {
    background: #f5e6d3;
    color: #b30000;
}
.auth-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f5e6d3;
    color: #ad0202;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.auth-btn:hover {
    transform: scale(1.05);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* MOBILE */
@media (max-width: 600px) {
    .menu {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .item img {
        height: 180px;
    }

    .categories a {
        padding: 14px 10px;
        font-size: 16px;
    }
} 
