: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);
    transition: padding 0.2s ease;
}

.client-menu-page .sticky-top.is-compact .container {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.client-menu-page .sticky-top.is-compact h1.h4,
.client-menu-page .sticky-top.is-compact > .container > div > small {
    display: none;
}

.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 .sticky-category-nav {
    position: sticky;
    top: var(--sticky-top, 66px);
    z-index: 1020;
}

.client-menu-page #categoryNav {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.client-menu-page #categoryNav::-webkit-scrollbar {
    display: none;
}

.client-menu-page #categoryNav .btn {
    border-radius: 999px;
    border-width: 1px;
    white-space: nowrap;
    flex-shrink: 0;
}

.client-menu-page #categoryNav .btn-outline-primary {
    color: #ffcf99;
    border-color: rgba(255, 150, 51, 0.65);
    background: rgba(255, 255, 255, 0.08);
}

.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 .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 {
    padding-bottom: 120px;
}

.client-menu-page #cartSummary {
    line-height: 1.35;
}

.client-menu-page .client-cart-floating-bar {
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translate(-50%, 110%);
    width: min(360px, calc(100vw - 56px));
    z-index: 1070;
    opacity: 0;
    pointer-events: none;
    transition: transform 220ms ease, opacity 220ms ease;
}

.client-menu-page .client-cart-floating-bar.is-visible {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
}

.client-menu-page .client-cart-floating-btn {
    width: 100%;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff7b00 0%, #ff9700 100%);
    color: #1f1409;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
    padding: 7px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-weight: 800;
}

.client-menu-page .client-cart-floating-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.05;
    min-width: 0;
}

.client-menu-page .client-cart-floating-summary strong,
.client-menu-page .client-cart-floating-summary small {
    color: #1f1409;
}

.client-menu-page .client-cart-floating-summary small {
    opacity: 0.92;
    font-size: 1.02rem;
    font-weight: 800;
}

.client-menu-page .client-cart-floating-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    padding: 5px 10px;
    font-size: 0.9rem;
}

.client-menu-page .client-cart-btn-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

.client-menu-page .client-cart-floating-action {
    gap: 6px;
}

.client-menu-page .client-cart-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
    z-index: 1065;
}

.client-menu-page .client-cart-sheet-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.client-menu-page .client-cart-sheet {
    position: fixed;
    left: 50%;
    bottom: 10px;
    z-index: 1080;
    margin: 0 auto;
    width: min(460px, calc(100vw - 56px));
    height: min(68dvh, 560px);
    max-height: min(68dvh, 560px);
    background: linear-gradient(180deg, rgba(22, 22, 22, 0.99) 0%, rgba(12, 12, 12, 0.99) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    box-shadow: 0 -14px 34px rgba(0, 0, 0, 0.42);
    transform: translate(-50%, 110%);
    transition: transform 220ms ease;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    isolation: isolate;
}

.client-menu-page .client-cart-sheet.is-open {
    transform: translate(-50%, 0);
}

.client-menu-page .client-cart-sheet-handle {
    width: 56px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
    margin: 10px auto 6px;
}

.client-menu-page .client-cart-sheet-close-wrap {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 8;
}

.client-menu-page .client-cart-sheet-header,
.client-menu-page .client-cart-sheet-footer {
    padding: 0.85rem 1rem;
}

.client-menu-page .client-cart-sheet-header {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    min-height: 66px;
    padding-right: 46px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.16);
    position: relative;
    z-index: 6;
    background: linear-gradient(180deg, rgba(22, 22, 22, 0.99) 0%, rgba(16, 16, 16, 0.98) 100%);
}

.client-menu-page .client-cart-sheet-close {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff2da;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 9;
    pointer-events: auto;
}

.client-menu-page .client-cart-sheet-close:hover,
.client-menu-page .client-cart-sheet-close:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    outline: none;
}

.client-menu-page .client-cart-sheet-body {
    overflow: auto;
    padding: 2.5rem 1rem 0.75rem;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 2;
    scroll-padding-top: 2rem;
    scroll-padding-bottom: 1.25rem;
}

.client-menu-page .client-cart-list-spacer {
    height: 2.75rem;
    width: 100%;
}

.client-menu-page .client-cart-sheet-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    border-top: 1px dashed rgba(255, 255, 255, 0.16);
}

.client-menu-page .client-cart-sheet-footer > div {
    margin-right: auto;
}

