/**
 * Frontend Styles
 */

.mrp-menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.mrp-category-section {
    margin-bottom: 40px;
}

.mrp-category-title {
    font-size: 28px;
    margin-bottom: 10px;
    color: #333;
    border-bottom: 2px solid #d32f2f;
    padding-bottom: 10px;
}

.mrp-category-description {
    color: #666;
    margin-bottom: 20px;
}

.mrp-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
    align-items: stretch;
}

.mrp-product-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mrp-product-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mrp-product-image-gallery {
    margin-bottom: 15px;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.mrp-product-image {
    margin-bottom: 15px;
    text-align: center;
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.mrp-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.mrp-image-thumbnails {
    display: flex;
    gap: 5px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.mrp-thumbnail {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 2px;
    transition: border-color 0.3s ease;
    display: inline-block;
}

.mrp-thumbnail:hover {
    border-color: #d32f2f;
}

.mrp-thumbnail.active {
    border-color: #d32f2f;
}

.mrp-thumbnail img {
    display: block;
    border-radius: 2px;
}

.mrp-product-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.mrp-product-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.mrp-product-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
    flex-grow: 1;
}

.mrp-product-toppings {
    margin-bottom: 15px;
    font-size: 14px;
}

.mrp-product-toppings ul {
    list-style: none;
    padding-left: 0;
    margin: 5px 0;
}

.mrp-product-toppings li {
    padding: 3px 0;
    color: #555;
}

.mrp-topping-price {
    color: #d32f2f;
    font-weight: bold;
}

.mrp-product-price {
    font-size: 24px;
    color: #d32f2f;
    margin-bottom: 15px;
}

.mrp-add-to-cart {
    width: 100% !important;
    padding: 10px !important;
    background-color: #d32f2f !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 16px !important;
    font-weight: bold !important;
    transition: background-color 0.3s ease !important;
    box-sizing: border-box !important;
    min-height: auto !important;
    height: auto !important;
    line-height: normal !important;
}

.mrp-add-to-cart:hover,
.mrp-add-to-cart:focus,
.mrp-add-to-cart:active {
    background-color: #b71c1c !important;
    color: white !important;
    padding: 10px !important;
    width: 100% !important;
    transform: none !important;
    scale: 1 !important;
}

.mrp-add-to-cart-section {
    margin-top: auto;
    padding-top: 15px;
}

/* Menu Cart Section */
.mrp-menu-cart-section {
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.mrp-menu-cart-section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
    border-bottom: 2px solid #d32f2f;
    padding-bottom: 10px;
}

.mrp-menu-cart-totals {
    background: white;
    padding: 20px;
    border-radius: 6px;
    margin-top: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mrp-cart-subtotal {
    font-size: 16px;
    padding: 8px 0;
}

.mrp-cart-discount {
    font-size: 16px;
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
}

.mrp-cart-total {
    font-size: 22px;
    font-weight: bold;
    color: #d32f2f;
    padding-top: 15px;
    border-top: 2px solid #ddd;
}

.mrp-coupon-section {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    border: 1px solid #e0e0e0;
}

.mrp-coupon-section input[type="text"] {
    border: 2px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.mrp-coupon-section input[type="text"]:focus {
    border-color: #d32f2f;
    outline: none;
}

.mrp-coupon-section button {
    background-color: #d32f2f;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.mrp-coupon-section button:hover {
    background-color: #b71c1c;
}

.mrp-cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mrp-cart-table thead {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    color: white;
}

.mrp-cart-table th {
    padding: 15px;
    text-align: left;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    color: white;
}

.mrp-cart-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    color: #333;
    background: white;
}

.mrp-cart-table tbody tr:hover {
    background-color: #f9f9f9;
}

.mrp-cart-table tbody tr:last-child td {
    border-bottom: none;
}

.mrp-cart-table input[type="number"] {
    width: 60px;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.mrp-cart-table .button {
    padding: 6px 12px;
    font-size: 12px;
    background-color: #d32f2f;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.mrp-cart-table .button:hover {
    background-color: #b71c1c;
}

/* Order Form Styles */
.mrp-order-form-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.mrp-cart-section {
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mrp-cart-section h2 {
    color: #333;
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d32f2f;
}

.mrp-cart-section h2 {
    margin-top: 0;
}

.mrp-cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.mrp-cart-table th,
.mrp-cart-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.mrp-cart-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.mrp-cart-total {
    text-align: right;
    font-size: 20px;
    padding-top: 15px;
    border-top: 2px solid #ddd;
}

.mrp-form-group {
    margin-bottom: 25px;
}

.mrp-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.mrp-form-group .required {
    color: #d32f2f;
}

.mrp-form-group input[type="text"],
.mrp-form-group input[type="email"],
.mrp-form-group input[type="tel"],
.mrp-form-group input[type="date"],
.mrp-form-group select,
.mrp-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background: white;
    color: #333;
}

.mrp-form-group input[type="text"]:focus,
.mrp-form-group input[type="email"]:focus,
.mrp-form-group input[type="tel"]:focus,
.mrp-form-group input[type="date"]:focus,
.mrp-form-group select:focus,
.mrp-form-group textarea:focus {
    border-color: #d32f2f;
    outline: none;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.mrp-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.mrp-submit-section {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.mrp-place-order-button {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%) !important;
    color: white !important;
    border: none !important;
    padding: 18px 50px !important;
    font-size: 18px !important;
    font-weight: bold !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: background 0.3s ease, box-shadow 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-sizing: border-box !important;
    min-height: auto !important;
    height: auto !important;
    line-height: normal !important;
}

.mrp-place-order-button:hover,
.mrp-place-order-button:focus,
.mrp-place-order-button:active {
    background: linear-gradient(135deg, #b71c1c 0%, #8b0000 100%) !important;
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4) !important;
    padding: 18px 50px !important;
    transform: none !important;
    scale: 1 !important;
}

/* Date and Time Selectors */
.mrp-date-selector {
    margin-top: 10px;
}

.mrp-date-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mrp-date-btn {
    flex: 1;
    min-width: 120px;
    padding: 15px !important;
    border: 2px solid #ddd !important;
    border-radius: 8px !important;
    background: white !important;
    cursor: pointer !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease !important;
    text-align: center !important;
    font-family: inherit !important;
    color: #333 !important;
    box-sizing: border-box !important;
}

.mrp-date-btn:hover {
    border-color: #d32f2f !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
    padding: 15px !important;
    transform: none !important;
    scale: 1 !important;
}

.mrp-date-btn.selected {
    background: #d32f2f !important;
    border-color: #d32f2f !important;
    color: white !important;
}

.mrp-date-btn.selected div {
    color: white !important;
}

.mrp-date-btn.selected .mrp-date-btn div {
    color: white !important;
}

.mrp-time-selector {
    margin-top: 10px;
}

.mrp-time-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mrp-time-btn {
    flex: 1;
    min-width: 100px;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    font-size: 14px;
    font-family: inherit;
}

.mrp-time-btn:hover {
    border-color: #d32f2f;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mrp-time-btn {
    color: #333;
}

.mrp-time-btn.selected {
    background: #d32f2f;
    border-color: #d32f2f;
    color: white;
}

.mrp-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    color: white;
    z-index: 9999;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.mrp-message-success {
    background-color: #4caf50;
}

.mrp-message-error {
    background-color: #f44336;
}

/* Toppings Modal */
.mrp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    pointer-events: auto;
}

#mrp-toppings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

#mrp-toppings-modal .mrp-modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    pointer-events: auto;
}

#mrp-toppings-modal .mrp-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
    background: none;
    border: none;
    padding: 0;
}

#mrp-toppings-modal .mrp-modal-close:hover {
    color: #333;
}

#mrp-toppings-modal h2 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-right: 30px;
}

