/*============================================================================================*/
/* Header Z-index fix for modals */
header,
.header {
    z-index: 999 !important;
}

.order_type_badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-right: 10px;
    text-decoration: none !important;
    position: relative;
    top: 10px;
}

.order_type_badge:hover {
    background: #fff !important;
    color: #e54750 !important;
    opacity: 1 !important;
    text-decoration: none;
}

.order_type_badge i {
    font-size: 14px;
}

.header.header_in .order_type_badge,
.header.sticky .order_type_badge {
    background: rgba(229, 71, 80, 0.1) !important;
    color: #e54750 !important;
}

.header.header_in .order_type_badge i,
.header.sticky .order_type_badge i {
    color: #e54750 !important;
}

.header.header_in .order_type_badge:hover,
.header.sticky .order_type_badge:hover {
    background: #e54750 !important;
    color: #fff !important;
}

.header.header_in .order_type_badge:hover i,
.header.sticky .order_type_badge:hover i {
    color: #fff !important;
}

@media (max-width: 991px) {
    #logo {
        text-align: left !important;
        padding: 10px 0 10px 50px !important;
        width: auto !important;
    }

    /* Absolute position the hamburger menu, but center it vertically */
    header a.open_close {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        left: 15px !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 28px !important;
        line-height: 1 !important;
        margin: 0 !important;
    }

    /* Absolute position the top menu, but center it vertically */
    ul#top_menu {
        display: inline-flex !important;
        align-items: center !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        right: 15px !important;
        margin: 0 !important;
    }

    ul#top_menu li {
        float: none !important;
        margin: 0 0 0 10px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        vertical-align: middle !important;
    }

    ul#top_menu li:last-child {
        margin-right: 0 !important;
    }

    /* Vertically align the cart button */
    ul#top_menu li a.cart_bt {
        display: inline-block !important;
        width: 22px !important;
        height: 22px !important;
        top: 0 !important;
        position: relative !important;
        margin: 0 !important;
    }

    ul#top_menu li a.cart_bt:before {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        line-height: 1 !important;
    }

    /* Vertically align the user menu logged button */
    .user_menu .user_logged {
        max-width: 60px;
        font-size: 13px;
        top: 0 !important;
        position: relative !important;
        display: inline-block !important;
        line-height: 1 !important;
    }

    /* Vertically align the order type badge */
    .order_type_badge {
        top: 0 !important;
        padding: 4px 8px !important;
        margin: 0 !important;
        position: relative !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .order_type_badge i {
        font-size: 14px !important;
    }
}

/* Your custom styles below */
/*============================================================================================*/

.follow_us ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 15px;
    align-items: center;
}

.follow_us ul li {
    display: inline-block;
    margin: 0 !important;
}

.follow_us ul li a i {
    font-size: 20px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #444;
    transition: all 0.3s ease;
    border-radius: 50%;
    background: #f8f8f8;
}

.follow_us ul li a:hover i {
    color: #fff;
    background: #FE9923;
}

.follow_us ul li a i,
.follow_us ul li a img {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    vertical-align: middle;
}

.follow_us ul li a i {
    font-size: 16px;
    color: #444;
}

.follow_us ul li a img {
    padding: 7px;
    box-sizing: border-box;
}

.follow_us ul li a:hover i {
    color: #fff;
    background: #FE9923;
}

.follow_us ul li a:hover img {
    background: #FE9923;
    filter: brightness(0) invert(1);
    /* Turns the black SVG white on hover */
}

/* Login & Register Styles (Fixing missing order-sign_up.css) */
#register_bg {
    background: url('https://images.unsplash.com/photo-1513104890138-7c749659a591?auto=format&fit=crop&w=1920&q=80') center center no-repeat fixed;
    background-size: cover;
    height: 100vh;
    width: 100%;
}

#register {
    background-color: rgba(0, 0, 0, 0.4);
    height: 100vh;
    position: relative;
}

#register aside {
    width: 450px;
    height: 100vh;
    background-color: #fff;
    padding: 60px;
    float: right;
    box-sizing: border-box;
    overflow-y: auto;
}

@media (max-width: 767px) {
    #register aside {
        width: 100%;
        padding: 30px;
    }
}

#register figure {
    text-align: center;
    margin-bottom: 30px;
}

.access_social {
    margin-bottom: 25px;
}

