/* ================================================
   Order Page Custom Styles - Steak House Theme
   Professional Color Contrast - WCAG AA Compliant
   ================================================ */

/* Order Page Color Variables - WCAG AA Compliant */
:root {
    --order-bg-white: #ffffff;
    --order-text-primary: #2c2c2c;
    --order-text-secondary: #5a5a5a;
    --order-price: #8b6f47;
    --order-line: #dcc9a8;
    --order-border: #e8e8e8;
    --order-hover-bg: #faf7f2;
    --order-accent: #c6ac83;
    --order-category-title: #1a1a1a;
}

/* White Background for Menu Section */
.main-content.tf-spacing-13 {
    background: linear-gradient(to bottom, #fafafa 0%, #ffffff 100px);
    border-top: 3px solid var(--order-accent);
    padding-top: 50px;
}

/* Order Menu Container */
.order-menu-container {
    position: relative;
    width: 100%;
    background: transparent;
}

/* Main Menu Content - Full width, no cart sidebar */
.main-menu-content {
    background: transparent;
    padding: 40px 0;
}

/* =====================================
   CATEGORY TITLE STYLING
   ===================================== */
.our-menu-list {
    padding-bottom: 35px;
}

.our-menu-list .title {
    color: var(--order-category-title) !important;
    font-size: 28px;
    font-weight: 600;
    border-bottom: 3px solid var(--order-accent);
    padding-bottom: 18px;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: "Marcellus", serif;
}

/* =====================================
   MENU ITEM STYLING
   ===================================== */
.our-menu-item .menu-item {
    padding: 24px 16px;
    border-bottom: 1px solid var(--order-border);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
    margin-bottom: 4px;
}

.our-menu-item .menu-item:hover {
    background: var(--order-hover-bg);
    padding-left: 20px;
    padding-right: 20px;
    box-shadow: 0 2px 8px rgba(198, 172, 131, 0.12);
    border-color: var(--order-accent);
}

.our-menu-item .menu-item:last-child {
    border-bottom: none;
}

/* =====================================
   MENU ITEM NAME & PRICE
   ===================================== */
.our-menu-item .menu-item .name-food {
    color: var(--order-text-primary) !important;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    font-family: "Marcellus", serif;
}

/* Price at end of line - dark and readable */
.our-menu-item .menu-item .name-food > span:last-child {
    color: var(--order-price) !important;
    font-weight: 700;
    font-size: 19px;
    white-space: nowrap;
}

/* =====================================
   LINE SEPARATOR (Elegant Dotted)
   ===================================== */
.our-menu-item .menu-item .name-food .line {
    flex-grow: 1;
    height: 1px;
    background: repeating-linear-gradient(
        to right,
        var(--order-line) 0px,
        var(--order-line) 8px,
        transparent 8px,
        transparent 12px
    );
    margin: 0 15px 8px;
    opacity: 0.8;
}

/* =====================================
   DESCRIPTION TEXT
   ===================================== */
.our-menu-item .menu-item .text-color-primary {
    color: var(--order-text-secondary) !important;
    font-size: 15px;
    line-height: 1.6;
    margin-top: 6px;
    font-style: italic;
}

/* =====================================
   VARIATION PRICES
   ===================================== */
.variations-inline {
    margin-top: 8px;
}

.variations-inline .text-color-primary {
    color: var(--order-text-secondary) !important;
    font-size: 14px;
    font-style: normal;
}

.variations-inline .text-color-primary span {
    color: var(--order-price);
    font-weight: 600;
}

/* =====================================
   VEG/NON-VEG ICONS
   ===================================== */
.vegnvegimg {
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
    border: 2px solid currentColor;
    border-radius: 3px;
    padding: 1px;
}

/* =====================================
   ADD BUTTON
   ===================================== */
.our-menu-item .menu-item-action {
    margin-top: 12px;
}

.our-menu-item .menu-item-action .btn-primary {
    background-color: var(--order-accent) !important;
    border-color: var(--order-accent) !important;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 500;
}

.our-menu-item .menu-item-action .btn-primary:hover {
    background-color: #8b6f47 !important;
    border-color: #8b6f47 !important;
    color: #ffffff !important;
}

.our-menu-item .menu-item-action .btn-primary:focus,
.our-menu-item .menu-item-action .btn-primary:active,
.our-menu-item .menu-item-action .btn-primary.active,
.our-menu-item .menu-item-action .btn-primary:not(:disabled):not(.disabled):active {
    background-color: #8b6f47 !important;
    border-color: #8b6f47 !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 0.2rem rgba(198, 172, 131, 0.5) !important;
}

.our-menu-item .menu-item-action .btn i {
    font-size: 13px;
    margin-right: 5px;
    display: inline-block;
}

/* =====================================
   FLOATING CART BUTTON
   ===================================== */
.floating-cart-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--order-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(198, 172, 131, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
}

.floating-cart-button:hover {
    background: #8b6f47;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(139, 111, 71, 0.5);
}

.floating-cart-button i {
    font-size: 24px;
    color: #ffffff;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3b30;
    color: #ffffff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border: 2px solid #ffffff;
}

/* =====================================
   CART OVERLAY (Slides from right)
   ===================================== */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    pointer-events: none;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    pointer-events: auto;
}

