:root {
    --bg: #f2efe8;
    --paper: #ffffff;
    --ink: #1f2430;
    --brand: #d35400;
    --brand-dark: #8f3c00;
    --muted: #69707d;
    --shadow: 0 12px 30px rgba(22, 25, 34, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: radial-gradient(circle at 20% 10%, #fff8ef 0%, #f2efe8 55%, #ebe7df 100%);
    font-family: 'Barlow', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
}

.glass {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow);
    backdrop-filter: blur(6px);
}

.client-shell {
    min-height: 100vh;
}

.product-card,
.cart-card,
.card {
    border: none;
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.product-media {
    width: 100%;
    height: auto;
    background: #f7f5ef;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    overflow: visible;
}

.product-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
}

.client-menu-page {
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 123, 0, 0.24) 0%, rgba(255, 123, 0, 0) 35%),
        radial-gradient(circle at 84% 14%, rgba(255, 196, 0, 0.16) 0%, rgba(255, 196, 0, 0) 40%),
        #090909;
    color: #f8f3eb;
    font-family: 'Nunito Sans', 'Barlow', sans-serif;
}

.client-menu-page h1,
.client-menu-page h2,
.client-menu-page h3 {
    font-family: 'Bebas Neue', 'Space Grotesk', sans-serif;
    letter-spacing: 0.03em;
}

.client-menu-page .sticky-top {
    background: rgba(9, 9, 9, 0.92) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(8px);
}

.client-menu-page .text-muted,
.client-menu-page small {
    color: rgba(248, 243, 235, 0.76) !important;
}

.client-menu-page p,
.client-menu-page span,
.client-menu-page strong,
.client-menu-page label {
    color: #f6efe4;
}

.client-menu-page .card {
    background: linear-gradient(160deg, rgba(24, 24, 24, 0.96) 0%, rgba(16, 16, 16, 0.96) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

.client-menu-page #categoryNav .btn {
    border-radius: 999px;
    border-width: 1px;
}

.client-menu-page #categoryNav .btn-outline-primary {
    color: #ffcf99;
    border-color: rgba(255, 150, 51, 0.65);
}

.client-menu-page #categoryNav .btn-outline-primary:hover {
    background: rgba(255, 123, 0, 0.24);
    color: #fff4e8;
    border-color: rgba(255, 150, 51, 0.85);
}

.client-menu-page #categoryNav .btn-primary {
    background: linear-gradient(135deg, #ff7b00 0%, #ff9700 100%);
    border-color: transparent;
    color: #19130f;
    font-weight: 700;
}

.client-menu-page .product-card {
    overflow: hidden;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.client-menu-page .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 40px rgba(0, 0, 0, 0.5);
}

.client-menu-page .scroll-top-categories-btn {
    position: fixed;
    right: 14px;
    bottom: 18px;
    z-index: 1060;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(23, 23, 23, 0.82);
    color: #ffe6bf;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1;
    letter-spacing: 0.03em;
    padding: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.client-menu-page .scroll-top-categories-btn.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.client-menu-page .scroll-top-categories-btn:hover,
.client-menu-page .scroll-top-categories-btn:focus-visible {
    background: rgba(41, 41, 41, 0.92);
    color: #fff2d8;
    outline: none;
}

@media (min-width: 992px) {
    .client-menu-page .scroll-top-categories-btn {
        right: 22px;
        bottom: 22px;
    }
}
.client-menu-page .product-media {
    height: auto;
    background:
        linear-gradient(180deg, rgba(255, 123, 0, 0.16) 0%, rgba(255, 123, 0, 0.02) 100%),
        #0d0d0d;
    overflow: visible;
    position: relative;
}

.client-menu-page .product-stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(220, 53, 69, 0.92);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
    z-index: 2;
}

.client-menu-page .product-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: none;
}

.client-menu-page .product-card:hover img {
    transform: none;
}

.client-menu-page .product-card .card-body h3,
.client-menu-page .product-card .card-body strong {
    color: #fff3e1;
}