.mrp-toppings-checkboxes {
    margin: 20px 0;
    max-height: 300px;
    overflow-y: auto;
}

.mrp-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.mrp-modal-actions .button {
    margin-left: 0;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.mrp-cancel-toppings {
    background-color: #f5f5f5 !important;
    color: #333 !important;
    border: 2px solid #ddd !important;
}

.mrp-cancel-toppings:hover {
    background-color: #e0e0e0 !important;
    color: #333 !important;
    border-color: #bbb !important;
}

.mrp-confirm-add-to-cart {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%) !important;
    color: white !important;
    border: none !important;
}

.mrp-confirm-add-to-cart:hover {
    background: linear-gradient(135deg, #b71c1c 0%, #8b0000 100%) !important;
    color: white !important;
}

.mrp-proceed-checkout {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%) !important;
    color: white !important;
    border: none !important;
    text-decoration: none !important;
    display: inline-block !important;
    padding: 15px 30px !important;
    border-radius: 8px !important;
    font-weight: bold !important;
    font-size: 16px !important;
    transition: background 0.3s ease, box-shadow 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3) !important;
}

.mrp-proceed-checkout:hover {
    background: linear-gradient(135deg, #b71c1c 0%, #8b0000 100%) !important;
    color: white !important;
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .mrp-products-grid {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    
    .mrp-product-image {
        height: 200px;
    }
    
    .mrp-cart-table {
        font-size: 14px;
    }
    
    .mrp-cart-table th,
    .mrp-cart-table td {
        padding: 8px 5px;
    }
    
    #mrp-toppings-modal .mrp-modal-content {
        width: 95%;
        padding: 20px;
    }
}