.client-menu-page .client-cart-sheet-footer .btn {
    min-width: 190px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.client-menu-page .client-cart-item {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.client-menu-page .client-cart-item:last-child {
    border-bottom: 0;
}

.client-menu-page .client-cart-item-media {
    width: 68px;
    height: 68px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.client-menu-page .client-cart-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-menu-page .client-cart-item-placeholder {
    font-weight: 800;
    color: rgba(255, 236, 214, 0.88);
}

.client-menu-page .client-cart-item-main {
    min-width: 0;
}

.client-menu-page .client-cart-item-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.client-menu-page .client-cart-item-head h3 {
    margin: 0;
    font-size: 1.03rem;
    color: #fff3e1;
}

.client-menu-page .client-cart-item-meta {
    margin-top: 1px;
}

.client-menu-page .client-cart-item-meta small {
    color: rgba(255, 236, 214, 0.72) !important;
}

.client-menu-page .client-cart-item-foot {
    margin-top: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.client-menu-page .client-cart-item-foot strong {
    color: #fff3e1;
}

.client-menu-page .client-cart-item-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.client-menu-page .client-cart-qty-controls {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 3px;
}

.client-menu-page .client-cart-qty-controls span {
    min-width: 18px;
    text-align: center;
    font-weight: 700;
}

.cart-sheet-open {
    overflow: hidden;
}

.client-menu-page #productSizeModal .modal-content {
    background: linear-gradient(160deg, rgba(24, 24, 24, 0.98) 0%, rgba(14, 14, 14, 0.98) 100%);
    color: #fff3e1;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.client-menu-page #productSizeModal .modal-header,
.client-menu-page #productSizeModal .modal-footer {
    border-color: rgba(255, 255, 255, 0.14);
}

.client-menu-page #productSizeModal .modal-title,
.client-menu-page #productSizeModal #productSizeModalName,
.client-menu-page #productSizeModal label,
.client-menu-page #productSizeModal span,
.client-menu-page #productSizeModal strong {
    color: #fff3e1 !important;
    opacity: 1;
}

.client-menu-page #productSizeModal .btn-close {
    filter: invert(1) grayscale(1);
    opacity: 0.9;
}

.client-menu-page #productSizeModal .form-check-input,
.client-menu-page #productSizeModal input[type="radio"] {
    accent-color: #ff9700;
}

.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);
}

#nuevo-producto,
#listado-productos {
    scroll-margin-top: 100px;
}

.admin-dropdown {
    position: relative;
}

.admin-dropdown-caret {
    font-size: 0.7em;
    margin-left: 2px;
}

.admin-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 170px;
    padding: 0.25rem 0;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12);
    display: none;
    z-index: 1050;
    white-space: nowrap;
}

.admin-dropdown:hover > .admin-dropdown-menu,
.admin-dropdown:focus-within > .admin-dropdown-menu {
    display: block;
}

.admin-dropdown-link {
    display: block;
    padding: 0.375rem 1rem;
    color: #212529;
    text-decoration: none;
    font-size: 0.875rem;
}

.admin-dropdown-link:hover,
.admin-dropdown-link:focus {
    background-color: #e9ecef;
}

.admin-dropdown-link.active {
    background-color: #e7f1ff;
    color: var(--brand);
    font-weight: 600;
}

@media (max-width: 991px) {
    .sticky-lg-top {
        position: static !important;
    }

    .client-menu-page .client-cart-sheet {
        width: min(430px, calc(100vw - 42px));
        height: min(68dvh, 520px);
        max-height: min(68dvh, 520px);
    }

    .client-menu-page .client-cart-sheet-footer .btn {
        min-width: 160px;
    }
}

@media (max-width: 575px) {
    .client-menu-page {
        padding-bottom: 112px;
    }

    .client-menu-page .client-cart-floating-bar {
        width: min(330px, calc(100vw - 42px));
        bottom: 10px;
    }

    .client-menu-page .client-cart-floating-btn {
        padding: 6px 9px;
    }

    .client-menu-page .client-cart-floating-summary small {
        font-size: 0.96rem;
    }

    .client-menu-page .client-cart-floating-action {
        font-size: 0.85rem;
        padding: 5px 9px;
    }

    .client-menu-page .client-cart-sheet {
        width: min(400px, calc(100vw - 30px));
        height: min(72dvh, 560px);
        max-height: min(72dvh, 560px);
        border-radius: 16px;
        bottom: 8px;
    }

    .client-menu-page .client-cart-sheet-header,
    .client-menu-page .client-cart-sheet-body,
    .client-menu-page .client-cart-sheet-footer {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }

    .client-menu-page .client-cart-sheet-footer {
        flex-wrap: wrap;
    }

    .client-menu-page .client-cart-sheet-footer .btn {
        width: 100%;
    }

    .client-menu-page .client-cart-item {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .client-menu-page .client-cart-item-media {
        width: 58px;
        height: 58px;
    }

}

.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);
    }
}