.client-menu-page .product-card .card-body h3 {
    letter-spacing: 0.03em;
    font-size: 1.40rem;
}

.client-menu-page .product-card .card-body p,
.client-menu-page .product-card .card-body .small {
    color: rgba(255, 236, 214, 0.86) !important;
}

.client-menu-page .product-card .btn-primary {
    border: none;
    background: linear-gradient(135deg, #ff7b00 0%, #ff9700 100%);
    color: #1f1409;
    font-weight: 800;
}

.client-menu-page .product-card .btn-secondary {
    border: none;
    background: rgba(255, 255, 255, 0.18);
}

.client-menu-page .cart-card h2,
.client-menu-page .cart-card .fw-bold,
.client-menu-page #cartItems,
.client-menu-page #cartTotal {
    color: #fff3e1;
}

.client-menu-page #sendOrderBtn {
    border: none;
    background: linear-gradient(135deg, #ff7b00 0%, #ff9700 100%);
    color: #1f1409;
    font-weight: 800;
}

.client-menu-page #sendOrderBtn:disabled {
    opacity: 0.55;
    color: #2f2416;
}

.client-menu-page .client-order-dock-wrap {
    padding-bottom: 0.25rem;
}

.client-menu-page .client-order-dock {
    position: sticky;
    top: 78px;
    z-index: 1040;
}

.client-menu-page .client-order-items {
    max-height: 30vh;
    overflow: auto;
    padding-right: 0.25rem;
}

.client-menu-page .client-order-items .border-bottom:last-child {
    border-bottom: 0 !important;
}

.client-menu-page #cartSummary {
    line-height: 1.35;
}

.client-menu-page #cartCountBadge {
    background: linear-gradient(135deg, #ff7b00 0%, #ff9700 100%) !important;
    color: #1f1409;
    font-weight: 800;
}

.client-menu-page .client-order-dock .text-muted {
    color: rgba(255, 236, 214, 0.76) !important;
}

.btn-primary {
    background-color: var(--brand);
    border-color: var(--brand);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
}

.admin-topbar {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

@media (max-width: 991px) {
    .sticky-lg-top {
        position: static !important;
    }

    .client-menu-page .client-order-dock {
        top: 68px;
    }

    .client-menu-page .client-order-items {
        max-height: 24vh;
    }
}

@media (max-width: 575px) {
    .client-menu-page .client-order-dock {
        top: 62px;
    }

    .client-menu-page .client-order-items {
        max-height: 22vh;
    }
}

.fs-toast-wrap {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: min(92vw, 360px);
}

.fs-toast {
    border-radius: 14px;
    padding: 12px 14px;
    color: #fff;
    box-shadow: 0 14px 28px rgba(16, 18, 27, 0.24);
    animation: fs-toast-in 180ms ease-out;
    font-size: 0.95rem;
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.fs-toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    line-height: 1;
    text-transform: uppercase;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.22);
}

.fs-toast-content {
    min-width: 0;
}

.fs-toast-title {
    display: block;
    margin-bottom: 1px;
    font-size: 0.84rem;
    letter-spacing: 0.01em;
}

.fs-toast-text {
    word-break: break-word;
}

.fs-toast.info { background: linear-gradient(135deg, #1c58b6 0%, #2f72d8 100%); }
.fs-toast.success { background: linear-gradient(135deg, #1b8347 0%, #24a35b 100%); }
.fs-toast.warning { background: linear-gradient(135deg, #b26809 0%, #cb7f1e 100%); }
.fs-toast.error { background: linear-gradient(135deg, #a93131 0%, #c64848 100%); }

.fs-toast.closing {
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.fs-order-stripe-a {
    background-color: #eaf7ee;
}

.fs-order-stripe-b {
    background-color: #eef7ff;
}

.fs-user-actions-cell {
    vertical-align: bottom;
}

.fs-user-created-cell {
    vertical-align: bottom;
}

.fs-user-created-wrap {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 4px;
    min-height: 58px;
}

.fs-user-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
}

@keyframes fs-toast-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
