* {
    box-sizing: border-box;
}

:root {
    --brown: #3f1f0b;
    --brown-2: #7a3f16;
    --gold: #d99b2b;
    --gold-2: #f2c15b;
    --cream: #fff7e8;
    --bg: #f8f3ea;
    --text: #1f2937;
    --muted: #6b7280;
    --white: #ffffff;
    --danger: #dc2626;
    --success: #16a34a;
    --border: #eadcc6;
}

body {
    margin: 0;
    font-family: Tahoma, Arial, sans-serif;
    background:
        radial-gradient(circle at top right, rgba(217,155,43,0.12), transparent 28%),
        var(--bg);
    color: var(--text);
}

a {
    text-decoration: none;
    color: inherit;
}

.topbar {
    background: linear-gradient(135deg, var(--brown), var(--brown-2));
    color: #fff;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 10px 30px rgba(63, 31, 11, 0.22);
}

.brand a {
    font-size: 25px;
    font-weight: 900;
    color: var(--gold-2);
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav a {
    color: #fff;
    background: rgba(255,255,255,0.14);
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 14px;
    transition: 0.2s;
}

.nav a:hover {
    background: var(--gold);
    transform: translateY(-1px);
}

.page {
    max-width: 1180px;
    margin: auto;
    padding: 24px 16px 90px;
}

.hero {
    background:
        radial-gradient(circle at top left, rgba(242,193,91,0.32), transparent 35%),
        linear-gradient(135deg, #321606, #9b5a1d);
    color: #fff;
    border-radius: 36px;
    padding: 50px 30px;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 24px;
    align-items: center;
    box-shadow: 0 20px 50px rgba(74,37,13,0.24);
}

.hero h1 {
    margin: 0 0 12px;
    font-size: 50px;
    line-height: 1.15;
}

.hero p {
    font-size: 18px;
    line-height: 1.9;
    margin: 0 0 24px;
    color: #fff3d1;
}

.hero-card {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.28);
    padding: 24px;
    border-radius: 28px;
    backdrop-filter: blur(8px);
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: #fff;
    padding: 12px 19px;
    border-radius: 15px;
    border: 0;
    cursor: pointer;
    font-weight: 900;
    font-size: 14px;
    transition: 0.2s;
    margin: 3px;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(217,155,43,0.30);
}

.btn.secondary {
    background: var(--brown);
}

.section-title {
    margin: 38px 0 16px;
    font-size: 29px;
    color: var(--brown);
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.card,
.product-card,
.form-card,
.order-card {
    background: rgba(255,255,255,0.96);
    border-radius: 25px;
    padding: 19px;
    box-shadow: 0 14px 35px rgba(76, 39, 13, 0.09);
    border: 1px solid var(--border);
}

.card:hover,
.product-card:hover,
.order-card:hover {
    box-shadow: 0 20px 48px rgba(76, 39, 13, 0.14);
}

.product-card {
    display: flex;
    flex-direction: column;
}

.product-card img,
.category-card img {
    width: 100%;
    height: 195px;
    object-fit: cover;
    background: #f2e3cc;
    border-radius: 20px;
}

.product-card h3,
.card h3 {
    margin: 14px 0 8px;
    color: var(--brown);
}

.product-card p {
    color: var(--muted);
    line-height: 1.7;
    min-height: 45px;
}

.price {
    color: var(--brown-2);
    font-size: 22px;
    font-weight: 900;
    margin-top: auto;
}

.form-card {
    max-width: 560px;
    margin: 28px auto;
}

label {
    display: block;
    margin: 13px 0 7px;
    font-weight: 900;
    color: var(--brown);
}

input,
textarea,
select {
    width: 100%;
    padding: 13px;
    border: 1px solid #dcc8aa;
    border-radius: 15px;
    font-size: 15px;
    background: #fffdf9;
}

textarea {
    min-height: 110px;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(217,155,43,0.14);
}

.alert {
    padding: 13px;
    border-radius: 15px;
    margin: 12px 0;
    background: #fff3cd;
    color: #7a3f16;
}

.alert.error {
    background: #fee2e2;
    color: #991b1b;
}

.alert.success {
    background: #dcfce7;
    color: #166534;
}

.table-wrap {
    overflow-x: auto;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(76, 39, 13, 0.08);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 850px;
}

th,
td {
    padding: 14px;
    border-bottom: 1px solid #f0e5d5;
    text-align: right;
    vertical-align: top;
}

th {
    background: #fff2d8;
    color: var(--brown);
    font-weight: 900;
}

.status {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eee;
    font-size: 13px;
    font-weight: 900;
}

.status.pending { background: #fef3c7; color: #92400e; }
.status.accepted { background: #dbeafe; color: #1e40af; }
.status.preparing { background: #ede9fe; color: #5b21b6; }
.status.assigned { background: #e0f2fe; color: #075985; }
.status.on_the_way { background: #dcfce7; color: #166534; }
.status.delivered { background: #d1fae5; color: #065f46; }
.status.cancelled { background: #fee2e2; color: #991b1b; }

.cart-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    background: #fff;
    padding: 16px;
    border-radius: 18px;
    margin-bottom: 10px;
    box-shadow: 0 8px 22px rgba(76,39,13,0.06);
}

.empty {
    background: #fff;
    padding: 26px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 24px rgba(76,39,13,0.06);
}

.footer {
    background: var(--brown);
    color: #fff3d1;
    text-align: center;
    padding: 20px;
}

.mobile-bottom-nav {
    display: none;
}

.notif-badge {
    background: #dc2626;
    color: white;
    font-size: 11px;
    padding: 3px 7px;
    border-radius: 50%;
    margin-right: 5px;
}

@media (max-width: 850px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 16px;
    }

    .brand a {
        font-size: 23px;
    }

    .nav {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .nav a {
        white-space: nowrap;
        font-size: 13px;
        padding: 8px 11px;
    }

    .page {
        padding: 18px 13px 100px;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 36px 20px;
        border-radius: 30px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .product-card img {
        height: 215px;
    }

    .cart-row {
        grid-template-columns: 1fr;
    }

    .mobile-bottom-nav {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        background: #fff;
        border-top: 1px solid var(--border);
        box-shadow: 0 -8px 28px rgba(74,37,13,0.14);
        z-index: 999;
    }

    .mobile-bottom-nav a {
        padding: 10px 5px;
        text-align: center;
        font-size: 12px;
        color: var(--brown);
        font-weight: 900;
        border-left: 1px solid #f3e6d0;
    }

    .mobile-bottom-nav a:last-child {
        border-left: none;
    }
}
.tiktok-btn {
    display:inline-flex;
    align-items:center;
    gap:8px;
    background:#000;
    color:#fff;
    padding:10px 16px;
    border-radius:30px;
    text-decoration:none;
    font-weight:bold;
    transition:0.3s;
}

.tiktok-btn:hover {
    background:#ff0050;
}