/* ==========================================================================
   Enterprise ordering UI (dark / grey theme)

   Covers the "+" buttons, the floating cart button, the item sheet
   (#itemSheet, item-sheet.php) and the order tray (#offcanvasBottom,
   offcanvas.php). Everything is scoped under .ent-sheet so nothing leaks
   into the rest of the page, and the page-wide rules (section padding, label
   flex, input[type=radio]{display:none}, h2 sizing ...) are opted out of here.
   ========================================================================== */

.ent-sheet {
    --ent-bg: #1e2023;
    --ent-surface: #282b2f;
    --ent-surface-2: #31353a;
    --ent-line: rgba(255, 255, 255, .09);
    --ent-text: #f2f2f0;
    --ent-muted: #9da2a9;
    --ent-accent: var(--primary-color, #e3c086);
    --ent-on-accent: #1a1a1a;
    --ent-radius: 16px;
}

/* --------------------------------------------------------------------------
   Sheet shell (overrides the white Bootstrap-style offcanvas)
-------------------------------------------------------------------------- */
.ent-sheet.offcanvas {
    background-color: var(--ent-bg);
    color: var(--ent-text);
    border: 0;
    border-top-left-radius: 26px;
    border-top-right-radius: 26px;
    overflow: hidden;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, .55);
}

.ent-sheet *,
.ent-sheet *::before,
.ent-sheet *::after {
    box-sizing: border-box;
}

.ent-sheet p {
    margin: 0;
}

.ent-sheet h3,
.ent-sheet h4 {
    margin: 0;
    color: var(--ent-text);
    text-transform: none;
    letter-spacing: 0;
}

.ent-sheet .ent-muted {
    color: var(--ent-muted);
    font-size: 13px;
}

/* scrollable middle region */
.ent-sheet .ent-sheet-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 0;
}

.ent-sheet .offcanvas-body.ent-sheet-scroll {
    padding: 0;
}

.ent-tray .ent-item-body {
    padding-top: 72px;
}

.ent-sheet .ent-sheet-scroll::-webkit-scrollbar {
    width: 4px;
}

.ent-sheet .ent-sheet-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .18);
    border-radius: 4px;
}

/* header (tray) */
.ent-sheet .ent-sheet-head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 12px;
}

.ent-sheet .ent-sheet-title {
    font-size: 22px;
    font-weight: 700;
}

/* footer (sticky action bar) */
.ent-sheet .ent-sheet-footer {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px));
    background: var(--ent-bg);
    border-top: 1px solid var(--ent-line);
}

/* --------------------------------------------------------------------------
   Buttons
-------------------------------------------------------------------------- */
.ent-sheet .ent-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--ent-surface-2);
    color: var(--ent-text);
    font-size: 17px;
    cursor: pointer;
    transition: background-color .2s ease, transform .15s ease;
    -webkit-tap-highlight-color: transparent;
}

.ent-sheet .ent-close:hover {
    background: #3b4046;
}

.ent-sheet .ent-close:active {
    transform: scale(.92);
}

/* floats over the item photo */
.ent-sheet .ent-close-float {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 5;
    background: rgba(20, 21, 23, .62);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.ent-sheet .ent-primary-btn {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: var(--ent-accent);
    color: var(--ent-on-accent);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .01em;
    text-transform: none;
    cursor: pointer;
    transition: filter .2s ease, transform .15s ease, opacity .2s ease;
    -webkit-tap-highlight-color: transparent;
}

.ent-sheet .ent-primary-btn span {
    color: inherit;
}

.ent-sheet .ent-primary-btn:hover:not(:disabled) {
    filter: brightness(1.08);
}

.ent-sheet .ent-primary-btn:active:not(:disabled) {
    transform: scale(.98);
}

.ent-sheet .ent-primary-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.ent-sheet .ent-primary-btn.loading {
    opacity: .6;
    pointer-events: none;
}

.ent-sheet .ent-ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--ent-line);
    border-radius: 999px;
    background: var(--ent-surface-2);
    color: var(--ent-text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease;
}

