/**
 * Lindo Menu Order - Main Stylesheet
 * Version: 1.0.0
 */

/* ============================
   MENU GRID LAYOUT
   ============================ */

.lindo-menu-grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.lindo-menu-grid.lindo-columns-2 {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.lindo-menu-grid.lindo-columns-3 {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.lindo-menu-grid.lindo-columns-4 {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

@media (max-width: 768px) {
    .lindo-menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
}

/* ============================
   MENU ITEM
   ============================ */

.lindo-menu-item {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.lindo-menu-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.lindo-menu-item-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.lindo-menu-item-image {
    position: relative;
    overflow: hidden;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    background: #f5f5f5;
}

.lindo-menu-item-image a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.lindo-menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.lindo-menu-item:hover .lindo-menu-item-image img {
    transform: scale(1.05);
}

.lindo-menu-item-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lindo-menu-item-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.lindo-menu-item-title a {
    color: #333;
    text-decoration: none;
}

.lindo-menu-item-title a:hover {
    color: #ff6b35;
}

.lindo-menu-item-description {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
}

.lindo-menu-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.lindo-menu-item-price {
    font-size: 18px;
    font-weight: 700;
    color: #ff6b35;
}

.lindo-menu-item-price del {
    font-size: 14px;
    color: #999;
    margin-right: 5px;
}

/* ============================
   BUTTONS
   ============================ */

.lindo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.lindo-btn-add-to-cart {
    background: #ff6b35;
    color: #fff;
}

.lindo-btn-add-to-cart:hover {
    background: #e55a2b;
}

.lindo-btn-select {
    background: #fff;
    color: #333;
    border: 2px solid #ff6b35;
}

.lindo-btn-select:hover {
    background: #ff6b35;
    color: #fff;
}

.lindo-btn-icon {
    font-size: 18px;
    margin-right: 4px;
    line-height: 1;
}

.lindo-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================
   MINI CART SLIDE
   ============================ */

.lindo-mini-cart {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.lindo-mini-cart.is-open {
    visibility: visible;
    opacity: 1;
}

.lindo-mini-cart-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.lindo-mini-cart-container {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    max-width: 420px;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

/* Slide from right */
.lindo-mini-cart.lindo-slide-right .lindo-mini-cart-container {
    right: 0;
    transform: translateX(100%);
}

.lindo-mini-cart.lindo-slide-right.is-open .lindo-mini-cart-container {
    transform: translateX(0);
}

/* Slide from left */
.lindo-mini-cart.lindo-slide-left .lindo-mini-cart-container {
    left: 0;
    transform: translateX(-100%);
}

.lindo-mini-cart.lindo-slide-left.is-open .lindo-mini-cart-container {
    transform: translateX(0);
}

@media (max-width: 480px) {
    .lindo-mini-cart-container {
        max-width: 100%;
    }
}

/* Cart Header */
.lindo-mini-cart-header {
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lindo-mini-cart-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.lindo-mini-cart-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lindo-mini-cart-close:hover {
    color: #ff6b35;
}

/* Cart Body */
.lindo-mini-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.lindo-cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.lindo-cart-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Cart Item */
.lindo-cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 12px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 6px;
}

.lindo-cart-item-image {
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
}

.lindo-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lindo-cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lindo-cart-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.lindo-cart-item-name a {
    color: #333;
    text-decoration: none;
}

.lindo-cart-item-name a:hover {
    color: #ff6b35;
}

.lindo-cart-item-price {
    font-size: 14px;
    font-weight: 600;
    color: #ff6b35;
}

.lindo-cart-item-quantity {
    margin-top: auto;
}

.lindo-quantity-controls {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.lindo-qty-btn {
    width: 28px;
    height: 28px;
    background: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lindo-qty-btn:hover {
    background: #f5f5f5;
}

.lindo-qty-input {
    width: 40px;
    height: 28px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.lindo-cart-item-remove {
    display: flex;
    align-items: flex-start;
}

.lindo-remove-item {
    width: 24px;
    height: 24px;
    background: #ff6b35;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lindo-remove-item:hover {
    background: #e55a2b;
}

/* Cart Footer */
.lindo-mini-cart-footer {
    padding: 20px;
    border-top: 1px solid #e5e5e5;
    background: #f9f9f9;
}

.lindo-mini-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 700;
}

.lindo-total-amount {
    color: #ff6b35;
}

.lindo-mini-cart-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.lindo-btn-cart,
.lindo-btn-checkout {
    padding: 12px 20px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.lindo-btn-cart {
    background: #fff;
    color: #333;
    border: 2px solid #ff6b35;
}

.lindo-btn-cart:hover {
    background: #f5f5f5;
}

.lindo-btn-checkout {
    background: #ff6b35;
    color: #fff;
    border: 2px solid #ff6b35;
}

.lindo-btn-checkout:hover {
    background: #e55a2b;
    border-color: #e55a2b;
}

/* ============================
   LOADING & ANIMATIONS
   ============================ */

.lindo-loading {
    pointer-events: none;
    opacity: 0.6;
}

.lindo-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ff6b35;
    border-top-color: transparent;
    border-radius: 50%;
    animation: lindo-spin 0.6s linear infinite;
}

@keyframes lindo-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 768px) {
    .lindo-menu-item-title {
        font-size: 14px;
    }
    
    .lindo-menu-item-description {
        font-size: 12px;
    }
    
    .lindo-menu-item-price {
        font-size: 16px;
    }
    
    .lindo-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* ============================
   NO PRODUCTS MESSAGE
   ============================ */

.lindo-no-products {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

/* ============================
   PRODUCT ADDONS
   ============================ */

.lindo-product-addons {
    margin: 30px 0;
    border-top: 1px solid #e5e5e5;
    padding-top: 30px;
}

.lindo-addon-group {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.lindo-addon-group-header {
    margin-bottom: 15px;
}

.lindo-addon-group-title {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.lindo-addon-group-title .required {
    color: #e74c3c;
    margin-left: 3px;
}

.lindo-addon-group-note {
    margin: 0;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

.lindo-addon-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lindo-addon-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lindo-addon-item:hover {
    border-color: #ff6b35;
    background: #fff5f2;
}

.lindo-addon-item input[type="radio"],
.lindo-addon-item input[type="checkbox"] {
    margin: 0 12px 0 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.lindo-addon-item input[type="radio"]:checked ~ .lindo-addon-item-label,
.lindo-addon-item input[type="checkbox"]:checked ~ .lindo-addon-item-label {
    font-weight: 600;
    color: #ff6b35;
}

.lindo-addon-item-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    cursor: pointer;
}

.lindo-addon-item-name {
    font-size: 15px;
    color: #333;
}

.lindo-addon-item-price {
    font-size: 14px;
    font-weight: 600;
    color: #ff6b35;
}

/* Selected state */
.lindo-addon-item:has(input:checked) {
    border-color: #ff6b35;
    background: #fff5f2;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .lindo-product-addons {
        margin: 20px 0;
    }
    
    .lindo-addon-group {
        padding: 15px;
    }
    
    .lindo-addon-item {
        padding: 10px 12px;
    }
    
    .lindo-addon-item-label {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}
