/* গ্লোবাল স্টাইল ও রিসেট */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

:root {
    /* ব্র্যান্ড কালার ভেরিয়েবল */
    --primary-color: #ff6347; /* ফুড অর্ডারিংয়ের জন্য একটি জনপ্রিয় কমলা/লাল */
    --success-color: #008000; /* সবুজ রং */
}

body {
    background-color: #f7f7f7;
    /* ফুটার যোগ করার পর বডির প্যাডিং বাড়ানো হলো */
    padding-bottom: 70px; 
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h2 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin: 30px 0 20px 0;
    padding-left: 5px;
    letter-spacing: 1px;
}

/* ------------------------------------- */
/* --- Header/Navigation Bar স্টাইল --- */
/* ------------------------------------- */

.main-header {
    background-color: #fff;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.nav-bar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.icon {
    font-size: 1.5rem;
    color: #444;
    cursor: pointer;
    padding: 5px;
    text-decoration: none;
    flex-shrink: 0;
    width: 30px;
    text-align: center;
}

.search-box {
    display: flex;
    align-items: center;
    flex-grow: 1;
    max-width: 700px;
    margin: 0 20px;
    background-color: #f0f0f0;
    border-radius: 50px;
    padding: 8px 20px;
}

.search-box input {
    border: none;
    background: none;
    outline: none;
    flex-grow: 1;
    font-size: 1rem;
    color: #555;
    padding-left: 10px;
}

.search-box i {
    color: #777;
    font-size: 1rem;
}

.cart-icon {
    position: relative;
    font-size: 1.5rem;
    color: #444;
    cursor: pointer;
    padding: 5px;
    flex-shrink: 0;
    width: 30px;
    text-align: center;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--success-color);
    color: white;
    font-size: 0.7rem;
    border-radius: 50%;
    padding: 2px 5px;
    line-height: 1;
}

/* --- Image Slider Styles --- */
.image-slider {
    position: relative;
    width: 100%;
    height: 200px;
    margin-top: 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-link {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slider-link.active {
    opacity: 1;
    z-index: 5;
}

.slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-controls {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.dot.active {
    background-color: var(--success-color);
}

/* --- Category Grid স্টাইল (FOOD MENU) --- */
.food-menu-category {
    padding-top: 10px;
}

.category-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.category-grid::-webkit-scrollbar {
    display: none;
}

.category-item {
    flex: 0 0 auto;
    width: 100px;
    text-align: center;
    padding: 10px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    cursor: pointer;
    border: 2px solid transparent;
}

.category-item.active {
    border: 2px solid var(--success-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.category-item.active p {
    color: black;
}

.category-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.category-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 5px;
}

.category-item p {
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
}

/* --- Food Items Grid (FOOD ITEMS) --- */
.food-items-list {
    padding-top: 10px;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.item-card {
    cursor: pointer;
    background-color: white;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s, opacity 0.3s;
}

.item-card.hidden {
    display: none;
}

.item-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.item-card img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    margin-bottom: 10px;
}

.item-name {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    padding: 5px 0;
    width: 100%;
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    padding-top: 5px;
    margin-top: 10px;
    border-top: 1px solid #eee;
}

.item-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
}

.add-to-cart-btn {
    background-color: var(--success-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.add-to-cart-btn:hover {
    background-color: #006400;
}

/* --- My Cart Sidebar Styles --- */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 350px;
    height: 100%;
    background-color: white;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.cart-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: bold;
}

.close-cart {
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
}

.cart-items-list {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
}

.empty-cart-message {
    text-align: center;
    color: #777;
    padding: 50px 0;
    font-style: italic;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    background-color: #0080000a;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin: 0 15px;
}

.item-info {
    flex-grow: 1;
    line-height: 1.4;
}

.item-details-name {
    font-weight: bold;
    color: #333;
    font-size: 1rem;
}

.cart-item-price-display {
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
}

.quantity-control {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.quantity-btn {
    background-color: #444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.quantity-btn:hover {
    background-color: #000;
}

.quantity-display {
    font-size: 1rem;
    font-weight: bold;
    margin: 0 10px;
    color: #333;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
}

.cart-total-info {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.checkout-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--success-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.checkout-btn:hover {
    background-color: #006400;
}

/* --- Food Details Modal Styles --- */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    padding: 20px;
}

/* Centering for any content directly inside the open overlay */
.modal-overlay.open {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 800px;
    width: 90%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #333;
}

.modal-grid {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.modal-img-container {
    flex: 1;
    text-align: center;
}

.modal-img-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}

.modal-details {
    flex: 1.5;
}

.modal-details h2 {
    font-size: 1.8rem;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.modal-price-section {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--success-color);
    margin-right: 15px;
}

.old-price {
    font-size: 1rem;
    color: #888;
    margin-right: 15px;
}

.discount-tag {
    background-color: var(--primary-color);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.modal-item-details-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
}

.modal-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    justify-content: space-between;
}

.modal-qty-btn {
    background-color: #f7f7f7;
    color: #333;
    border: none;
    padding: 10px 15px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modal-qty-btn:hover {
    background-color: #eee;
}

.modal-qty-display {
    padding: 10px 15px;
    font-weight: bold;
    font-size: 1rem;
    background-color: white;
    width: 40px;
    text-align: center;
}

.buy-now-btn {
    flex-grow: 1;
    padding: 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.buy-now-btn:hover {
    background-color: #e55337;
}

/* ------------------------------------- */
/* --- Order Success Modal Styling --- */
/* ------------------------------------- */

/* .modal-overlay.open এর ভিতরের স্টাইল */
.success-popup {
    /* Box Styles for the Modal */
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-out;

    max-width: 400px;
    width: 90%;
    text-align: center;
    padding: 40px 30px;

    position: relative;
    z-index: 3001; 
}

.success-icon-container {
    margin-bottom: 20px;
}

.success-icon {
    font-size: 4rem;
    color: var(--success-color); /* Green checkmark */
}

.success-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.success-message {
    color: #555;
    font-size: 1rem;
    margin-bottom: 25px;
}

.order-details-summary {
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 30px;
    text-align: left;
    border: 1px solid #eee;
}

.order-details-summary p {
    margin: 5px 0;
    color: #555;
    font-size: 0.95rem;
}

.order-details-summary strong {
    color: #333;
    display: inline-block;
    width: 120px;
}

#modal-total-amount {
    color: var(--primary-color); /* Highlight total amount */
    font-weight: bold;
}

#go-to-home-btn {
    width: 100%;
    margin-top: 10px;
}

/* ------------------------------------- */
/* --- Checkout Page Styles --- */
/* ------------------------------------- */

.checkout-title-box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    margin: 0;
}

.checkout-title-box h1 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px auto 30px auto;
    max-width: 400px;
    position: relative;
}

/* Grey background line */
.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 15px;
    right: 15px;
    height: 4px;
    background-color: #e0e0e0;
    transform: translateY(-50%);
    z-index: 1;
}

/* Green animated progress line */
.progress-line {
    position: absolute;
    top: 50%;
    left: 15px;
    height: 4px;
    background-color: var(--success-color);
    transform: translateY(-50%);
    z-index: 2;
    width: 0; /* Controlled by JS */
    transition: width 0.4s ease-in-out;
    /* প্রোগ্রেস বারের জন্য CSS ফিক্স */
    max-width: calc(100% - 30px); 
}

.progress-step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #fff;
    border: 3px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.8rem;
    font-weight: bold;
    position: relative;
    z-index: 3;
    transition: background-color 0.4s, border-color 0.4s;
}

