/* Restoran Kartları için özel CSS */

.restaurant-card {
    height: 250px;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    background: #fff;
    margin-bottom: 24px;
    transition: box-shadow 0.2s;
}
.restaurant-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: #f3f3f3;
    overflow: hidden;
    min-height: 0;
    flex-shrink: 0;
}
.restaurant-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0; left: 0;
    transition: opacity 0.3s;
    opacity: 0;
}
.image-skeleton {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, #f3f3f3 25%, #ecebeb 50%, #f3f3f3 75%);
    animation: skeleton-loading 1.2s infinite linear;
    z-index: 1;
}
@keyframes skeleton-loading {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}
.restaurant-image.loaded {
    opacity: 1;
    z-index: 2;
}
.image-skeleton.hide {
    display: none;
}
.card-content {
    padding: 12px 10px 0 10px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
@media (max-width: 767px) {
    .restaurant-card {
        height: 260px;
    }
    .image-wrapper {
        aspect-ratio: 1/1;
    }
}
.oncekiliste {
    height: 250px; /* Sabit yükseklik, eski tasarıma göre ayarla */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-bottom: 20px;
}
.oncekiliste .ic {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.oncekiliste img {
    height: 150px; /* Sabit yükseklik */
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}
#restaurantLoading {
    display: none;
    text-align: center;
    padding: 32px 0 24px 0;
    font-size: 20px;
    min-height: 120px;
    position: relative;
    animation: fadeIn 0.4s;
}
.loading-spinner {
    display: inline-block;
    width: 36px;
    height: 36px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 8px;
}
@keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}
@keyframes fadeIn {
    from { opacity: 0;}
    to { opacity: 1;}
}
@keyframes fadeOut {
    from { opacity: 1;}
    to { opacity: 0;}
}
#restaurantList.fade-in {
    animation: fadeIn 0.5s;
}
.option-group {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.option-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.08em;
}
.option-count {
    font-size: 0.95em;
    color: #007bff;
    margin-left: 8px;
}
.option-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.option-item-label {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 7px;
    padding: 7px 12px;
    margin-bottom: 0.3rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    font-size: 1em;
    align-items: center;
}
.option-item-label input[type='checkbox'],
.option-item-label input[type='radio'] {
    margin-right: 8px;
}
.option-item-label:hover, .option-item-label:focus-within {
    border-color: #007bff;
    box-shadow: 0 0 0 2px #e3f0ff;
}
@media (max-width: 767px) {
    .product-image-wrapper-43 {
        max-width: 100%;
        aspect-ratio: 1/1;
    }
    .option-group {
        padding: 0.7rem;
    }
    .option-item-label {
        font-size: 0.98em;
        padding: 6px 8px;
    }
}
.product-image-wrapper-43 {
    width: 100%;
    max-width: 340px;
    aspect-ratio: 4/3;
    background: #f8f8f8;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.product-modal-image-43 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* MODERN ÜRÜN DETAY MODALI */
.product-modal-modern {
    padding: 0;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    max-width: 480px;
    margin: 0 auto;
}
.product-modal-header {
    position: relative;
    background: #f6f6f6;
    padding: 0;
}
.product-modal-image-modern {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 0 0 18px 18px;
    display: block;
    background: #f8f8f8;
}
.product-modal-body-modern {
    padding: 1.5rem 1.2rem 1rem 1.2rem;
}
.product-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}
.product-modal-desc {
    color: #666;
    font-size: 1.05rem;
    margin-bottom: 0.7rem;
}
.product-modal-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #00b14f;
    margin-bottom: 1.1rem;
}
.product-modal-oldprice {
    color: #aaa;
    text-decoration: line-through;
    font-size: 1rem;
    margin-left: 8px;
}
.product-modal-options {
    margin-bottom: 1.2rem;
}
.product-modal-option-group {
    background: #f7faff;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.product-modal-option-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #007bff;
    font-size: 1.08em;
}
.product-modal-option-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.product-modal-option-item {
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 7px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 1em;
    display: flex;
    align-items: center;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-width: 120px;
    margin-bottom: 0.3rem;
}
.product-modal-option-item input[type='checkbox'],
.product-modal-option-item input[type='radio'] {
    margin-right: 8px;
}
.product-modal-option-item:hover, .product-modal-option-item:focus-within {
    border-color: #007bff;
    box-shadow: 0 0 0 2px #e3f0ff;
}
.product-modal-footer {
    padding: 1rem 1.2rem;
    border-top: 1px solid #f0f0f0;
    background: #fff;
    display: flex;
    justify-content: flex-end;
}
#addToCartBtn {
    background: #00b14f;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
    border-radius: 8px;
    padding: 12px 32px;
    border: none;
    transition: background 0.2s;
}
#addToCartBtn:hover, #addToCartBtn:focus {
    background: #00913d;
}
@media (max-width: 600px) {
    .product-modal-modern {
        max-width: 100vw;
        border-radius: 0;
    }
    .product-modal-body-modern, .product-modal-footer {
        padding-left: 0.7rem;
        padding-right: 0.7rem;
    }
} 