/* Card Layout Styles */

/* DEFAULT CARD */
.default-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
    cursor: pointer;
}

.default-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-img {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.default-card:hover .card-img img {
    transform: scale(1.05);
}

.restaurant-badge-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.restaurant-badge-overlay .badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.restaurant-meta {
    font-size: 11px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.restaurant-meta i {
    color: #ff8c2b;
}

.card-content {
    padding: 16px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-img-small {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.card-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 4px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-restaurant {
    font-size: 12px;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-restaurant i {
    color: #ff8c2b;
}

.card-desc {
    font-size: 13px;
    color: #777;
    margin-bottom: 10px;
    height: 35px;
    overflow: hidden;
    line-height: 1.4;
}

.card-unit {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #ff8c2b;
}

.card-unit i {
    color: #ff8c2b;
}

.card-delivery {
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #28a745;
}

.card-delivery i {
    color: #28a745;
}

/* CARD FOOTER */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.card-price-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-price {
    margin-left: auto;
    font-weight: bold;
    color: #e74c3c;
    font-size: 1rem;
    white-space: nowrap;
}

.card-rating {
    margin-left: auto;
    font-weight: bold;
    color: #ffa500;
    font-size: 14px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-rating i {
    color: #ffa500;
}

.card-quantity {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.qty-btn {
    background: #f8f9fa;
    border: none;
    width: 28px;
    height: 28px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
}

.qty-btn:hover {
    background: #ff8c2b;
    color: white;
}

.qty-minus {
    border-right: 1px solid #ddd;
}

.qty-plus {
    border-left: 1px solid #ddd;
}

.qty-input {
    width: 40px;
    height: 28px;
    text-align: center;
    border: none;
    font-size: 12px;
    font-weight: 600;
    background: white;
    outline: none;
}

.card-action {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-btn {
    background: #ff8c2b;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    white-space: nowrap;
}

.card-btn:hover {
    background: #e67e22;
    transform: translateY(-1px);
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .category-hero {
        padding: 80px 0;
    }
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .card-img {
        height: 150px;
    }
    .card-content {
        padding: 12px;
    }
    .card-header {
        gap: 8px;
    }
    .card-img-small {
        width: 40px;
        height: 40px;
    }
    .card-title {
        font-size: 14px;
    }
    .card-desc {
        height: 30px;
        font-size: 12px;
    }
    .card-delivery {
        font-size: 11px;
        margin-bottom: 8px;
        padding: 3px 6px;
    }
    .card-unit {
        font-size: 11px;
        margin-bottom: 6px;
        padding: 3px 6px;
    }
    .card-price {
        font-size: 16px;
    }
    .card-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .card-price-section {
        gap: 8px;
    }
    .qty-btn {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
    .qty-input {
        width: 35px;
        height: 24px;
        font-size: 11px;
    }
}

@media (max-width: 400px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 1.8rem;
    }
}