/* Current step */
.progress-step.active {
    border-color: var(--success-color);
    color: var(--success-color);
}

/* Completed step with checkmark */
.progress-step.completed {
    background-color: var(--success-color);
    border-color: var(--success-color);
    color: transparent; /* Hide number */
    font-size: 1rem;
}
.progress-step.completed::before {
    content: '\f00c'; /* Font Awesome check icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #fff;
    position: absolute;
}

.checkout-section {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.checkout-section h3 {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
    font-weight: 500;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #444;
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 12px 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: var(--success-color);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #aaa;
    font-weight: bold;
    font-size: 0.8rem;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #eee;
}
.divider::before {
    margin-right: .5em;
}
.divider::after {
    margin-left: .5em;
}

.profile-details-option {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border: 1px solid #eee;
    margin-top: 10px;
}

.profile-details-option p {
    margin: 0;
    font-size: 1rem;
    color: #333;
}

.profile-details-option .status-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.proceed-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 10px;
}

.proceed-btn:hover {
    background-color: #e55337;
}

/* ------------------------------------- */
/* --- Checkout Order Summary Styles --- */
/* ------------------------------------- */

#order-summary-container h3, #address-display-container h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.summary-item {
    display: flex;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.order-summary-list .summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.summary-item-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: contain;
    margin-right: 15px;
    background-color: #f9f9f9;
}

.summary-item-details {
    flex-grow: 1;
}

.summary-item-details .name {
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 4px;
}

.summary-item-details .qty-price {
    font-size: 0.9rem;
    color: #777;
}

.summary-item-total {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
}

.summary-totals {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.summary-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 1rem;
    color: #555;
}

.summary-total-row span:last-child {
    font-weight: 600;
}

.summary-total-row.payable {
    font-weight: bold;
    font-size: 1.25rem;
    color: #333;
    margin-top: 15px;
}

#summary-address-details p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

#summary-address-details p strong {
    color: #333;
    width: 60px;
    display: inline-block;
}

.edit-btn {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.2s, color 0.2s;
}