.ent-sheet .ent-ghost-btn:hover {
    background: #3b4046;
    color: var(--ent-text);
}

.ent-sheet .ent-block-btn {
    width: 100%;
}

/* --------------------------------------------------------------------------
   Item sheet
-------------------------------------------------------------------------- */
.ent-sheet .ent-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / .9;
    max-height: 46vh;
    background: var(--ent-surface);
    overflow: hidden;
}

.ent-sheet .ent-hero img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ent-sheet .ent-item-body {
    padding: 22px 20px 28px;
}

.ent-sheet .ent-item-name {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.ent-sheet .ent-item-price {
    margin-top: 8px;
    color: var(--ent-accent);
    font-size: 20px;
    font-weight: 700;
}

.ent-sheet .ent-item-price .ent-old {
    margin-right: 8px;
    color: var(--ent-muted);
    font-size: 14px;
    font-weight: 500;
    text-decoration: line-through;
}

.ent-sheet .ent-item-desc {
    margin-top: 12px;
    color: var(--ent-muted);
    font-size: 15px;
    line-height: 1.55;
}

.ent-sheet .ent-item-desc:empty {
    display: none;
}

/* variation picker */
.ent-sheet .ent-options {
    margin-top: 26px;
}

.ent-sheet .ent-options[hidden] {
    display: none;
}

.ent-sheet .ent-options-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 700;
}

.ent-sheet .ent-options-head em {
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--ent-surface-2);
    color: var(--ent-muted);
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ent-sheet .ent-option-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ent-sheet .ent-option {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 14px 16px;
    border: 1.5px solid var(--ent-line);
    border-radius: var(--ent-radius);
    background: var(--ent-surface);
    color: var(--ent-text);
    font-size: 15px;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease;
    -webkit-tap-highlight-color: transparent;
}

.ent-sheet .ent-option:hover {
    background: var(--ent-surface-2);
}

.ent-sheet .ent-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ent-sheet .ent-option-dot {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border: 2px solid #565b62;
    border-radius: 50%;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.ent-sheet .ent-option-name {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 600;
}

.ent-sheet .ent-option-name small {
    display: block;
    margin-top: 2px;
    color: var(--ent-muted);
    font-size: 12px;
    font-weight: 400;
}

.ent-sheet .ent-option-price {
    flex: 0 0 auto;
    font-weight: 700;
}

.ent-sheet .ent-option.is-selected {
    border-color: var(--ent-accent);
    background: rgba(227, 192, 134, .08);
}

.ent-sheet .ent-option.is-selected .ent-option-dot {
    border-color: var(--ent-accent);
    background: var(--ent-accent);
    box-shadow: inset 0 0 0 4px var(--ent-bg);
}

/* --------------------------------------------------------------------------
   Quantity steppers
-------------------------------------------------------------------------- */
.ent-sheet .ent-qty {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    background: var(--ent-surface-2);
    border-radius: 999px;
}

.ent-sheet .ent-qty button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ent-text);
    font-size: 12px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.ent-sheet .ent-qty button:active {
    background: rgba(255, 255, 255, .1);
}

.ent-sheet .ent-qty button:disabled {
    color: #62676e;
    cursor: default;
}

.ent-sheet .ent-qty input.qty {
    width: 30px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ent-text);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    -moz-appearance: textfield;
}

.ent-sheet .ent-qty input.qty::-webkit-inner-spin-button,
.ent-sheet .ent-qty input.qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ent-sheet .ent-qty input.qty:focus {
    outline: none;
}

/* larger stepper in the item sheet footer */
.ent-sheet .ent-qty-lg {
    height: 54px;
    padding: 0 6px;
}

.ent-sheet .ent-qty-lg button {
    width: 42px;
    height: 42px;
    font-size: 14px;
}

.ent-sheet .ent-qty-lg span {
    min-width: 28px;
    color: var(--ent-text);
    font-size: 17px;
    font-weight: 700;
    text-align: center;
}