/* Backdrop */
.cart-overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-overlay.active .cart-overlay-backdrop {
    opacity: 1;
}

/* Panel */
.cart-overlay-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: #1a1a1a;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-overlay.active .cart-overlay-panel {
    transform: translateX(0);
}

/* Header */
.cart-overlay-header {
    padding: 25px;
    border-bottom: 1px solid rgba(198, 172, 131, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-overlay-title {
    color: #c6ac83;
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    font-family: "Marcellus", serif;
}

.cart-overlay-close {
    background: transparent;
    border: none;
    color: #c6ac83;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.cart-overlay-close:hover {
    background: rgba(198, 172, 131, 0.2);
    transform: rotate(90deg);
}

/* Content */
.cart-overlay-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 25px 25px;
}

/* =====================================
   CART CONTAINER STYLES
   ===================================== */
.cart-container {
    color: #fff;
}

.cart-header {
    border-bottom: 1px solid rgba(198, 172, 131, 0.3);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.cart-title {
    font-size: 18px;
    font-weight: 600;
    color: #c6ac83;
    margin: 0;
}

/* Cart Items */
.cart-items {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.cart-item {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 5px 0;
}

.cart-item-price {
    font-size: 13px;
    color: #c6ac83;
}

/* Cart Item Actions */
.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #2a2a2a;
    border-radius: 4px;
    padding: 2px;
}

.qty-btn {
    background: transparent;
    border: none;
    color: #c6ac83;
    font-size: 16px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.qty-btn:hover {
    background: #c6ac83;
    color: #1a1a1a;
    border-radius: 3px;
}

.qty-display {
    min-width: 30px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.btn-remove {
    background: transparent;
    border: 1px solid rgba(255, 59, 48, 0.5);
    color: #ff3b30;
    font-size: 20px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
    line-height: 1;
}

.btn-remove:hover {
    background: #ff3b30;
    color: #fff;
    border-color: #ff3b30;
}

/* Empty Cart */
.cart-empty {
    text-align: center;
    padding: 40px 20px;
}

.empty-cart-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin: 0;
}

/* Cart Footer */
.cart-footer {
    border-top: 1px solid rgba(198, 172, 131, 0.3);
    padding-top: 15px;
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-actions .tf-btn {
    text-align: center;
    justify-content: center;
}

.cart-actions .mb-2 {
    margin-bottom: 10px;
}

.cart-actions .w-100 {
    width: 100%;
}

/* =====================================
   RESPONSIVE CART OVERLAY
   ===================================== */
@media (max-width: 576px) {
    .cart-overlay-panel {
        max-width: 100%;
    }

    .floating-cart-button {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }

    .floating-cart-button i {
        font-size: 22px;
    }
}

/* =====================================
   SCROLLBAR STYLING
   ===================================== */
.cart-items::-webkit-scrollbar,
.cart-overlay-content::-webkit-scrollbar {
    width: 6px;
}

.cart-items::-webkit-scrollbar-track,
.cart-overlay-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.cart-items::-webkit-scrollbar-thumb,
.cart-overlay-content::-webkit-scrollbar-thumb {
    background: #c6ac83;
    border-radius: 10px;
}

.cart-items::-webkit-scrollbar-thumb:hover,
.cart-overlay-content::-webkit-scrollbar-thumb:hover {
    background: #d4bc94;
}

/* =====================================
   RESPONSIVE ADJUSTMENTS
   ===================================== */
@media (max-width: 991px) {
    .main-menu-content {
        padding: 30px 0;
    }

    .our-menu-list .title {
        font-size: 24px;
    }

    .our-menu-item .menu-item .name-food {
        font-size: 16px;
    }

    .our-menu-item .menu-item .name-food > span:last-child {
        font-size: 17px;
    }
}

@media (max-width: 576px) {
    .our-menu-list .title {
        font-size: 22px;
        padding-bottom: 12px;
        margin-bottom: 20px;
    }

    .our-menu-item .menu-item {
        padding: 18px 12px;
    }

    .our-menu-item .menu-item .name-food .line {
        margin: 0 10px 8px;
    }
}

/* Fix for Bootstrap collapse on mobile */
@media (max-width: 991px) {
    .collapse:not(.show) {
        display: none;
    }

    .collapse.show {
        display: block;
    }
}