.edit-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ------------------------------------- */
/* --- Payment Options Style --- */
/* ------------------------------------- */

.payment-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background-color: #fff;
}

.payment-option:hover {
    border-color: var(--primary-color);
}

.payment-option.active {
    border-color: var(--primary-color);
    border-width: 2px;
    box-shadow: 0 0 5px rgba(255, 99, 71, 0.3);
}

.payment-option.active .option-details i {
    color: var(--primary-color);
}

.payment-option.active .status-icon i.fa-check-circle {
    color: var(--primary-color);
    display: inline;
}

.payment-option.active .status-icon i.fa-circle {
    display: none; 
}

.payment-option:not(.active) .status-icon i.fa-check-circle {
    display: none; 
}


.option-details {
    display: flex;
    align-items: center;
}

.option-details i {
    font-size: 1.5rem;
    margin-right: 15px;
    color: #555;
}

.option-details p {
    font-weight: bold;
    color: #333;
    margin: 0;
}

.status-icon i {
    font-size: 1.2rem;
    color: #ccc;
}

/* চূড়ান্ত মোট টাকার জন্য স্টাইল */
.checkout-section.final-amount {
    margin-top: 20px;
    padding: 15px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    background-color: #fff;
}

#payment-total-payable {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* ------------------------------------- */
/* --- Left Menu Sidebar Styling --- */
/* ------------------------------------- */

.menu-sidebar {
    position: fixed;
    top: 0;
    left: 0; 
    width: 75%; 
    max-width: 300px; 
    height: 100vh;
    background: var(--primary-color); 
    color: #fff;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transform: translateX(-100%); 
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.menu-sidebar.open {
    transform: translateX(0); 
}

.sidebar-header {
    display: flex;
    justify-content: flex-end;
    padding: 15px;
}

.close-sidebar {
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
}

/* ইউজার প্রোফাইল সেকশন */
.user-profile-info {
    padding: 20px 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid #fff;
}

.user-profile-info h3 {
    margin: 5px 0 0;
    font-size: 1.1em;
}

.user-profile-info p {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* মেনু লিঙ্ক */
.sidebar-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1; 
}

.sidebar-menu-links li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-menu-links li a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 1em;
    transition: background 0.2s;
}

.sidebar-menu-links li a:hover {
    background: rgba(0, 0, 0, 0.1);
}

.sidebar-menu-links li i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
    font-size: 1.1em;
}

/* সাইন আউট সেকশনের জন্য বিশেষ স্টাইল */
.sidebar-menu-links li.signout {
    margin-top: auto; 
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* মেনু ওভারলে (স্ক্রিন ডার্ক করার জন্য) */
#menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    /* ডিফল্টভাবে লুকানো */
    opacity: 0; 
    pointer-events: none;
    transition: opacity 0.3s;
}

#menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* ------------------------------------------------ */
/* --- NEW: Bottom Navigation Bar/Footer Styles --- */
/* ------------------------------------------------ */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    /* ফুটারটি যেন কন্টেন্টের উপরে থাকে */
    z-index: 1050; 
    
    background-color: #fff;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    height: 60px; /* উচ্চতা ঠিক রাখা */
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #888; /* ডিফল্ট গ্রে কালার */
    flex: 1;
    text-align: center;
    transition: color 0.2s;
    user-select: none; /* যাতে ক্লিক করার সময় টেক্সট সিলেক্ট না হয় */
}

.nav-item i {
    font-size: 1.3rem;
    margin-bottom: 3px;
}

.nav-text {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
}

/* Menu (Active) Style - স্ক্রিনশট অনুযায়ী কমলা রং ব্যবহার করা হয়েছে */
.nav-item.active {
    color: var(--primary-color); 
}

/* অন্য যেকোনো আইটেমে হোভার করলে রং পরিবর্তন */
.nav-item:not(.active):hover {
    color: #444; 
}
/*টিকেট ডিজাইন*/

    .ticket {
        width: 350px;
        background: #fff;
        border: 2px dashed #333;
        padding: 20px;
        border-radius: 10px;
    }

    .ticket-header {
        text-align: center;
        margin-bottom: 15px;
    }

    .ticket-header h1 {
        margin: 0;
        font-size: 24px;
        color: #e74c3c;
    }

    .ticket-header p {
        margin: 5px 0 0;
        font-size: 14px;
        color: #555;
    }

    .ticket-body {
        margin-top: 10px;
    }

    .ticket-body p {
        margin: 8px 0;
        font-size: 16px;
    }
    
    .ticket-body p b{
        color: #555;
    }

    .ticket-body .label {
        font-weight: bold;
        margin-right: 5px;
    }

    .ticket-footer {
        text-align: center;
        margin-top: 20px;
        font-size: 12px;
        color: #888;
    }

    
    .ticket-wrapper {
        /* এটি লুকানোর জন্য প্রধানত এই প্রপার্টিগুলো ব্যবহার করা হয় */
        position: absolute;
        top: -50000px; /* এটিকে স্ক্রিনের বাইরে অনেক দূরে সরিয়ে দেবে */
        left: 0;
        width: 100%;
        z-index: -1; /* নিশ্চিত করুন যেন এটি অন্য এলিমেন্টের উপর না আসে */
        opacity: 0; /* এটি দৃশ্যমানতা সম্পূর্ণভাবে দূর করে */
        overflow: hidden; /* ভেতরের কন্টেন্ট যেন বাইরে না যায় */
    }