/* --------------------------------------------------------------------------
   Tray: cart lines
-------------------------------------------------------------------------- */
.ent-tray .ent-cart {
    margin-bottom: 8px;
}

.ent-tray .ent-empty {
    padding: 36px 0 30px;
    text-align: center;
    color: var(--ent-muted);
}

.ent-tray .ent-empty i {
    display: block;
    margin-bottom: 10px;
    font-size: 30px;
    opacity: .5;
}

.ent-tray .ent-empty p {
    font-size: 15px;
}

.ent-tray .ent-cart-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    padding: 12px;
    border-radius: var(--ent-radius);
    background: var(--ent-surface);
}

.ent-tray .ent-cart-thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: var(--ent-surface-2);
    overflow: hidden;
}

.ent-tray .ent-cart-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ent-tray .ent-cart-info {
    flex: 1 1 auto;
    min-width: 0;
}

.ent-tray .ent-cart-name {
    color: var(--ent-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.ent-tray .tray-variation {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--ent-surface-2);
    color: var(--ent-muted);
    font-size: 11px;
    font-weight: 500;
    vertical-align: middle;
}

.ent-tray .ent-cart-mix {
    margin-top: 2px;
    color: var(--ent-muted) !important;
    font-size: 12px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ent-tray .ent-cart-price {
    margin-top: 4px;
    color: var(--ent-accent);
    font-size: 14px;
    font-weight: 700;
}

.ent-tray .ent-cart-actions {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.ent-tray .remove-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: var(--ent-muted) !important;
    font-size: 13px;
    text-decoration: none;
}

.ent-tray .remove-item:hover {
    background: rgba(255, 255, 255, .08);
    color: var(--ent-text) !important;
}

/* --------------------------------------------------------------------------
   Tray: cards, blocks, form controls
-------------------------------------------------------------------------- */
.ent-sheet .ent-card {
    padding: 16px;
    border-radius: var(--ent-radius);
    background: var(--ent-surface);
}

.ent-tray .ent-active-order {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.ent-tray .ent-card-title {
    margin-bottom: 2px;
    font-size: 15px;
    font-weight: 700;
}

.ent-tray .ent-block {
    margin-top: 26px;
}

.ent-tray .ent-item-desc {
    margin-bottom: 22px;
}


/* Option rows (same as the item sheet) driven by a preceding radio */
.ent-tray .ent-choices {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ent-tray .ent-choices input {
    display: none;
}

.ent-tray .ent-choices input:checked + .ent-option {
    border-color: var(--ent-accent);
    background: rgba(227, 192, 134, .08);
}

.ent-tray .ent-choices input:checked + .ent-option .ent-option-dot {
    border-color: var(--ent-accent);
    background: var(--ent-accent);
    box-shadow: inset 0 0 0 4px var(--ent-bg);
}

/* Inputs */
.ent-tray .ent-field,
.ent-tray .hidden-fields {
    margin-top: 12px;
}

.ent-tray .hidden-fields .ent-input {
    margin-bottom: 10px;
}

.ent-tray .ent-input {
    display: block;
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1.5px solid var(--ent-line);
    border-radius: var(--ent-radius);
    background: var(--ent-surface);
    color: var(--ent-text);
    font-size: 15px;
    transition: border-color .2s ease, background-color .2s ease;
}

.ent-tray textarea.ent-input {
    height: 92px;
    padding: 14px 16px;
    resize: none;
}

.ent-tray .ent-input::placeholder {
    color: #767b82;
    opacity: 1;
}

.ent-tray .ent-input:focus {
    outline: none;
    border-color: var(--ent-accent);
    background: var(--ent-surface-2);
}

.ent-tray .ent-input[readonly] {
    color: var(--ent-muted);
}

.ent-tray select.ent-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%239da2a9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M3 6l5 5 5-5'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
}

.ent-tray select.ent-input option {
    background: var(--ent-surface);
    color: var(--ent-text);
}

/* Combo */
.ent-tray .combo-wrap {
    margin-top: 12px;
}

.ent-tray .combo-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ent-tray .combo-divider {
    text-align: center;
    color: var(--ent-muted);
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ent-tray .combo-created {
    text-align: center;
}

.ent-tray .combo-code-display {
    margin-top: 6px;
    color: var(--ent-accent);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: .2em;
}

/* Totals */
.ent-tray .ent-summary {
    margin-top: 26px;
}

.ent-tray .ent-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    color: var(--ent-muted);
    font-size: 14px;
}

.ent-tray .ent-row + .ent-row {
    border-top: 1px dashed var(--ent-line);
}

.ent-tray .ent-row span:last-child {
    color: var(--ent-text);
    font-weight: 700;
}

/* Footer total (same pill as the item sheet stepper) */
.ent-tray .ent-total-pill {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 0 0 auto;
    height: 54px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--ent-surface-2);
}

.ent-tray .ent-total-pill span {
    color: var(--ent-muted);
    font-size: 11px;
    line-height: 1.1;
}

.ent-tray .ent-total-pill strong {
    color: var(--ent-text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

/* --------------------------------------------------------------------------
   "+" add button (menu grid)
-------------------------------------------------------------------------- */
.enterprise-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-top: 8px;
    padding: 0;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    background: var(--primary-color);
    color: #1a1a1a;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, transform .15s ease;
    -webkit-tap-highlight-color: transparent;
}

.enterprise-add:hover,
.enterprise-add:focus-visible {
    filter: brightness(1.1);
    outline: none;
}

.enterprise-add:active {
    transform: scale(.9);
}

/* --------------------------------------------------------------------------
   Desktop: keep the sheets a readable width, centred
-------------------------------------------------------------------------- */
@media (min-width: 768px) {
    .ent-sheet.offcanvas-bottom {
        left: 50%;
        right: auto;
        width: 560px;
        max-width: 100%;
        margin-left: -280px;
    }
}

/* Stay above every fixed header, bar and floating button on the page */
.ent-sheet.offcanvas {
    z-index: 100001;
}

.offcanvas-backdrop {
    z-index: 100000;
}

#toast-container {
    z-index: 100002;
}

/* --------------------------------------------------------------------------
   Special Promo card (after Reviews): dark card, item photo left,
   intro / name / blurb / price right, round "+" button.
-------------------------------------------------------------------------- */
.ent-promo-wrap {
    padding: 10px 0 40px;
}

.ent-promo {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 22px;
    background: rgba(255, 255, 255, .06);
    -webkit-tap-highlight-color: transparent;
}

.ent-promo[data-open-promo] {
    cursor: pointer;
}

.ent-promo-img {
    flex: 0 0 116px;
    height: 116px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, .08);
}

.ent-promo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ent-promo-body {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 46px;
}

.ent-promo-intro {
    display: block;
    margin-bottom: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.ent-promo-body h3 {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.2;
}

.ent-promo-body p {
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.45;
    opacity: .7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ent-promo-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.ent-promo-pricing strong {
    font-size: 16px;
    color: var(--primary-color);
}

.ent-promo-pricing s {
    font-size: 12px;
    opacity: .5;
}

.ent-promo-go {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--primary-color);
    color: #1a1a1a;
    font-size: 14px;
}

.ent-promo-soldout {
    position: absolute;
    right: 14px;
    bottom: 16px;
    padding: 4px 10px;
    border-radius: 100px;
    background: rgba(255, 255, 255, .15);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   About Us images: same height, 3:4 portraits, rounded corners
-------------------------------------------------------------------------- */
img.about-img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    height: auto;
    object-fit: cover;
    border-radius: 12px !important;
}

/* Order tray: the close button sits top-right so it never covers the "Your Order" title.
   (The item sheet's close button keeps floating top-left over the photo.) */
.ent-sheet[aria-labelledby="offcanvasBottomLabel"] .ent-close-float {
    left: auto;
    right: 16px;
}