.social_bt {
    border-radius: 3px;
    color: #fff;
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    padding: 12px 15px 12px 40px;
    position: relative;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social_bt.facebook {
    background-color: #3b5998;
}

.social_bt.google {
    background-color: #dc4e41;
}

.social_bt:hover {
    opacity: 0.8;
    color: #fff;
}

.divider {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

.divider:before {
    content: "";
    position: absolute;
    height: 1px;
    background-color: #e1e1e1;
    width: 100%;
    left: 0;
    top: 50%;
}

.divider span {
    background-color: #fff;
    padding: 0 15px;
    position: relative;
    z-index: 1;
    color: #999;
}

.sign-in-wrapper .form-group,
#register .form-group {
    position: relative;
    margin-bottom: 20px;
}

.sign-in-wrapper .form-group i,
#register .form-group i {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 18px;
    color: #ccc;
}

.sign-in-wrapper .form-control,
#register .form-control {
    border: 1px solid #d2d8dd;
    border-radius: 3px;
    font-size: 14px;
    padding: 12px 40px 12px 15px;
    height: auto;
    width: 100%;
}

.sign-in-wrapper .form-control:focus,
#register .form-control:focus {
    border-color: #FE9923;
    box-shadow: none;
}

.btn_1.gradient {
    background: #f0321c;
    background: -webkit-linear-gradient(left, #f0321c 0%, #ff6e2d 100%);
    background: linear-gradient(to right, #f0321c 0%, #ff6e2d 100%);
    border: none;
    color: #fff;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.full-width {
    width: 100% !important;
}

.btn_1.gradient:hover {
    opacity: 0.8;
}

.btn_1.outline {
    background: #fff;
    border: 2px solid #444;
    color: #444;
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn_1.outline:hover {
    background: #444;
    color: #fff;
}

.modal-footer .btn_1.gradient {
    width: auto;
    min-width: 150px;
}

.btn_1.small {
    padding: 8px 20px;
    font-size: 13px;
}

.copy {
    text-align: center;
    padding-top: 30px;
    font-size: 13px;
    color: #999;
}

.text-danger {
    font-size: 12px;
    display: block;
    color: #dc3545;
}

/* User Dropdown Menu Styles */
.user_menu {
    position: relative;
    display: inline-block;
}

.user_menu .login,
.user_menu .user_logged,
.sign-in {
    cursor: pointer;
    padding-right: 20px !important;
    position: relative;
    text-decoration: none;
    font-weight: 500;
    line-height: 1;
    display: inline-block;
    padding-top: 10px;
    font-size: 14px;
    top: 5px;
}

.header.header_in .user_menu .user_logged,
.header.sticky .user_menu .user_logged,
.header.header_in .sign-in,
.header.sticky .sign-in {
    color: #444 !important;
}

.header:not(.header_in):not(.sticky) .user_menu .login,
.header:not(.header_in):not(.sticky) .user_menu .user_logged,
.header:not(.header_in):not(.sticky) .sign-in {
    color: #fff;
}

.user_menu .login:after,
.user_menu .user_logged:after {
    font-family: 'ElegantIcons';
    content: "\33";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 4px;
    font-size: 14px;
}

.user_menu .dropdown-menu {
    border: 1px solid #ededed !important;
    border-top: 3px solid #f0321c !important;
    border-radius: 8px !important;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.15) !important;
    padding: 10px 0 !important;
    min-width: 150px !important;
    margin-top: 15px !important;
    background: #fff !important;
    z-index: 1000 !important;
}

.user_menu .dropdown-menu ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.user_menu .dropdown-menu ul li {
    padding: 0 !important;
    margin: 0 !important;
}

.user_menu .dropdown-menu ul li a {
    color: #333 !important;
    padding: 10px 20px !important;
    display: block !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
    border: none !important;
    white-space: nowrap !important;
}

.user_menu .dropdown-menu ul li a:hover {
    background-color: #f8f9fa !important;
    color: #FE9923 !important;
}

.user_menu .dropdown-menu:before {
    content: "";
    position: absolute;
    top: -11px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #f0321c;
}

.user_menu .dropdown-menu ul li a i {
    margin-right: 10px;
    font-size: 16px;
    vertical-align: middle;
    color: #FE9923 !important;
}

.address_card {
    border: 1px solid #ededed;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.address_card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.address_card p {
    margin-bottom: 0;
    font-size: 14px;
    color: #666;
}

.address_actions {
    position: absolute;
    right: 15px;
    top: 15px;
}

.btn_delete {
    color: #dc3545;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-size: 18px;
}

.btn_edit {
    color: #FE9923;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-size: 18px;
}

.btn_edit:hover {
    color: #f0321c;
}

/* Equal height for address cards */
.row-equal-height {
    display: flex;
    flex-wrap: wrap;
}

.row-equal-height>[class*='col-'] {
    display: flex;
    flex-direction: column;
}

.address_card {
    flex: 1;
}

.address_card.is_default {
    border: 2px solid #FE9923 !important;
    background-color: #fff9f2 !important;
}

.default_badge {
    background-color: #FE9923;
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 5px;
}

.btn_set_default {
    font-size: 12px;
    color: #FE9923;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.btn_set_default:hover {
    text-decoration: underline;
}

/*============================================================================================*/
/* Account Dashboard Styles */
/*============================================================================================*/
.account_sidebar {
    background-color: #fff;
    border: 1px solid #ededed;
    border-radius: 5px;
    padding: 10px;
}

.account_sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.account_sidebar ul li {
    margin-bottom: 10px;
}

.account_sidebar ul li a {
    color: #444;
    display: block;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
}

.account_sidebar ul li a:hover,
.account_sidebar ul li a.active {
    background-color: #f8f8f8;
    color: #FE9923;
}

.account_sidebar ul li a i {
    margin-right: 10px;
    font-size: 18px;
    vertical-align: middle;
}

.account_content {
    background-color: #fff;
    border: 1px solid #ededed;
    border-radius: 5px;
    padding: 30px;
    margin-bottom: 30px;
}

.account_content h2 {
    font-size: 24px;
    margin-bottom: 25px;
    font-weight: 700;
}

.table thead th {
    border-top: none;
    background-color: #f8f9fa;
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.status_badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status_pending {
    background-color: #fff3cd;
    color: #856404;
}

.status_completed {
    background-color: #d4edda;
    color: #155724;
}

/* Order Details Specific */
.order_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.order_header h2 {
    margin-bottom: 0;
    font-size: 24px;
    font-weight: 700;
}

.order_info_box {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.order_info_box h5 {
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 14px;
    color: #777;
}

.order_item_img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.order_summary_table {
    /* margin-top: 20px; */
    margin-bottom: 0 !important;
}

.order_summary_table td {
    padding: 10px 0;
    border-top: 1px solid #eee;
}

.order_summary_table tr:first-child td {
    border-top: none;
}

.total_row {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

/* Order Summary Box Styles */
.box_order {
    background-color: #fff;
    border: 1px solid #ededed;
    border-radius: 5px;
    padding: 0;
    margin-bottom: 30px;
}

.box_order .head {
    background-color: #f8f9fa;
    padding: 15px 25px;
    border-bottom: 1px solid #ededed;
    border-radius: 5px 5px 0 0;
}

.box_order .head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.box_order .main {
    padding: 20px 25px;
}

.box_order ul {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

.box_order ul.subtotal-list {
    margin-top: 20px !important;
    padding-top: 5px !important;
    border-top: 2px solid #ededed !important;
}

.box_order ul li {
    margin-bottom: 12px;
    font-weight: 500;
    position: relative;
    padding-right: 90px;
    /* Space for price */
    color: #444;
}

.box_order ul.order_info li {
    padding-right: 0;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.box_order ul.order_info li strong {
    color: #777;
}

.box_order ul li a {
    color: #444;
}

.box_order ul li span {
    position: absolute;
    right: 0;
    top: 0;
    font-weight: 600;
    color: #333;
}

.box_order ul li.total {
    font-size: 18px;
    font-weight: 700;
    border-top: 2px solid #ededed;
    margin-top: 15px;
    padding-top: 15px;
    color: #333;
}

.box_order ul li.total span {
    color: #f0321c;
    top: 15px;
}

.box_order hr {
    margin: 15px 0;
    border-color: #eee;
}

.btn_delete_cart {
    transition: all 0.3s ease;
}

.btn_delete_cart:hover {
    color: #c00 !important;
    transform: scale(1.2);
}

/* Square Payment Styles */
#card-container {
    border: 1px solid #ededed;
    border-radius: 4px;
    padding: 10px;
    background: #fff;
    min-height: 40px;
}

#payment-status-container {
    margin-top: 10px;
    font-size: 14px;
    color: #f0321c;
}

/* Section Selector Styles */
.section-card {
    border: 2px solid #ededed;
    border-radius: 12px;
    padding: 10px 5px;
    /* Reduced padding */
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 64px;
    /* Ensure a decent width */
}

.section-card:hover {
    border-color: #f0321c;
    transform: translateY(-2px);
}

.section-card.active {
    border-color: #f0321c;
    background: #fff5f4;
    box-shadow: 0 4px 12px rgba(240, 50, 28, 0.12);
}

.section-card span {
    display: block;
    margin-top: 5px;
    font-weight: 700;
    font-size: 11px;
    /* Smaller text */
    color: #333;
    text-transform: uppercase;
}

.pizza-visual {
    width: 32px;
    /* Smaller icon */
    height: 32px;
    /* Smaller icon */
    border-radius: 50%;
    border: 2px solid #dcdcdc;
    margin: 0 auto;
    position: relative;
    background: #f9f9f9;
    overflow: hidden;
    transition: all 0.3s ease;
}

.section-card.active .pizza-visual {
    border-color: #f0321c;
    transform: rotate(15deg);
}

/* Visual Styles for Sections */
.pizza-visual.whole {
    background: #ff6347;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.pizza-visual.half::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: #ff6347;
    border-right: 2px solid #fff;
}

.pizza-visual.quarter::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 50%;
    background: #ff6347;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
}

.section-block {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tip Options Styling */
.tip-options {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.tip-btn {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #444;
    padding: 8px 4px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tip-btn:hover {
    border-color: #e54750;
    color: #e54750;
    background-color: rgba(229, 71, 80, 0.02);
}

.tip-btn.active {
    background-color: #e54750;
    border-color: #e54750;
    color: #fff !important;
}

.tip-btn.active .tip-amt-label,
.tip-btn.active .text-muted {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Coupon Area Styling */
.coupon-container {
    border: 1px dashed #ccc;
    padding: 12px;
    border-radius: 8px;
    background: #fafafa;
    margin-top: 15px;
    margin-bottom: 15px;
}

.coupon-container .input-group {
    margin-bottom: 0;
}

.coupon-container #coupon_message {
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
}

.coupon-discount-row {
    color: #28a745 !important;
    font-weight: 600;
}

/*============================================================================================*/
/* Listing Page Custom Styles */
/*============================================================================================*/
#sidebar_fixed ul {
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#sidebar_fixed ul.subtotal-list {
    /* margin-top: 20px !important; */
    padding-top: 15px !important;
    border-top: 2px solid #ededed !important;
}

#sidebar_fixed ul li {
    list-style-type: none !important;
}

.filter_type h4 a {
    color: #333 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
}

.filter_type h4 a.opened::after,
.filter_type h4 a.closed::after {
    font-family: 'ElegantIcons';
    float: right;
}

.filter_type h4 a.opened::after {
    content: "\33";
}

.filter_type h4 a.closed::after {
    content: "\32";
}

.type_delivery {
    padding: 15px;
    background-color: #fff;
    border: 1px solid #ededed;
    border-radius: 5px;
    margin-bottom: 15px;
}

.filter_col {
    background-color: #fff;
    border: 1px solid #ededed;
    border-radius: 5px;
    padding: 20px;
}

.inner_bt a {
    color: #333 !important;
}

/* Premium Pagination Styling */
.pagination_fg {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.pagination_fg nav {
    display: inline-block;
}

.pagination_fg ul.pagination {
    display: flex;
    gap: 8px;
    border: none;
    padding: 0;
    margin: 0;
    list-style: none;
}

.pagination_fg ul.pagination li.page-item {
    margin: 0;
}

.pagination_fg ul.pagination li.page-item .page-link,
.pagination_fg ul.pagination li.page-item span.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    background-color: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 8px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.pagination_fg ul.pagination li.page-item.active .page-link,
.pagination_fg ul.pagination li.page-item.active span.page-link {
    color: #fff !important;
    background-color: #fe9923 !important;
    border-color: #fe9923 !important;
    box-shadow: 0 4px 10px rgba(254, 153, 35, 0.3);
}

.pagination_fg ul.pagination li.page-item:not(.active):not(.disabled) .page-link:hover {
    color: #fe9923;
    background-color: #fff5eb;
    border-color: #fee8d6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.pagination_fg ul.pagination li.page-item.disabled .page-link,
.pagination_fg ul.pagination li.page-item.disabled span.page-link {
    color: #ccc;
    background-color: #f8f9fa;
    border-color: #e1e8ed;
    box-shadow: none;
    cursor: not-allowed;
}

/* Sticky Sidebar for Desktop View */
@media (min-width: 992px) {
    #sidebar_fixed {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 100px !important;
        z-index: 10 !important;
        height: -webkit-fit-content !important;
        height: -moz-fit-content !important;
        height: fit-content !important;
    }
}