/* =====================================
   Food Detail Page - Vanilla CSS
   ===================================== */

/* Base Container */
.food-detail-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #fff7ed 50%, #fef3c7 100%);
    padding: 2rem 1rem;
}

.food-detail-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Breadcrumb */
.food-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.food-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.food-breadcrumb a:hover {
    color: #f97316;
}

.food-breadcrumb .separator {
    color: #cbd5e1;
    font-size: 0.75rem;
}

.food-breadcrumb .current {
    color: #f97316;
    font-weight: 600;
}

/* Main Card */
.food-main-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.food-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

@media (max-width: 1024px) {
    .food-main-grid {
        grid-template-columns: 1fr;
    }
}

/* Photo Section */
.food-photo-section {
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc, #fff7ed);
}

.food-main-photo {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    aspect-ratio: 1 / 1;
}

.food-main-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    cursor: pointer;
}

.food-main-photo:hover img {
    transform: scale(1.05);
}

/* Photo Overlay */
.photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.food-main-photo:hover .photo-overlay {
    opacity: 1;
}

/* Gallery Badge */
.gallery-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* Favorite Button */
.favorite-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 48px;
    height: 48px;
    background: white;
    border: 2px solid transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.favorite-btn:hover {
    border-color: #f97316;
    transform: scale(1.1);
}

.favorite-btn.active {
    background: linear-gradient(135deg, #f97316, #ea580c);
    border-color: #f97316;
}

.favorite-btn i {
    font-size: 1.25rem;
    color: #9ca3af;
    transition: all 0.3s;
}

.favorite-btn:hover i {
    color: #f97316;
}

.favorite-btn.active i {
    color: white;
}

/* Zoom Button */
.zoom-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.zoom-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.zoom-btn i {
    color: white;
    font-size: 1.125rem;
}

/* Thumbnail Gallery */
.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.thumbnail-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.thumbnail-item:hover {
    border-color: #f97316;
    transform: translateY(-2px);
}

.thumbnail-item.active {
    border-color: #f97316;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.25);
}

.thumbnail-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

/* Info Section */
.food-info-section {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Food Header */
.food-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.food-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
}

@media (min-width: 1024px) {
    .food-title {
        font-size: 2.5rem;
    }
}

/* Availability Badge */
.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    width: fit-content;
}

.availability-badge.available {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.availability-badge.unavailable {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

/* Price */
.food-price {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #f97316, #ea580c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.food-price-unit {
    font-size: 1rem;
    font-weight: 500;
    color: #64748b;
    margin-left: 0.5rem;
}

/* Meta Tags */
.food-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f1f5f9;
    border-radius: 50px;
    font-size: 0.8rem;
    color: #475569;
}

.meta-tag i {
    color: #f97316;
}

/* Rating */
.food-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-stars {
    display: flex;
    gap: 0.125rem;
}

.rating-stars i {
    color: #d1d5db;
    font-size: 1rem;
}

.rating-stars i.filled {
    color: #fbbf24;
}

.rating-count {
    font-size: 0.875rem;
    color: #64748b;
}

/* Description Card */
.description-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 1.5rem;
}

.description-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.description-title i {
    color: #f97316;
}

.description-text {
    color: #475569;
    line-height: 1.7;
    font-size: 0.9rem;
}

.no-description {
    color: #94a3b8;
    font-style: italic;
}

/* Seller Card */
.seller-card {
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
    border: 1px solid #fed7aa;
    border-radius: 16px;
    padding: 1.5rem;
}

.seller-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.seller-title i {
    color: #f97316;
}

.seller-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.seller-avatar {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.seller-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seller-avatar i {
    color: white;
    font-size: 1.5rem;
}

.seller-details {
    flex: 1;
}

.seller-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.seller-contact {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.seller-contact i {
    color: #f97316;
    width: 14px;
}

/* Quantity Selector */
.quantity-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 1rem 1.5rem;
}

.quantity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quantity-label {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

.quantity-control {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.qty-btn {
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: #f97316;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #fff7ed;
}

.qty-input {
    width: 60px;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    border: none;
    background: transparent;
    outline: none;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-add-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.btn-buy-now {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: white;
    color: #f97316;
    border: 2px solid #f97316;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-buy-now:hover {
    background: #fff7ed;
}

.btn-disabled {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: #e2e8f0;
    color: #94a3b8;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: not-allowed;
}

/* Related Section */
.related-section {
    margin-top: 2rem;
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.related-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
}

.related-title i {
    color: #f97316;
}

.related-count {
    background: #fff7ed;
    color: #ea580c;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Food Grid */
.food-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .food-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .food-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Food Card */
.food-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.food-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #f97316;
}

.food-card-image {
    position: relative;
    height: 140px;
    overflow: hidden;
}

.food-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.food-card:hover .food-card-image img {
    transform: scale(1.1);
}

.food-card-badge {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.food-card-status {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
}

.food-card-status.available {
    background: #22c55e;
    color: white;
}

.food-card-status.unavailable {
    background: #ef4444;
    color: white;
}

.food-card-body {
    padding: 1rem;
}

.food-card-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.food-card-category {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.food-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.food-card-price {
    font-size: 1rem;
    font-weight: 800;
    color: #f97316;
}

.food-card-cart {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.food-card-cart:hover {
    transform: scale(1.1);
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.gallery-modal.show {
    display: flex;
}

.gallery-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.gallery-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 30;
}

.gallery-close:hover {
    background: #ef4444;
    transform: scale(1.1);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 30;
}

.gallery-nav:hover {
    background: #f97316;
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
    left: 1.5rem;
}

.gallery-nav.next {
    right: 1.5rem;
}

.gallery-image-container {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image-container img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.gallery-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    z-index: 20;
}

.gallery-thumbnails {
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    max-width: 100%;
    overflow-x: auto;
    padding: 0 1rem;
    z-index: 20;
}

.gallery-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    flex-shrink: 0;
}

.gallery-thumb:hover {
    border-color: white;
}

.gallery-thumb.active {
    border-color: #f97316;
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.4);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Addons Section - Modern Design */
.addons-section {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.addons-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.addons-header-left {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.addons-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.addons-icon i {
    color: white;
    font-size: 1.25rem;
}

.addons-title {
    font-size: 1.125rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 0.125rem 0;
}

.addons-subtitle {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
}

.addons-badge {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    color: #ea580c;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid #fed7aa;
}

.addons-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.addon-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #fafafa, #f8fafc);
    padding: 1rem;
    border-radius: 14px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.addon-card:hover {
    border-color: #f97316;
    background: linear-gradient(135deg, #fff7ed, #fff);
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.15);
}

.addon-card.selected {
    border-color: #22c55e;
    background: linear-gradient(135deg, #f0fdf4, #fff);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
}

.addon-card-content {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.addon-emoji {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.addon-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.addon-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    text-transform: capitalize;
}

.addon-price {
    font-size: 0.8rem;
    font-weight: 600;
    color: #f97316;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.addon-price i {
    font-size: 0.65rem;
}

.addon-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.375rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.addon-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
}

.addon-btn-minus {
    background: #f1f5f9;
    color: #64748b;
}

.addon-btn-minus:hover {
    background: #fee2e2;
    color: #ef4444;
}

.addon-btn-plus {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.addon-btn-plus:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.addon-qty {
    min-width: 32px;
    text-align: center;
    font-size: 1rem;
    font-weight: 800;
    color: #1e293b;
}

.addons-summary {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 2px dashed #e2e8f0;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid #86efac;
}

.summary-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #166534;
}

.summary-label i {
    color: #22c55e;
}

.summary-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #22c55e;
}