/* --- রেসপনসিভ স্টাইল --- */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    .modal-grid {
        flex-direction: column;
    }
    .modal-img-container {
        flex: none;
        max-height: 200px;
        overflow: hidden;
    }
    .modal-details {
        flex: none;
    }
    .modal-details h2 {
        font-size: 1.5rem;
    }
    .modal-actions {
        flex-direction: column;
        gap: 10px;
    }
    .modal-quantity-control, .buy-now-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 600px) {
    .search-box {
        margin: 0 10px;
        padding: 6px 15px;
    }
    .image-slider {
        height: 150px;
    }
    .category-item {
        width: 80px;
    }
    .items-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 15px;
    }
    .cart-sidebar {
        width: 100%;
    }
}

/* বড় স্ক্রিনে ফুটার লুকিয়ে রাখা: শুধুমাত্র 600px এর নিচের স্ক্রিনগুলোতে ফুটার ব্যবহার করার জন্য */
@media (min-width: 601px) {
    .bottom-nav {
        display: none;
    }
    /* বড় স্ক্রিনের জন্য বডির প্যাডিং কমিয়ে আনা হলো */
    body {
        padding-bottom: 50px; 
    }
}

/* ------------------------------------------- */
/* --- এক্সট্রা স্মল স্ক্রিন (320px) অ্যাডজাস্টমেন্ট --- */
/* ------------------------------------------- */
@media (max-width: 360px) {

    /* হেডার অ্যাডজাস্টমেন্ট */
    .search-box {
        margin: 0 8px; /* আইকনের খুব কাছাকাছি যেন না চলে যায় */
        padding: 6px 12px;
    }

    .search-box input {
        font-size: 0.9rem;
    }

    .icon, .cart-icon {
        width: 28px; /* আইকনের জায়গা কমানো হলো */
        padding: 4px;
        font-size: 1.3rem; /* আইকন সাইজ সামান্য কমানো */
    }

    .cart-count {
        top: -3px;
        right: -3px;
        font-size: 0.65rem;
    }
    
    h2 {
        font-size: 1.1rem;
        margin: 25px 0 15px 0;
    }

    /* ক্যাটাগরি আইটেম */
    .category-item {
        width: 75px; /* 80px থেকে কমানো হলো */
        padding: 8px;
    }
    .category-item img {
        width: 50px;
        height: 50px;
    }
    .category-item p {
        font-size: 0.8rem;
    }

    /* ফুড আইটেম গ্রিড (100px min-width এর জন্য প্যাডিং কমানো) */
    .items-grid {
        gap: 10px;
    }
    .item-card {
        padding: 8px;
    }
    .item-name {
        font-size: 0.9rem;
    }
    .item-price {
        font-size: 1rem;
    }
    .item-footer {
        width: 95%;
        margin-top: 5px;
    }
    .add-to-cart-btn {
        width: 28px;
        height: 28px;
    }

    /* চেকআউট প্রোগ্রেস বার */
    .progress-bar {
        max-width: 300px;
    }

    /* পেমেন্ট অপশন */
    .payment-option {
        padding: 12px;
    }

    /* টিকেট ডিজাইন (এটি সবচেয়ে গুরুত্বপূর্ণ ফিক্স) */
    .ticket {
        /* 350px ফিক্সড ছিল, যা 320px স্ক্রিনে ওভারফ্লো করছিল */
        width: 95%; 
        padding: 15px;
        margin: 0 auto;
    }

    .ticket-header h1 {
        font-size: 1.2rem; /* 24px থেকে কমানো হলো */
    }
    .ticket-body p {
        font-size: 0.9rem; /* 16px থেকে কমানো হলো */
    }

    /* সাকসেস পপআপ */
    .success-popup {
        padding: 25px 20px;
    }
    .success-title {
        font-size: 1.5rem;
    }
    .success-icon {
        font-size: 3rem;
    }

    /* মোডাল (পপআপ) অ্যাডজাস্টমেন্ট */
    .modal-content {
        padding: 15px;
    }
    .modal-details h2 {
        font-size: 1.3rem;
    }
    .current-price {
        font-size: 1.3rem;
    }
    .modal-item-details-text {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
}