/* Ürün Detay Drawer Stilleri */
.product-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    display: none;
    animation: fadeIn 0.2s;
}

.product-detail-overlay.active {
    display: block;
}

.product-detail-drawer {
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 480px;
    margin: 0 auto;
    background: white;
    border-radius: 24px 24px 0 0;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    -webkit-overflow-scrolling: touch;
}

.product-detail-drawer.active {
    transform: translateY(0);
}

.product-detail-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 480px;
    margin: 0 auto;
    padding: 0;
    background: #f9fafb;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    background: #f9fafb;
}

.close-drawer-btn {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 1001;
}

.close-drawer-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.product-detail-content {
    padding: 20px;
    padding-bottom: 40px;
}

.product-detail-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
    line-height: 1.3;
    word-wrap: break-word;
}

.product-detail-price {
    font-size: 28px;
    font-weight: 700;
    color: #DC2626;
    margin-bottom: 16px;
}

.product-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
}

.badge-new {
    background: #DCFCE7;
    color: #16A34A;
}

.badge-vegetarian {
    background: #DCFCE7;
    color: #16A34A;
}

.badge-hot {
    background: #FEE2E2;
    color: #DC2626;
}

.product-section {
    margin-top: 20px;
}

.product-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 10px;
}

.ingredients-list {
    list-style: none;
    padding: 0;
}

.ingredients-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
    color: #6B7280;
    font-size: 14px;
    word-wrap: break-word;
}

.ingredients-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #9CA3AF;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.size-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.size-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 70px;
}

.size-option:hover {
    border-color: #D1D5DB;
}

.size-option.active {
    border-color: #DC2626;
    background: #FEF2F2;
}

.size-option-label {
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 4px;
}

.size-option.active .size-option-label {
    color: #DC2626;
}

.size-option-price {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.size-option.active .size-option-price {
    color: #DC2626;
}

.allergens-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.allergen-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    background: #F9FAFB;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
}

.allergen-icon {
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 28px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .product-detail-drawer {
        max-width: 100%;
    }

    .product-detail-image {
        max-width: 100%;
    }

    .product-detail-content {
        padding: 16px;
        padding-bottom: 30px;
    }

    .product-detail-title {
        font-size: 20px;
    }

    .product-detail-price {
        font-size: 24px;
    }

    .size-selector {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px;
    }

    .size-option {
        padding: 12px;
        min-height: 60px;
    }

    .close-drawer-btn {
        width: 40px;
        height: 40px;
        top: 16px;
        right: 16px;
    }
}

@media (max-width: 480px) {
    .product-detail-drawer {
        max-width: 100%;
    }

    .product-detail-image {
        max-width: 100%;
    }

    .product-detail-content {
        padding: 14px;
        padding-bottom: 25px;
    }

    .product-detail-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .product-detail-price {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .product-section {
        margin-top: 16px;
    }

    .product-section-title {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .size-selector {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .size-option {
        padding: 10px;
        min-height: 55px;
    }

    .size-option-label {
        font-size: 12px;
    }

    .size-option-price {
        font-size: 14px;
    }

    .allergen-item {
        width: 48px;
        height: 48px;
    }

    .allergen-icon {
        font-size: 24px;
    }

    .ingredients-list li {
        font-size: 13px;
    }

    .close-drawer-btn {
        width: 36px;
        height: 36px;
        top: 12px;
        right: 12px;
    }
}

/* iPhone SE ve çok küçük ekranlar */
@media (max-width: 375px) {
    .product-detail-drawer {
        max-width: 100%;
    }

    .product-detail-image {
        max-width: 100%;
    }

    .product-detail-content {
        padding: 12px;
        padding-bottom: 20px;
    }

    .product-detail-title {
        font-size: 17px;
    }

    .product-detail-price {
        font-size: 20px;
    }
}
